I need some help solving this. So the example on top shows a tunnel going throug
ID: 3683074 • Letter: I
Question
I need some help solving this.
So the example on top shows a tunnel going through a mountain and two streets parallel to each other—one at each end of the tunnel. The traffic lights are located at each end of the tunnel to control the cross flow of traffic through each intersection. Based on the picture, answer the following questions:
a. How can deadlock occur and under what circumstances?
b. How can deadlock be detected?
c. Give a solution to prevent deadlock and starvation.
Traffic flow diagram for Exercise 6. South Street Independence Blvd Independence Tunnel Mount George Bridge River StrectExplanation / Answer
a. Deadlock will not happen because there are two traffic lights that control the traffic.The deadlock may when some of the motorist dont follow the traffic light because there's only one bridge to drive through.
b. Deadlock can be detected when there will be a huge bumper to bumper to the traffic and there will be accident that will happen.
c. The solution to prevent deadlock is that, the traffic lights should be accurate and motorist should follow it. In order to have a nice driving through the bridge.