Syschronous socket multithread