CS FundamentalsModerateTCS NQT · Infosys pattern
Processes: P1 (arrival 0, burst 7), P2 (arrival 2, burst 4), P3 (arrival 4, burst 1), P4 (arrival 5, burst 4) (times in ms). Under FCFS scheduling, what is the average waiting time?
- A. 8.75 ms
- B. 4.00 ms
- C. 4.75 ms
- D. 5.25 ms
Correct answer: C. 4.75 ms
Completion: P1 = 7, P2 = 11, P3 = 12, P4 = 16. Waiting = completion − arrival − burst = 0, 5, 7, 7, so the average is 19/4 = 4.75 ms. 8.75 ms is the average turnaround time, not waiting time.
More Operating Systems questions
- Which of the following is NOT one of the four necessary (Coffman) conditions for deadlock?
- How many times is "hi" printed? (Assume every fork() succeeds.) c int main() { for (int i = 0; i < 3; i++) fork(); printf("hin"); return…
- A system has 32-bit logical addresses, a page size of 4 KB and 4-byte page-table entries. What is the size of a single-level page table…
- Four processes share a pool of identical resource instances, and each process needs at most 3 instances to finish. What is the minimum…
- A counting semaphore S is initialised to 5. Then 7 wait (P) operations and 3 signal (V) operations are performed on it in some order. What…
- A process of size 13,000 bytes is loaded with paging, page size 4,096 bytes. How much internal fragmentation is there in its last page?