develooper Front page | perl.beginners | Postings from March 2003

RE: Fork ?

Thread Previous | Thread Next
From:
Kipp, James
Date:
March 19, 2003 12:57
Subject:
RE: Fork ?
Message ID:
EC6C49DE5C846143AA2CE580420E77C331D848@xexwlm05.mbnainternational.com
> 
> It doesn't do what I want at all. It spawns way too many processes.
> (and I get errors in win 2000).
> 
> Basically, I want to spawn a process which does something (call a
> subroutine)
> The main process should just continue pumping data which is 
> spawned up to 10
> processes.
> Else it should wait until 1 of the 10 processes finishes.
> 
> Any code examples out there??
> 
> PS The target machine is a Unix box.

If you are spawning procs on a win32 box, the typical fork () examples from
the unix side may not work in windows. often get unexpected results. so save
youself trouble and use on of these modules:
Win32::Process
Win32::Spawn
Win32::IProc ( have not used this one, but supposed to be very good)

the docs have examples. and here too:
http://data.uta.edu/~ramesh/cse4392-5392/Ch4-1.html



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About