add thread code
Merge branch 'master' of github.com:parrt/cs601