首页 > 编程知识 正文

查看linuxcpu,linuxcpu查看命令

时间:2023-05-03 06:33:33 阅读:278430 作者:2868


 /*看系统用几个核就跑几个可以实现一个逻辑核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)=%.2fn",f);*/


        while(1)
        {
                sqrt(100000000);
        }
        return 1;
}飞艇稳赚不赔的打法r> }

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。