Advantages of Longest Job First(LJF)
- No other process can execute until the longest job or process executes completely.
- All the jobs or processes finish at the same time approximately.
Longest Job First (LJF) CPU Scheduling Algorithm
Longest Job First (LJF) is a non-preemptive scheduling algorithm. This algorithm is based on the burst time of the processes. The processes are put into the ready queue based on their burst times i.e., in descending order of the burst times. As the name suggests this algorithm is based on the fact that the process with the largest burst time is processed first. The burst time of only those processes is considered that have arrived in the system until that time. Its preemptive version is called Longest Remaining Time First (LRTF) algorithm.
Prerequisite: Process Management | CPU Scheduling
Contact Us