Related questions
C# version of java's synchronized keyword?
Does c# have its own version of the java "synchronized" keyword?
I.e. in java it can be specified either to a function, an object or a block of code, like so:
public synchronized void doImportantStuff() {
// dangerous code goes here.
}
…
How to use the CancellationToken property?
Compared to the preceding code for class RulyCanceler, I wanted to run code using CancellationTokenSource.
How do I use it as mentioned in Cancellation Tokens, i.e. without throwing/catching an exception? Can I use the IsCancellationRequested property?
I attempted …
Monitor vs Mutex in c#
Possible Duplicate:
What are the differences between various threading synchronization options in C#?
What is the difference between a Monitor and a Mutex in C#?
When to use a Monitor and when to use a Mutex in C#?