Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Mar 2006 11:18:08 +0000
From:      Poul-Henning Kamp <phk@phk.freebsd.dk>
To:        arch@freebsd.org
Subject:   wakeup idea...
Message-ID:  <35339.1141557488@critter.freebsd.dk>

next in thread | raw e-mail | index | archive | help

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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35339.1141557488>