1.add build macros for convenience
2.setting attribute of a thread
3.using multi-threads
#that's all for thread study.