F
frankiespark
Hello all,
I was perusing the internet for information on threading when I came
across this group. Since there seems to be a lot of good ideas and
useful info I thought I'd pose a question.
Threading is a new concept for me to implement. Here is my problem.
I have a system that receives xml files and records their file
locations in a database. I can potentially receive thousands,
sometimes hundreds of thousands, of files per day. When files are
received and stored in a folder on the server I need another
application to read in the paths from the database, locate, process,
and save each xml file. I want to create a windows service that can
read in a list from the database and assign work to multiple threads
in order to achieve greater performance. But, I am not sure where to
begin and I am having option paralysis. Do I need to create the
threads manually like:
Dim worker as New Thread(Address of Something)
Worker.Start()
Do I need to use the thread pool? The BackgroundWorker control? I have
seen a lot of examples. What I'd like is if someone could make a
research recommendation based on my scenario if possible. I realize
this is probably a basic question about a complex issue so any
feedback to get me thinking would be good.
Much appreciated.
I was perusing the internet for information on threading when I came
across this group. Since there seems to be a lot of good ideas and
useful info I thought I'd pose a question.
Threading is a new concept for me to implement. Here is my problem.
I have a system that receives xml files and records their file
locations in a database. I can potentially receive thousands,
sometimes hundreds of thousands, of files per day. When files are
received and stored in a folder on the server I need another
application to read in the paths from the database, locate, process,
and save each xml file. I want to create a windows service that can
read in a list from the database and assign work to multiple threads
in order to achieve greater performance. But, I am not sure where to
begin and I am having option paralysis. Do I need to create the
threads manually like:
Dim worker as New Thread(Address of Something)
Worker.Start()
Do I need to use the thread pool? The BackgroundWorker control? I have
seen a lot of examples. What I'd like is if someone could make a
research recommendation based on my scenario if possible. I realize
this is probably a basic question about a complex issue so any
feedback to get me thinking would be good.
Much appreciated.