CS FundamentalsHardProduct-company MCQ pattern
Processes: A (arrival 0, burst 5), B (arrival 1, burst 3), C (arrival 2, burst 8), D (arrival 3, burst 6). Round Robin, quantum 4. A context switch costs 1 time unit and happens whenever the CPU moves to a different process (none at t = 0, none when the same process continues). A process arriving at the same instant a quantum expires joins the ready queue before the preempted process. What is the average turnaround time?
- A. 18.75
- B. 20.00
- C. 17.00
- D. 15.25
Correct answer: A. 18.75
A 0–4, cs, B 5–8 (done), cs, C 9–13, cs, D 14–18, cs, A 19–20 (done), cs, C 21–25 (done), cs, D 26–28 (done). Turnaround = A 20, B 7, C 23, D 25 → 75/4 = 18.75. Without overhead the schedule ends at 22 and gives 15.25.
More Operating Systems questions
- Processes: P1 (arrival 0, burst 7), P2 (arrival 2, burst 4), P3 (arrival 4, burst 1), P4 (arrival 5, burst 4) (ms). Round Robin with…
- Processes: A (arrival 0, burst 5), B (arrival 1, burst 3), C (arrival 2, burst 8), D (arrival 3, burst 6). Priorities A = 3, B = 1, C = 4…
- Reference string: 3, 1, 4, 3, 2, 1, 5, 3, 4, 1, 2, 5, 4, 3 frames, initially empty. Which statement is correct?
- Reference string: 3, 1, 4, 3, 2, 1, 5, 3, 4, 1, 2, 5, 4. With 3 frames, initially empty, how many page faults does the Optimal (OPT)…
- Assertion (A): For FIFO page replacement, increasing the number of frames can increase the number of page faults. Reason (R): FIFO is a…
- Five processes P0–P4 and three resource types A, B, C. Allocation: P0 (1,0,1), P1 (2,1,1), P2 (0,1,2), P3 (1,1,0), P4 (0,0,2). Max: P0…