[oclug] Posix Scheduler Locking
dan.cardamore at officeserver.ca
Tue Jun 3 11:24:00 EDT 2003
On Tue, Jun 03, 2003 at 03:55:09PM +0100, Matthew Wilcox wrote:
> On Tue, Jun 03, 2003 at 10:41:39AM -0400, Dan Cardamore wrote:
> > I'm porting an application, and the new version will be using POSIX
> > threads. A process will have its own scheduler and threads and I need
> > to give threads the ability to stop the scheduler so that they can
> > execute atomically.
> > Is this possible with pthreads? Does anyone know the function call to
> > disable the scheduler?
> You sound confused. While POSIX allows for a N:1 or N:M model with a
> userspace scheduler it does not require it. Linux (both linuxthreads
> and NPTL) implements pthreads in the 1:1 model. So you're asking to
> disable the kernel's scheduler. Can't be done (for obvious reasons..).
Not using Linux. I'm only asking here because this is a technical
group. I'm using QNX, I'll find a discussion group with more relevant
Dan Cardamore dan.cardamore at officeserver.ca
Cell: (613)355-8048 http://www.officeserver.ca
More information about the OCLUG