Scheduling questions

Q24

GATE CS 2017 CS-1SchedulingNAT1 mark
Consider the following CPU processes with arrival times (in milliseconds) and length of CPU bursts (in milliseconds) as given below:
ProcessArrival timeBurst time
P107
P233
P355
P462
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.
Show answer without attempting

Answer: 3.0

Q51

GATE CS 2017 CS-2SchedulingNAT2 marks
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.
ProcessArrival TimeBurst TimePriority
P1P_10112
P2P_25280
P3P_31223
P4P_42101
P5P_59164
The average waiting time (in milliseconds) of all the processes using preemptive priority scheduling algorithm is ____________.
Show answer without attempting

Answer: 29.0

0/20 correct0 marks

Related topics in Operating Systems