I have a for loop it's looping about 500 times. On each iteration, it calls a method and that takes about 1 minute. As such, I have to wait 500 minutes. It's very long time.
I want to get this to work using threads but when I create 500 threads at the same time, I'm getting an exception.
I think I need to use "Queue Threads". For example, start 10 threads and when one finishes then start a new one. That way, there's always 10 threads working at the same time -- no less, no more.
Is this possible?