Re: System call which gets CPU utilized capacity

2003-09-14 Thread Alex Vinokur
"Cliff Hones" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Alex Vinokur wrote: > > http://www.cygwin.com/packages/procps/procps-010801-1-src > > contains _list_ of procps' sources (including top.c and top.h) : > > Sun Jan 14 10:40:14 2001 45360 procps-010801/top.c > > Sun

Re: System call which gets CPU utilized capacity

2003-09-11 Thread Cliff Hones
Alex Vinokur wrote: > http://www.cygwin.com/packages/procps/procps-010801-1-src > contains _list_ of procps' sources (including top.c and top.h) : > Sun Jan 14 10:40:14 2001 45360 procps-010801/top.c > Sun Jan 14 10:41:29 2001 7242 procps-010801/top.h > > Where can one get the s

Re: System call which gets CPU utilized capacity

2003-09-11 Thread Alex Vinokur
"Cliff Hones" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Alex Vinokur wrote > > "Igor Pechtchanski" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > On Wed, 10 Sep 2003, Alex Vinokur wrote: > >

Re: System call which gets CPU utilized capacity

2003-09-11 Thread Cliff Hones
Alex Vinokur wrote > "Igor Pechtchanski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On Wed, 10 Sep 2003, Alex Vinokur wrote: > > > > > Is there in CYGWIN any system call which gets CPU utilized capacity at > > > the present

Re: System call which gets CPU utilized capacity

2003-09-10 Thread Alex Vinokur
"Igor Pechtchanski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, 10 Sep 2003, Alex Vinokur wrote: > > > Is there in CYGWIN any system call which gets CPU utilized capacity at > > the present moment? > [snip] > I assume the call

Re: System call which gets CPU utilized capacity

2003-09-10 Thread Igor Pechtchanski
On Wed, 10 Sep 2003, Alex Vinokur wrote: > 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 somet

System call which gets CPU utilized capacity

2003-09-10 Thread Alex Vinokur
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