This is the mail archive of the
mailing list for the Cygwin project.
System call which gets CPU utilized capacity
- From: "Alex Vinokur" <alexvn at connect dot to>
- To: cygwin at cygwin dot com
- Date: Wed, 10 Sep 2003 11:26:51 +0300
- Subject: System call which gets CPU utilized capacity
Is there in CYGWIN any system call which gets CPU utilized capacity at the present moment?
For instance :
int get_cpu_usage() which returns the percentage of used capacity.
I would like to write in my C-program something like :
if (get_cpu_usage() < 20)
foo1(); // calling foo1() will be postponed
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html