Thread.Start

  • Thread starter Thread starter JT
  • Start date Start date
J

JT

If I call Thread.Start am I guaranteed that thread will be running before the
call from Thread.Start returns?

i.e.

//Doing Something on main thread
Thread.Start(NewThreadWork);
Subscription.Create //This relies on the New Thread running

Thanks
 
I'm pretty sure the tread will be active and scheduled but it might not have
had enough processor time to have gotten any serious work done. The whole
idea is that it will be scheduled independently of your thread that started
it.
If you want to synchronise them, look at using a WaitHandle
 
Back
Top