Re: memory crash

Richard B. Johnson (
Mon, 9 Dec 1996 21:29:28 -0500 (EST)

On Mon, 9 Dec 1996, sheldon newhouse wrote:

> Just for the hell of it, I decided to see what would happen if I
> overloaded my system with cpu intensive programs which would cause the
> system to run out of memory and swap. The system started thrashing, and
> ultimately required a hard boot. I don't think this is healthy. Any user
> could do this.
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

char x[2048];

Eventually the drive that contains the swap file will come on continuously
and there is too little available CPU time to kill the task .....