From: snoopyzwe <snoopyzwe@sina.com>
To: root@chaos.analogic.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: how to calculate the system idle time
Date: Mon, 21 Jul 2003 21:55:08 +0000 [thread overview]
Message-ID: <3F1C613C.6070109@sina.com> (raw)
In-Reply-To: <Pine.LNX.4.53.0307210935180.17719@chaos>
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.
>
>
>
>
>
>
next prev parent reply other threads:[~2003-07-21 13:27 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 [this message]
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=3F1C613C.6070109@sina.com \
--to=snoopyzwe@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=root@chaos.analogic.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