Henry Wong wrote:
Please explain what you mean by "mixed up"..... and also... Keep in mind that there are two threads here. The one thread in the single thread executor, and the main thread which is running the code in the main() method.
Henry
By that I mean it can sometimes output 100 100, but also
100 47 or 10 86 or 100 99 etc...
Ok, I see...then the main Method runs this Code Snippet
independently from the SingleThreadExecutor:
And that's why the ouput could be "mixed up"?
Did I get this right?;)
Kind regards and thank you for your answer;)
Florian