This paper designs an embedded real-time operating system according to OSEK/VDX standard. It focuses on the design of task and resource management. Then it is verified on the automobile stability control hardware-in-loop simulation platform. The result of verification shows that developing on this OS can efficiently improve the real-time performance and stability of the system and it can also meet the require- ments of automobile stability control system well.