How to monitor all ipcBeginProcess (ChidlId) has finished.

Guest
Dear All,

I have several ipcId , and each ipcId does some command base on its
script file .
Each ipcId has its finished time (not the same time ) , How do I
monitor all of them has finished base on each job ?

Thank you,
Charley
 
chentaison@gmail.com wrote, on 03/26/09 05:22:
Dear All,

I have several ipcId , and each ipcId does some command base on its
script file .
Each ipcId has its finished time (not the same time ) , How do I
monitor all of them has finished base on each job ?

Thank you,
Charley
When you use ipcBeginProcess() you can specify an exit handler - a function that
gets called when the job completes. See the documentation for more detail.

Regards,

Andrew.
 
On 3$B7n(B28$BF|(B, $B2<8a(B11$B;~(B11$BJ,(B, Andrew Beckett <andr...@DcEaLdEeTnEcTe.HcIoSm>
wrote:
chentai...@gmail.com wrote, on 03/26/09 05:22:

Dear All,

I have several ipcId , and each ipcId does some command base on its
script file .
Each ipcId has its finished time (not the same time ) , How do I
monitor all of them has finished base on each job ?

Thank you,
Charley

When you use ipcBeginProcess() you can specify an exit handler - a function that
gets called when the job completes. See the documentation for more detail.

Regards,

Andrew.
Hi Andrew ,

I have used exit handler for each child PID in ipcBegiProcess ,
In fact , each Child has different in different (like 5mins 3 mins 4
mins ..) .
I can use exit handler for each child , but I don't know whether all
child has finished .
I want to know which child is the last child process to finish its
job.
(Maybe needs a table to monitor or what else way to do it)

Thank you,
Charley
 
chentaison@gmail.com wrote, on 03/30/09 02:09:
Hi Andrew ,

I have used exit handler for each child PID in ipcBegiProcess ,
In fact , each Child has different in different (like 5mins 3 mins 4
mins ..) .
I can use exit handler for each child , but I don't know whether all
child has finished .
I want to know which child is the last child process to finish its
job.
(Maybe needs a table to monitor or what else way to do it)

Thank you,
Charley
You probably need to keep a list (or table) of all the ipcIds that you've
launched, and then in the exit handler, remove the ipcId that just completed
from the list. Once the list is empty, you know they've all finished.

Regards,

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top