This is the mail archive of the
mailing list for the Cygwin project.
Re: System call which gets CPU utilized capacity
"Igor Pechtchanski" <firstname.lastname@example.org> wrote in message Pine.GSO.email@example.com">news:Pine.GSO.firstname.lastname@example.org...
> On Wed, 10 Sep 2003, Alex Vinokur wrote:
> > Is there in CYGWIN any system call which gets CPU utilized capacity at
> > the present moment?
> I assume the call is the same as in any other Unix system, since "top"
> worked for me with almost no porting about a year ago. You might want to
> take a look at the sources for the "procps" package.
But "top" and "ps" are the UNIX (CYGWIN) command line utilities.
We can't use them in C-program unless with system().
I mean platform-specific system call (as the popen() system call) which can be directly used in C-program.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html