Re: [HACKERS] Re: sched_yield()
Tom Samplonius <tom@sdf.com>
From: Tom <tom@sdf.com>
To: Mattias Kregert <matti@algonet.se>
Cc: The Hermit Hacker <scrappy@hub.org>, Bruce Momjian <maillist@candle.pha.pa.us>, Massimo Dal Zotto <dz@cs.unitn.it>, hackers@postgresql.org
Date: 1998-03-22T06:32:15Z
Lists: 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