Solved

A Thread Using POSIX Condition Variables, a Thread

Question 15

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents