Javatpoint Logo
Javatpoint Logo

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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA