参考: http://my.oschina.net/yanhx/blog/198114 http://www.cnblogs.com/jackluo/p/3919168.html http://zyan.cc/pthreads/