Description: This program monitors CPU usage by reading and parsing data from the /proc/stat file on Linux…