Operating Systems · Question 29 · Hard
Operating Systems question 29
Three processes share identical units of one resource, and each process may need at most 4 units at the same time. What is the minimum number of units that guarantees deadlock can never occur?
- 9
- 10
- 12
- 13
Answer and explanation
Answer: B. 10
Explanation: In the worst case each process holds 3 units and waits for its 4th, which uses 3 × 3 = 9 units with deadlock. One more unit lets some process finish and release its units, so the minimum is 9 + 1 = 10.
Previous: Memory access time is 200 ns, and servicing a page fault takes 8 ms. If 1 in… · Next: A disk has cylinders 0 to 199 and the head is at cylinder 50, moving towards…
Practise operating systems
Try a fresh set of operating systems questions with an explanation after every answer, free and without signing up: Operating Systems practice. Or sit a full placement mock test.
More operating systems questions
- Process (arrival time, burst time, priority) in ms: P1 (0, 5, 3), P2 (1, 3…
- A system has three resource types. Available = (1, 2, 2). Process | Allocation…
- Memory access time is 200 ns, and servicing a page fault takes 8 ms. If 1 in…
- A disk has cylinders 0 to 199 and the head is at cylinder 50, moving towards…
More technical & programming practice
Computer Networks · Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming · Java · Python
LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge