← Operating System 🟡 Medium 📋 Sanfoundry

The program follows to use a shared binary semaphore T. Process A int Y; A1: Y = X*2; A2: X = Y; sig…

Question #158 of 1,002+ in Operating System

📝 Question #158

The program follows to use a shared binary semaphore T. Process A int Y; A1: Y = X*2; A2: X = Y; signal(T); Process B int Z; B1: wait(T); B2: Z = X+1; X = Z;

⌨️ Press A B C D to select

All Options & Correct Answer

A one Correct
B two
C three
D four

📋 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