add an example about tcp using pthread