×

Scheduling Algorithms in OS

There are various types of scheduling algorithm which are used by the operating system to schedule the process on the processor.

Objective of Scheduling Algorithms

There are the following objectives of Scheduling Algorithms:

  1. Fare allocation of CPU
  2. Increased throughput
  3. Improved CPU Utilization
  4. Minimum Turnaround time
  5. Minimum response time
  6. Minimum waiting time

Types of Scheduling Algorithms

There are various types of Scheduling Algorithms:

  1. First come, first serve (FCFS).
  2. Shortest Job first (SJF).
  3. Shortest remaining time first(SRTF).
  4. Round Robin (RR)
  5. Priority-based Scheduling
  6. Highest Response Ration Next
  1. First Come First Serve (FCFS): - FCFS (First Come First Serve) is either a preemptive or non-preemptive Scheduling algorithm. It is easy to use and understand. In FCFS, jobs are executed on a first-come, first-serve manner. FCFS performance is poor due to the high average waiting time.
  2. Shortest Job First (SJF): - Shortest Job First is a Non-Preemptive algorithm. In the shortest job first algorithm, the job having shortest or less burst time will get the CPU first. It is a good approach to minimize the waiting time. It is simple to implement in the batch operating system because in this CPU time is known in advance, but it is not used in interactive systems because, in an interactive system, CPU time is not known.
  3. Shortest Remaining Time First (SRTF): - Shortest Remaining Time First is a Preemptive Scheduling Algorithm in which the operating system schedules the job, based on the remaining time of the execution. The job having the shortest remaining time is executed first.
  4. Round Robin (RR): - Round Robin is a Preemptive Scheduling Algorithm, which is the most commonly used algorithm in CPU Scheduling.In this, each process is assigned a fix time interval to execute. It is called quantum. In the round-robin, if a process executes in a given time period, then it gets preempted. Round robin is a starvation free CPU scheduling algorithm because all the processes get fair sharing of CPU.
  5. Priority Based Scheduling: - In Priority-Based Scheduling, all the processes are assigned some priority, and according to the priority, the process gets the CPU. Priority is assigned on the basis of time requirements, memory requirements, and resource requirements. In this, if two processes have the same priority, then the scheduling is done according to their time of arrival or first-come, first-served basis.
  6. Highest Response Ratio Next: - In Highest Response Ration Next algorithm, the highest response ratio process is scheduled next. This algorithm reduced the problem of starvation in the system.

Related Topics

File in Operating System

What is File in Operating System?  A file is defined as a collection of the interrelated information that is stored in the secondary memory or the non-volatile memory such as optical...

4 minutes read.

Free Space Management in Operating System

What is Free Space Management? The system always keeps the records of the free disks blocks for allocating space to files when they are created. To use the space free from...

4 minutes read.

Fixed Partitioning in Operating System

Fixed Partitioning in OS Fixed Partitioning is also known as Contiguous memory allocation. Fixed Partitioning is the easiest method, which is used to load more than one process into the main memory. In Fixed...

5 minutes read.

Non-Contiguous Memory Allocation in Operating System

Memory is nothing but a storage space where various data are stored. We can store data in temporary and permanent memory as per our future requirements for data. We can...

9 minutes read.

FCFS (First-Come-First-Serve) Disk Scheduling Algorithm

FCFS Disk Scheduling Algorithm FCFS (First-Come-First-Serve) is the easiest disk scheduling algorithm among all the scheduling algorithms. In the FCFS disk scheduling algorithm, each input/output request is served in the order...

4 minutes read.

Types of Operating System

There are various types of operating system: Simple Batch Operating SystemMultiprogramming batch Operating SystemTime-sharing Operating SystemMultiprocessor Operating SystemDistributed Operating SystemNetwork Operating SystemReal-time Operating SystemMobile Operating System Simple Batch operating system In the simple batch operating system, there is no direct communication between...

6 minutes read.

What is Context Switching

Context Switching is the switching of CPU from one process to another process. Context switching means storing the process state so that we can reload the process when needed, and the execution...

3 minutes read.

Memory Management in Operating System

The term "Main Memory" refers to the computer's internal physical memory. It is distinguished from external mass storage devices like disk drives by using the term "main." RAM is another...

4 minutes read.

Process Schedulers and Process Queue in OS

Process Schedulers There are various types of Process Schedulers: Long Term SchedulerShort Term SchedulerMedium Term Scheduler                                            Long Term Scheduler: - Long term scheduler is also referred to as Job Scheduler. The task of the Long-term...

3 minutes read.

Process Synchronization | Operating System

Process Synchronization Process Synchronization means managing the process in such a manner so that no two processes have access to share similar data and resources. We can use Process Synchronization in a Multi-Process System...

4 minutes read.

Advantages of UNIX Operating System

What is UNIX OS? UNIX is a family of multitasking, multiuser operating systems that are used on a wide variety of computer platforms. It was developed in the late 1960s and...

4 minutes read.

Inter Process Communication in Operating System

Inter-Process Communication or IPC refers to the methods and techniques that allow processes (programs or tasks) to communicate with each other within a computer system. This is typically done through...

3 minutes read.

Deadlock Detection and Recovery

Deadlock Detection and Recovery In deadlock detection and recovery, to avoid or prevent a deadlock, the operating system uses various methods. For checking deadlock, an operating system continuously monitors the system. Then also,...

2 minutes read.

Operating System Properties

The Properties of Operating System are: Batch processingMultitaskingMulti-programmingInteractivityReal-Time SystemDistributed Environmentspooling 1. Batch Processing In Batch Processing, the OS first gathers the data and programs together in a batch, then processing starts. The operating system...

3 minutes read.

Difference between Multi-programming and Multitasking

Difference between Multiprogramming and Multitasking         Multiprogramming  Multitasking In Multiprogramming, at the same time, we can run the multiple processes concurrently on one...

2 minutes read.

Resource Allocation Graph in Operating System

Resource Allocation Graph in OS We use the resource allocation graph for the pictographic representation of the state of a system. The resource allocation graph contains all the information related to the processes that...

5 minutes read.

Page Table in Operating System

What is a Page Table? A page table is a data structure used by an operating system (OS) to store information about the physical location of the pages in a computer's...

6 minutes read.

Real-time Operating System

In this essay, we will thoroughly understand the real-time operating system. Real-Time Operating System: What do you mean? For any task to be completed, a real-time operating system (RTOS), a special-purpose operating...

5 minutes read.

Monitors in Operating System

Monitors in Operating System Monitors are used for process synchronization. With the help of programming languages, we can use a monitor to achieve mutual exclusion among the processes. Example of monitors:...

3 minutes read.

Difference between SSTF and LOOK Disk Scheduling Algorithm

Shortest Seek Time First / SSTF Shortest Seek Time First (SSTF) is an acronym for "shortest seek time first." The task request that is closest to the present position of the...

4 minutes read.