Day 01Part 01- Operating System for gate Computer Science โ€“ Introduction to scheduling algorithm.

Day 01Part 01- Operating System for gate Computer Science โ€“ Introduction to scheduling algorithm.



play-rounded-fill play-rounded-outline play-sharp-fill play-sharp-outline
pause-sharp-outline pause-sharp-fill pause-rounded-outline pause-rounded-fill
00:00
ยฉ 2018 Flowplayer ABAbout FlowplayerGPL based license

Hereโ€™s a clear and structured explanation for:


Contents [hide]

๐Ÿง  Day 01 โ€“ Part 01: Operating System for GATE CSE

๐ŸŽฏ Topic: Introduction to Scheduling Algorithms


๐Ÿ“Œ 1. What is CPU Scheduling?

CPU Scheduling is the process of selecting one process from the ready queue to execute next on the CPU.

In a multiprogramming system, multiple processes are in memory, and the CPU scheduler picks one of the processes to run.


๐ŸŽฏ Why Scheduling is Important in OS (GATE Point of View):

  • Improves CPU utilization

  • Minimizes waiting time, turnaround time

  • Maximizes throughput and responsiveness


๐Ÿ”„ 2. Types of Schedulers in OS:

Scheduler Type Role
Long-Term Decides which jobs are admitted to the system
Short-Term Picks from ready queue โ†’ allocated to CPU (CPU Scheduling)
Medium-Term Suspends/resumes processes (used for swapping)

๐Ÿงฎ 3. Scheduling Criteria (Very Important for GATE MCQs)

Criterion Description
CPU Utilization Keep CPU as busy as possible (ideal: 100%)
Throughput No. of processes completed per unit time
Turnaround Time Completion time โ€“ Arrival time
Waiting Time Turnaround Time โ€“ Burst Time
Response Time First response โ€“ Arrival time
Fairness No starvation, all processes get chance

โš™๏ธ 4. Classification of Scheduling Algorithms

Type Examples
Non-Preemptive FCFS, SJF (non-preemptive), Priority (non-preemptive)
Preemptive SRTF, Round Robin, Priority (preemptive), Multilevel Queue

๐Ÿ“˜ 5. Brief Intro to Common Scheduling Algorithms

Algorithm Key Idea
FCFS First Come First Serve โ€“ easy but can cause convoy effect
SJF Shortest Job First โ€“ optimal avg. waiting time, may cause starvation
SRTF Preemptive version of SJF
Priority Processes scheduled based on priority
Round Robin Each process gets a time quantum โ€“ good for time-sharing systems

๐Ÿ“ GATE Question Examples

Q (GATE 2017):
Which of the following scheduling algorithms could result in starvation?

Answer: SJF (non-preemptive) and Priority (if lower priority never gets CPU)


๐Ÿ”ง Formula Quick Recap

  • Turnaround Time (TAT) = Completion Time โ€“ Arrival Time

  • Waiting Time = TAT โ€“ Burst Time

  • Response Time = First Response โ€“ Arrival Time


๐Ÿ“š Recommended for GATE CSE Preparation

  • Practice 10โ€“15 scheduling problems with Gantt charts

  • Focus on edge cases (e.g., same arrival time, preemption mid-process)

  • Learn to compute average waiting and turnaround time


Would you like:

  • ๐Ÿ“Š Gantt Chart problems with solutions?

  • ๐ŸŽฅ Video script/slide for this lesson?

  • ๐Ÿงฉ Quiz on these concepts?

Let me know and Iโ€™ll prepare it!

Day 01Part 01- Operating System for gate Computer Science โ€“ Introduction to scheduling algorithm.

OPERATING SYSTEMS Unit โ€“ I 1.1 Introduction



Leave a Reply

Your email address will not be published. Required fields are marked *

error: