CS FundamentalsVery hardGATE CS
Processes (arrival, burst): P1 (0, 7), P2 (2, 3), P3 (3, 1), P4 (6, 2). SRTF is used and every switch to a DIFFERENT process costs 1 ms (none at time 0; a switch after a process finishes also costs 1 ms). At what time does the last process complete?
- A. 13 ms
- B. 17 ms
- C. 18 ms
- D. 16 ms
Correct answer: B. 17 ms
Schedule with overhead: P1 0-2 | P3 3-4 | P2 5-8 | P4 9-11 | P1 12-17 (gaps are switches). Without overhead the last completion would be 13.
More Operating Systems questions
- Processes on one CPU, Round Robin quantum 2: A arrives at 0 and needs CPU 3, then I/O 2, then CPU 1; B arrives at 1 and needs CPU 4. A…
- Processes (arrival, burst): P1 (0, 2), P2 (1, 9), P3 (2, 1), P4 (3, 1), P5 (4, 1). Rank FCFS, non-preemptive SJF, SRTF and RR (q = 1) by…
- Reference string: 1, 2, 3, 4, 5, 3, 4, 1, 6, 7, 8, 7, 8, 9, 7, 8, 9, 5, 4, 5, 4, 2. With 4 frames (initially empty), how many page faults…
- Under which condition does the clock (second-chance) algorithm make exactly the same replacement decisions as FIFO?
- A two-level page table, TLB lookup 10 ns, memory 80 ns, TLB hit ratio 90%. On a TLB miss, a page-walk cache holding outer-level entries…
- Two-level paging, TLB lookup 5 ns, memory access 100 ns, TLB searched first. What minimum TLB hit ratio keeps the effective access time at…