SIlverlight 4RC threading - can a new Thread return the UI Thread
- by Darko Z
Hi all,
Let's say I have a situation in Silverlight where there is a background thread (guaranteed to NOT be the UI thread) doing some work and it needs to create a new thread. Something like this:
//running in a background thread
Thread t = new Thread(new ThreadStart(delegate{});
t.Start();
Lets also say that the UI thread at this particular time is just hanging around doing nothing.
Keeping in mind that I am not that knowledgeable about the Silverlight threading model, is there any danger of the new Thread() call giving me the UI thread?
The motivation or what I am trying to achieve is not important - I do not want modification to the existing code. I just want to know if there is a possibility of getting the UI thread back unexpectedly.
Cheers