Back to course

Working with Threads

C# Zero to Hero: Comprehensive Programming Masterclass

Multi-Threading

A thread is the smallest unit of execution. Multi-threading allows your app to do multiple things at once.

Example

csharp Thread t = new Thread(() => Console.WriteLine("Running in thread")); t.Start();

While powerful, threads are complex to manage. Usually, Task is preferred for modern development.