Ideally it's doing it consistently like you said. But it does this most of the time in my Eclipse run environment:
Count from Thread 1: 1
Count from Thread 1: 2
Count from Thread 1: 3
Count...
Type: Posts; User: fgstat
Ideally it's doing it consistently like you said. But it does this most of the time in my Eclipse run environment:
Count from Thread 1: 1
Count from Thread 1: 2
Count from Thread 1: 3
Count...
Can anyone read the following code and see why I can't let 3 threads count to 60? Order in which they execute (increment to 20) is not important but most of the times I only see two of them do. The...