9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] sleep(), sched() and ilock()
Date: Thu,  9 Nov 2000 21:11:32 -0500	[thread overview]
Message-ID: <20001110023525.CC1E7199E4@mail.cse.psu.edu> (raw)

You never do anything that would schedule
or sleep when you hold an ilock.
Second, the ilock sets the processor splhi,
so you won't get interrupted. 

Thus iunlock always happens on the ilock
processor.

Russ



             reply	other threads:[~2000-11-10  2:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-10  2:11 Russ Cox [this message]
2000-11-10  9:17 ` Boyd Roberts
2000-09-20  5:27   ` Jakub Jermar
  -- strict thread matches above, loose matches on Subject: below --
2000-11-10 13:06 presotto
2000-09-20  9:22 ` Jakub Jermar
2000-11-09 21:15 presotto
2000-09-20  4:35 ` Jakub Jermar
2000-09-20  2:40 Jakub Jermář

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=20001110023525.CC1E7199E4@mail.cse.psu.edu \
    --to=rsc@plan9.bell-labs.com \
    --cc=9fans@cse.psu.edu \
    /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).