I see no difference between the two runs of the program;
The threads won't terminate until they are joined; and they won't be joined until the code moves past <STDIN>; to the join loop.
In reply to Re: Running a perl script as a system command in another thread hangs while main thread reading from STDIN
by BrowserUk
in thread Running a perl script as a system command in another thread hangs while main thread reading from STDIN
by rmahin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |