Difference between LJF and LRJF CPU scheduling algorithms Last Updated : 17 Jul, 2020 Comments Improve Suggest changes Like Article Like Report 1. Longest Job First (LJF) : It CPU Scheduling algorithm where the process with the largest burst line is executed first. Once the process enters the ready queue, the process exits only after the completion of execution, therefore it is a non-preemptive process. In case, the burst times of the processes are same, the job with overall lowest time is selected. This CPU scheduling algorithm results in low throughput of the system. Process AT BT 1 0 3 2 1 2 3 2 4 4 3 5 5 4 6 2. Longest Remaining Job First (LRJF) : It is the preemptive version of Longest Job First CPU Scheduling Algorithm. The process Burst Time are chosen at every second and then the longest job is selected. In case, the Burst Time of the processes are same, the job with overall low arrival time is selected. It suffers from starvation, because of simultaneous checking of processes' remaining Burst Time. It is also called "Longest Remaining Time First" algorithm. Process AT BT 1 0 3 2 1 2 3 2 4 4 3 5 5 4 6 Difference between LJF and LRJF CPU scheduling algorithms : LJF LRJF Non preemptive Preemptive It suffers from starvation It also suffers from starvation Waiting Time is high Waiting Time is not so high, and processes get chances for execution after some interval. Switching context is less, since a process that once enters running state is executed completely. Switching context is more, since the process are continually checked for execution. The processes are executed based on their CPU time and arrival time alone, without increasing CPU overload. The processes are repeatedly checking for an idle CPU, thereby increasing the overload. No process can complete its execution until longest job persists. The processes can complete execution before the longest process. Comment More infoAdvertise with us Next Article Difference between LJF and LRJF CPU scheduling algorithms Y yashchuahan Follow Improve Article Tags : Operating Systems Difference Between GATE CS Operating Systems-CPU Scheduling Similar Reads Difference between SRJF and LRJF CPU scheduling algorithms 1. Shortest remaining job first (SRJF) : Shortest remaining job first also called the shortest remaining time first is the preemptive version of the shortest job first scheduling algorithm. In the shortest remaining job first, the process with the smallest runtime to complete (i.e remaining time) is 3 min read Difference between SJF and LJF CPU scheduling algorithms Shortest Job First: The shortest job first (SJF) algorithm is a CPU scheduling algorithm designed to reorder the jobs so that the process having the smallest burst time is chosen for the next execution. It is used to reduce the average waiting time for other processes waiting for execution. This may 4 min read Difference between EDF and LST CPU scheduling algorithms 1. Earliest Deadline First (EDF) : In Earliest Deadline First scheduling algorithm, at every scheduling point the task having the shortest deadline is scheduled for the execution. It is an optimal dynamic priority-driven scheduling algorithm used in real-time systems. It uses priorities of the tasks 4 min read Difference Between FCFS and SJF CPU Scheduling Algorithms CPU scheduling is a key part of how an operating system works. It decides which task (or process) the CPU should work on at any given time. This is important because a CPU can only handle one task at a time, but there are usually many tasks that need to be processed. In this article, we are going to 5 min read Difference between LOOK and C-LOOK Disk scheduling algorithms 1. LOOK disk scheduling algorithm : Look Algorithm is actually an improves version of SCAN Algorithm. In this algorithm, the head starts from first request at one side of disk and moves towards the other end by serving all requests in between. After reaching the last request of one end, the head rev 3 min read Like