what is the API / function for getting the percentage of CPU utilisation by a given process?
vadan
0
Newbie Poster
Recommended Answers
Jump to PostYou could use top in Linux.
prstat in Solaris - I think this can take a pid as an argument.
ps in Linux as well. You can sort information based on columns and/or grep for a particular pid or process name.
All 3 Replies
Reply to this topic
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.