Click to See Complete Forum and Search --> : Difference among Thread , BackgroundWorker , and calling a method through Delegate


sum_gupt
September 8th, 2009, 11:53 PM
Hello Friends,
Can anybody describe the the difference among
1> When we call a method through System.Threading.Thread
2> When we call a method through BackgroundWorker
3> When we call a method through defining a delegate( i.e. through BeginInvoke)

Thanks in Advance for your Help.

DreamShore
October 1st, 2009, 05:45 PM
Thread is something most basic here. Just a seperate workflow.

A worker is just a complex thread (or a group of such threads). It waits there for your tasks. Instead of executes a task and terminates.

delegate... it doesn't belongs here. You call a delegate is nothing really more than call a method.