Alex Rivera | Logout

Difference between BackgroundWorker and System.Threading.Thread

Asked 2009-10-24T19:41:48.547
27

What is the difference between creating a thead using BackgroundWorker and creating a thread using System.Threading.Thread?

Edit
Report

1 Answer

19

BackgroundWorker is actually a wrapper for asynchronous thread invocation via delegates - using reflector one can see it calls the begin/end invoke methods accordingly. This differs from a System.Threading.Thread in that it uses the threadpool as opposed to starting up a brand new thread.

The main reason for using background worker is that it plugs in nicely with windows forms applications.

answered 2009-10-26T14:18:16.407

Your Answer