Lock only one of two possible mutexes Languages

Lock only one of two possible mutexes

I have a multi threaded C++ program which simulates a car workshop. Basically a car is a thread here and a station is a resource. It works like this: Car enters a workshop and it has a list of stations (just ints), that it has to visit, to get repaired....
Read More