CS FundamentalsModerateTCS Digital · Infosys
Processes with bursts 6, 8, 7 and 3 ms all arrive at time 0 and are scheduled by non-preemptive SJF. What is the average waiting time?
- A. 6.5 ms
- B. 7.5 ms
- C. 9 ms
- D. 7 ms
Correct answer: D. 7 ms
Order 3, 6, 7, 8 gives waiting times 0, 3, 9 and 16, so the average is 28 / 4 = 7 ms.
More Operating Systems questions
- How many page faults occur under FIFO replacement with 3 frames (initially empty) for the reference string 2, 3, 2, 1, 5, 2, 4, 5, 3, 2…
- How many page faults occur under LRU replacement with 3 frames (initially empty) for the reference string 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0…
- A memory access takes 100 ns and a TLB lookup takes 10 ns. With a TLB hit ratio of 90% and a single-level page table in memory, what is…
- The disk head is at cylinder 53 and the request queue is 98, 183, 37, 122, 14, 124, 65, 67. What is the total head movement under SSTF…
- A system has a 32-bit virtual address, 4 KB pages and 4-byte page-table entries, using a single-level page table. What is the size of the…
- A counting semaphore S is initialised to 3. Five processes each execute wait(S) once, with no signal(S) in between. How many of them are…