in reply to How to make a thread to wait till a command on shell get completed.
If you run a command (shell or otherwise) using system, the program will block until system returns.
If the program calling system is a single threaded program, that single thread will block.
If the program is a multi-threaded program, whichever thread calls system will block.
Now what is your problem?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to make a thread to wait till a command on shell get completed.
by techman2006 (Beadle) on Dec 02, 2013 at 07:44 UTC | |
by choroba (Cardinal) on Dec 02, 2013 at 08:02 UTC | |
by BrowserUk (Patriarch) on Dec 02, 2013 at 08:38 UTC | |
by dasgar (Priest) on Dec 02, 2013 at 08:03 UTC |