Question 1
Question 2
Question 3
Question 4
Question 5
Question 6
S1: It causes minimum average waiting time S2: It can cause starvation
Question 7
Question 8
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 T 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?
This algorithm is equivalent to the first-come-first-serve algorithm
This algorithm is equivalent to the round-robin algorithm.
This algorithm is equivalent to the shortest-job-first algorithm..
This algorithm is equivalent to the shortest-remaining-time-first algorithm
Question 9
Consider the 3 processes, P1, P2 and P3 shown in the table.
Process Arrival time Time Units Required
P1 0 5
P2 1 7
P3 3 4
The completion order of the 3 processes under the policies FCFS and RR2 (round robin scheduling with CPU quantum of 2 time units) are
FCFS: P1, P2, P3
RR2: P1, P2, P3
FCFS: P1, P3, P2
RR2: P1, P3, P2
FCFS: P1, P2, P3
RR2: P1, P3, P2
FCFS: P1, P3, P2
RR2: P1, P2, P3
Question 10
Consider the following table of arrival time and burst time for three processes P0, P1 and P2.
Process Arrival time Burst Time
P0 0 ms 9 ms
P1 1 ms 4 ms
P2 2 ms 9 ms
The pre-emptive shortest job first scheduling algorithm is used. Scheduling is carried out only at arrival or completion of processes. What is the average waiting time for the three processes?
5.0 ms
4.33 ms
6.33
7.33
There are 56 questions to complete.