Correct Answer - Option 2 : Response ratio
Explanation:
Depending upon how the process is executed (i.e whether the CPU is provided to a process completely or provided in cycles with breaks in between i.e the process is in the waiting or suspended state after a certain period of time).
scheduling is divided into two types:
- Non-Preemptive Scheduling
- Preemptive Scheduling
Preemptive Scheduling:
- Preemptive scheduling allows a higher priority process to replace a currently running process, even its time slot is not completed or it has not requested any input/output.
- This requires context switching more frequently, thus reducing the throughput, but it is better suited for online, real-time processing where interactive users and high priority processes require immediate attention.
- The operating system uses Response ratio Preemptive job scheduling.
Non-Preemptive Scheduling:
- In this method, once the CPU is assigned to a process, the processor does not release it until the completion of that process.
- It means that a running process has control of the CPU and other allocated resources until the normal termination of that process.
- This means that even if a higher priority process enters the system, the running process can not be forced to give up control.