Re: Parallelling system_exec
- Posted by "Juergen Luethje" <j.lue at gmx.de> Jun 28, 2004
- 416 views
Andy Serpa wrote: > posted by: Andy Serpa <ac at onehorseshy.com> > > Juergen Luethje wrote: >> Why not use system()? It also calls the child processes asynchronously, >> or am I missing something? The following code works fine on my system >> (Windows 98): ^^^^^^^^^^ >> <font color="#330033"></font> >> <font color="#FF00FF">system</font><font color="#330033">(</font><font >> color="#00A033">"explorer.exe."</font><font color="#330033">, 2)</font> >> <font color="#FF00FF">system</font><font color="#330033">(</font><font >> color="#00A033">"calc.exe."</font><font color="#330033">, 2)</font> >> <font color="#FF00FF">system</font><font color="#330033">(</font><font >> color="#00A033">"notepad.exe."</font><font color="#330033">, 2)</font> >> <font color="#FF00FF">system</font><font color="#330033">(</font><font >> color="#00A033">"charmap.exe."</font><font color="#330033">, 2)</font> >> <font color="#330033"></font> Rob, is this the way the EUforum message board quotes Eu code, that was syntax highlighted in the original post? Is there a way to change this behaviour? It should have been: >> system("explorer.exe.", 2) >> system("calc.exe.", 2) >> system("notepad.exe.", 2) >> system("charmap.exe.", 2) > system() does not work asynchronously, at least on my system (with the > Windows interpreter -- maybe under DOS?). As I wrote, it does so on my *Windows* system. (It does so on my PC under DOS, too). All 4 programs are executed almost simulataneously. Which Windows version do you use (2000 or XP, I believe)? Regards, Juergen