Home » C# Thread Name

C# Thread Name

by Online Tutorials Library

C# Threading Example: Naming Thread

You can change or get the name of the thread by using Name property of Thread class. Let’s see an example where we are setting and getting names of the threads.

Output:

Player1 is running Player2 is running Player3 is running 
Next TopicC# ThreadPriority

You may also like