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 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
Consider the following set of processes and the length of CPU burst time given in milliseconds:
Process | CPU Burst time (ms) |
P 1 | 5 |
P 2 | 7 |
P 3 | 6 |
P 4 | 4 |
Assume that processes being scheduled with Round-Robin Scheduling Algorithm with Time Quantum 4ms. Then the waiting time for P 4is _________ ms.
Consider three intensive processes, which requires 10,20 and 30 units of time and arrive at times 0,2 and 6 respectively. how many context switches are needed if the operating system implements a shortest remaining time first scheduling algorithm? Do not count the context switches at time zero and at the end.
Which of the following CPU scheduling algorithms is/are supported by LINUX operating system?
Given CPU time slice of 2 ms and the following list of processes.
Process | Burst time (ms) | Arrival time (ms) |
p 1 | 3 | 0 |
p 2 | 4 | 2 |
p 3 | 5 | 5 |
Find average turnaround time and average waiting time using round-robin CPU scheduling?