Question: There is a one way bridge that can hold up to 3-cars. Cars reach at one end of bridge and exit the bridge at the other end. Traffic is allowed only in the one, available, direction. Explain a solution to this synchronization problem that should include:
[1] Definition of appropriate semaphores,
[2] Description of the implementation of each of the primitive operations of each semaphore,
[3] Semaphore initial values, and
[4] Semaphore pseudo-code solution.