menu
techminis

A naukri.com initiative

google-web-stories
source image

Dev

3d

read

343

img
dot

Image Credit: Dev

How to 100% CPU

  • If you need to create dummy CPU load on a machine, you can consider building your own CPU stress tool.
  • For basic needs, a simple one-liner in C can be used to create 100% CPU load on one or multiple cores.
  • To create 100% CPU load on one core, you can use the code: 'int main() { while (1) {} }'
  • To create 100% CPU load on multiple cores, you can use a multi-threaded approach with POSIX threads.

Read Full Article

like

20 Likes

For uninterrupted reading, download the app