Interviews1 answer
Does anyone know the difference, in practical terms, between Difference between Thread.Sleep (10000) and Thread.CurrentThread.Join (10000)?
Posted May 4, 2015, 10:07 PM EDT.NET
1 Answer
Thread.Sleep() in theory should no stop your application from responding to
other Threads, i.e. the main one. Where as Thread.Join().
Thread.Join() will ensure that a thread has terminated, in theory, blocking
the call thread indefinatly, until the calling thread terminates.
Posted May 4, 2015, 10:07 PM EDT