VL2018191005671 Da PDF
VL2018191005671 Da PDF
1. A uni-processor computer system only has two processes, both of which alternate 10 ms
CPU bursts with 90 ms I/O bursts. Both the processes were created at nearly the same time.
The I/O of both processes can proceed in parallel. Which of the following scheduling
strategies will result in the least CPU utilization (over a long period of time) for this system?
What will happen when the following algorithms were approached? (Also justify your
answer)
(i) Round Robin scheduling
(ii) First Come First Served scheduling or Shortest Remaining Time First
3. 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 turnaround time is:
(A) 13 units (B) 14 units (C) 15 units (D) 16 units
Justify your answer with suitable Gantt chat as well as numerical derivations
4. Consider the following set of processes with the length of the CPU burst time in
Milliseconds.
(i) Draw four Gantt chart illustrating the execution of these processes using FCFS, preemptive
SJF, Non-preemptive SJT, preemptive Priority non-preemptive Priority (a small priority
number implies a higher priority) and RR (Quantum= 3) scheduling.
(ii) Calculate the average waiting time and average Turnaround time for the above scheduling
algorithms.
fork();
fork();
fork();
fork();
The total number of child processes created is: Justify your answer with suitable code
skeleton
(A) 3
(B) 4
(C) 7
(D) 15