Labels

C program for preemptive priority CPU scheduling algorithm

                     The SJF algorithm is a special case of the general priority-scheduling algorithm. A priority is associated with each process, and the CPU is allocated to the process with the highest priority. Equal-priority processes are scheduled in FCFS order. An SJF algorithm is simply a priority algorithm where the priority (p) is the inverse of the (predicted) next CPU burst. The larger the CPU burst, the lower the priority, and vice versa. In this case, preemptive execution means the execution of a process will be deferred at any time when a process with higher priority comes.Read more>>

No comments:

Post a Comment