CPU Scheduling questions — page 2 of 2

Q32

GATE CS 2014 CS-1SchedulingNAT2 marks
Consider the following set of processes that need to be scheduled on a single CPU. All the times are given in milliseconds.
Process NameArrival TimeExecution Time
A06
B32
C54
D76
E103
Using the shortest remaining time first scheduling algorithm, the average process turnaround time (in msec) is ____________________.
Show answer without attempting

Answer: 7.2

Q10

GATE CS 2013 CSSchedulingMCQ1 mark−1/3 if wrong
A scheduling algorithm assigns priority proportional to the waiting time of a process. Every process starts with priority zero (the lowest priority). The scheduler re-evaluates the process priorities every TT time units and decides the next process to schedule. Which one of the following is TRUE if the processes have no I/O operations and all arrive at time zero?
Show answer without attempting

Answer: B

Q31

GATE CS 2012 CSSchedulingMCQ2 marks−2/3 if wrong
Consider the 3 processes, P1, P2 and P3 shown in the table.
ProcessArrival timeTime Units Required
P105
P217
P334
The completion order of the 3 processes under the policies FCFS and RR2 (round robin scheduling with CPU quantum of 2 time units) are
Show answer without attempting

Answer: C

0/30 correct0 marks

Related topics in Scheduling