views:

215

answers:

2

Hello everyone,

My working environment is VSTS 2008 + C# + .Net 3.5. I want to learn the differences between UI thread and worker thread, and any other types of thread (i.e. non-UI thread is the same as worker thread)? I also want to learn the restrictions of what we can do on each type of threads and best practices to avoid any issues.

Appreciate any good tutorials! :-)

thanks in advance, George

+2  A: 

There's a long, detailed tutorial on threading here.

Specifically, I'd recommend this section on worker and UI threads and how they can interact (it does assume you've read the previous chapters though).

Matthew Brindley
+2  A: 

This site has great threading details covering: Getting Started, Basic Synchronization, Using Threads, and Advanced Topics.

SwDevMan81
I know this site, but I did not find related sections which covers differences between UI thread and worker thread.
George2
From the http://msdn.microsoft.com/en-us/library/aa645740(VS.71).aspx Threading Tutorial, it says: "A process can have a user interface thread that manages interactions with the user and worker threads that perform other tasks while the user interface thread waits for user input". What other differences are you looking for?
SwDevMan81