From: <mchu@mirapoint.com>
To: <linux-kernel@vger.kernel.org>
Subject: Cheap lock for user mode processes release when process exits
Date: Fri, 13 Apr 2007 01:54:28 +0000 (GMT) [thread overview]
Message-ID: <20070413015428.AMJ80009@dougfood.mirapoint.com> (raw)
Hi all,
Maybe someone here knows better.
I have several user-mode processes using shared mmap. There can be several reader processes and only one writer. Readers access the shared region frequently, writer seldom.
Naturally, multi-reader/single-writer locks works best. I tried this with futex on 2.6.9-42.EL. However, if one of the processes is killed/exits, the lock doesn't get released.
I can trap the signal to release the lock, but not all signals like kill.
Anyway I can achieve this without a potential deadlock?
Thanks,
Michael
next reply other threads:[~2007-04-13 1:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-13 1:54 mchu [this message]
2007-04-13 2:43 ` Andrew Morton
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=20070413015428.AMJ80009@dougfood.mirapoint.com \
--to=mchu@mirapoint.com \
--cc=linux-kernel@vger.kernel.org \
/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®