首页> 外国专利> Method, device, and single-tasking system for implementing multi-tasking in single-tasking system

Method, device, and single-tasking system for implementing multi-tasking in single-tasking system

机译:在单任务系统中实现多任务的方法,装置和单任务系统

摘要

Disclosed are a method, a device, and a single-tasking system for implementing multi-tasking in a single-tasking system. The method includes: performing a master task; allocating a hardware timer to a slave task on a central processing unit (CPU); configuring an interrupt period of the hardware timer; and generating, by the hardware timer, a hardware interrupt periodically based on the interrupt period to trigger the performance of the slave task. Therefore, independent and concurrent execution of the master task and slave task can be achieved in a single-tasking system, without the need to add an unwieldy multitasking scheduling framework to the operating system. Furthermore, the slave task is executed only when the hardware timer generates hardware interrupts, so less system resources will be consumed and the unwieldy inter-process communication mechanisms as adopted in traditional multi-tasking systems won't be needed. Example inter-process communication mechanisms may include, semaphores, spinlocks, etc.
机译:公开了一种用于在单任务系统中实现多任务的方法,设备和单任务系统。该方法包括:执行主任务;为中央处理器(CPU)上的从属任务分配硬件计时器;配置硬件定时器的中断周期;硬件定时器根据中断周期周期性地产生硬件中断,以触发从任务的执行。因此,可以在单任务系统中实现主任务和从任务的独立和并发执行,而无需向操作系统添加繁琐的多任务调度框架。此外,仅当硬件计时器生成硬件中断时才执行从属任务,因此将消耗较少的系统资源,并且不再需要传统的多任务系统中采用的笨拙的进程间通信机制。示例性进程间通信机制可能包括信号量,自旋锁等。

著录项

  • 公开/公告号US10782999B2

    专利类型

  • 公开/公告日2020-09-22

    原文格式PDF

  • 申请/专利权人 PAX COMPUTER TECHNOLOGY (SHENZHEN) CO. LTD.;

    申请/专利号US201715839127

  • 发明设计人 SHIFANG DONG;YINGFENG TANG;

    申请日2017-12-12

  • 分类号G06F9/48;G06F9/30;G06F9/38;G06F9/46;

  • 国家 US

  • 入库时间 2022-08-21 11:30:24

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号