mutex , semaphore, monitor, condition variable
mutex, semaphore, monitor, condition variable are basic computer science concepts, but can easily get confused. some notes here. mutex: thread has ownership, released by the one who acquired it. no execution order…