← Back to 5. Process Synchronization

📝 Semaphore Usage

📖 From Operating System • 5. Process Synchronization • 56 questions available

Practice MCQs for Semaphore Usage. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.

🔄 Last updated: 2026-07-09

20
Easy Questions
28
Medium Questions
8
Hard Questions

📝 Sample Questions

Q1. What is the value range of a counting semaphore?

🔹 A. Only 0 and 1.
🔹 B. Any non-negative integer.
🔹 C. Only positive integers.
🔹 D. Any integer including negative values.

💡 Difficulty: easy | ✅ Correct: B

Q2. What is the primary use of a counting semaphore?

🔹 A. To enforce mutual exclusion.
🔹 B. To control access to a finite number of resources.
🔹 C. To implement busy waiting.
🔹 D. To prevent deadlocks.

💡 Difficulty: medium | ✅ Correct: B

Q3. What happens if a process calls `signal()` on a counting semaphore that is already at its maximum value?

🔹 A. The semaphore value overflows.
🔹 B. The semaphore value remains at the maximum.
🔹 C. The semaphore value increments beyond the maximum.
🔹 D. The process blocks.

💡 Difficulty: hard | ✅ Correct: B

⬆️ View all questions in the quiz below

🔗 Related Topics

📝 Computer System Architecture📝 Computer System Organization📝 Computing Environments📝 Kernel Data Structures📝 Memory Management
🚀 Start Quiz 📝 Practice Mode