Contents tagged with Threading
-
Getting Current Native Thread
The native OS threads running in the current process are exposed through the Threads property of the Process class. Please note that this is not the same as a managed thread, these are the actual native threads running on the operating system.
-
Thread Synchronization in .NET
This comes after my last post Multi-threading in .NET. There are several synchronization mechanisms you can use in your .NET applications, so choosing among them must be done wisely.
-
Multi-threading in .NET
In .NET 2.0+, if you want to have something run on another thread, you have a number of choices:
-
The lock Statement
Experienced multithreading developers may have wondered what is the relation between the lock keyword and the System.Threading.Monitor class. Well, as it happens, they are exactly the same: