Re: Parallelling system_exec
- Posted by Andy Serpa <ac at onehorseshy.com> Jun 28, 2004
- 437 views
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> > system() does not work asynchronously, at least on my system (with the Windows interpreter -- maybe under DOS?). e.g. system("notepad.exe",2) ? 99 -- code not executed until notepad.exe is terminated