I try to write the code the receive the socket data by create a thread.But my workmate say that I should use ScheduledExecutorService because the thread may be hang
ScheduledExecutorService