> // join the last created thread. It is likely to be the last > // thread to finish, although that is not certain. We wait another > // 5 secs just in case. > io.join(); > Thread.currentThread().sleep(5000);
YES, this is REALLY not certain that the last started thread will be the last to finish. And as the whole process for one test must be about 40 secondes, it is not sure at all that waiting 5 secondes is sufficient to be sure that the next test is not started while the current one is not finished. As the buffered IO test is the last one, it can suffer most of this risk. Maybe the results would be different by starting with the Buffered IO test. Anyway, even if the gain doesn't appear obvious here, the buffered IO saves lot of CPU time. Regards, Fabien. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
