Identify the circumstances under which pre- emptive CPU scheduling is used :
(a) A process switches from Running state to Ready state
(b) A process switches from Waiting state to Ready state
(c) A process completes its execution
(d) A process switches from Ready to Waiting state
Choose the correct option :
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: A. (a) and (b) only
Explanation
Scheduling decisions at running → ready and waiting → ready are preemptive. Decisions when a process terminates or blocks are non-preemptive.
More System Software and Operating System questions
- For a magnetic disk with concentric circular tracks, the seek latency is not linearly proportional to the seek distance due to
- Consider a disk system with 100 cylinders. The requests to access the cylinders occur in the following sequence : 4, 34, 10, 7, 19, 73, 2,…
- Match List I with List II. List I: (a) Disk, (b) CPU, (c) Memory, (d) Interrupt. List II: (i) Thread, (ii) Signal, (iii) File system, (iv)…
- Which of the following are NOT shared by the threads of the same process? (a) Stack (b) Registers (c) Address space (d) Message queue
- Consider that a process has been allocated 3 frames and has a sequence of page referencing 1, 2, 1, 3, 7, 4, 5, 6, 3, 1 as . What shall be…
- Consider three CPU intensive processes, which require 10,20 and 30 units of time and arrive at times 0,2 and 6 respectively. How many conte…