Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Recent questions tagged binary-semaphore
0
votes
1
answer
1
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 threads which are calling incr() and there are three threads which are calling decr() ... $s=2$ minimum possible value of $\mathrm{x}$ is $\mathrm{V}_2$ $15,8$ $12,8$ $15,7$ $12,7$
GO Classes
asked
in
Operating System
Feb 5, 2023
by
GO Classes
1.5k
views
memorybased-gatecse2023
goclasses
operating-system
process-synchronization
binary-semaphore
2
votes
1
answer
2
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 T2 :-Y has performed V(R); Will Process X get unblocked and removed from ready queue? Which process will run after Y has performed V(R)? Process Y or Process X?
subhashchaganti
asked
in
Operating System
Sep 21, 2022
by
subhashchaganti
508
views
operating-system
binary-semaphore
queue
1
vote
3
answers
3
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) operation. The number of blocked processes at the end are _________. 4 P, 6 V, 9 P, 13 V, 14 P
Sagar475
asked
in
Operating System
Jan 18, 2022
by
Sagar475
467
views
operating-system
binary-semaphore
2
votes
1
answer
4
NPTEL Assignment Question
Suppose we want to synchronize two concurrent processes P and Q
rsansiya111
asked
in
Operating System
Dec 8, 2021
by
rsansiya111
517
views
nptel-quiz
operating-system
process-synchronization
binary-semaphore
3
votes
1
answer
5
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 performed. 5 P, 7 V, 10 P, 13 V, 17 P The number of blocked processes at the end are _________.
LRU
asked
in
Operating System
Oct 17, 2021
by
LRU
576
views
test-series
operating-system
process-synchronization
binary-semaphore
3
votes
4
answers
6
Ace Test Series: Operating System - Reader Writer Problem
Na462
asked
in
Operating System
Jan 21, 2019
by
Na462
1.9k
views
operating-system
process-synchronization
semaphore
binary-semaphore
ace-test-series
1
vote
1
answer
7
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 above
Rahul_Rathod_
asked
in
Operating System
Dec 12, 2018
by
Rahul_Rathod_
1.5k
views
binary-semaphore
process-synchronization
operating-system
semaphore
2
votes
1
answer
8
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 of S for which at least three up operations will remain blocked is ___________ Can someone explain me the solution
Pavan Shetty
asked
in
Operating System
Nov 22, 2018
by
Pavan Shetty
892
views
semaphore
binary-semaphore
0
votes
1
answer
9
self doubt
What is the actual difference between binary semaphore & Mutex????? Are both same thing???? What is the up() code for binary semaphore?????
mrinmoyh
asked
in
Operating System
Nov 15, 2018
by
mrinmoyh
656
views
operating-system
mutex
binary-semaphore
0
votes
0
answers
10
MADE EASY TEST SERIES
HOW ARE THE CURRENT OPERATORS CREATING DEADLOCK HERE?
Avik Chowdhury
asked
in
Operating System
Sep 27, 2018
by
Avik Chowdhury
319
views
binary-semaphore
0
votes
0
answers
11
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
asked
in
Operating System
Sep 21, 2018
by
balaganesh
463
views
operating-system
binary-semaphore
0
votes
2
answers
12
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.L is empty) { S.value=1; } else { select a process from S.L; ... and goes to sleep. P0 comes out and exeutes the else part of Up and wakes P1 up. Now how will P1 enter the CS, since S.value is still 0?
Samujjal Das
asked
in
Operating System
Feb 5, 2017
by
Samujjal Das
4.0k
views
binary-semaphore
semaphore
operating-system
3
votes
2
answers
13
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 following code : while(TRUE) { V(mutex); critical section ; P(mutex); } Initial value of binary semaphore "mutex" = ... at any instant of time? a) 2 b) 3 c) 9 d) 10 e) 1 Plz explain in details which one is true out of these options.
Habibkhan
asked
in
Operating System
Oct 16, 2016
by
Habibkhan
2.9k
views
operating-system
process-synchronization
binary-semaphore
1
vote
2
answers
14
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$
makhdoom ghaya
asked
in
Operating System
Sep 16, 2016
by
makhdoom ghaya
3.2k
views
ugcnetcse-june2010-paper2
operating-system
binary-semaphore
1
vote
1
answer
15
To allow only one process in the critical section, value of a binary semaphore is initialized to __?
Vikrant Singh
asked
in
Operating System
Feb 1, 2015
by
Vikrant Singh
794
views
operating-system
process-synchronization
semaphore
binary-semaphore
To see more, click for the
full list of questions
or
popular tags
.
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent questions tagged binary-semaphore
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...