Scheduling questions

Q32

GATE CS 2014 CS-2SchedulingNAT2 marks
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 idtct_ctiot_{io}
A100 ms500 ms
B350 ms500 ms
C200 ms500 ms
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 ___________.
Show answer without attempting

Answer: 1000

Q32

GATE CS 2014 CS-3SchedulingNAT2 marks
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):
ProcessArrival TimeBurst Time
P1012
P224
P336
P485
The average waiting time (in milliseconds) of the processes is _________.
Show answer without attempting

Answer: 5.5

Q19

GATE CS 2014 CS-1SchedulingNAT1 mark
Suppose a disk has 201 cylinders, numbered from 0 to 200. At some time the disk arm is at cylinder 100, and there is a queue of disk access requests for cylinders 30, 85, 90, 100, 105, 110, 135 and 145. If Shortest-Seek Time First (SSTF) is being used for scheduling the disk access, the request for cylinder 90 is serviced after servicing ____________ number of requests.
Show answer without attempting

Answer: 3

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

0/40 correct0 marks

Related topics in Operating Systems