Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged binary-semaphore
1
1 vote
2
2 answers
132
132 views
GO Classes DPP | GATE CS | Operating System | Binary Semaphore
Two semaphores are initialized as:$S = 1$$T = 0$Two processes execute repeatedly:Process P$\texttt{wait(S);}$$\texttt{print("A");}$$\texttt{signal(T);}$Process Q$\texttt{...
GO Classes
132
views
asked
Jul 29
Operating System
goclasses
goclasses-cs-dpp
operating-system
goclasses-cs-dpp-day-335
goclasses-os-practice-questions
binary-semaphore
+
–
2
2 votes
0
0 answers
569
569 views
Counting Semaphore: IIT Kanpur
Consider a counting semaphore s1 initialized to two. The binary semaphore s2 is initialized to one. There are three processes executing the following code segment concurr...
RUPALI_SHAHAPURE
569
views
asked
Nov 15, 2024
Operating System
operating-system
semaphore
binary-semaphore
iit-kanpur
+
–
0
0 votes
1
1 answer
2.9k
2.9k views
GATE CSE 2023 | Memory Based Question: 19
incr(){ wait(s) x = x+1 signal(s) } decr() { wait(s) x = x–1 signal(s) }Shared integer variable $\mathrm{x}$ initialized with $10.$There are five thread...
GO Classes
2.9k
views
asked
Feb 5, 2023
Operating System
memorybased-gatecse2023
goclasses
operating-system
process-synchronization
binary-semaphore
+
–
2
2 votes
1
answers
1 answer
851
851 views
Binary Semaphore
Say there is a Binary semaphore R, initialized to 0. Say process X and Y are working on R.At T1 :- X has performed P(R); X gets blocked and gets added in Process Queue.At...
subhashchaganti
851
views
asked
Sep 21, 2022
Operating System
operating-system
binary-semaphore
queue
+
–
1
1 vote
2
2 answers
922
922 views
Applied Gate Full Length Test
Let S be the binary semaphore variable initialized to zero. If no blocked processes exist in the system then consider the execution of the following signal (V), wait (P) ...
Sagar475
922
views
asked
Jan 18, 2022
Operating System
operating-system
binary-semaphore
+
–
2
2 votes
1
1 answer
869
869 views
NPTEL Assignment Question
Suppose we want to synchronize two concurrent processes P and Q
rsansiya111
869
views
asked
Dec 8, 2021
Operating System
nptel-quiz
operating-system
process-synchronization
binary-semaphore
+
–
3
3 votes
1
answers
1 answer
1.0k
1.0k views
Applied Test Series
Let S be a binary semaphore variable. Let S = 0 initially. Assume that no blocked processes exist in the system. The following signal (V), wait (P) operations are perform...
LRU
1.0k
views
asked
Oct 17, 2021
Operating System
test-series
operating-system
process-synchronization
binary-semaphore
+
–
3
3 votes
4
4 answers
2.9k
2.9k views
Ace Test Series: Operating System - Reader Writer Problem
Na462
2.9k
views
asked
Jan 21, 2019
Operating System
operating-system
process-synchronization
semaphore
binary-semaphore
ace-test-series
+
–
1
1 vote
1
1 answer
2.5k
2.5k views
semaphore
a) s1-wait(p) , s2-wait(q) , s3-wait(q) , s4-wait(p)b) s1-wait(p) , s2-wait(q) , s3-wait(p) , s4-wait(q)c) s1-wait(q) , s2-wait(p) , s3-wait(p) , s4-wait(q)d) none of...
Rahul_Rathod_
2.5k
views
asked
Dec 12, 2018
Operating System
binary-semaphore
process-synchronization
operating-system
semaphore
+
–
2
2 votes
1
1 answer
1.5k
1.5k views
Simple Doubt in counting semaphore
Consider a non-negative counting semaphore S. During an execution, 16P (wait) operations, and 4V (signal) operations are issued in some order. The largest initial value o...
Pavan Shetty
1.5k
views
asked
Nov 22, 2018
Operating System
semaphore
binary-semaphore
+
–
0
0 votes
1
1 answer
1.5k
1.5k views
self doubt
What is the actual difference between binary semaphore & Mutex????? Are both same thing????What is the up() code for binary semaphore?????
mrinmoyh
1.5k
views
asked
Nov 15, 2018
Operating System
operating-system
mutex
binary-semaphore
+
–
0
0 votes
0
0 answers
649
649 views
MADE EASY TEST SERIES
HOW ARE THE CURRENT OPERATORS CREATING DEADLOCK HERE?
Avik Chowdhury
649
views
asked
Sep 27, 2018
Operating System
binary-semaphore
+
–
0
0 votes
0
0 answers
732
732 views
Binary-semaphones
The number of binary semaphores required to implement readers-writers code in busy waiting mode is - answer given as 1.why 1 and why not 2?
balaganesh
732
views
asked
Sep 21, 2018
Operating System
operating-system
binary-semaphore
+
–
0
0 votes
2
2 answers
4.8k
4.8k views
Self Doubt (Semaphores)
struct Semaphore { enum value(0,1); Queue type L; } Down (Semaphore S) { if(S.value==1) { S.value=0; } else { put process(PCB) in S.L; sleep(); } } Up(Semaphore S) { if(S...
Samujjal Das
4.8k
views
asked
Feb 5, 2017
Operating System
binary-semaphore
semaphore
operating-system
+
–
3
3 votes
2
answers
2 answers
4.6k
4.6k views
Self Doubt
Q : Each process Pi , i = 1 to 9 executes the following code : while (TRUE) { P(mutex); Critical section ; V(mutex);}The process P10 executes the foll...
Habibkhan
4.6k
views
asked
Oct 16, 2016
Operating System
operating-system
process-synchronization
binary-semaphore
+
–
1
1 vote
2
answers
2 answers
3.9k
3.9k views
UGC NET CSE | June 2010 | Part 2 | Question: 39
In order to allow only one process to enter its critical section, binary semaphore are initialized to$0$$1$ $2$$3$
Misbah Ghaya
3.9k
views
asked
Sep 16, 2016
Operating System
ugcnetcse-june2010-paper2
operating-system
binary-semaphore
+
–
4
4 votes
4
4 answers
4.8k
4.8k views
Can anyone explain the below question in a detailed way?
A Binary semaphore variable mutex is initialized to '1' and the various binary semaphore operations like 9P(), 14V(), 6P(), 8V(), 3P(), 2V() are performed, then what is t...
piyushkr
4.8k
views
asked
Jan 21, 2016
Operating System
operating-system
binary-semaphore
numerical-answers
+
–
1
1 vote
1
1 answer
1.4k
1.4k views
To allow only one process in the critical section, value of a binary semaphore is initialized to __?
Vikrant Singh
1.4k
views
asked
Feb 1, 2015
Operating System
operating-system
process-synchronization
semaphore
binary-semaphore
+
–
To see more, click for the
full list of questions
or
popular tags
.