The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Wei Xiaoliang <weixl@caltech.edu>
To: mlist-linux-kernel@nntp-server.caltech.edu
Subject: How can I know the number of current users in the system?
Date: Sun, 04 Nov 2001 22:15:23 +0000	[thread overview]
Message-ID: <3BE5BDFB.B49A8147@caltech.edu> (raw)

Hi every one,
    I have a problem not clear: Is there any counter for the user number
in linux?
I want to do anexperiment which will get the number of current user in
the system and try fair-share scheduling based on it. I read the sys.c
and user.c but cannot find a counter for it. Is there any counter for
this things?

    If no, where can I put the inc instruct and dec instruct  or the
counter? in the uid_hash_insert and uid_hash_remove?
    Thank you!
-----------------------------------------------------------------------
Xiaoliang (David) Wei                    Graduate Student in CS, Caltech
E-mail: weixl@caltech.edu                Office: 158 Jorgensen
Phone: 1-(626)-395-3555 (O)        1-(626)-577-5238 (H)
Mail:     Xiaoliang Wei, 256-80 Caltech, Pasadena, CA 91125, U.S.A.
WWW: http://www.cs.caltech.edu/~weixl    http://166.111.69.241/~wxl
-----------------------------------------------------------------------

             reply	other threads:[~2001-11-05  6:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-04 22:15 Wei Xiaoliang [this message]
2001-11-05  7:47 ` How can I know the number of current users in the system? Riley Williams
2001-11-06  1:20   ` Chris Abbey
2001-11-06  9:28 ` Terje Eggestad
2001-11-06 12:03   ` Dale Amon
  -- 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=3BE5BDFB.B49A8147@caltech.edu \
    --to=weixl@caltech.edu \
    --cc=mlist-linux-kernel@nntp-server.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox