Refine RTOS demo