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:[EMAIL PROTECTED]
     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/

Reply via email to