Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: one-liner hogs

by Kanji (Parson)
on Feb 01, 2001 at 03:32 UTC ( [id://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'.

    --k.


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!

    Jeff

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    F--F--F--F--F--F--F--F--
    (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.
    ~Cybercosis
    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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-03-28 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found