📖 From Operating System • 5. Process Synchronization • 66 questions available
Practice MCQs for Pthreads Synchronization. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.
🔄 Last updated: 2026-07-09
Q1. Which API provides mutex locks, condition variables, and read-write locks for thread synchronization at the user level?
💡 Difficulty: easy | ✅ Correct: B
Q2. A developer needs to create a semaphore that can be accessed by multiple unrelated processes. Which type of POSIX semaphore should be used?
💡 Difficulty: medium | ✅ Correct: B
Q3. Consider a scenario where a counting semaphore is initialized to 5. How many threads can successfully call `sem_wait()` on this semaphore without blocking?
💡 Difficulty: hard | ✅ Correct: B
⬆️ View all questions in the quiz below