Most voted "traffic-light" questions
5 questions
Sort by count of
-
13
votes4
answers2530
viewsWhat are Traffic Lights in Programming?
In a series of questions I asked to ask questions about parallelism, asynchronism, threads and the like, I came across several new knowledge, and also several new terms. In that reply for example,…
-
7
votes1
answer4407
viewsWhat is the difference between Traffic Light and Monitor?
I have a doubt in the concept of these two structures. What would be the difference between them? Which is faster? And which is easier to use? Could you give me a basic example of each?…
-
2
votes0
answers595
viewsTraffic Light Problems (Readers and Writers)
I am trying to implement the problem of readers and writers in Java, and for this I am basing myself on the method used by Tanenbaum in the book Operating Systems. With only one writer thread and…
-
1
votes1
answer1345
viewsTraffic Light Problems (Producer/Consumer)
Hello! I am trying to solve the Producer/Consumer Problem using semaphores, but I am struggling. I’m using one thread for producer and one for consumer, but I think the program is initiating the…
-
0
votes1
answer672
viewsTraffic lights in Javascript
How can I create traffic lights in Javascript? I have an asynchronous script that runs n times, I wish that when the n tasks had another task been executed. I used normal access to a variable but…