9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Venkatesh Srinivas <me@acm.jhu.edu>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] p9p threadpin() / threadunpin() ?
Date: Thu, 23 Jul 2009 04:04:45 +0000	[thread overview]
Message-ID: <f75780240907222104r374ae4f8of986c8f318d5533c@mail.gmail.com> (raw)

Hi,

I noticed that p9p has threadpin() and threadunpin() in its thread
library... they claim to make the current thread the only one runnable
in this proc. I'm failing to see the purpose of these... a thread is
not subject to preemptive scheduling, it can achieve the same effect
by not calling yield(), right?

Also, these two functions aren't in p9's libthread... is there any
reason why not (assuming those two have a purpose)?

Thanks,
-- vs



             reply	other threads:[~2009-07-23  4:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-23  4:04 Venkatesh Srinivas [this message]
2009-07-25  0:13 ` Russ Cox

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=f75780240907222104r374ae4f8of986c8f318d5533c@mail.gmail.com \
    --to=me@acm.jhu.edu \
    --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).