Tag: ps command

Why CPU stats between ps and top Command are Different

ความแตกต่างของการใช้ command ps กับ top ในการดู CPU stat อยู่ตรงที่ คำสั่ง ps จะใช้วิธีการคำนวน cpu utilization ด้วย total CPU time หารด้วยเวลาที่ task ทำงาน คำสั่ง top จะแสดงค่าในรูปแบบ percent ของค่า overall CPU time การคิดค่า…