Thread count problem in C# multithreading

(Last Updated On: February 26, 2019)

Interview question: How many total threads are there in below C# multithreading program?

 

 

Answer: Total 3 threads are there in the above C# program.

We can see 2 child threads T1 and T2 and another 3rd thread is a main process itself because a process is also known as a thread. Hence, total thread count is 3 in the program.

NOTES:

In case, you need complete C# thread example, follow another interview questions that is how to create threads in C# .