Red Swan
Red Swan

Reputation: 15543

stop thread till other complete

How to stop thread till other thread is running. How can i check thread is running and stop thread in c#

Upvotes: 1

Views: 254

Answers (1)

Jon Skeet
Jon Skeet

Reputation: 1503130

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();

Upvotes: 7

Related Questions