edited by
513 views
0 votes
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. 

edited by

3 Answers

0 votes
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

Related questions