8d6e48bc0b
supposed to be the number of concurrent threads; however, what's been happening is just the firing off of THREADS threads and then simply waiting for them all to finish before doing another round. Now it tries to keep new threads coming when possible. It's not exactly smart, but should usually beat the previous method (when using multiple threads) and should never be any worse. Here's the relevant code comment: # Assume that the oldest thread will be one of the # first to finish and wait for it. After that's # done, remove any finished threads from the list # and continue on. This will open up at least one # spot for a new thread git-svn-id: file:///home/svn/framework3/trunk@6809 4d416f70-5f16-0410-b530-b9f4589650da