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

Consider we have three processes, P1, P2, P3, executed during last 5 minutes. Th

ID: 3886180 • Letter: C

Question

Consider we have three processes, P1, P2, P3, executed during last 5 minutes.

The execution of P1 consists of the alternation of 3 CPU bursts, c11, c12, c13, and 3 I/O bursts, d11, d12, d13. For each CPU burst c1i and I/O burst d1j, there exists a waiting time wc1ij. Likewise, for each I/O burst d1i and CPU burst c1j, there exists a waiting time wd1ij.

The execution of P2 consists of the alternation of 4 CPU bursts, c21, c22, c23, c24, and 2 I/O bursts, d21, d22. For each CPU burst c2i and I/O burst d2j, there exists a waiting time wc2ij. Likewise, for each I/O burst d2i and CPU burst c2j, there exists a waiting time wd2ij.

The execution of P3 consists of the alternation of 2 CPU bursts, c31, c32, and 4 I/O bursts, d31, d32, d33, d34. For each CPU burst c3i and I/O burst d3j, there exists a waiting time wc3ij. Likewise, for each I/O burst d3i and CPU burst c3j, there exists a waiting time wd3ij.

For example, the total time P1 spent in the system consists of c11, wc111, d11, wd112, c12, wc122, d12, wd123, c13, wc133, d13.

Write an expression that represents the total execution period of all processes in the system during last 5 minutes.

Explanation / Answer

For P1 : c11, wc111, d11, wd112, c12, wc122, d12, wd123, c13, wc133, d13.

For P2: c21, wc211, d21, wd212, c22, wc223, d22, wd224, c23, wc235, c24

For P3: c31, wc311, d31, wd312, c32, wc323, d32, wd324, d33, wd335, d34

So. an expression that represents the total execution period of all processes in the system during last 5 minutes. will expression of P1. P2, P3, between each process Pi and P(i+1) there will be waiting time and it depend upon last burst of Pi ie. if the last burst of Pi is CPU brust than waitting time is wc esle wd.

That is : c11, wc111, d11, wd112, c12, wc122, d12, wd123, c13, wc133, d13, wd134, c21, wc211, d21, wd212, c22, wc223, d22, wd224, c23, wc235, c24, wc246, c31, wc311, d31, wd312, c32, wc323, d32, wd324, d33, wd335, d34

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