You could do this a number of ways. Keep references to the threads (for example in a List) and iterate through each to stop each one. Alternatively, keep a single boolean flag which is checked in...