ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: AD <adq1@mail.ru>
To: community@altlinux.ru
Subject: Re[2]: [Comm] Как работает fork()?
Date: Thu, 26 Aug 2004 13:48:15 +0400
Message-ID: <E1C0Grf-000KGU-00.adq1-mail-ru@f12.mail.ru> (raw)
In-Reply-To: <1903066787.20040826151735@ngs.ru>

Здравствуйте!
  
> A> Поясните как работает fork().
> 
>     Надеюсь, что следующая статья поможет вам разобраться как работает
>     fork(): http://www.linuxfocus.org/Russian/November2002/article272.shtml
>     

Спасибо за ссылку, но меня интересуют нюансы связанные с разделением ресурсов.
Есть какой-то ресурс (захваченный мьютекс, файл открытый для эксклюзивного использования и т.п.) который может принадлежать одному и только одному процессу или, в отдельных случаях, потоку. Что происходит с этим ресурсом при клонировании (в общем случае) процесса? (Я имею ввиду именно вызов fork, а не clone).
Есть общая политика в *nix системах? Или все зависит от особенностей реализации fork в различных ядрах?


-- 
AD



  reply	other threads:[~2004-08-26  9:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-25  9:11 AD
2004-08-25 10:20 ` Макс
2004-08-26  8:17 ` php-coder
2004-08-26  9:48   ` AD [this message]
2004-08-27  7:57 ` Anton V. Boyarshinov

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=E1C0Grf-000KGU-00.adq1-mail-ru@f12.mail.ru \
    --to=adq1@mail.ru \
    --cc=community@altlinux.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