
Learn core concepts, essential formulas, and attempt practice questions designed on the latest TCS NQT testing patterns.
Which of the following is NOT a condition for deadlock?
Correct Answer: A) Preemption
Step-by-step Solution: The condition is NO preemption. If resources can be preempted, deadlock won't occur.
A semaphore initialized to 1 is called a:
Correct Answer: A) Binary Semaphore
Step-by-step Solution: Semaphores restricted to 0 and 1 are binary semaphores (often used like locks).
Memorize the four Coffman conditions for deadlocks. They appear in almost all OS papers.