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. =-)