← Back to Operating System

5. Process Synchronization - Operating System

📖 From Operating System • 1500 questions available

Practice MCQs for 5. Process Synchronization. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.

🔄 Last updated: 2026-07-09

477
Easy Questions
661
Medium Questions
362
Hard Questions

📝 Topics in this Chapter

📝 Sample Questions

Q1. Which function reads the current value of an atomic integer in Linux?

🔹 A. atomic_get()
🔹 B. atomic_value()
🔹 C. atomic_read()
🔹 D. atomic_retrieve()

💡 Difficulty: easy | ✅ Correct: C

Q2. What is the purpose of the `test()` function in the monitor solution?

🔹 A. To test if a philosopher is thinking
🔹 B. To test if a philosopher can start eating and signal if possible
🔹 C. To test if chopsticks are available
🔹 D. To test if a philosopher has finished eating

💡 Difficulty: medium | ✅ Correct: B

Q3. In the `test()` function, what happens when a philosopher is allowed to eat?

🔹 A. state[i] = HUNGRY
🔹 B. state[i] = THINKING
🔹 C. state[i] = EATING
🔹 D. state[i] = WAITING

💡 Difficulty: hard | ✅ Correct: C

⬆️ View all questions in the quiz below

🚀 Start Quiz 📝 Practice Mode