LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-17-2005, 10:41 PM   #1
theog
LQ Newbie
 
Registered: Mar 2005
Posts: 1

Rep: Reputation: 0
Question getting total cpu utilization using c


Hi,
Looking for a c routine that gets the total cpu utilization. I suspect you would include kernal_stat.h, however I just need some sample source code to understand how this is done.
 
Old 03-17-2005, 11:12 PM   #2
maxfacta
Member
 
Registered: Aug 2004
Location: Perth, Australia
Distribution: Debian @ home + work :)
Posts: 66

Rep: Reputation: 22
Maybe, take a look at the source for ps or top.
 
Old 03-19-2005, 04:41 PM   #3
emathias
LQ Newbie
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 24

Rep: Reputation: 15
Hi, a friend of mine made a library to get nearly all of the informations about the state of your computer.

Although the documentation is in portuguese it simple to use
You can get it and see some examples on the address

http://www-usr.inf.ufsm.br/~veiga/liblproc/
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
per process Cpu utilization kunal_patel22 Linux - Software 4 12-04-2007 05:14 PM
cpu and memory utilization laxmi_cs Linux - General 2 08-29-2005 04:06 PM
per process cpu utilization kunal_patel22 Linux - Software 1 05-19-2005 10:26 AM
100 % CPU utilization Ganesh Kamat Linux - General 14 04-18-2003 01:34 PM
can I limit CPU utilization per user? adenardo Linux - General 2 11-13-2001 11:42 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration