In reply to SaphEr:
but the final thing in both the test cases is same, it will wait for all the threads to complete.