wakeup idea...

Poul-Henning Kamp phk at phk.freebsd.dk
Sun Mar 5 03:18:11 PST 2006


Here is a possibly stupid idea.

Historically sleep/wakeup have happened on a pointer which was just
a magic number.

In many cases, this pointer is actually a relevant datastructure.

Would it possibly be an optimization to make a variant of the
sleep/wakeup calls where the pointer points to an integer type which
contains non-zero if anybody is actually sleeping on that address ?

Anybody up for a quick prototype ?

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-arch mailing list