9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: cinap_lenrek@felloff.net
To: 9fans@9fans.net
Subject: Re: [9fans] What happened on lib9p?
Date: Mon, 21 Apr 2014 15:50:41 +0200	[thread overview]
Message-ID: <bf2080761459a6bdf03cef9bdc3d129e@felloff.net> (raw)
In-Reply-To: <81d85b5f6bf4ad23652d7205c401c92d@jitaku.localdomain>

no, it is not. in the kernel, you can only have
one process doing a sleep on a rendezvous point
at a time.

so when you have multiple waiter processes, you
put a qlock arround the sleep so the first process
goes into the sleep and follow up processes
will get queued on the qlock.

the problem with this construct is that only
the first process thats in the sleep can be
interrupted / killed. the processes queued
in the qlock are uninterruptable / unkillable
as long as they wait for the qlock to be
available.

the eqlock() is a interruptable version of
the qlock() call. that is, it can error out
when the process receives a note.

--
cinap



  reply	other threads:[~2014-04-21 13:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-20  9:45 kokamoto
2014-04-20 11:31 ` erik quanstrom
2014-04-20 15:27   ` cinap_lenrek
2014-04-20 15:38     ` erik quanstrom
2014-04-21  8:19     ` kokamoto
2014-04-21 13:50       ` cinap_lenrek [this message]
2014-04-22  1:46         ` kokamoto
2014-04-22 11:37           ` Aram Hăvărneanu
2014-04-24  1:28             ` kokamoto
2014-04-24  9:14               ` Aram Hăvărneanu
2014-05-05  5:34           ` kokamoto
2014-05-05  6:06             ` Skip Tavakkolian

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=bf2080761459a6bdf03cef9bdc3d129e@felloff.net \
    --to=cinap_lenrek@felloff.net \
    --cc=9fans@9fans.net \
    /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;
as well as URLs for NNTP newsgroup(s).