← Operating System 🟑 Medium πŸ“‹ Sanfoundry

The following program consists of 3 concurrent processes and 3 binary semaphores. The semaphores are…

Question #150 of 1,002+ in Operating System

πŸ“ Question #150

The following program consists of 3 concurrent processes and 3 binary semaphores. The semaphores are initialized as S0 = 1, S1 = 0, S2 = 0. Process P0 while(true) { wait(S0); print '0'; release(S1); release(S2); } Process P1 wait(S1); release(S0); Process P2 wait(S2); release(S0);

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

All Options & Correct Answer

A At least twice Correct
B Exactly twice
C Exactly thrice
D Exactly once

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