Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2020, Vol. 46 ›› Issue (1): 208-215,221. doi: 10.19678/j.issn.1000-3428.0053552

Previous Articles     Next Articles

Multitask Space Reuse Algorithm in Embedded Forth Operating System

MEI Hao, DAI Hongbing, LIU Jing   

  1. School of Information Science and Engineering, Yunnan University, Kunming 650000, China
  • Received:2019-01-02 Revised:2019-02-18 Online:2020-01-15 Published:2019-02-26

嵌入式Forth操作系统多任务空间复用算法

梅浩, 代红兵, 刘静   

  1. 云南大学 信息学院, 昆明 650000
  • 作者简介:梅浩(1993-),男,硕士研究生,主研方向为嵌入式系统;代红兵(通信作者),正高级工程师;刘静,硕士研究生。
  • 基金资助:
    国家自然科学基金(61640205)。

Abstract: In existing embedded Forth operating systems,multitask space cannot be reused and multitask management supports only task creation.To address the problem,this paper proposes a space reuse algorithm for multitask in embedded operating systems based on Forth Virtual Machine(FVM).The algorithm takes the task control block as the header node of the idle task image partition list.The link address variable in the task control block is used to track the background task images deleted by the system,and both collection and redistribution of task image space can be realized by modifying only one user variable pointer.Experimental results show that the proposed algorithm improves memory resource utilization of Forth system while ensuring the stability and inherent features of Forth system.It is applicable to embedded environments with limited resources.

Key words: Forth Virtual Machine(FVM), embedded environment, multitask, memory management, multitask management, portability

摘要: 针对现有嵌入式Forth操作系统多任务空间无法复用且多任务管理仅支持任务创建的问题,提出一种基于Forth虚拟机架构的嵌入式操作系统多任务空间复用算法。将任务控制块作为空闲任务映像分区链表头结点,利用任务控制块中的链接地址变量维护系统删除的后台任务映像,且仅需修改一个用户变量指针即可实现任务映像空间的回收和重分配。实验结果表明,该算法在保证Forth系统稳定及其固有特性的同时,提高了Forth系统内存资源利用率,适用于资源有限的嵌入式环境。

关键词: Forth虚拟机, 嵌入式环境, 多任务, 内存管理, 多任务管理, 可移植性

CLC Number: