Understanding ThreadPool in C#

In this article, we will explore the topic of ThreadPool in C#, which is a powerful feature for efficient parallel programming. We will learn what ThreadPool is, why we should use it, how it works, how it compares with manual thread creation, and how to use the ThreadPool class in C#.

Throughout the article, I’ll cover examples of the Factory pattern, how to use it effectively, and common mistakes to avoid. Let’s dive in!

We are excited to announce a significant shift in our approach to software development kits (SDKs) at GitHub.

There is a new sheriff in town when it comes to the lock keyword, And that is the new System.Threading.Lock type that is introduced in .NET 9. And yes, I know - we still need time to digest the big .NET 8 release.

We are happy to announce the release of a new tool that can assist you in migrating your on-premises .NET applications to Azure.

There's a recurring theme in recent new versions of .NET and C#: do a bit of extra work early on to speed things up later. This post explains one example of this: the SearchValues<T> type that .NET 8.0 adds to the runtime libraries.

We had a ton of stuff go down in the world of C# .NET this year. The big news was all about generative AI, ChatGPT, and Copilot, but the .NET team and the community didn’t take a sabbatical. We had loads of conferences, announcements, new frameworks, and cool tools. There was a fresh C# version release, a new .NET version, and plenty more.

Summary: In this post, we’ll explore how to mix three remarkable web technologies to get a fantastic user experience with little to no effort on your part. Of course, I’m speaking about using ASP.NET Core Razor Pages, HTMX, and View Transitions to smooth the transition between pages and reduce the perceived performance of those hops between pages.

Reply

or to participate.