How do you determine if child threads have completed

.net, c#, multithreading

Solution

You can use Process.GetCurrentProcess().Threads.Count.

Problem

I am using multiple threads in my application using while(true) loop and now i want to exit from loop when all the active threads complete their work.

Original source

Related problems