DIZNR INTERNATIONAL

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.

https://www.gyanodhan.com/video/7B7.%20GATE%20CSEIT/Operating%20System/418.%20Day%2001Part%2001-%20Operating%20System%20for%20gate%20Computer%20Science%20-%20Introduction%20to%20scheduling%20algorithm.mp4

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


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):


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


Recommended for GATE CSE Preparation


Would you like:

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