/*看系统用几个核就跑几个可以实现一个逻辑核CPU 100%*/
#include "stdio.h"
#include "math.h"int main (int argc,char *argv[])
{
float f=0;
printf("hello! CPU stress start for one core!\n");
/*f=sqrt(10);
printf("sqrt(10)=%.2f\n",f);*/
while(1)
{
sqrt(100000000);
}
return 1;
}