CPU Scheduling: GATE CS Previous Year Questions

CPU Scheduling · Operating System

37 questions · asked in 24 of 27 years (2000–2026)

MCQ 24 · MSQ 2 · NAT 111-mark 21 · 2-mark 16

2000Questions per year2026

Questions 11–15 of 37

Q11GATE 20192 marksNAT
Consider the following four processes with arrival times (in milliseconds) and their length of CPU burst (in milliseconds) as shown below:
Process P1 P2 P3 P4 Arrival time 0 1 3 4 CPU burst time 3 1 3 Z These processes are run on a single processor using preemptive Shortest Remaining Time First scheduling algorithm. If the average waiting time of the processes is 1 millisecond, then the value of Z is __________.

Q12GATE 2017 (Session 1)1 markNAT
Consider the following CPU processes with arrival times (in milliseconds) and length of CPU burst (in milliseconds) as given below:
Process Arrival time Burst time P1 0 7 P2 3 3 P3 5 5 P4 6 2
If the pre-emptive shortest remaining time first scheduling algorithm is used to schedule the processes., then the average waiting time across all processes is ________ milliseconds.

Q13GATE 2017 (Session 2)2 marksNAT
Consider the set of processes with arrival time (in milliseconds). CPU burst time (in milliseconds), and priority (0 is the highest priority) shown below. None of the processes have I/O burst time.
Process Arrival Time Burst Time Priority P1 0 11 2 P2 5 28 0 P3 12 2 3 P4 2 10 1 P5 9 16 4
The average waiting time (in milliseconds) of all the processes using preemptive priority scheduling algorithm is __________

Q14GATE 2016 (Session 1)1 markMCQ−0.33 if wrong
Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time to a computer system.Which one of the following process scheduling algorithms would minimize the average waiting time in the ready queue?

Q15GATE 2016 (Session 2)2 marksNAT
Consider the following processes, with the arrival time and the length of the CPU burst given in milli seconds.The scheduling algorithm used is preemptive shortest remaining-time first.
Process Arrival Time Burst Time P1 0 10 P2 3 6 P3 7 1 P4 8 3
The average turn around time of these processes is milliseconds.

Keep practising

Topics in Operating System

All CS topics ›