Home /
Expert Answers /
Computer Science /
consider-the-set-of-four-processes-p1-p2-p3-and-p4-each-with-a-process-execution-time-of-5-pa298
(Solved):
Consider the set of four processes P1, P2, P3, and P4, each with a process execution time of 5, ...
Consider the set of four processes P1, P2, P3, and P4, each with a process execution time of 5,10,15, and 20 milliseconds. The process execution consists of 80% CPU burst time and 20%/10 burst time. If the CPU scheduling policy is round robin with time stamp 2 milliseconds. What will be the average turnaround time. 35.5 milliseconds 32 milliseconds 27 milliseconds None
option d is the correctTo calculate the average turnaround time for the given set of processes using the round-robin scheduling policy, we need to consider the CPU burst time and I/O burst time for each process.Given:Process P1: Execution time = 5 millisecondsProcess P2: Execution time = 10 millisecondsProcess P3: Execution time = 15 millisecondsProcess P4: Execution time = 20 millisecondsLet's calculate the total time required for each process to complete its CPU burst and I/O burst.Process P1:CPU burst time = 80% of 5 milliseconds = 4 millisecondsI/O burst time = 20% of 5 milliseconds = 1 millisecondProcess P2:CPU burst time = 80% of 10 milliseconds = 8 millisecondsI/O burst time = 20% of 10 milliseconds = 2 millisecondsProcess P3:CPU burst time = 80% of 15 milliseconds = 12 millisecondsI/O burst time = 20% of 15 milliseconds = 3 millisecondsProcess P4:CPU burst time = 80% of 20 milliseconds = 16 millisecondsI/O burst time = 20% of 20 milliseconds = 4 milliseconds