A car entering either end of the tunnel causes red lights


1. Suppose a two-lane road converges to one lane to pass through a tunnel. To coordinate the use of the tunnel, the following signal system has been installed:

A car entering either end of the tunnel causes red lights above the tunnel entrances to be turned on. As the car exits the tunnel, the lights are turned off. If an approaching car finds a red light on, it waits until the light is turned off before entering the tunnel. What is the flaw in this system?

2. Suppose the following solutions have been proposed for removing the deadlock that occurs on a single-lane bridge when two cars meet. Identify which condition for deadlock given in the text is removed by each solution.

a. Do not let a car onto the bridge until the bridge is empty.

b. If cars meet, make one of them back up.

c. Add a second lane to the bridge.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: A car entering either end of the tunnel causes red lights
Reference No:- TGS01487039

Expected delivery within 24 Hours