Re: [HACKERS] Re: sched_yield() - Mailing list pgsql-hackers

From Tom
Subject Re: [HACKERS] Re: sched_yield()
Date
Msg-id Pine.BSF.3.95q.980321222932.12537A-100000@misery.sdf.com
Whole thread Raw
In response to Re: sched_yield()  (Mattias Kregert <matti@algonet.se>)
List pgsql-hackers
On Sun, 22 Mar 1998, Mattias Kregert wrote:

> Except from Linux, I can find references to sched_yield() in LynxOS,
> DECthreads thread library, AIX 4.1 and up (libc), Solaris (thread.h
> (c)1994 Sun
> Microsystems), Unix98, GNU, C EXECUTIVE(r) and PSX(tm) real time kernels
> ...
> This is just a quick search.

  This seems to be part of Posix threads, which means that sched_yield
should only be callable by a thread....  I'm surprised that normal
processes can call sched_yield.  In fact, in most of the environments
you've mentioned, it certainly can't be used outside a thread.

Tom


pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] Re: sched_yield()
Next
From: dg@illustra.com (David Gould)
Date:
Subject: Re: [HACKERS] patch for memory overrun on Linux(i386)