THAT WAS IT!!!!! Thanks so much for the debugging lesson and finding the error!!!!>:D<
Type: Posts; User: MsNovice
THAT WAS IT!!!!! Thanks so much for the debugging lesson and finding the error!!!!>:D<
The following is the output when I run the code with messages within loops to output:
In !stop while loop
Sleeping in GREEN
Before changeColor
It hanges in or trying to go into changedColor....
Thanks. I assumed it was hanging on the 1st loop. I'll put print statements in all loops and get back to you.
Code hangs almost immediately and doesn't even complete it's first loop see main class. Java hangs as if it's waiting form something and cpu remains high. I have to do a ctrl+alt+delete in order to...
Sorry - first time posting. Thanks
public enum TrafficLightColor {
RED,
GREEN,
YELLOW;
The output is "GREEN". Then it hangs. There is no error message. The output should be GREEN, YELLOW, RED (3 times).
Hello,
I'm learning java on my own and the example in the book to demonstrate threads and synchronization is not working. I'm not able to figure out why the sample will not run. Any ideas?
...