Which of the following is not a CPU scheduling Algorithm?
C-SCAN
CPU scheduling is a process where the operating system decides which process gets to use the CPU next and for how long. The goal is to improve system performance by utilizing the CPU efficiently and providing good response times for users. There are many different CPU scheduling algorithms, each with its own advantages and disadvantages.
Let's look at the options provided and determine which one is not a CPU scheduling algorithm.
It's important to differentiate between CPU scheduling and disk scheduling, as they address different resources and goals:
| Feature | CPU Scheduling | Disk Scheduling |
|---|---|---|
| Resource Managed | Central Processing Unit (CPU) | Hard Disk Drive (HDD) or Solid State Drive (SSD) |
| Goal | Maximize CPU utilization, minimize response time, minimize waiting time, maximize throughput. | Minimize head movement (seek time), optimize data access speed, improve I/O performance. |
| Algorithms Examples | FCFS, SJF, Priority Scheduling, Round Robin, Multilevel Queue Scheduling | FCFS, SSTF, SCAN, C-SCAN, LOOK, C-LOOK |
Based on the analysis, FCFS, SJF, and SJN (which is SJF) are all well-known CPU scheduling algorithms. C-SCAN, however, belongs to the category of disk scheduling algorithms.
Therefore, C-SCAN is the option that is not a CPU scheduling algorithm.
| Algorithm Name | Type | Description |
|---|---|---|
| FCFS (First-Come, First-Served) | CPU Scheduling | Processes are executed in arrival order. |
| SJF (Shortest Job First) | CPU Scheduling | Processes with the shortest next CPU burst are executed first. |
| SJN (Shortest Job Next) | CPU Scheduling | Another name for SJF. |
| C-SCAN (Circular SCAN) | Disk Scheduling | Disk head moves in one direction, wraps around to the beginning after reaching the end or last request. |
CPU scheduling can be broadly categorized into two types:
Disk scheduling algorithms like C-SCAN are designed specifically for managing the movement of the disk head to access data blocks, minimizing the time spent seeking different tracks on the disk platter.
Consider the following 3 processes with the length of the CPU burst time given in milliseconds :
| Process | Arrival Time | Burst Time |
| P1 | 0 | 8 |
| P2 | 1 | 4 |
| P3 | 2 | 9 |
What is the average waiting time for these processes if they are scheduled using preemptive shortest job first scheduling algorithm?
Consider the following four processes with the arrival time and length of CPU burst given in milliseconds :
| Process | Arrival Time | Burst Time |
| P 1 | 0 | 8 |
| P 2 | 1 | 4 |
| P 3 | 2 | 9 |
| P 4 | 3 | 5 |
The average waiting time for preemptive SJF scheduling algorithm is
Which of the following statement(s) is/are true about CPU scheduling algorithm?
I. Shortest remaining time first scheduling may cause starvation
II. Round Robin is better than First Come First Serve in terms of response time
Processes P1, P2, P3 and P4 have CPU burst times 5, 7, 6 and 4 ms, respectively. All arrive at time 0, and the initial ready-queue order is P1, P2, P3, P4. Using Round-Robin scheduling with a 4 ms time quantum and no context-switch overhead, what is P4’s total waiting time in milliseconds?
A process residing in main memory and ready and waiting for execution, is kept on