System call which gets CPU utilized capacity

Alex Vinokur alexvn@connect.to
Wed Sep 10 08:27:00 GMT 2003


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
}
else
{
 foo2();
}
--
 =====================================
 Alex Vinokur
 mailto:alexvn@connect.to
 http://mathforum.org/library/view/10978.html
 =====================================
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /