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 26–30 of 37

Q26GATE 20071 markMCQ−0.33 if wrong
An operating system uses Shortest Remaining Time first (SRT) process scheduling algorithm. Consider the arrival times and execution times for the following processes:
 Process  Execution time  Arrival time
P1             20            0
P2             25            15
P3             10            30
P4             15            45
What is the total waiting time for process P2?

Q27GATE 20071 markMCQ−0.33 if wrong
Group 1 contains some CPU scheduling algorithms and Group 2 contains some applications. Match entries in Group 1 to entries in Group 2. Group I Group II
Group I Group II (P) Gang Scheduling (1) Guaranteed Scheduling (Q) Rate Monotonic Scheduling (2) Real-time Scheduling (R) Fair Share Scheduling (3) Thread Scheduling

Q28GATE 20061 markMCQ−0.33 if wrong
The arrival time, priority, and duration of the CPU and I/O bursts for each of three processes P1,P2P_1, P_2 and P3P_3 are given in the table below. Each process has a CPU burst followed by an I/O burst followed by another CPU burst. Assume that each process has its own I/O resource.
ProcessArrivalPriorityBurst durationBurst durationBurst duration) Time(CPU)(I/O)(CPU) P102153P223 (lowest)331P331 (highest)231\begin{array}{|c|c|c|c|c|c|} \hline \textbf{Process} & \textbf{Arrival} & \textbf{Priority}& \textbf{Burst duration} & \textbf{Burst duration} & \textbf{Burst duration) }\\& \textbf{Time} & & \textbf{(CPU)} & \textbf{(I/O)} & \textbf{(CPU) } \\\hline \text{$P_1$} & 0 & 2 & 1 & 5 &3 \\\hline \text{$P_2$} & 2 & \text{3 (lowest)}& 3 & 3 & 1 \\\hline \text{$P_3$} & 3 & \text{1 (highest)}& 2 & 3 & 1 \\\hline \end{array}
The multi-programmed operating system uses preemptive priority scheduling. What are the finish times of the processes P1,P2P_1, P_2 and P3P_3?

Q29GATE 20061 markMCQ−0.33 if wrong
Consider three processes, all arriving at time zero, with total execution time of 10, 20 and 30 units, respectively. Each process spends the first 20% of execution time doing I/O, the next 70% of time doing computation, and the last 10% of time doing I/O again. The operating system uses a shortest remaining compute time first scheduling algorithm and schedules a new process either when the running process get blocked on I/O or when the running process finishes its compute burst. Assume that all I/O operations can be overlapped as much as possible. For what percentage of time does the CPU remain idle?

Q30GATE 20061 markMCQ−0.33 if wrong
Consider three processes (process id 0,1,2, respectively) with compute time bursts 2,4, and 8 time units. All processes arrive at time zero. Consider the longest remaining time first (LRTF) scheduling algorithm. In LRTF ties are broken by giving priority to the process with the lowest process id . The average turn around time is

Keep practising

Topics in Operating System

All CS topics ›