Question: ( c ) Two processes, P a and P b , have the following sequential execution patterns: I / O 2 m s ; CPU
c Two processes, and have the following sequential execution patterns:
IO ; CPU
Pb: CPU ; CPU IO CPU IO ;
CPU
IO operations for the two processes do not interfere with each other and
are blocking.
i If the processes are run consecutively one after another, what is the
elapsed time for all to complete?
ii Sketch the execution pattern under nonpreemptive scheduling and de
termine the total elapsed time for completion. You may assume that
processes are scheduled in the order in which they become ready to run
and that in the event of a tie has priority over You may further
assume that the scheduler and context switches take negligible time.
marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
