Archive for February, 2004

Pumping

Monday, February 2nd, 2004

An interesting snippet from Chris’s last post: A light-weight way to pump is to call Thread.CurrentThread.Join(0).  This causes the current thread to block until the current thread dies (which isn’t going to happen) or until 0 milliseconds have elapsed – whichever happens first.  I’ll explain later why this also performs some pumping and why this […]

Another Chris Brumme volume

Monday, February 2nd, 2004

Apartments and Pumping in the CLR.  I’m pretty sure that the threading models that COM supports are one of it’s least-understood aspects, and one of my favourite aspects of .NET is that it mostly makes it go away (except when you have to interop).  It’s kind of funny, though, that VS.NET inserts a little nod […]