Consider the current value of the semaphore is -2 and one thread
is waiting. If we increment the value, it will not unblock the
waiting thread.
When signal is called on a condition variable that has threads
in its waiting list, one of the threads in the waiting list is
removed and made "ready". Which thread?
Which of the following are true?
A) a semaphore can be implemented with a lock and
a condition variable
B) a condition variable can be implemented with a
semaphore
C) a lock can be implemented with a semaphore
Consider the current value of the semaphore is -2 and one thread is waiting. If we increment the value, it will not unbl
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Consider the current value of the semaphore is -2 and one thread is waiting. If we increment the value, it will not unbl
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!