In Priority CPU scheduling algorithm the process whose Priority is more will be served first by the processor.
The processor gets processes from the ready Queue.
Waiting time (n) = waiting time (n-1) + Burst time (n-1)
Turnaround time (n)= waiting time(n)+Burst time(n)
Average waiting time = Total waiting Time / Number of process.
Average Turnaround time = Total Turnaround Time / Number of process.
|