CS FundamentalsModerateAccenture · Capgemini technical pattern
Processes (arrival, burst): P1 (0, 4), P2 (1, 3), P3 (2, 6), P4 (4, 2). What is the average turnaround time under FCFS?
- A. 4.25
- B. 8
- C. 9
- D. 7.5
Correct answer: B. 8
Completion times: P1 4, P2 7, P3 13, P4 15. Turnaround = completion − arrival: 4, 6, 11, 11, average 32/4 = 8. 4.25 is the average waiting time; 9 forgets to subtract arrival times for P2.
More Operating Systems questions
- Reference string: 1, 3, 0, 3, 5, 6, 3, 1, 0, 6, 5, 3. With 3 frames, initially empty, how many page faults does FIFO replacement cause?
- Pure paging (fixed-size pages and frames) can suffer from which kind of fragmentation?
- The Banker’s algorithm is used for which strategy of handling deadlocks?
- If the time quantum of Round Robin scheduling is made larger than the longest CPU burst of every process, Round Robin behaves like:
- Processes (arrival, burst): P1 (0, 6), P2 (2, 2), P3 (3, 4), P4 (5, 1). Round Robin with quantum 2 is used; a newly arrived process joins…
- Processes (arrival, burst): P1 (0, 8), P2 (1, 4), P3 (2, 2), P4 (3, 5). What is the average waiting time under preemptive SJF (Shortest…