Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Assume that Pa, Pb, and Pc are three different programs. When Pa and Pb are exec

ID: 3529218 • Letter: A

Question

Assume that Pa, Pb, and Pc are three different programs. When Pa and Pb are executed, they are calling fork and create new processes executing either Pb or Pc individually. The behaviors of these programs can be specified as: Pa: burst time 8. It will fork after 2 ticks, 5 ticks and 7 ticks of execution, all children executing Pb. Pb: burst time 6. It will fork after 2 ticks and 4 ticks of execution, both children executing Pc. Pc: burst time 4, and it will not fork any child process. Assume that process P1, which is executing program Pb, arrives at t=

Explanation / Answer

P1 P2 P3 P4 P5 P6 P7

0 0 --Pa- 3

3 3---Pb---6

6 6---Pc---9

9 9---Pa----12

12 12---Pb----15

15 15---Pc--16

18 16--Pa--18

waiting time for Pa=0;

waitting time for Pb=2+3+3

waiting time for Pc = 1+2 (Pc is created after 2 tick of Pb so wait=1

again it is called after 4 ticks of Pb so wait=2)

I guess this is the answer..

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote