Pre-emptive: If a process of higher priority comes then first CPU will be assign to the Process with higher priority first.
Scheduling criteria tells us that any algorithm is how much efficient, the main criteria of scheduling are given below:
- CPU Utilization
- Throughput
- Arrival time
- Turnaround time
- Waiting time
- Completion time
- Burst time
*Ready Queue is a queue where all the processes wait to get CPU for its execution.
CPU Utilization: The amount of time CPU is busy.
Throughput: The number of process computed per unit time.
Arrival time: The time at which the process enters into ready queue.
Turn around time: The interval between the time of submission of a process to the time of completion.
Waiting time: The total amount of the time a process spends in ready queue.
Completion time: The time at which process completes its execution.
Burst time: The time needed by CPU to completes its execution.
C++ Program for Priority Algorithm
Output

need an explanation for this answer? contact us directly to get an explanation for this answer