Provided are a method and device for processing multiple tasks in a single task system, and a single task system. The method comprises: executing a master task; allocating, by a central processing unit (CPU), a hardware timer to a slave task; configuring an interruption cycle for the hardware timer; and causing the hardware timer to experience cyclic hardware interruption according to the interruption cycle so as to trigger the slave task. The invention enables a master task and a slave task to be executed independently or in parallel in a single task system without having to add a bulky multi-task scheduling framework to an operating system. Moreover, since a slave task is executed when a hardware timer experiences hardware interruption, less system resource is consumed, and there is no need to adopt a bulky inter-process communication mechanism, such as a signal lamp or a spinlock, used in a traditional multi-task system.
展开▼