in reply to Re^3: Running a perl script as a system command in another thread hangs while main thread reading from STDIN
in thread Running a perl script as a system command in another thread hangs while main thread reading from STDIN
Tried as you suggested, and there was no change at all :/
C:\>test.pl 1 ### Running a perl script ### 0s : Thread 0 - > Creating threads 0s : Thread 1 - Created 0s : Thread 2 - Created 0s : Thread 3 - Created 1s : Thread 0 - All Threads created 1s : Thread 0 - > Waiting for input now. All threads should finish now + without pressing enter 3s : Thread 1 - Starting 'perl -le "print \"hello world\""' 3s : Thread 2 - Starting 'perl -le "print \"hello world\""' 3s : Thread 3 - Starting 'perl -le "print \"hello world\""' 17s : Thread 0 - > Input received, all done 17s : Thread 2 - Finished the command: hello world 17s : Thread 3 - Finished the command: hello world 17s : Thread 1 - Finished the command: hello world 17s : Thread 0 - All Threads joined
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Running a perl script as a system command in another thread hangs while main thread reading from STDIN
by BrowserUk (Patriarch) on Sep 30, 2014 at 02:40 UTC | |
by rmahin (Scribe) on Sep 30, 2014 at 16:39 UTC | |
by BrowserUk (Patriarch) on Sep 30, 2014 at 17:08 UTC | |
by rmahin (Scribe) on Sep 30, 2014 at 17:54 UTC | |
by rmahin (Scribe) on Sep 30, 2014 at 18:33 UTC |