Re: sched_yield() - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: sched_yield()
Date
Msg-id 199803220359.WAA02341@candle.pha.pa.us
Whole thread Raw
In response to Re: sched_yield()  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-hackers
>
>     You missed my point...so far as I've heard, there are two ways of
> doing what is being proposed...either using sched_yield() on those systems
> that support it, or select() on those that don't.  If you are going to
> build a patch for this, it should look something like:
>
> #ifdef HAVE_SCHED_YIELD
>     <insert sched_yield() code here>
> #else
>     <insert select() code here>
> #endif
>
>     Totally 'configure' configurable, and non-system dependent :)

Yep, I like it.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] patch for memory overrun on Linux(i386)
Next
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] Re: sched_yield()