pthread part: 2