Login
Remember
Register
Ask a Question
What are the drawbacks of semaphores?
0
votes
asked
Sep 15, 2023
in
Operating System
by
rajeshsharma
What are the drawbacks of semaphores?
semaphores-drawbacks
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Sep 15, 2023
by
rajeshsharma
Priority Inversion is a big limitation of semaphores.
Their use is not enforced but is by convention only.
The programmer has to keep track of all calls to wait and signal the semaphore.
With improper use, a process may block indefinitely. Such a situation is called Deadlock.
...