• edited by
1,216 views
0 0 votes

In this question do we have to use non pre-emptive approach since it is said that the os schedules either when runnning process gets blocked I/O or when the running process finishes its cpu burst.And nothing is mentioned that the os pre-empts if a longer remaining time process completes its I/O and arrives for cpu execution while a shorter one is still executing. 

3 Answers

0 0 votes

0   1     2     3     4     5     6     7     8      9     10   11   12          17  18   19   20   21  22    23   24   25   26  27   28   29

P0 P3 P0 P3 P0 P3 P0 P3 P1 P2 P1 P2            P1 P2 P0 P3 P0 P3 P0 P3 P0 P1 P2 P3

 

 

 

                        This is the gant chart that I am getting.

So according to this P0 is getting completed by 26 unit of time .

 

**Please say it is right or wrong.

• edited by
Position:
Show:

Related questions

0 0 votes
0 0 answers
1.3k
1.3k views
sripo asked Jan 1, 2019
1,333 views
For the given question instead of the given order if we take one unit of P2 as its arrival time is 1 and then schedule P1 next we get the same answer,even in the hint th...
0 0 votes
1 1 answer
793
793 views