Hi Max,
In your book, there is a
test package. I don't quite understand some code in DBTestRunner.java, that is,
while (test1.isAlive()
&& test2.isAlive()
&& test3.isAlive()
&& test4.isAlive()
&& test5.isAlive()
&& test1.isAlive()) {
}
System.out.println("Completed all tests.");
This means that if one
thread is dead, then the test is completed. Why?
As I imagine, if the test is completed, then all thread should be dead. Can you explain?