1. Consider the FIVE (5) process with their CPU burst time and arrival time. Process Arrival Time CPU burst time PO 3 P1 2 2 P2 4 P3 3 P4 Based on the above data, answer the following a) Draw a time...


Operating System Course


1. Consider the FIVE (5) process with their CPU burst time and arrival time.<br>Process<br>Arrival Time<br>CPU burst time<br>PO<br>3<br>P1<br>2<br>2<br>P2<br>4<br>P3<br>3<br>P4<br>Based on the above data, answer the following<br>a) Draw a time line for the following algorithm:<br>I.<br>Shortest Job First (SJF)<br>I.<br>Shortest Remaining Time (SRT)<br>b) Calculate the turn-around time for SRT algorithm.<br>c) Calculate average turn-around time for SRT algorithm.<br>d) Calculate the response time for SJF.<br>e) Calculate the waiting time for SJF.<br>f) Which algorithm is the best among SJF and SRT? Justify your answer.<br>

Extracted text: 1. Consider the FIVE (5) process with their CPU burst time and arrival time. Process Arrival Time CPU burst time PO 3 P1 2 2 P2 4 P3 3 P4 Based on the above data, answer the following a) Draw a time line for the following algorithm: I. Shortest Job First (SJF) I. Shortest Remaining Time (SRT) b) Calculate the turn-around time for SRT algorithm. c) Calculate average turn-around time for SRT algorithm. d) Calculate the response time for SJF. e) Calculate the waiting time for SJF. f) Which algorithm is the best among SJF and SRT? Justify your answer.

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here