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

Assume that at time 0 no system resources are being used except for the processo

ID: 3757802 • Letter: A

Question

Assume that at time 0 no system resources are being used except for the processor and memory. Now consider the following events:

At time 5: P1 executes a command to read from disk unit 3.

At time 10: P2’s time slice expires.

At time 15: P3 executes a command to write to disk unit 2.

At time 20: P1 is swapped out.

At time 25: An interrupt occurs from disk unit 2: P3’s write is complete

At time 30: P2 terminates.

At time 31 identify which state each process is in:

P1

P2

P3

Ready Suspend

Exit

Blocked Suspend

Ready or Running

      -       A.       B.       C.       D.   

P1

      -       A.       B.       C.       D.   

P2

      -       A.       B.       C.       D.   

P3

A.

Ready Suspend

B.

Exit

C.

Blocked Suspend

D.

Ready or Running

Explanation / Answer

P1 - Blocked Suspend

P2 - Ready Suspend

P3 - Exit (since it's task is completed)