From: "Dmitry A. Povarov" <dizzy@online.ru> To: "mandrake-russian@linuxteam.iplabs.ru" <mandrake-russian@linuxteam.iplabs.ru> Subject: Re: [mdk-re] Процессы Date: Mon Jan 29 12:42:01 2001 Message-ID: <Pine.LNX.4.21.L.0101291210030.10205-100000@varan.glas.net> (raw) In-Reply-To: <3A752742.9492D6D2@zmail.ru> On Mon, 29 Jan 2001, cornet wrote: > Hello, всем :-)) > > Вопрос из общей теории OS. > На сколько я заметил при создании нового процесса, его pid обязательно > будет больше (и как правило на 1), чем самый большой ранее использованый > номер. Это значит, что при большом uptime, может возникнуть ситуация > когда счетчик процессов зашкалит и для вновь создаваемого процесса не > будет номера или регистр завернется и pid будет равет 1 как у init. Я > понимаю, что такого на самом деле не_происходит, так как иначе бы > сервера падали как листья по осени... Выделение PID во всех unix-ах, которые мне попадались, осуществляется циклически - после использования максимального из допустимых номеров поиск _незанятых_ PID начинается с 1. Поскольку процессы иногда умирают, "зашкаливания" и переполнения таблицы процессов как правило не происходит. Впрочем, такую ситуацию нетрудно создать искусственно ;) > Может кто на пальцах обьяснит мне каков механизм разрешения подобных > ситуаций или подскажет что > почитать? man fork, man getpid... -Dizzy ------------------------------------------------------------------------- Dmitry "Dizzy" Povarov [ mailto:dizzy@online.ru ] ABS Group of Russia-On-Line ISP, [ http://dizzy.pp.ru ] Golden Telecom / TeleRoss Ltd. [ ICQ: 13146487 ] "Macavity, Macavity, there is no one like Macavity. He's broken every human law, he breaks the law of gravity..." (T.Elioth)
next prev parent reply other threads:[~2001-01-29 12:42 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-01-29 11:19 cornet 2001-01-29 12:42 ` Dmitry A. Povarov [this message] 2001-01-29 13:07 ` Dmitry S Kiselev
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=Pine.LNX.4.21.L.0101291210030.10205-100000@varan.glas.net \ --to=dizzy@online.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