CS FundamentalsVery hardGATE CS
A three-level feedback queue: Q0 (quantum 2), Q1 (quantum 4), Q2 (FCFS). New processes join Q0 and preempt lower queues; a process that uses its whole quantum drops one level. Arrivals (time, burst): A (0, 13), B (1, 5), C (3, 2), D (10, 3). Ignoring switch cost, what is the average turnaround time?
- A. 10.00
- B. 12.25
- C. 11.50
- D. 13.00
Correct answer: C. 11.50
Timeline: A 0-2, B 2-4, C 4-6 (done at 6), A 6-10, D 10-12, B 12-15 (done), D 15-16 (done), A 16-23. Turnaround: A 23, B 14, C 3, D 6, average 46/4 = 11.5.
More Operating Systems questions
- The reference string of a process is 1 2 1 3 4 4 5 2 3 2 2 6 7 7 6 1. Using a working-set window of the last 5 references (including the…
- The page reference string is 1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3 6 and 3 frames are available (initially empty). The numbers of page…
- Five processes arrive with burst times: P1 (arrival 0, burst 8), P2 (1, 4), P3 (2, 9), P4 (3, 5), P5 (4, 2). Under preemptive SJF (SRTF)…
- A system has 3 resource types and processes P0-P3. Allocation: P0 (1,0,1), P1 (2,1,0), P2 (1,1,1), P3 (0,1,2). Maximum: P0 (3,2,2), P1…
- A paged system has a TLB lookup time of 10 ns, a TLB hit ratio of 90% and a memory access time of 100 ns. A TLB miss needs one extra…
- Semaphores S = 0 and T = 0 are shared. P1 executes: print A; signal(S); print B. P2 executes: wait(S); print C; signal(T). P3 executes…