首页> 外国专利> 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.
机译:提供了一种用于在单个任务系统和单个任务系统中处理多个任务的方法和设备。该方法包括:执行主任务;中央处理器(CPU)为从任务分配硬件定时器;配置硬件定时器的中断周期;使硬件定时器根据中断周期经历周期性的硬件中断,以触发从任务。本发明使得能够在单个任务系统中独立地或并行地执行主任务和从任务,而不必向操作系统添加庞大的多任务调度框架。此外,由于当硬件定时器遇到硬件中断时执行从属任务,因此消耗了较少的系统资源,并且不需要采用传统上使用的庞大的进程间通信机制,例如信号灯或自旋锁。多任务系统。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号