added the joblength and the new thread after each joblength was reached.