From: Dale Amon <amon@vnl.com>
To: Terje Eggestad <terje.eggestad@scali.no>
Cc: weixl@caltech.edu, mlist-linux-kernel@nntp-server.caltech.edu
Subject: Re: How can I know the number of current users in the system?
Date: Tue, 6 Nov 2001 12:03:13 +0000 [thread overview]
Message-ID: <20011106120313.F8359@vnl.com> (raw)
In-Reply-To: <3BE5BDFB.B49A8147@caltech.edu> <1005038940.2134.27.camel@pc-16.office.scali.no>
In-Reply-To: <1005038940.2134.27.camel@pc-16.office.scali.no>
On Tue, Nov 06, 2001 at 10:28:57AM +0100, Terje Eggestad wrote:
>
> My suggestion is to loop thru the processes and collect a list of all
> the userids and form a tree/list of all the processes belonging to each
> of them. Then you fair share schedule between the users.
Hmmm, you should be able to count the number of pty's and tty's.
Every logged in user is attached to some sort of getty
whose parent is the init task (1). That might be a basis for
a count.
--
------------------------------------------------------
Nuke bin Laden: Dale Amon, CEO/MD
improve the global Islandone Society
gene pool. www.islandone.org
------------------------------------------------------
next prev parent reply other threads:[~2001-11-06 12:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-04 22:15 How can I know the number of current users in the system? Wei Xiaoliang
2001-11-05 7:47 ` Riley Williams
2001-11-06 1:20 ` Chris Abbey
2001-11-06 9:28 ` Terje Eggestad
2001-11-06 12:03 ` Dale Amon [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-11-06 12:38 Nicholas Berry
[not found] <sbe793a0.090@mail-01.med.umich.edu>
2001-11-06 13:44 ` Terje Eggestad
2001-11-06 14:40 ` Richard B. Johnson
2001-11-06 14:21 Telford002
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=20011106120313.F8359@vnl.com \
--to=amon@vnl.com \
--cc=mlist-linux-kernel@nntp-server.caltech.edu \
--cc=terje.eggestad@scali.no \
--cc=weixl@caltech.edu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.