首页>
外国专利>
METHOD AND DEVICE FOR PROCESSING MULTIPLE TASKS IN SINGLE TASK SYSTEM, AND SINGLE TASK SYSTEM
METHOD AND DEVICE FOR PROCESSING MULTIPLE TASKS IN SINGLE TASK SYSTEM, AND SINGLE TASK SYSTEM
展开▼
机译:在单任务系统中处理多个任务的方法和装置以及单任务系统
展开▼
页面导航
摘要
著录项
相似文献
摘要
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.
展开▼