I have written a console application to process image files and match them to database records.
The image files are all located in a file store in different folders one folder per day so the structure of the filestore would be
FileStore -> Day1 -> Images
-------------------> Indexfile.csv
So my program will open each folder grab the indexfile and match the image to a record in the database.
The folders are quite large some of them having 90000+ images, so I would like to run up to 5 different task each grabbing a different folder and processing them in parallel, I've tried creating 5 tasks and that work fine except that I don't know how to start a new task once one of the 5 tasks has finish.
Any pointers would be appreciated.
Thanks.