Just for the fun I made a little programme to display the activity of my cpu on ubuntu. My program read and parse the /proc/cpuinfo file, and it works.
But there is the deal, I display the data and next to it I opened htop and the cpu usage is a little bit different. After some test with infinit loop I found that htop said that only one core is at 100% (seem logic) but cpuinfo said that all my 8 cores are at 100%. Is there any explanation why there is thoses differences ?
My pc run with an intel i7 10510U, on unbutu 18.04.
Thanks.