Suppose I have multiple threads blocking on a call to pthread_mutex_lock()
. When the mutex becomes available, does the first thread that called pthread_mutex_lock()
get the lock? That is, are calls to pthread_mutex_lock()
in FIFO order? If not, what, if any, order are they in? Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…