Consider the current value of the semaphore is -2 and one thread is waiting. If we increment the value, it will not unbl

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post by answerhappygod »

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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply