Computer Science EngineeringVery hardISRO SC
Processes (arrival, burst in ms): P1(0, 8), P2(4, 3), P3(2, 4), P4(1, 7). Under preemptive SJF (SRTF), the average waiting time in ms is
- A. 8.75
- B. 6.5
- C. 5.75
- D. 7
Correct answer: C. 5.75
Waiting time = completion - arrival - burst. Simulating SRTF millisecond by millisecond gives average 5.75 ms (FCFS would give 8.75).
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
- 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
- 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…