Generate high load and cpu usage for testing only

From Bitbull Wiki
Revision as of 15:35, 15 September 2017 by Chris (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

vi foo.c

#include <stdio.h> 

void main()
{
        while (1){
                fork();
                }
return 0;
}
gcc foo.c -o foo
./foo

be carefull to start the script as root, it will use as much cputime and memory as it can...
use it for testing only