MultiThreading Help

I'm working on application that is going to pull request for a report from a database and then work on generating the report, I want this to be multi threaded and I began with trying to use the ThreadPool method, what I'm running into is it seems every once in awhile the application will start working on the same request twice, or even stranger it will begin work on a request a minute later, my theory is it's getting everything at the same time and queing up all the work. I have an indicatior that lets me know if a request has been picked up and when it has been worked on, I'm seeing my log indicate the same request being worked on 2 to 5 times. Let me know what you recommend to keep all the threads working on separate request ID's.

Thank you

by andysom25 via /r/csharp

Leave a Reply