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

Re: one-liner hogs

by Kanji (Parson)
on Feb 01, 2001 at 03:32 UTC ( #55599=note: print w/replies, xml ) Need Help??

in reply to one-liner hogs

I was always rather fond of perl -e 'fork() while 1'.


Replies are listed 'Best First'.
Re: Re: one-liner hogs
by rlk (Pilgrim) on Feb 01, 2001 at 05:04 UTC
(jeffa) Re: Re: one-liner hogs
by jeffa (Bishop) on Feb 01, 2001 at 03:41 UTC
    I guy in my OS class ran something similar to that and logged out of the main CS server without killing it. A short time later, the whole lab wondered why they couldn't save their assignments . . .

    Needless to say he had a lot of explaining to do with the IT staff. And that was the LAST time the OS classes used the main CS server!


    (the triplet paradiddle)
Re: Re: one-liner hogs
by Cybercosis (Monk) on Feb 01, 2001 at 11:33 UTC
    Actually, there's a slight problem with the old fork() bomb: most OSes only allow so many running processes and there are a few that go so far as to limit the number of running processes an individual user can have, so you could, possibly, run out of processes before you run out of memory.
    Update: Actually, it is somewhat required for an OS to limit the number of possible processes, since you can only hold so many TSS templates to be moved into the TSS register in memory. Well, at least with i86 processors. =-)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2021-07-30 21:08 GMT
Find Nodes?
    Voting Booth?

    No recent polls found