Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 297 characters in body
Source Link
JustinC
  • 19
  • 1
  • 5

Who goes first? 1.Say if we have Arrival Time, Priority Time and Burst Time.. It is obvious that we check the Arrival Time first since we cannot predict the future. 2.If Arrival Time =0 for all processes, we have to check the Priority Time. 3.If Priority Time Process1 = Priority Time Process2, what do we do next?

Do we go by the Burst time first? What if Burst time is the same? -FCFS - BT first? -SJF - We go by BT first? -Priority Non-Preemptive - BT first? If all of them go by BT first, don't they all have the same Gantt-Chart since they are Non-preemptive --> FCFS? -RR - (quantum=2) - Quantum will preemptive every 2 m.s for fairness. However, if priority is the same, do we look at BT first?

Thank you.


The question is based on if we have the same Priority value when we are given:


Arrival Time = AT, Priority and Burst Time=BT.
1.Say if we a table with AT, Priority and BT. To dispatch a process it is obvious that we check the AT first since we cannot predict the future. 
2.If AT= 0 for all processes, we have to check the Priority.
**3.If p1 priority = p2 priority, what do we do next?** 

Because of the equal PR value, now how do we draw a Gannt-Chart based on:
-FCFS  
-SJF 
-Priority Non-Preemptive 

If all of them go by BT first, don't they all have the same Gantt-Chart since they are Non-preemptive.

After posting this, I decided to choose pick any process (random) when they have the same Priority value but I am not sure if they are correct. Actually there is only one question that affects the rest of the sub-questions but I just need to know that problem with the same Priority values above between two processes. If that one is answered, I could do the rest properly.

Thank you.

Who goes first? 1.Say if we have Arrival Time, Priority Time and Burst Time.. It is obvious that we check the Arrival Time first since we cannot predict the future. 2.If Arrival Time =0 for all processes, we have to check the Priority Time. 3.If Priority Time Process1 = Priority Time Process2, what do we do next?

Do we go by the Burst time first? What if Burst time is the same? -FCFS - BT first? -SJF - We go by BT first? -Priority Non-Preemptive - BT first? If all of them go by BT first, don't they all have the same Gantt-Chart since they are Non-preemptive --> FCFS? -RR - (quantum=2) - Quantum will preemptive every 2 m.s for fairness. However, if priority is the same, do we look at BT first?

Thank you.


The question is based on if we have the same Priority value when we are given:


Arrival Time = AT, Priority and Burst Time=BT.
1.Say if we a table with AT, Priority and BT. To dispatch a process it is obvious that we check the AT first since we cannot predict the future. 
2.If AT= 0 for all processes, we have to check the Priority.
**3.If p1 priority = p2 priority, what do we do next?** 

Because of the equal PR value, now how do we draw a Gannt-Chart based on:
-FCFS  
-SJF 
-Priority Non-Preemptive 

If all of them go by BT first, don't they all have the same Gantt-Chart since they are Non-preemptive.

After posting this, I decided to choose pick any process (random) when they have the same Priority value but I am not sure if they are correct. Actually there is only one question that affects the rest of the sub-questions but I just need to know that problem with the same Priority values above between two processes. If that one is answered, I could do the rest properly.

Thank you.
Source Link
JustinC
  • 19
  • 1
  • 5

Arrival Time vs Burst Time vs Priority Time? If Priority Time is the same, which process dispatch first?

Who goes first? 1.Say if we have Arrival Time, Priority Time and Burst Time.. It is obvious that we check the Arrival Time first since we cannot predict the future. 2.If Arrival Time =0 for all processes, we have to check the Priority Time. 3.If Priority Time Process1 = Priority Time Process2, what do we do next?

Do we go by the Burst time first? What if Burst time is the same? -FCFS - BT first? -SJF - We go by BT first? -Priority Non-Preemptive - BT first? If all of them go by BT first, don't they all have the same Gantt-Chart since they are Non-preemptive --> FCFS? -RR - (quantum=2) - Quantum will preemptive every 2 m.s for fairness. However, if priority is the same, do we look at BT first?

Thank you.