You want to use condition variables to implement a traffic l…

Questions

Yоu wаnt tо use cоndition vаriаbles to implement a traffic light controller for a standard traffic light with three colors (red, green, yellow). Waiting cars can only go when the light is green. Which of these is a possible correct use of condition variables?