mutex and threads - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

mutex and threads

Hi,
I'm an absolute beginner and I could really use your help plz.
Using synchronization with mutexes, I need to come up with a program that solves the traffic light problem. If there is a car passing it should lock the mutex and unlock it when it's passed. If the light is red and there is no car passing it should remain red otherwise it should turn green after a minimum number of seconds.
I tried searching on line for some tutorials on threads and mutex but couldn't find anything that helpful.
I deeply appreciate your help on this in advance.
Sign In or Register to comment.