2. Consider the following set of processes, with the length of the CPU burst and I/O burst given in milliseconds: Process CPU, I/O, CPU Arrival time P1 2, 3, 1 lo P2 2, 1, 4 14 P3 1, 1, 4 10 P4 |6, 6,...


2. Consider the following set of processes, with the length of the CPU burst and I/O burst given in milliseconds:<br>Process<br>CPU, I/O, CPU<br>Arrival time<br>P1<br>2, 3, 1<br>lo<br>P2<br>2, 1, 4<br>14<br>P3<br>1, 1, 4<br>10<br>P4<br>|6, 6, 6<br>13<br>For example: In FCFS a process p1 arrived at 0 ms gets CPU for 2 ms, then releases CPU to the next process for 3ms where it<br>performs I/O burst and return back to the queue with a new arrival time as (2+3 = 5ms) 5 ms.<br>In case of a tie, go with process number. Perform the following for FCFS and non-preemptive SJF scheduling algorithm:<br>A. Calculate the average waiting time, average turnaround time.<br>B. With respect to each metric justify which scheduling algorithm is good for the given process mix.<br>

Extracted text: 2. Consider the following set of processes, with the length of the CPU burst and I/O burst given in milliseconds: Process CPU, I/O, CPU Arrival time P1 2, 3, 1 lo P2 2, 1, 4 14 P3 1, 1, 4 10 P4 |6, 6, 6 13 For example: In FCFS a process p1 arrived at 0 ms gets CPU for 2 ms, then releases CPU to the next process for 3ms where it performs I/O burst and return back to the queue with a new arrival time as (2+3 = 5ms) 5 ms. In case of a tie, go with process number. Perform the following for FCFS and non-preemptive SJF scheduling algorithm: A. Calculate the average waiting time, average turnaround time. B. With respect to each metric justify which scheduling algorithm is good for the given process mix.

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here