in reply to Problem with Parallel Processes

but in couple of seconds, 2 processes exit and remaining 3 processes continue running

As the given script doesn't even run a single second, I suppose this is not the real code that actually exhibits the problem...  So, can you replicate the issue when you add a simple sleep to pJob()? If not, what is the real code doing that might make the two processes terminate prematurely?