CS FundamentalsVery hardGATE CS
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 compared with non-preemptive SJF?
- A. 3.2 ms
- B. 0.4 ms
- C. 3.6 ms
- D. 1.4 ms
Correct answer: B. 0.4 ms
SJF: A 0-3 | B 3-9 | E 9-11 | C 11-15 | D 15-20, average waiting 3.6. SRTF: A 0-3 | B 3-4 | C 4-8 | E 8-10 | B 10-15 | D 15-20, average waiting 3.2. Difference = 0.4 ms.
More Operating Systems questions
- 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…
- Physical memory is 64 MB with 4 KB frames; virtual addresses are 32-bit. Each PTE holds a frame number plus 4 control bits, and PTE size…
- A process has page-fault rate p. Memory access = 100 ns; fault service = 20 ms. To keep the effective access time below 200 ns, p must be…