Amazon interview question

Design threading/parallelisation for a traffic lights system