How to stop thread till other thread is running. How can i check thread is running and stop thread in c#
+6
A:
It's not entirely clear from your question, but you may just be after Thread.Join
:
// This will block until "otherThread" has completed
otherThread.Join();
Jon Skeet
2010-03-19 11:44:24
ok, thanks its working
Lalit
2010-03-19 12:24:51