Match each line of code to the best description 1: pthread_cond_signal 2: pthread_mutex_unlock 3: pthread_join 4: pthread_mutex_lock 5: pthread_cond_wait匹配题

A

the calling thread attempts to enter a critical section, blocks if another thread is inside and lock isn't free

B

the calling thread waits (suspends its execution) until a condition is true: another thread will signal it to wake up

C

sends a signal to wake a thread that is waiting (suspended) on a condition to be true

D

the calling thread waits (suspends its execution) until the target thread terminates

E

the calling thread exits a critical section, thus allowing other threads to enter

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!