Hacker News new | ask | show | jobs
by eXpl0it3r 4568 days ago
There isn't really that big of a difference between a lock and a wait, which is the point that was being made. It either way will "lock" up the thread until condition X is full filled and since it depends on other threads to finish, it's still very possible to get deadlocks and a like.

Besides that, depending on the task, it's very important how something is implemented.