作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2008, Vol. 34 ›› Issue (23): 29-30,4. doi: 10.3969/j.issn.1000-3428.2008.23.011

• 软件技术与数据库 • 上一篇    下一篇

一种调度In-Tree任务图的算法

徐洪智1,李仁发2   

  1. (1. 吉首大学信息管理与工程学院,张家界 427000;2. 湖南大学计算机与通信学院,长沙 410082)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2008-12-05 发布日期:2008-12-05

Algorithm for Scheduling In-Tree Task Graph

XU Hong-zhi1, LI Ren-fa2   

  1. (1. School of Information Management and Engineering, Jishou University, Zhangjiajie 427000; 2. School of Computer and Communications, Hunan University, Changsha 410082)
  • Received:1900-01-01 Revised:1900-01-01 Online:2008-12-05 Published:2008-12-05

摘要: In-Tree任务图可用来表示归并、求和等分治算法的很多问题,该文针对这种任务图提出一种分层调度算法,利用队列存放被调度的任务,在同层任务调度中,优先把前驱不为空的任务调度到其一个前驱处理器上执行,只有前驱为空的任务才考虑是否分配新的处理器。实验表明,与以前的算法相比,该算法在调度长度相当的情况下,使用了更少的处理器。

关键词: 任务调度, In-Tree任务图, 调度长度

Abstract: In-Tree task graph can be used to represent a lot of issues of divide-and-conquer algorithms such as merge, summation, etc. Aiming at In-Tree task graph, a level scheduling algorithm is proposed. The algorithm stores scheduled tasks by using queues. In the same layer of scheduling, the task whose precursor is not null is prior scheduled to one of its precursor processors. Only tasks with null precursors are considered to be allocated a new processor. Experiment shows that compared with the former algorithms, the algorithm uses fewer processors in the case of approximate same length of scheduling.

Key words: task scheduling, In-Tree task graph, length of scheduling

中图分类号: