lkml.org 
[lkml]   [1996]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: memory crash

That not a very "efficiant" program anyways :)

the more "fun" version of this program

main ()
{
while (fork())
fork(4096);
}

Ohhh thats so bad..

///////////////////////////////////////////////////////////\\\\\\\\\\\\\\\\\\\
Jon Torrez | http://127.0.0.1 | come on and visiteh?
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\///////////////////

On Wed, 11 Dec 1996, Alan Cox wrote:

>
> > I don't think you have to go to all that trouble. The following code
> > will hang my system AND a Sun witb SinOs 4.3
> >
> > main()
> > {
> > char x[2048];
> > main();
> > }
> >
> > Eventually the drive that contains the swap file will come on continuously
> > and there is too little available CPU time to kill the task .....
>
> You should have resource limits set to stop your users doing this if it
> worries you.
>
> Alan
>
>


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.431 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site