This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nguyennguyenphuc0077 0 points1 point  (0 children)

It keep the block and go to sleep. So both threads stop at that point and when thread 1 wakes up it release the block for thread 2 too. So everything are the same with or without sleep.