Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Proposal how to make modules using fork more portable

by Anonymous Monk
on Apr 01, 2011 at 08:51 UTC ( [id://896813]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    On some platforms such as Windows, where the fork() system call is not
    + available,
    Perl can be built to emulate fork() in the Perl interpreter. The emula
    +tion is designed to,
    at the level of the Perl program, be as compatible as possible with th
    +e "Unix" fork().
    However it has limitation that has to be considered in code intended t
    +o be portable.
    See L<perlfork> for more details.
    
  2. or download this
    On some platforms such as Windows where the fork() system call is not 
    +available.
    Perl can be built to emulate fork() at the interpreter level.
    This emulation has limitation related to kill that has to be considere
    +d,
    for code running on Windows and in code intended to be portable.
    See L<perlfork> for more details.
    
  3. or download this
    The process which implements the pseudo-processes can be blocked and t
    +he Perl interpreter
    hangs.
    
  4. or download this
    =head1 PORTABLE PERL CODE
    
    ...
    The outcome of kill on a pseudo-process is unpredictable.
    It depends on the timing in the Windows operating system.
    Code that has worked, suddenly can fail, resulting in errors which are
    + difficult to find.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://896813]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-03-28 20:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found