|
-
Apr 13th, 2006, 12:59 AM
#1
Thread Starter
No place like 127.0.0.1
[RESOLVED] [2005] Multithreading vs. BackgroundWorker
I'm unclear as to the differences between multithreading and application and using a background worker. Could someone please explain when one should be used over the other and what their differences are?
-
Apr 13th, 2006, 01:10 AM
#2
Re: [2005] Multithreading vs. BackgroundWorker
The BackgroundWorker is just a class that wraps a thread to hide some of the detail and make it easier to use by providing specific methods and events. You should use the BackgroundWorker if it can do what you want. If you need more fine-grained control then create a Thread yourself.
-
Apr 13th, 2006, 01:16 AM
#3
Thread Starter
No place like 127.0.0.1
Re: [2005] Multithreading vs. BackgroundWorker
Okay, that makes sense. Thanks JMC.
-
Apr 13th, 2006, 01:23 AM
#4
Re: [RESOLVED] [2005] Multithreading vs. BackgroundWorker
If youre referring to a means to make your form more responsive, then you can also look at asynchronous delegates, which is actually kind of what background workers are, I believe (although not positive). A good article to read:
"Give Your .NET-based Application a Fast and Responsive UI with Multiple Threads"
http://msdn.microsoft.com/msdnmag/is...g/default.aspx
The code is C#, but the article explains it pretty well...
-
Apr 13th, 2006, 01:38 AM
#5
Re: [RESOLVED] [2005] Multithreading vs. BackgroundWorker
Further to what Gig said, the Advanced .NET link in the Articles section of my signature has topics on Asynchronous Programming and Managed Threading, which are both worthy reading.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|