The real-time operating system, which of the following is the most suitable…
2023
The real-time operating system, which of the following is the most suitable scheduling scheme?
- A.
Round robin
- B.
First come first serve
- C.
Pre-emptive
- D.
Random scheduling
Attempted by 150 students.
Show answer & explanation
Correct answer: C
Option 3 : Pre-emptive
Pre-emptive is the most suitable scheduling scheme for the real-time operating system
Key Points
Preemptive Scheduling is suitable for Real-Time Programming, as it will allow a real-time process to preempt a process currently running in the Kernel.
A preemptive Kernel may be more responsive since there is less risk that a Kernel-mode process will run for arbitrarily long periods before relinquishing the processor to the waiting process.
Real-time systems require that results be produced within a specified deadline. One of the key features of a Real-time system is its ability to respond to real-time processes as soon as the process requires CPU.
As a result, the scheduler for the real-time system must support a priority-based algorithm with preemption.
Additional Information
The round-robin (RR) scheduling algorithm is designed especially for timesharing systems.
It is similar to FCFS scheduling, but preemption is added to enable the system to switch between processes.
A small unit of time, called a time quantum or time slice, is defined.
The ready queue is treated as a circular queue. The CPU scheduler goes around the ready queue, allocating the CPU to each process for a time interval of up to 1-time quantum.