Question: Assume that at time 5 no system resources are being used except for the processor and memory. Also assume that processes P1-P6 have already been

Assume that at time 5 no system resources are being used except for the processor and memory. Also assume that processes P1-P6 have already been created, and are currently ready to run or are running. This is a single CPU system, so only 1 process will be running at any given time. Now consider the following events:

At time 05: P3 executes a command to read from disk unit 2. At time 09: P4's time slice expires. At time 12: P2 is swapped out. At time 14: A new process is created At time 16: P5 executes a command to read from disk unit 3. At time 19: P1 executes a command to read from disk unit 2. At time 20: P2 is swapped back in. At time 24: An interrupt occurs from disk unit 2: P1's read is complete. At time 28: P7 executes a command to read from disk unit 1. At time 30: P6 is swapped out. At time 33: P4 executes a command to write from disk unit 1. At time 36: An interrupt occurs from disk unit 1: P4's write is complete. At time 37: P6 is swapped back in. At time 40: P2 executes a command to read from disk unit 1. At time 42: P1's time slice expires. At time 43: An interrupt occurs from disk unit 2: P3's read is complete. At time 44: P4 executes a command to write from disk unit 1. At time 45: An interrupt occurs from disk unit 1: P7's read is complete. At time 48: P6 executes a command to read from disk unit 2. At time 49: P1 is swapped out. At time 50: P3 is swapped out.

For each time 18, 26, 38, 51, identify which state each process is in (Ready/Running, Blocked, Suspended). Given this information, you are not always sure which particular process is running at any given time, but you can determine if it is ready/running, or if it is instead blocked or suspended. If a process is blocked, further identify the event on which it is blocked and waiting.

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 Databases Questions!