[ENHANCE] add server and client. Use pthread