in reply to Re^2: ithreads or fork() what you recommend?
in thread ithreads or fork() what you recommend?

pawan68923,

I would have the the parent keep these counters in memory. From your description the parent starts the processes and maintain the counts. Why use a file?

Some things to consider:

Sounds like a massive undertaking -- should be fun!

Good Luck!

"Well done is better than well said." - Benjamin Franklin

  • Comment on Re^3: ithreads or fork() what you recommend?

Replies are listed 'Best First'.
Re^4: ithreads or fork() what you recommend?
by Anonymous Monk on May 19, 2012 at 16:35 UTC
    Hi Flexvault,

    Its my mistake when I mentioned use of file to count child process state, actually I used parent's counter in memory to do that in the test code I wrote as skeleton of the modified solution. I will make use of your advise. Thanks much!

    Best regards, Pawan#