Concurrency in the Stoplight Problem


(Sudarshan Venkataraman) #1

Stoplight code consistently passes in local but fails when running on the server saying “no concurrency achieved”. ANY IDEA as to where I could be going wrong?


(Sudarshan Venkataraman) #2

Problem resolved.
Problem: I was limiting the threads that wanted to turn right.
Solution : Dont limit the ones turning right.Right turn is free.