Is it possible to use a single new CountDownLatch(2)?
Also, I think comments on lines 145-149 and 199-203 are not really necessary, the println() lines after them are quite clear.
--Max On 7/25/2016 11:38, Xuelei Fan wrote:
Hi Weijun,
Please review this update. Per you suggestion, I updated to use
CountDownLatch for the synchronization between client and server.
CountDownLatch is more simple than ReentrantLock in the context.
http://cr.openjdk.java.net/~xuelei/8161106/webrev.03/
Thanks,
Xuelei
