Java Implementation of Producer-Consumer synchronization problem using ServerSocket and monitors