Browse by Tags

Tagged Content List
  • Blog Post: CLR 4.0 ThreadPool Improvements: Part 2 (sort of...)

    It's now been more than 16 months since I promised to post about the improvements we made in the ThreadPool's concurrency control algorithm for CLR 4. Lesson: don't promise to write a series of articles unless you've got the time to do it! Luckily, Erika Fuentes, who you may recognize from our Channel...
  • Blog Post: ThreadPool on Channel 9

    Charles from Channel 9 stopped by my office a couple of weeks ago to chat with Erika Parsons and I about the ThreadPool work we're doing for .NET 4 . I learned something from this: understanding something, and explaining it in person, for the first time, in front of a camera, are two very different things...
  • Blog Post: CLR 4.0 ThreadPool Improvements: Part 1

    This is the first in a series of posts about the improvements we are making to the CLR thread pool for CLR 4.0 (which will ship with Visual Studio 2010). This post will cover changes to the queuing infrastructure in the thread pool, which aim to enable high-performance fine-grained parallelism via the...
  • Blog Post: CLR 4.0: Parallel Extensions and the CLR ThreadPool

    It's been a while since I've posted; for the past several months I've been working on deep changes in the CLR ThreadPool to support the Parallel Extensions to the .NET Framework. I hope to say a few things about the changes we're making in the CLR to support this new programming model over the coming...
  • Blog Post: Windows I/O threads vs. managed I/O threads

    A question recently came up on an internal discussion forum, which I'll paraphrase: The Windows QueueUserWorkItem API has an option to queue to an I/O thread. Why doesn't the managed ThreadPool.QueueUserWorkItem support this option? First, some background: In the Windows thread pool (the old one...
  • Blog Post: ThreadPool changes in .NET 3.5 SP1 Beta

    .NET 3.5 SP1 (A.K.A. CLR 2.0 SP2) is now available as a Beta release. This beta release has the fix for the ThreadPool ramp-up issue discussed here and here . It also has some other improvements to the ThreadPool's thread creation algorithm that can dramatically improve performance in some situations...
  • Blog Post: ThreadPool bug in CLR 2.0 SP1

    Shortly after the release of CLR 2.0 SP1 (a.k.a. Orcas or .NET 3.5), several customers noticed some very odd behavior in the ThreadPool. The ThreadPool is supposed to create threads as fast as possible, up to the current setting for MinThreads - but it turns out that if you queue workitems very quickly...
  • Blog Post: When should you call RegisteredWaitHandle.Unregister?

    The managed ThreadPool provides a way to asynchronously wait for WaitHandles, via ThreadPool.RegisterWaitForSingleObject. This method returns a new instance of RegisteredWaitHandle, which has a single method: Unregister. It's obvious from the name that this will cancel a pending wait operation. What...
Page 1 of 1 (8 items)