CS FundamentalsHardGATE CS
Processes (arrival, burst): P1 (0, 5), P2 (1, 3), P3 (3, 6), P4 (4, 2), P5 (10, 4), scheduled by SRTF. During the first 12 ms (time 0 to 12), how many processes complete?
- A. 3
- B. 2
- C. 4
- D. 5
Correct answer: A. 3
SRTF schedule: P1 0-1 | P2 1-4 | P4 4-6 | P1 6-10 | P5 10-14 | P3 14-20. Count completion times that are at most 12.
More Operating Systems questions
- Round Robin with quantum 3 ms; processes (arrival, burst): P1 (0, 8), P2 (2, 5), P3 (4, 2), P4 (6, 4). A process arriving at the instant a…
- SJF predicts the next CPU burst by exponential averaging: τ(n+1) = α·t(n) + (1 − α)·τ(n), with α = 0.75 and initial guess τ(1) = 10 ms…
- Four processes arrive at time 0 in the order A (6), B (3), C (1), D (7) (bursts in ms) and are scheduled Round Robin with no switching…
- Reference string: 1, 3, 5, 4, 2, 4, 3, 2, 1, 0, 5, 3, 5, 0, 4, 3. With 3 frames (initially empty), how many page faults does LRU produce?
- Reference string: 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6. With 4 frames (initially empty), how many page faults does…
- Reference string: 3, 2, 1, 0, 3, 2, 4, 3, 2, 1, 0, 4. How many page faults does FIFO produce with 3 frames and with 4 frames (both…