learn windows multithread, from this blog: http://blog.csdn.net/morewindows