At the same time, you demonstrate continuous progress by evolving your application one micro-increment at the time.
同时,您也通过演进您的应用程序的一个微增量证明了持续的进展。
2
One way would be to increment a variable every time a thread is created, and decrement it whenever a thread terminates. When it reaches zero again, close the whole process.