how do you threed in

Posted on 2006-10-19
Last Modified: 2007-12-19
i have a program im trying to read the files off a drive and display them on a dataset(with saving them to a database too)

so id like to have it do this in a threed to speed it up some.
is there ** would like to see code examples ** or a good tutorial around explaining threeding

if more info is needed please ask

thank you  in advance for any help you may provide
Question by:Johnny
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 13

Assisted Solution

newyuppie earned 450 total points
ID: 17771542
i found this link that uses threading to search for a file in a directory.

if you are using .net 2 maybe BackgroundWorker instead of System.Threading is better (handles the threading safely automatically)

hope it helps you


Assisted Solution

DjDezmond earned 50 total points
ID: 17772027
Not trying to steal anyones points here... but this is a very usefuly MSI containing 101 example applications written by Microsoft. It explains multi-threading, sockets, async calls etc...

Author Comment

ID: 17773375
Thank you for the replies
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 17773389
*smile* gota love the tab key and a cat hitting enter

where can i get info on BackgroundWorker this seams to be more of what im looking for

Again thanks for the replies so far
LVL 13

Accepted Solution

newyuppie earned 450 total points
ID: 17773612
the MSDN documentation has very extensive examples on how to use this new class

you could try these links maybe for other examples:

its not really that hard, the new framework makes it all very simple. hope that helps a bit


Author Comment

ID: 17773768
thank you very much
LVL 13

Expert Comment

ID: 17773869
thanks for the grade


Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String ( Literal, only instead of starting and ending with w…
Introduction When many people think of the WebBrowser ( control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question