CS FundamentalsVery hardGATE CS
Preemptive priority scheduling (smaller number = higher priority; equal priority is FCFS and does not preempt). Processes (arrival, burst, priority): A (0, 4, 2), B (1, 2, 1), C (2, 3, 3), D (3, 5, 1), E (5, 1, 0). What is the average waiting time?
- A. 3.6 ms
- B. 6.8 ms
- C. 3.8 ms
- D. 4.4 ms
Correct answer: C. 3.8 ms
Schedule: A 0-1 | B 1-3 | D 3-5 | E 5-6 | D 6-9 | A 9-12 | C 12-15. E (priority 0) preempts D at 5, and the lower-priority A and C wait until D finishes. Average waiting = 3.8 ms; non-preemptive gives 3.6.
More Operating Systems questions
- Five processes all arrive at time 0 in the order P1 (10), P2 (1), P3 (2), P4 (1), P5 (5) (bursts in ms). What is the average waiting time…
- Processes (arrival, burst): A (0, 3), B (2, 6), C (4, 4), D (6, 5), E (8, 2). By how much does SRTF reduce the average waiting time…
- Reference string: 2, 3, 2, 1, 5, 2, 4, 5, 3, 2, 5, 2, 3 frames, initially empty. What are the fault counts for FIFO, LRU and OPT?
- Reference string: 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5. How many faults does LRU give with 3 frames and with 4 frames (initially empty)?
- A computer has 48-bit virtual addresses, 4 KB pages and 8-byte PTEs. With a single-level page table, how large would one process's table…
- x86-64 style 4-level paging: TLB lookup 1 ns, memory access 60 ns, TLB hit ratio 99%, no page-walk caches. What is the effective access…