add pthread demo