CPU scheduling algorithms determine how processes are allocated to the CPU. A key distinction lies in whether the algorithm is preemptive or non-preemptive.
Let's analyze the given CPU scheduling algorithms:
Based on the definitions, First Come First Serve (FCFS) is the CPU scheduling algorithm that inherently cannot be preemptive. It executes processes strictly in the order they arrive until completion or voluntary I/O blocking.
Assume that the following tasks are to be executed on a single processor system. All tasks have arrived at 0 msec.
| Job ID | CPU |
| a | 4 |
| b | 1 |
| c | 7 |
| d | 2 |
How long does it take for task "a" to complete if the scheduling time slice is a round-robin with 1 ms?
| Process | CPU Burst Time (MS) |
| P1 | 24 |
| P2 | 3 |
| P3 | 3 |
Consider the following table about processes, their burst time and arrival time
| Process | Burst Time | Arrival Time |
| P1 | 09 | 0 |
| P2 | 30 | 0 |
| P3 | 04 | 0 |
| P4 | 08 | 2 |
| P5 | 11 | 6 |
Now which of the process shall finish second last as per the respective GANTT charts for the non- preemptive SJF and Round Robin (time quantum = 10) scheduling methods.