Multiple Choice
A thread using POSIX condition variables, a thread
A) must lock the associated mutex lock before calling pthread_cond_wait( ) and unlock it after calling pthread_cond_signal( ) .
B) must lock the associated mutex lock before calling pthread_cond_wait( ) , but doesn't need to unlock it after calling pthread_cond_signal( ) .
C) doesn't need to lock the associated mutex lock before calling pthread_cond_wait( ) , but must unlock it after calling pthread_cond_signal( ) .
D) doesn't need to lock the associated mutex lock before calling pthread_cond_wait( ) and doesn't need to unlock it after calling pthread_cond_signal( ) .
Correct Answer:

Verified
Correct Answer:
Verified
Q19: In the solution for dining philosophers problem
Q20: The solution for bounded buffer problem provided
Q21: Describe the dining-philosophers problem and how it
Q22: In the structure of the producer process
Q23: A(n) _ is a sequence of read-write
Q25: Dispatcher objects in Windows are used for
Q26: To lock the kernel on a single
Q27: A key difference between Reentrant locks and
Q28: Explain how Linux manages race conditions on
Q29: POSIX unnamed semaphores can be shared either