Computer Science EngineeringVery hardISRO SC
Processes (arrival, burst in ms): P1(0, 3), P2(3, 7), P3(1, 6), P4(2, 5). Under preemptive SJF (SRTF), the average waiting time in ms is
- A. 4.75
- B. 5
- C. 5.5
- D. 6
Correct answer: A. 4.75
Waiting time = completion - arrival - burst. Simulating SRTF millisecond by millisecond gives average 4.75 ms (FCFS would give 5).
Practise more OS, DBMS, Networks & Computer Architecture (ISRO CS) questionsOS, DBMS, Networks & Computer Architecture (ISRO CS): notes and key points
More OS, DBMS, Networks & Computer Architecture (ISRO CS) questions
- Four processes arrive together with CPU bursts 5, 8, 14, 9 ms in the order P1..P4. With round robin, time quantum 4 ms, the average…
- A single-level page table is used. TLB lookup takes 5 ns, memory access 120 ns, and the TLB hit ratio is 95%. The effective memory access…
- In a demand-paged system the memory access time is 200 ns and a page fault takes 8 ms to service. To keep the effective access time within…
- In a demand-paged system the memory access time is 120 ns and a page fault takes 12 ms to service. To keep the effective access time…
- A machine has 32-bit virtual addresses, 1 KB pages and 4-byte page-table entries; every page-table level occupies exactly one page…
- A two-level cache has L1 hit time 1 ns, L1 hit rate 90%, L2 hit time 10 ns, L2 local hit rate 80%, and memory access 100 ns. The average…