B
Baskar
Hi,
My requirement is I have to run n number of precess in a loop. But all
processes should run in a chained manner, I mean only after the
previous process gets completed the next process should start and so
on.
So in a while loop I do as follow
while ( <condition> )
{
::CreateProcess(
NULL,
(LPTSTR)pszCmdLine,
NULL, NULL,
TRUE,
CREATE_NEW_CONSOLE,
NULL, NULL,
&si,
&pi);
}
But all the processes are running asynchrously. How to make it
synchronou? Please help.
Thanks in advance
Baskar
My requirement is I have to run n number of precess in a loop. But all
processes should run in a chained manner, I mean only after the
previous process gets completed the next process should start and so
on.
So in a while loop I do as follow
while ( <condition> )
{
::CreateProcess(
NULL,
(LPTSTR)pszCmdLine,
NULL, NULL,
TRUE,
CREATE_NEW_CONSOLE,
NULL, NULL,
&si,
&pi);
}
But all the processes are running asynchrously. How to make it
synchronou? Please help.
Thanks in advance
Baskar