From: denf@novosoft.ru
To: mandrake-russian@linuxteam.iplabs.ru
Subject: Re: [mdk-re] Процессы
Date: Mon Jan 29 11:34:49 2001
Message-ID: <OFF537AECD.C44AADBB-ONC62569E3.002F01E3@novosoft.ru> (raw)
01/29/2001 02:18:10 PM mandrake-russian-admin wrote:
>Hello, всем :-))
>
>Вопрос из общей теории OS.
>На сколько я заметил при создании нового процесса, его pid обязательно
>будет больше (и как правило на 1), чем самый большой ранее использованый
>номер. Это значит, что при большом uptime, может возникнуть ситуация
>когда счетчик процессов зашкалит и для вновь создаваемого процесса не
>будет номера или регистр завернется и pid будет равет 1 как у init. Я
>понимаю, что такого на самом деле не_происходит, так как иначе бы
>сервера падали как листья по осени...
>
>Может кто на пальцах обьяснит мне каков механизм разрешения подобных
>ситуаций или подскажет что
>почитать?
Все просто: постоянное увеличение на 1 - это самый быстрый способ
выделения свободных pid (если не поддерживать список свободных: конечно),
когда дойдет до самого большого, начнет с начала, причем, большинство из
начальных процессов уже умерли и выделение опять будет быстрым.
next reply other threads:[~2001-01-29 11:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-29 11:34 denf [this message]
2001-01-29 12:22 ` cornet
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=OFF537AECD.C44AADBB-ONC62569E3.002F01E3@novosoft.ru \
--to=denf@novosoft.ru \
--cc=mandrake-russian@linuxteam.iplabs.ru \
/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
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git