This project simulates controlled CPU usage for testing and benchmarking purposes, allowing fine-tuning of resource consumption.
bash main.shsudo apt install make g++
make
./mainTo 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.