
23 Sep
2005
23 Sep
'05
10:22 p.m.
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