http://qs1969.pair.com?node_id=1085045


in reply to Re^2: What is the correct way to finish multithreaded program?
in thread What is the correct way to finish multithreaded program?

Previous block of code (while (..) {..}) used to wait threads to finish (I think).

No, it waits for the queue to be empty, which isn't quite the same thing.