What Is Multithreading?

This section describes what is multithreading - a behavior of an application program where multiple instances of codes are executed simultaneously within the application. C# supports multithreading application development.

What Is Multithreading? Multithreading is a behavior of a software application where multiple instances of codes are executed simultaneously within the application.

To understand better about multithreading, we need to know what is a thread. We also need to know what is a process. Here are some notes that will help you.

There are 3 levels of executions of computer instructions on a computer system:

Good examples of multithreading programs are computer games that simulate real time activities of multiple human characters and/or moving objects.

Under the .NET architecture, the .NET CLR (Common Language Runtime) will provide all the help you need to create and manage multiple threads in your C# applications. Read subsequent sections for tutorial examples.

Last update: 2010.

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#

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

 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