Free mag vol1 | Page 777
CHAPTER 19 MULTITHREADED, PARALLEL, AND ASYNC PROGRAMMING
6,
2,
8,
4,
8,
8,
9,
9,
2,
1,
4,
3,
9,
9,
7,
7,
4,
5,
9,
8, 3, 2, 3, 3, 9,
5, 9,
5, 6, 3, 6, 7, 4, 7, 6, 8, 7, 4, 8, 5, 5, 6, 6, 8, 7, 7, 9,
Now run the application a few more times. Here is another possibility (your results will certainly differ):
*****Synchronizing Threads *****
-> Worker thread #0 is executing PrintNumbers()
-> Worker thread #1 is executing PrintNumbers()
-> W