Socket Synchronous mulitthread