OS: Linux fedora 5.15.16-100.fc34.x86_64 #1 SMP , running on virtualbox with 2 CPUs
htop version : 3.2
I have a simple program:
#include<stdio.h>
int globalv;
void dosth()
{
globalv++;
}
int main()
{
globalv = 0;
for(;;)
dosth();
return 0;
}
When I run it, it definitely consume one core , but why htop show 200% usage ?

OS: Linux fedora 5.15.16-100.fc34.x86_64 #1 SMP , running on virtualbox with 2 CPUs
htop version : 3.2
I have a simple program:
When I run it, it definitely consume one core , but why htop show 200% usage ?