rtos chapter 2