It hangs on Windows; and will eventually hang everywhere if you add any useful code to the while loops.
As a coding pattern, ikegami's code is broken by design. End of.
In reply to Re^14: Threads sharing global variable
by BrowserUk
in thread Threads sharing global variable
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |