Threading

Facebook Twitter
concurrency

One of the greatest understatements I've heard in a newsgroup was made by Patricia Shanahan, in a Java newsgroup in 2001: "Multi-threaded programming needs a little care." Multi-threading is probably one of the worst understood aspects of programming, and these days almost all application programmers need to understand it to some extent. This article acts as an introduction to multi-threading and gives some hints and tips for how to do it safely. Warning: I'm not an expert on the subject, and when the real experts start discussing it in detail, my head starts to spin somewhat. Multi-threading in .NET: Introduction and suggestions Multi-threading in .NET: Introduction and suggestions
Deadlock Detection in Existing Code. Free source code and progra Introduction Deadlocks are common problems in multi-threaded programming. When it comes to multithreading development, the most common problem developers are facing is critical sections. It is not uncommon to use more than a single lock, but if one does not pay attention to the order of the locks, or to the context in which they are being called (e.g., from within a callback), deadlocks will form. (There are many reasons for deadlocks to occur other than the obvious critical section, e.g., two threads that are waiting for each other to signal an event, but we will not discuss them here). Deadlock Detection in Existing Code. Free source code and progra
Thread synchronization: Wait and Pulse demystified. Free source Table of Contents Introduction This short article is about the three less well understood methods of the Monitor class: Wait, Pulse, and PulseAll. Thread synchronization: Wait and Pulse demystified. Free source
Concurrent Affairs: More AsyncEnumerator Features
I have written earlier (here and here) about Threads. I thought it would be a good idea to list some of the 'best practices' that I have learnt to follow ... In general, one should use threads for long-running tasks. For example ... ThreadStart job = new ThreadStart(ThreadJob); Thread thread = new Thread(job); thread.Start(); static void ThreadJob() { // do something in here... } 5pm Posts: .Net Threads - 10 Best Practices 5pm Posts: .Net Threads - 10 Best Practices
Quantum Bit Designs » Blog Archive » Stop Polluting the UI Threa Quantum Bit Designs » Blog Archive » Stop Polluting the UI Threa Quantum Bit Designs Multithreading, WPF, .NET and Software Designs Article List 2008/07/04 – A Thread-Safe IDisposable Base Class 2008/06/24 – DelegateMarshaler – Replace Control.InvokeRequired and Control.Invoke 2008/06/18 – Simplifying UI and Worker Threads – DelegateMarshaler Revisited 2008/06/17 – Events and Threads 2008/06/10 – Stop Polluting the UI Thread – Use a DelegateMarshaler 2008/05/28 – Bloglist 2008/05/22 – Programmatically Selecting an Item in a TreeView 2008/04/15 – QbDirectoryViz 2008/04/05 – QbColorViz 2008/03/30 – Simple WPF Progress Window with Cancelation 2008/02/10 – Subtle Multithreading Bugs – Part 1 2008/01/20 – WPF Application Design and Architecture 2008/01/06 – WPF Cross-Thread Collection Binding – Part 4 – The Grand Solution 2008/01/05 – WPF Cross-Thread Collection Binding – Part 3 – Working Property Change Events 2008/01/05 – WPF Cross-Thread Collection Binding – Part 2 – Property Change Events 2008/01/01 – WPF Cross-Thread Collection Binding – Part 1
Download source code - 1.08 KB Introduction There are a few problems I've come across where synchronizing a particular "name" might be useful. One of the apps I work on makes heavy use of Lucene.NET; each page shows the results of a couple of queries. A basic NamedLock class. Free source code and programming help A basic NamedLock class. Free source code and programming help
NParallel, A Small Parallel Execution Library - The Code Project Download NParallel2005.zip - 59.4 KB Download NParallel2008.zip - 46.8 KB Download NParallel.0.2.vs2008.12.19.zip - 209 KB NParallel, A Small Parallel Execution Library - The Code Project
Bounded Blocking Queue (One Lock) - The Code Project - C# Progra Download source files - 5.99 Kb Introduction This article includes a C# implementation of a Bound Blocking Queue (i.e. Bounded Blocking Queue (One Lock) - The Code Project - C# Progra
Threading in C# - Free E-book

Threading in C# - Free E-book

Threading in C# Joseph Albahari Last updated: 2011-4-27 Translations: Chinese | Czech | Persian | Russian | Japanese Download PDF Part 1: Getting Started