menu
Qamnty
Login
Register
My account
Edit my Profile
Private messages
My favorites
What is the correct order of operations for protecting a critical section using a binary semaphore?
Ask a Question
Questions
Unanswered
Tags
Ask a Question
What is the correct order of operations for protecting a critical section using a binary semaphore?
asked
Jan 19, 2019
112k
views
4
votes
What is the correct order of operations for protecting a critical section using a binary semaphore?
Computers & Tech
high-school
Khurshed
asked
by
Khurshed
8.5k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
2
votes
The correct order of operations for protecting a critical section using a binary semaphore is :
wait() followed by signal().
It is limited
to the values 0 and 1 (or locked/unlocked, unavailable/available) and it is
used to implement locks.
Bartosz Ptaszynski
answered
Jan 26, 2019
by
Bartosz Ptaszynski
8.0k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Jun 11, 2021
23.5k
views
Fifteen processes share a critical section implemented by using a binary semaphore named x initialized to 1. Eleven of these processes use the correct code wait(x); critical section; signal(x). However,
Harryt
asked
Jun 11, 2021
by
Harryt
8.2k
points
Computers & Tech
college
1
answer
1
vote
23.5k
views
asked
May 16, 2024
167k
views
What is a binary semaphore?
Thotep
asked
May 16, 2024
by
Thotep
8.9k
points
Computers & Tech
high-school
1
answer
4
votes
167k
views
asked
Sep 1, 2024
92.7k
views
A binary semaphore is a semaphore with integer values : (choose two) a) 1 b) -1 c) 0 d) 0.5
LXhelili
asked
Sep 1, 2024
by
LXhelili
8.5k
points
Mathematics
high-school
1
answer
5
votes
92.7k
views
Ask a Question
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qamnty