From: Lucas Correia Villa Real <lucasvr@gobolinux.org>
To: snoopyzwe <snoopyzwe@sina.com>, root@chaos.analogic.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: how to calculate the system idle time
Date: Mon, 21 Jul 2003 12:45:34 -0300 [thread overview]
Message-ID: <200307211245.34244.lucasvr@gobolinux.org> (raw)
In-Reply-To: <3F1C613C.6070109@sina.com>
"top" is an utility that cames with the Procps package.
Lucas
On Monday 21 July 2003 18:55, snoopyzwe wrote:
> thanks for you advice
> one foolish question
> what "top" means?
> could you tell me more about how to watch the system?
> thank you very much
> I am a newbie
>
> >On Mon, 21 Jul 2003, snoopyzwe wrote:
> >>I want to implement a module, whose main task is to check the system
> >>idle time(no keyboard and mouse input) and suspend the whole system(when
> >>the idle time is long enough). But there comes the problem, how to
> >>calculate the system idle time. How can I get the time user has no
> >>operation.
> >>thanks
> >>snoopyzwe
> >
> >The the source-code of `top` and review it. Make a user-mode
> >daemon to watch the system...
> >
> >
> >Cheers,
> >Dick Johnson
> >Penguin : Linux version 2.4.20 on an i686 machine (797.90 BogoMips).
> > Note 96.31% of all statistics are fiction.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2003-07-21 15:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-21 21:11 how to calculate the system idle time snoopyzwe
2003-07-21 13:35 ` Richard B. Johnson
2003-07-21 21:55 ` snoopyzwe
2003-07-21 15:45 ` Lucas Correia Villa Real [this message]
2003-07-21 16:17 ` Mathieu Chouquet-Stringer
2003-07-21 16:48 ` Lucas Correia Villa Real
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200307211245.34244.lucasvr@gobolinux.org \
--to=lucasvr@gobolinux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=root@chaos.analogic.com \
--cc=snoopyzwe@sina.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).