← Operating System 🟑 Medium πŸ“‹ Sanfoundry

Two processes, P1 and P2, need to access a critical section of code. Consider the following synchron…

Question #151 of 1,002+ in Operating System

πŸ“ Question #151

Two processes, P1 and P2, need to access a critical section of code. Consider the following synchronization construct used by the processes. Process P1 : while(true) { w1 = true; while(w2 == true); Critical section w1 = false; } Remainder Section Process P2 : while(true) { w2 = true; while(w1 == true); Critical section w2 = false; } Remainder Section

⌨️ Press A B C D to select
βœ“

All Options & Correct Answer

A It does not ensure mutual exclusion Correct
B It does not ensure bounded waiting
C It requires that processes enter the critical section in strict alternation
D It does not prevent deadlocks but ensures mutual exclusion

πŸ“‹ Question Details

πŸ“š
Subject
Operating System
🎯
Difficulty
Medium
πŸ“…
Year
β€”
πŸ“‹
Source
Sanfoundry

πŸ“€ Share This MCQ

πŸ“š Want More?

Practice Operating System MCQs

1,002+ questions with detailed answers