On Wed, Apr 28, 2010 at 9:21 PM, Jamie Lokier <jamie@shareable.org> wrote:
Oh, the lines above are the current ones. So the assumptions applies
and works here.
The users should not make any assumption about the waking up sequence,
neither LIFO nor FIFO.
Yea, and my following patches are for socket waiters.
I didn't do any test yet. But some work done by LSE project years ago
showed that it is better.
http://lse.sourceforge.net/io/aionotes.txt
" Also in view of
better cache utilization the wake queue mechanism is LIFO by default.
(A new exclusive LIFO wakeup option has been introduced for this purpose)"
--
Regards,
Changli Gao(xiaosuo@gmail.com)
--