Thu, 24 May 2007, by [EMAIL PROTECTED]:
> Hi,
>
> I am looking for an app that makes my CPU as hot as can be.
Download and burn UBCD.
That has a good collection of tests for (almost) every piece of
hardware you can think of.
In the mean time, here's something that keeps the CPU busy for a
bit:
/*
* load50.c -- a simple busy-looping tool.
*
* Obviously, this runs with any kernel and any Unix
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char **argv)
{
int i, load=50;
if (argc==2) {
load=atoi(argv[1]);
}
printf("Bringing load to %i\n",load);
for (i=0; i<load; i++)
if (fork()==0)
break;
while(1)
;
return 0;
}
I picked it up on news many moons ago, don't remember the author.
Theo
--
Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org
ICBM 52 13 26N , 4 29 47E. + ICQ: 277217131
SUSE 10.2 + Jabber: [EMAIL PROTECTED]
Kernel 2.6.18 + See headers for PGP/GPG info.
Claimer: any email I receive will become my property. Disclaimers do not apply.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]