multi thread in c question
Posted
by REALFREE
on Stack Overflow
See other posts from Stack Overflow
or by REALFREE
Published on 2010-06-11T22:19:46Z
Indexed on
2010/06/11
22:22 UTC
Read the original article
Hit count: 522
c
|multithreading
Does mutex guarantee to execute thread in order of arriving?
that is, if, thread 2 and thread 3 arrive is waiting while thread 1 is in critical section
what exactly happen after thread 1 exit critical section if thread 2 arrive at mutex lock before thread 3, thread 2 will be allowed to enter critical section before thread 3 ?
or race condition will be occurred?
© Stack Overflow or respective owner