in reply to Re: Re: Re: Perl IPC: Checking Exit Status of Child Process
in thread Perl IPC: Checking Exit Status of Child Process

Hi
Thank you very much for replying back.

When I fork in a loop, how do I ensure that all the child

processes are executing concurrently. My main aim to use

fork is to execute different subroutines in a cincurrent

fashion. Many thanks for your help.
  • Comment on Re: Re: Re: Re: Perl IPC: Checking Exit Status of Child Process

Replies are listed 'Best First'.
Re: Perl IPC: Checking Exit Status of Child Process
by perlplexer (Hermit) on May 19, 2003 at 11:33 UTC
    fork() creates a new process, so, as long as you have enough CPU power, all fork()ed processes may be executing concurrently. I say "may be" because it really depends on what they do, on their priority in the system, and on the number of CPUs that the OS has at its disposal.

    --perlplexer