Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Problem with Parallel::ForkManager on Windows Vista

Reply
Thread Tools

Problem with Parallel::ForkManager on Windows Vista

 
 
Jacob JKW
Guest
Posts: n/a
 
      01-24-2008
I'm using Parallel::ForkManager to periodically run a number of tasks
in parallel. It seems to work about 90% of the time. What I'm finding
the remaining 10% of the time, however, is that the while the forked
off process disappears from the windows process list, it never seems
to register as completed with the waitpid ()within Perl nor does it
decrement the parent process's thread count in the process list.

I'm aware that fork isn't fully supported really on Windows but maybe
someone's familiar with this issue or is aware of a workaround.


Thanks in advance,
Jacob.
 
Reply With Quote
 
 
 
 
Jacob JKW
Guest
Posts: n/a
 
      01-24-2008
On Jan 24, 4:23 am, Jacob JKW <jacob...@yahoo.com> wrote:
> I'm using Parallel::ForkManager to periodically run a number of tasks
> in parallel. It seems to work about 90% of the time. What I'm finding
> the remaining 10% of the time, however, is that the while the forked
> off process disappears from the windows process list, it never seems
> to register as completed with the waitpid ()within Perl nor does it
> decrement the parent process's thread count in the process list.

I described this poorly.

I should have mentioned that each forked child runs a system command
from which the standard out is being captured. These are the PIDs I'm
seeing on the process list and that are then (correctly)
disappearing. It's the child processes that call them that aren't
terminating (about 10% of the time).

It would appear that if the children don't capture any stdout the
problem I goes away -- the system commands terminate as do the child
processes that called them.

Whatever caused this problem it seems to have something to do with
multiple children all reading from the STDOUT of opened pipes. I can
only assume that this is a known issue with the Windows implementation
of fork.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
!Windows Live Mail replace Outlook Express on Windows XP and Windows Mail on Vista... Max Burke NZ Computing 8 05-18-2007 12:10 AM
Windows Vista Free! I Need to share my results I found Windows Vista for Free! I love Google Digital Photography 7 05-06-2007 02:37 PM
Vista codec packages for Vista 32 & vista 64 Kue2 Windows 64bit 0 03-05-2007 05:48 PM
Vista Home v Vista Ultimate John Computer Information 4 02-15-2007 10:02 PM
Windows Vista 64 or Windows Vista 32 for AMD 64 FX-57 =?Utf-8?B?YWRub24=?= Windows 64bit 4 02-07-2007 12:52 AM



Advertisments