How do I check CPU usage?

Lâm Phung

New member
How do I check CPU usage?
Answer
To get CPU usage, periodically sample the total process time, and find the difference. You
subtract the kernel times (for a difference of 0.03 ) and the user times ( 0.61 ), add them together ( 0.64 ), and divide by the sample time of 2 seconds ( 0.32 ).
 

Tìm kiếm

Back
Top