Boost logo

Boost :

From: Howard Hinnant (hinnant_at_[hidden])
Date: 2005-09-23 17:22:26


On Sep 23, 2005, at 5:54 PM, Peter Dimov wrote:

> As for yield, it's almost entirely useless.

<mischievous>
I have one admittedly contrived benchmark that was sped up by over a
factor of two by inserting yields in strategic places (but only on
multiprocessor architectures). :-) The lesson I took away from that
experience is that there are situations where cooperative multitasking
is actually superior to preemptive multitasking and yield is a good way
for preemptive multitasking to gain that advantage back.
</mischievous>

Btw, I agree 100% with you about join. I just couldn't resist the
yield comment (and kudos for inserting the "almost" in there). :-)

-Howard


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk