Threads in C# Overview

Threads in C# Overview. Thread Basics (101)
. Thread Class
. Thread Synchronization
- Interlocked
- Lock
- Monitor
- Mutex

Thread Basics
1. Define a method (return type void)
2. Create a delegate instance
3. Create a thread instance
4. Call the start method

Interlocked
. 4 atomic operations
- CompareExchange
- Decrement
- Exchange
- Increment
. Protects against errors that can occur when the scheduler switches threads

Website: www.cs.usask.ca | Filesize: 31kb
No of Page(s): 7
Click here to download Threads in C# Overview.

Related Tutorial

Tags: , , , , ,

Comments

Leave a Reply