Simple C app using 50% cpu

后端 未结 6 1666
不思量自难忘°
不思量自难忘° 2021-01-25 03:31

I have a simple C app that uses constant 50%. I don\'t know why but I like to minimize it as much as possible.

#include 
#include          


        
6条回答
  •  孤街浪徒
    2021-01-25 03:40

    Use some built-in sleep function, that does not use processor cycles to "wait", like sleep from unistd.h.

提交回复
热议问题