what is the API / function for getting the percentage of CPU utilisation by a given process?

Recommended Answers

All 3 Replies

You 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.

Powerful AMV Converterto transform the video files into AMV file format which can be played by MP4/MP3 Players.
As an excellent video to AMV converter,AMV Converter is designed to help you converter video files like AVI,FLV,
MPEG,WMV,MP4 to AMV/MTV converting,so it will be playable on your portable device.

You could also take a look at htop, a friendlier version of top

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.