Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: strange behaviour when forking lots of times

by spiritway (Vicar)
on May 16, 2006 at 04:23 UTC ( #549660=note: print w/replies, xml ) Need Help??


in reply to strange behaviour when forking lots of times

It looks like you're running into some sort of resource limit and getting strange results. The perlfork doc says:

In the eyes of the operating system, pseudo-processes created via the fork() emulation are simply threads in the same process. This means that any process-level limits imposed by the operating system apply to all pseudo-processes taken together. This includes any limits imposed by the operating system on the number of open file, directory and socket handles, limits on disk space usage, limits on memory size, limits on CPU utilization etc.

  • Comment on Re: strange behaviour when forking lots of times

Replies are listed 'Best First'.
Re^2: strange behaviour when forking lots of times
by cool (Scribe) on May 16, 2006 at 18:18 UTC
    When I run
    perl -e 'fork || print for split (//, "a" x 10);'
    I get only 'a's not a single 1. Its Fedora core-3 with v5.8.5 of Perl
Re^2: strange behaviour when forking lots of times
by nothingmuch (Priest) on May 21, 2006 at 02:07 UTC

    It's important to note that perlfork discusses fork emulation, which is only relevant on Windows.

    -nuffin
    zz zZ Z Z #!perl

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2019-11-22 12:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (111 votes). Check out past polls.

    Notices?