An analysis of the fixed-cycle traffic-light problem