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

1. Consider the following partial timeline of process events Time Event Process

ID: 3843732 • Letter: 1

Question

1. Consider the following partial timeline of process events Time Event Process P1 executes the command: Read from disk unit 3 15 P5's time slice expires 18 P7 executes the command: Write to disk unit 3 20 P3 executes the command: Read from disk unit 2 24 P5 executes the command: Write to disk unit 3 28 P5 is swapped out 33 Disk unit 2 generates an interrupt: Read is complete for P3 36 Disk unit 3 generates an interrupt: Read is complete for P1 38 P8 terminates 40 Disk unit 3 generates an interrupt: Write is complete for P5 44 P5 is swapped back in 48 Disk unit 3 generates an interrupt Write is complete for P7 Assuming that before time 5, no system resources are used except for memory and the processor, complete the following state table. (Note: Time 22 has been completed for you in order to provide an example of how to fill out the table entries.) Time P1 P3 P5 P7 P8 22 Blocked for Blocked Ready/running Blocked Ready/running for I/O for I/O 37 47

Explanation / Answer

At time 5: P1 is blocked as it wants to read from I/O device

At time 15: P5 goes to ready state

At time 18: P7 goes to blocked state due to writing from disk Unit 3

At time 20: P3 goes to blocked state , due to reading from disk unit 2

At time 24: P5 goes to blocked state due to writing from disk Unit 3

At time 28: P5 goes to suspended state(into swap space on Hard disk)

At time 33: P3 come to ready state

At time 36: P1 come to ready state

At time 38: P8 goes to exit or termintated state

At time 44: P5 goes to ready state from previous suspended state

At time 48: P7 come to ready state . (after its blocked state which occurred at time 18)

Time P1 P3 P5 P7 P8 22 Blocked for I/O Blocked for I/O Ready/Running Blocked for I/O Ready/Running 37 Ray assume it may be in ready Ready Suspended Blocked Nothing is mentioned
about it,so it may be
in ready or running
state 47 Ready Ready Ready Blocked Exit or Terminated State