Tag Archive: multithreading
Before proceeding, I am going to state that I will talk about multi-threading with a user interface in a different blog. It warrants its own post, so here we will focus on pure threading concepts. At some point in your…
Read more
I have always been pretty articulate and careful when writing multi-threading code, but today I wrote my first deadlock that had me baffled for a few minutes. I’m working on a licensing dll that handles a lot of processing, and…
Read more
I’m going to cover a easy example on the new asynchronous programming model in C# 5 and .NET 4.5 with the recent release of Visual Studio 11. The example we will be writing is a small WinForm that will calculate…
Read more
If you are still using .NET threads to do multi-threading in your applications (compared to the Task Parallel Library or something else), then it is often a mistake of developers on how they update their UI thread. First off, stay…
Read more
Download Example Code TasksWithThreadSafeEvents.zip In this article we will be using the following technologies: .NET 4.0 Windows Forms (WinForms) Task Parallel Library (TPL, part of .NET 4.0) In a nutshell, I am talking about writing thread-safe events for WinForms. I’ve…
Read more