From: Studierende der Universitaet des Saarlandes <masp0008@stud.uni-sb.de>
To: f.v.heusden@ftr.nl
Cc: linux-kernel@vger.kernel.org
Subject: RE: random PIDs
Date: Thu, 05 Apr 2001 09:06:20 +0000 [thread overview]
Message-ID: <3ACC358C.E86D9478@stud.uni-saarland.de> (raw)
> Finished & tested my random PID kernel/fork.c:get_pid() replacement.
> > This one keeps track of the last N (default is 64) pids who have exited.
> > These are then not used. So, one cannot have more then 32767 - (64 + 1
> > (init) + 1 (idle)) = 32761 processes :o)
> DW> Huh, should be 32701, right?!
>
> You're absolutely right. It must've been the victory trance :o)
>
Have you actually tried to create lots of threads?
IIRC get_pid will loop forever if it doesn't find a free pid, and in the
worst case you can trigger that with ~11000 running threads.
And the current code can create multiple threads with the same pid (I
never tried to trigger that bug, but it seems to be possible)
--
Manfred
next reply other threads:[~2001-04-05 9:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-05 9:06 Studierende der Universitaet des Saarlandes [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-04-05 9:58 Studierende der Universitaet des Saarlandes
2001-04-05 9:46 alad
2001-04-05 9:15 Heusden, Folkert van
2001-04-04 14:53 Heusden, Folkert van
2001-04-04 14:17 Heusden, Folkert van
2001-04-04 14:24 ` David Weinehall
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=3ACC358C.E86D9478@stud.uni-saarland.de \
--to=masp0008@stud.uni-sb.de \
--cc=f.v.heusden@ftr.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=manfred@colorfullife.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®