Hi


How to get cpu utilization of particular process without using top command. I want programmatically C or C++.Top command source is large.I can't analyze where %cpu usage got.
Anyone help me...........

Recommended Answers

All 3 Replies

GetProcessTimes(), GetThreadTimes(), GetSystemTimes()

GetProcessTimes(), GetThreadTimes(), GetSystemTimes()

Hi,


I am using ubuntu linux.

GetProcessTimes(), GetThreadTimes(), GetSystemTimes() are windows API

Hi,


I am using ubuntu linux.

GetProcessTimes(), GetThreadTimes(), GetSystemTimes() are windows API

So, install Windows Vista :) (I really have no clue, just wanted to post a smartass remark)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.