I have a loop which create a new Thread on each iteration, like so:
for(int i = 0; i < REPEAT; i++) { new Thread(new MyTask(i)).start(); Thread.sleep(1