Question: ( c ) Four processes, P a , P b , P c , and P d , have the following sequential execution patterns: ]

(c) Four processes, Pa,Pb,Pc, and Pd, have the following sequential execution
patterns:
]
; CPU 3ms]
Pc : [CPU 1ms; I/O 2ms; CPU 1ms; I/O 2ms; CPU 1ms; I/O 2ms; CPU 1ms]
Pd:[CPU3ms;IO3ms;CPU3ms]
I/O 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?
[2 marks]
ii. Sketch the execution pattern under non-preemptive scheduling and de-
termine the total elapsed time for completion. All processes arrive at
the same time. 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
Pa has priority over Pb,Pc, and Pd;
Pb has priority over Pc and Pd; while
Pc has priority over Pd.
You may further assume that the scheduler algorithm and the context
switching take negligible time.
[2 marks]
( c ) Four processes, P a , P b , P c , and P d ,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!