Your code here is going to start 5 new threads every single time around the loop and keep looping constantly. Are you absolutely sure that's what you want?
Just use a CountDownLatch
http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/CountDownLatch.html
Initialize the latch at 5. Each thread counts the latch down once when it exits.
The main thread waits for the latch to hit 0 then does its processing and exits.
Do not loop creating threads!