← Operating System 🟑 Medium πŸ“‹ Sanfoundry

Consider the methods used by processes P1 and P2 for accessing their critical sections whenever need…

Question #167 of 1,002+ in Operating System

πŸ“ Question #167

Consider the methods used by processes P1 and P2 for accessing their critical sections whenever needed, as given below. The initial values of shared boolean variables S1 and S2 are randomly assigned. (GATE 2010) Method used by P1 : while(S1==S2); Critical section S1 = S2; Method used by P2 : while(S1!=S2); Critical section S2 = not(S1);

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

All Options & Correct Answer

A Mutual exclusion but not progress Correct
B Progress but not mutual exclusion
C Neither mutual exclusion nor progress
D Both mutual exclusion and progress

πŸ“‹ 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