C# : Threads

Joined
Jan 10, 2007
Messages
43,898
Location
In The Machine
I just built a windows*service which will be "ticking" on a server. The aim for it is to handle a couple of different tasks. One of them is to check*some folders containing XML files, read them and process them ( sending to a website -> msmq ->*business app*)

Say, if I have 100 files in different folders :

Should I just get a list of these files in an ArrayList and do a loop or should I use threads?

If using threads... should I create a work thread to get(find) and process each file or should I loop in my ArrayList and assign a work thread for each file to process?

Thanks*in advance.


More...

View All Our Microsft Related Feeds
 
Back
Top