From: Phrogz Date: 2008-02-08T05:35:04+09:00 Subject: Re: is lots of files with Threads faster? On Feb 7, 1:21 pm, Chris Richards wrote: > Im required to open 50+ files and parse the data in them. WOuld using > multiple threads give me the best performance? or is it best just to do > it sequentially? I suspect it depends on how long the parsing of data takes. If it's fast, trying to read 50 files simultaneously will likely (I'm guessing) cause disk thrashing that will slow you down. If processing each file is much longer than reading the file from disk, and you have multiple CPUs, and can use native threads, and can schedule the read of one file to begin after another ends...probably you can speed things up. I made all those answers up, but I'm guessing they're correct :)