chapter 4 about thread