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 16–20 of 37

Q16GATE 2015 (Session 1)2 marksNAT
Consider a uniprocessor system executing three tasks T1, T2 and T3, each of which is composed of an infinite sequence of jobs (or instances) which arrive periodically at intervals of 3, 7 and 20 milliseconds, respectively. The priority of each task is the inverse of its period, and the available tasks are scheduled in order of priority, with the highest priority task scheduled first. Each instance of T1, T2 and T3 requires an execution time of 1, 2 and 4 milliseconds, respectively. Given that all tasks initially arrive at the beginning of the 1st millisecond and task preemptions are allowed, the first instance of T3 completes its execution at the end of _____________ milliseconds.

Q17GATE 2015 (Session 3)2 marksMCQ−0.67 if wrong
For the processes listed in the following table, which of the following scheduling schemes will give the lowest average turnaround time?
Process Arrival Time Processing Time A 0 3 B 1 6 C 4 4 D 6 2

Q18GATE 2014 (Session 1)2 marksNAT
Consider the following set of processes that need to be scheduled on a single CPU. All the times are given in milliseconds
Process Name Arrival Time Execution Time A 0 6 B 3 2 C 5 4 D 7 6 E 10 3
Using the shortest remaining time first scheduling algorithm, the average process turnaround time (in msec) is ________.

Q19GATE 2014 (Session 2)2 marksNAT
Three processes A, B and C each execute a loop of 100 iterations. In each iteration of the loop, a process performs a single computation that requires tct_{c} CPU milliseconds and then initiates a single I/O operation that lasts for tiot_{io} milliseconds. It is assumed that the computer where the processes execute has sufficient number of I/O devices and the OS of the computer assigns different I/O devices to each process. Also, the scheduling overhead of the OS is negligible. The processes have the following characteristics:
Process id tc tio A 100ms 500ms B 350ms 500ms C 200ms 500ms
The processes A, B, and C are started at times 0, 5 and 10 milliseconds respectively, in a pure time sharing system (round robin scheduling) that uses a time slice of 50 milliseconds. The time in milliseconds at which process C would complete its first I/O operation is ___________.

Q20GATE 2014 (Session 3)2 marksNAT
An operating system uses shortest remaining time first scheduling algorithm for pre-emptive scheduling of processes. Consider the following set of processes with their arrival times and CPU burst times (in milliseconds):
Process Arrival Time Burst Time P1 0 12 P2 2 4 P3 3 6 P4 8 5
The average waiting time (in milliseconds) of the processes is _________.

Keep practising

Topics in Operating System

All CS topics ›