SIlverlight 4RC threading - can a new Thread return the UI Thread
Posted
by Darko Z
on Stack Overflow
See other posts from Stack Overflow
or by Darko Z
Published on 2010-03-26T04:53:27Z
Indexed on
2010/03/26
5:03 UTC
Read the original article
Hit count: 663
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
© Stack Overflow or respective owner