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

From Andrew Martin
Subject Re: [HACKERS] Re: sched_yield()
Date
Msg-id 199803231032.KAA26052@bsmir06.biochem.ucl.ac.uk
Whole thread Raw
List pgsql-hackers
> Gee, I just checked and BSDI has it.  However, it appears to work only
> on threaded applications:
>
>      #include <pthread.h>
> ...
>      If other threads are ready to run, the sched_yield() function forces the
>      current thread to suspend itself temporarily and let them execute.
>
From the Irix6 man page:

     #include <sched.h>
...
     The sched_yield system call causes the calling process to relinquish the
     processor to a runnable process of higher or equal priority.

Looks like it should work here, but needs a different header file from BDSI.


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: Michael Meskes
Date:
Subject: problem with current snapshot
Next
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] urgent: pgsql 6.3 FreeBSD port update trouble, --with-tcl doesn't work