A process P1 running in a multitasking environment with timeslice=3ms.The code of P1 is shown below:
#
|
Process P1
|
Execution Time
|
1
2
3
|
Load (from memory)
Print
Assignment
|
3 ms
6 ms
3 ms
|
Given that:
the waiting time in the I/O device queue is 3 ms;
the dispatch time is 1 ms;
push time in any queue is 2 ms
Complete the table below. The initial state is given in the first line:
What is the lifetime of the process?
What is the utilization percentage of the CPU?
Accumulative
Time
|
Process
State
|
Executing
Instruction
|
Queue
Name
|
Execution
Time
|
Dispatch Time
|
Push
Time
|
Wait
Time in Q
|
0
|
Ready
|
|
Ready Q
|
|
1
|
|
|
1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
And please explain how to solve?