edited by
4,175 views
9 votes
9 votes

Consider a preemptive priority based scheduling algorithm based on dynamically changing priority. Larger priority number implies higher priority. When the process is waiting for CPU in the ready queue (but not yet started execution), its priority changes at a rate a=2. When it starts running, its priority changes at a rate b=1. All the processes are assigned priority value 0 when they enter ready queue. Assume that the following processes want to execute:

Process ID Arrival Time Service Time
P1 0 4
P2 1 1
P3 2 2
P4 3 1

The time quantum q=1. When two processes want to join ready queue simultaneously, the process which has not executed recently is given priority. The finish time of processes P1, P2, P3 and P4 will respectively be

  1. 4, 5, 7 and 8
  2. 8, 2, 7 and 5
  3. 2, 5, 7 and 8
  4. 8, 2, 5 and 7
edited by

2 Answers

0 votes
0 votes
option B
Answer:

Related questions

1 votes
1 votes
1 answer
1
go_editor asked Jul 26, 2016
2,917 views
Linux operating system usesAffinity schedulingFair Preemptive SchedulingHand ShakingHighest Penalty Ratio Next
1 votes
1 votes
6 answers
4
Shimpy Goyal asked Jun 26, 2015
6,762 views
How much space will be required to store the bit map of a 1.3 GB disk with 512 bytes block size?332.8 KB83.6 KB266.2 KB256.6 KB