6 ms·
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 con
by eXpl0it3r 13y 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.