public void run() { try { for (int i = 1; i <= REPETITIONS; i++) { Do work } } catch (InterruptedException exception) { } Clean up }