9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] p9p threadpin() / threadunpin() ?
@ 2009-07-23  4:04 Venkatesh Srinivas
  2009-07-25  0:13 ` Russ Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Venkatesh Srinivas @ 2009-07-23  4:04 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-25  0:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-23  4:04 [9fans] p9p threadpin() / threadunpin() ? Venkatesh Srinivas
2009-07-25  0:13 ` Russ Cox

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).