in reply to Re^4: Program Design Around Threads
in thread Program Design Around Threads
There are as many threads running as there are machines and commands
Only if you run the different commands for each machine from different threads. That's the wrong way to do it.
If you look at the code snippets I posted, one thread connect to one machine, opens one file, and runs all the commands for that machine, sequentially. That way, there is no possibility for ordering problems or file conflicts.
Maybe I am missing something?
Please read my last post slowly and thoroughly. Making multiple connections to each machine from different threads to run single commands is both inefficient and the source of your problems.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Program Design Around Threads
by aeaton1843 (Acolyte) on Mar 06, 2013 at 22:49 UTC | |
by BrowserUk (Patriarch) on Mar 06, 2013 at 23:17 UTC | |
by aeaton1843 (Acolyte) on Mar 07, 2013 at 00:21 UTC |