How to monitor all ipcBeginProcess (ChidlId) has finished.

Discussion in 'Cadence' started by chentaison, Mar 26, 2009.

  1. chentaison

    chentaison 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, Mar 26, 2009
    #1
  2. 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.
     
    Andrew Beckett, Mar 28, 2009
    #2
  3. chentaison

    chentaison Guest

    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, Mar 30, 2009
    #3
  4. 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.
     
    Andrew Beckett, Mar 30, 2009
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.