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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top