Re: sched_yield()
Bruce Momjian <maillist@candle.pha.pa.us>
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: scrappy@hub.org (The Hermit Hacker)
Cc: matti@algonet.se, dz@cs.unitn.it, hackers@postgreSQL.org
Date: 1998-03-22T03:59:03Z
Lists: 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)