loopfunction
maxthreads
