What i am trying to do is have a function execute 10 times at a time, using threads, and then once they are all done start another group of 10 threads until the program brea