CS FundamentalsHardGATE CS
A system has 3 identical printers. Processes P1, P2, P3 hold 1 printer each and each needs exactly 2 to finish; requests are made one at a time. Which statement is correct?
- A. No deadlock is possible with 3 printers
- B. Deadlock requires at least 4 printers
- C. The state is a deadlock if each now requests one more printer and none is free
- D. Banker's algorithm would have allowed this state as safe
Correct answer: C. The state is a deadlock if each now requests one more printer and none is free
All 3 printers are held and every process waits for one more: hold-and-wait, no preemption and circular wait on a single resource type. Avoidance would refuse the third allocation, since it leaves no process able to finish (unsafe).
More Operating Systems questions
- A program alternately computes for 20 ms and does disk I/O for 80 ms. With 4 such independent programs and the 1 − pⁿ model, what CPU…
- In a system with paging, a process's logical address space is 64 pages of 1 KB and physical memory is 32 frames. How many bits are in the…
- An 8 MB file uses linked indexed allocation: each 4 KB index block holds 1024 four-byte pointers, of which the last is reserved as the…
- Processes (arrival, burst) are P1 (0, 8), P2 (1, 4), P3 (2, 9), P4 (3, 5) and P5 (6, 2). What is the average waiting time under preemptive…
- Round Robin with quantum 2 runs A (arrival 0, burst 5), B (1, 3), C (2, 6) and D (4, 2). A newly arrived process joins the ready queue…
- At time 10 the CPU becomes free and four jobs wait: J1 (arrived 2, burst 6), J2 (arrived 5, burst 2), J3 (arrived 1, burst 10), J4…