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

From Andrew Martin
Subject Re: [HACKERS] Re: sched_yield()
Date
Msg-id 199803231023.KAA26017@bsmir06.biochem.ucl.ac.uk
Whole thread Raw
List pgsql-hackers
> But sched_yield() is not Linux-specific:
> -- The sched_yield() function relinquishes the processor for the
> -- running process.
> -- IEEE Std 1003.1b-1993, '13.3.5. (POSIX real-time standard 1003.lb)
>
> 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.
>
> Perhaps we should enable sched_yield() for every OS except for... well,
> what's the
> name of that OS which does not have sched_yield()...  FreeBSD ;)
>
> After all, sched_yield() is five years old. Any reasonable OS should
> have it.

It appears from man pages on our Irix system that Irix6 has it but Irix5
does not.

Andrew

----------------------------------------------------------------------------
Dr. Andrew C.R. Martin                             University College London
EMAIL: (Work) martin@biochem.ucl.ac.uk    (Home) andrew@stagleys.demon.co.uk
URL:   http://www.biochem.ucl.ac.uk/~martin
Tel:   (Work) +44(0)171 419 3890                    (Home) +44(0)1372 275775

pgsql-hackers by date:

Previous
From: Zeugswetter Andreas
Date:
Subject: AW: [HACKERS] patch for memory overrun on Linux(i386)
Next
From: Michael Meskes
Date:
Subject: problem with current snapshot