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 semaphore
4
votes
1
answer
1
GO Classes Test Series 2024 | Mock GATE | Test 13 | Question: 49
We want to use semaphores to implement a shared critical section (CS) among three threads $\mathrm{T} 1$, $\mathrm{T} 2$, and $\mathrm{T} 3$ ... What is the minimum number of binary semaphores we need in order to enforce this ordering?
GO Classes
asked
in
Operating System
Jan 28
by
GO Classes
379
views
goclasses2024-mockgate-13
goclasses
numerical-answers
operating-system
process-synchronization
semaphore
2-marks
0
votes
1
answer
2
Semaphores
Can a counting semaphore acquire a negative value? S = 2; 15 P operations done, should the semaphore be 0 or -13
Mrityudoot
asked
in
Operating System
Jan 27
by
Mrityudoot
171
views
semaphore
operating-system
process-synchronization
4
votes
2
answers
3
GO Classes Test Series 2024 | Mock GATE | Test 11 | Question: 19
Consider three concurrently executing threads in the same process using two semaphores $\text{s}1$ and $\text{s2}.$ Assume $\text{s1}$ has been initialized to $1$, while $\text{s2}$ has been initialized to $0.$ ... ); /* thread C */ P(s1); x = x+3; V(s2); V(s1); $6$ $12$ $18$ $36$
GO Classes
asked
in
Operating System
Jan 13
by
GO Classes
528
views
goclasses2024-mockgate-11
goclasses
operating-system
semaphore
threads
multiple-selects
1-mark
0
votes
0
answers
4
Operating system binary semaphores
Find initial values of binary semaphores X and Y. P and V operation for counting semaphore b is defined as: P(b): b--; wait if b<0; V(b): b++; wakeup any waiting process in b if b<=0; Pa (wait) and Va (signal) are implemented as: P(b): Pa(Y); b--; if(b<0) { Va(Y); Pa(X); } else Va(Y); V(b): Pa(Y); b++; if(b<=0) { Va(Y); Va(X); }
jasper
asked
in
Others
Oct 21, 2023
by
jasper
353
views
operating-system
semaphore
binary-tree
0
votes
1
answer
5
process synchronization
How to approach synchronization (specifically semaphore) question, there size are really intimidating and i’m unable to decode the code written? What to do??
N3314nch41
asked
in
Operating System
Sep 10, 2023
by
N3314nch41
347
views
process-synchronization
operating-system
semaphore
critical-section
self-doubt
0
votes
1
answer
6
NPTEL : Synchronisation (semaphore)
In a certain application, the initial value of a counting semaphore s is 10. The following operations were completed on the semaphore in the given order 5P, 20P, 2V, 18P, 5V, 10P, 1V. The new value of counting semaphore is _____________ ?
roopkathaaa
asked
in
Operating System
Aug 25, 2023
by
roopkathaaa
1.2k
views
operating-system
semaphore
0
votes
1
answer
7
OS handout
Let m[0]…m[4] be mutexes (binary semaphores) and P[0] …. P[4] be processes. Suppose each process P[i] executes the following: P(i) { while(1) { P(m[i]); P(m[(i+1)%4]; <CS> V(m[i]); V(m[(i+1)%4]; } } What is the maximum no. Of processes that can be in<CS> .......
Aniket1710
asked
in
Operating System
Jul 20, 2023
by
Aniket1710
418
views
semaphore
17
votes
2
answers
8
GATE CSE 2023 | Question: 28
Consider the two functions $\textsf{incr}$ and $\textsf{decr}$ shown below. incr(){ decr(){ wait(s); wait(s); X = X+1; X = X-1; signal(s); signal(s); } } There are $5$ threads each invoking $\textsf{incr}$ once, and $3$ threads each ... of the following choices corresponds to the minimum possible values of $\text{V1, V2},$ respectively? $15,7$ $7,7$ $12,7$ $12,8$
admin
asked
in
Operating System
Feb 15, 2023
by
admin
11.8k
views
gatecse-2023
operating-system
semaphore
2-marks
0
votes
0
answers
9
OS Self doubt (Semaphore)
At the end of chapter 2, we studied a solution to the readers and writers problem, given below:- In this solution, as long as one reader is having the resource any new reader can get access to the resource. Thus, the writer will ... expressing interest the writer will also have to wait for all the existing resource-occupyingreader(s) to be done and release the resource.
legacy
asked
in
Operating System
Nov 27, 2022
by
legacy
306
views
self-doubt
semaphore
0
votes
1
answer
10
Process Synchronisation
What is the significance of infinite loop that is written in every example of process synchronisation? What would happen if there wasn't any infinite loop?
ajayraho
asked
in
Operating System
Oct 23, 2022
by
ajayraho
886
views
operating-system
process-synchronization
semaphore
process-scheduling
inter-process-communication
0
votes
1
answer
11
Ace Test Series
Neelu Lalchandani
asked
in
Operating System
Aug 19, 2022
by
Neelu Lalchandani
558
views
ace-test-series
operating-system
semaphore
mutex
Page:
1
2
3
4
5
6
next »
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 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:...