From: "Richard B. Johnson" <root@chaos.analogic.com>
To: snoopyzwe <snoopyzwe@sina.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: how to calculate the system idle time
Date: Mon, 21 Jul 2003 09:35:56 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.53.0307210935180.17719@chaos> (raw)
In-Reply-To: <3F1C570E.8080607@sina.com>
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.
next prev parent reply other threads:[~2003-07-21 13:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-21 21:11 snoopyzwe
2003-07-21 13:35 ` Richard B. Johnson [this message]
2003-07-21 21:55 ` snoopyzwe
2003-07-21 15:45 ` Lucas Correia Villa Real
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=Pine.LNX.4.53.0307210935180.17719@chaos \
--to=root@chaos.analogic.com \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®