Multithreading in C#

This chapter provides tutorial examples and notes on multithreading in C# programs. Topics include multithreading introduction; .NET System.Threading.Thread class; multiple threads on multi-CPU systems.

What Is Multithreading?

System.Threading.Thread Class

Creating and Running Threads

Threads to Run Instance Methods

Performance Impact with Multiple Threads

Multi-Thread Programs on Multi-CPU Systems

Maximum Number of Threads in a Program

Conclusions:

Table of Contents

 About This Book

 Introduction of C# (C Sharp)

 Data Type and Variables

 Logical Expressions and Conditional Statements

 Arrays and Loop Statements

 Data Type Features

 Floating-Point Data Types

 Passing Parameters to Methods

 Execution Environment Class

 Visual C# 2010 Express Edition

 Class Features

 C# Compiler and Intermediate Language

 Compiling C# Source Code Files

 MSBuild - Microsoft Build Engine

 Memory Usages of Processes

Multithreading in C#

 Async Feature from C# 5

 System.IO.FileInfo Class

 System.Diagnostics.FileVersionInfo Class

 WPF - Windows Presentation Foundation

 Partial Classes and Partial Methods

 Outdated Tutorials

 References

 PDF Printing Version