At present, most of the embedded operating system cannot support both time-triggered and event-triggered mechanism. This paper analyzed the kernel of μC/OS-II in deeply and the scheduling code , designed the kernel architecture into two layers, the upper layer is the time-trigged module and the lower is the event-trigged module. The time-triggered partition is the main processing section and the event-trigged partition is the base module section. This make the scheduler of the system not only dispatching the time-triggered tasks but also scheduling the event-trigged tasks. Experiments show that this method can not only support the double-triggered mechanism forμC/OS-II , but also improve the real-time performance and flexibility without affecting the reliability and certainty of the system.