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




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA