- There is a mechanic in the garage.
- If there are no customers, the mechanic is asleep.
- When a customer enters, he wakes up the mechanic.
- If a customer enters while the mechanics are working, he waits, if there is room, otherwise he leaves.
desi109 / carmakerproblem Goto Github PK
View Code? Open in Web Editor NEWCarMakerProblem - this problem contains a solution, which represents an example of synchronization in C# ➟ There is a mechanic in the garage. If there are no customers, the mechanic is asleep. When a customer enters, he wakes up the mechanic. If a customer enters while the mechanics are working, he waits, if there is room, otherwise he leaves.