Skip to content

joeangel/light-cpu-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Control CPU loading to 1~2%

This project simulates controlled CPU usage for testing and benchmarking purposes, allowing fine-tuning of resource consumption.

Get Started

shell script version

bash main.sh

C++ version

sudo apt install make g++
make
./main

Adjusting CPU Usage

To fine-tune the CPU usage, modify the BUSY_TIME and IDLE_TIME variables in the source code to adjust the balance between active and idle periods.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published