← Back to 6. CPU Scheduling

📝 Pthread Scheduling in Thread Scheduling

📖 From Operating System • 6. CPU Scheduling • 44 questions available

Practice MCQs for Pthread Scheduling in Thread Scheduling. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.

🔄 Last updated: 2026-07-10

12
Easy Questions
15
Medium Questions
17
Hard Questions

📝 Sample Questions

Q1. What does PTHREAD_SCOPE_PROCESS specify in Pthread scheduling?

🔹 A. System Contention Scope scheduling
🔹 B. Process Contention Scope scheduling
🔹 C. Global scheduling
🔹 D. Kernel-level scheduling

💡 Difficulty: easy | ✅ Correct: B

Q2. Which contention scope policy uses the one-to-one mapping on many-to-many systems?

🔹 A. PTHREAD_SCOPE_PROCESS
🔹 B. PTHREAD_SCOPE_SYSTEM
🔹 C. PTHREAD_SCOPE_BOTH
🔹 D. PTHREAD_SCOPE_NONE

💡 Difficulty: medium | ✅ Correct: B

Q3. What happens when pthread_attr_getscope() is called with an invalid attribute pointer?

🔹 A. It returns success
🔹 B. It returns a nonzero value
🔹 C. It sets the scope to default
🔹 D. It crashes the program

💡 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