Hi,

I have a cyclic program which awakes every 1 ms and runs for 200 us. 'htop' does not measure the system load caused by this program correctly, I found the explanation for this in Documentation/cpu-load.txt.
But in the process list, 'htop' shows correctly 20% for the program, so it seems /proc/[pid]/stat measures cyclic programs correctly. Why doesn't /proc/stat use the same exact method for measuring?

Best regards,
Josef