WO2014108000A1 - Task allocation method and system - Google Patents

Task allocation method and system Download PDF

Info

Publication number
WO2014108000A1
WO2014108000A1 PCT/CN2013/088488 CN2013088488W WO2014108000A1 WO 2014108000 A1 WO2014108000 A1 WO 2014108000A1 CN 2013088488 W CN2013088488 W CN 2013088488W WO 2014108000 A1 WO2014108000 A1 WO 2014108000A1
Authority
WO
WIPO (PCT)
Prior art keywords
task
dependent
tasks
time slice
processor
Prior art date
Application number
PCT/CN2013/088488
Other languages
French (fr)
Chinese (zh)
Inventor
谢静宇
Original Assignee
苏州亿倍信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 苏州亿倍信息技术有限公司 filed Critical 苏州亿倍信息技术有限公司
Publication of WO2014108000A1 publication Critical patent/WO2014108000A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/484Precedence

Definitions

  • the invention belongs to the technical field of computers, and in particular relates to a method and a system for task assignment processing. Background technique
  • the present invention provides a method and system for task assignment processing to solve the above problems.
  • the present invention provides a method of task assignment processing.
  • the above method comprises the following steps: the client submits the task to the task processor; the task processor puts the task with the dependency into the task queue, and establishes a task dependency comparison table according to the dependency relationship between the tasks, and the task dependency comparison table Synchronizing to the time slice allocator and the mapping relationship server; the time slice allocator obtains the total number of idle time slice allocations of each dependent task according to the task dependency comparison table and the first policy, and sends the total number of idle time slice allocations of each dependent task To the mapping relationship server and the task processor; the mapping relationship server determines the period corresponding to each dependent task according to the received task dependency comparison table, the total number of idle time slice allocations of each dependent task, and the second policy, and each dependent task The corresponding period is sent to the task processor; the task processor processes the task having the dependency in the task queue according to the received total number of idle time slice allocations of each dependent task and the period corresponding to each dependent task.
  • the present invention also provides a system for task allocation processing, including a client, a task processor, a time slice allocator, and a mapping relationship server.
  • the client connects to the task processor, the task processor connects to the time slice allocator and the mapping relation server, and the mapping relationship server connects the time slice allocator.
  • the client submits the task to the task processor.
  • the task processor puts the tasks with dependencies into the task queue, and establishes a task dependency comparison table according to the dependencies between the tasks, and synchronizes the task dependency comparison table to the time slice allocator and the mapping relationship server.
  • the time slice allocator obtains the total number of idle time slice allocations of each dependent task according to the task dependency comparison table and the first policy, and sends the total number of idle time slice allocations of each dependent task to the mapping relationship server and the task processor.
  • the mapping relationship server determines the period corresponding to each dependent task according to the received task dependency comparison table, the total number of idle time slice allocations of each dependent task, and the second policy, and sends each cycle corresponding to the dependent task to the task processor.
  • Task processor based on each received task ⁇
  • the time slice allocator obtains the total number of idle time slice allocations of each dependent task according to the task dependency comparison table and the first policy, and each is dependent
  • the total number of free time slice allocations for the task is sent to the mapping server and the task processor.
  • the mapping relationship server determines the period corresponding to each dependent task according to the received task dependency comparison table, the total number of idle time slice allocations of each dependent task, and the second policy, and sends each cycle corresponding to the dependent task to the task processing.
  • the task processor processes the tasks having dependencies in the task queue according to the total number of free time slice allocations of the respective dependent tasks received and the periods corresponding to the respective dependent tasks. In this way, the resource allocation efficiency of the task with dependencies is improved, and the task with dependency relationship is better executed and the efficiency is improved.
  • FIG. 1 is a flow chart showing a method of task assignment processing according to a preferred embodiment of the present invention
  • FIG. 2 is a schematic diagram of a system for task assignment processing in accordance with a preferred embodiment of the present invention. detailed description
  • FIG. 1 is a flow chart of a method of task assignment processing in accordance with a preferred embodiment of the present invention. As shown in FIG. 1, the method for task assignment processing provided by the preferred embodiment of the present invention includes steps 101-105.
  • step 101 the client submits the task to the task processor.
  • tasks include tasks with dependencies and tasks that are independent of each other.
  • the present invention is not limited thereto.
  • step 102 the task processor puts a task with a dependency into a task queue, and establishes a task dependency comparison table according to the dependency relationship between the tasks, and synchronizes the task dependency comparison table to the time slice allocator and the mapping. Relational server.
  • the tasks in the task queue are sorted according to the dependencies, and are executed by the dependent tasks first.
  • the task dependency table established by the task processor is as shown in Table 1.
  • the present invention is not limited thereto.
  • step 103 the time slice distributor obtains a total number of idle time slice allocations of each dependent task according to the task dependency comparison table and the first policy, and sends the total number of idle time slice allocations of each dependent task to the Mapping the relationship server and the task processor.
  • the first policy is: the time slice distributor separately calculates the proportion of the dependent tasks corresponding to the respective dependent tasks according to the task dependency comparison table, and according to the proportion of the dependent tasks corresponding to the respective dependent tasks and the current time The total amount of system idle time slices, calculated to obtain the total number of free time slice allocations for each dependent task.
  • the proportion of the dependent tasks corresponding to each dependent task is the ratio of the number of dependent tasks corresponding to the corresponding dependent task to the total number of tasks.
  • the total number of idle time slice allocations for each dependent task is the product of the corresponding dependent task's dependent task percentage and the current system idle time slice total.
  • Table 1 is taken as an example.
  • the total number of current tasks is six.
  • the total amount of system idle time slices at the current moment is a
  • the total number of idle time slices allocated to task 1 0.5*a
  • the total number of idle time slices allocated by task 2 ( 1/3 ) * a
  • the proportion of dependent tasks dependent on task 3 1 / 6
  • the time slice allocator obtains the total number of idle time slice allocations corresponding to the tasks 1 ⁇ 3
  • the total number of free time slice allocations corresponding to the tasks 1 ⁇ 3 is sent to the mapping relationship server and the task processor.
  • step 104 the mapping relationship server determines the period corresponding to each dependent task according to the received task dependency comparison table, the total number of idle time slice allocations of each dependent task, and the second policy, and corresponding each dependent task The cycle is sent to the task processor.
  • the second policy is: the period corresponding to each dependent task is determined according to the total number of idle time slice allocations of each dependent task and the number of dependent tasks corresponding to each dependent task. Specifically, the period corresponding to each dependent task is equal to the ratio of the total number of idle time slice allocations of the corresponding dependent task to the number of dependent tasks corresponding to the corresponding dependent task.
  • the present invention is not limited thereto. In other embodiments, the period corresponding to each dependent task may also be equal to the ratio of the total number of idle time slice allocations of the corresponding dependent task to the preset constant. The setting of the preset constant can be set according to actual needs.
  • Table 1 in step 102 is still taken as an example for description.
  • the mapping relationship server receives the task dependency comparison table (ie, Table 1) from the task processor, and receives the total number of idle time slice allocations corresponding to the dependent tasks 1 ⁇ 3 from the time allocator.
  • Period T3 (1/6) *a. _ . . .
  • step 105 the task processor processes the task having the dependency relationship in the task queue according to the received total number of idle time slice allocations of the dependent tasks and the period corresponding to each of the dependent tasks.
  • the task processor receives the total number of idle time slice allocations of each of the dependent tasks from the time slice allocator, and receives the period corresponding to each of the dependent tasks from the mapping relationship server.
  • the task processor judges whether the dependent task in the task queue can be processed according to the result of one cycle feedback of the dependent task. If it cannot be processed, it continues to wait for the result of the next cycle feedback of the dependent task until the dependent task can process it.
  • Table 1 in step 102 is still taken as an example for description.
  • the task processor judges whether it is possible to continue processing the dependent task 4, the dependent task 5, or the dependent task 6 according to the result of the feedback of the dependent task 1. If the dependent task 4, the dependent task 5, or the dependent task 6 cannot be processed, the task processor deletes the result fed back by the dependent task 1, and the task processor determines the dependent task according to the result of the feedback of the next cycle T1 of the dependent task 1. 4. Depends on task 5 or depends on whether task 6 can handle it. The above process continues until it depends on task 4, dependent task 5, or dependent task 6. If the task processor determines that the dependent task 5 can be processed according to the result of the feedback from the dependent task 1, for example, the partial processing of the dependent task 5 is started.
  • the task processor temporarily stores the received result of the dependent task 2 feedback, and After the partial processing of the dependent task 5 is completed, it is judged according to the result of the feedback of the dependent task 2 whether the dependent task 5 can continue processing, and if the processing can be continued, the task processor continues to process the dependent task 5, if the feedback is based on the dependent task 2 As a result, it is judged that the dependent task 5 cannot be processed, and the task processor deletes the result of the temporary dependent task 2 feedback, waits for the result of the next task T2 feedback of the dependent task 2, and continues to judge until the dependent task 5 can process. . In addition, the process of relying on task 6 is dependent on task 5, and therefore will not be described here.
  • dependent task 1 is updated data table a, b, c, d
  • dependent task 2 is updated data table e, f, g, h
  • dependent task 5 is query data table a, g
  • the task processor returns the result according to the task 1 (data table a).
  • Update if it is judged that the dependent task 5 can be processed, the partial processing of the task 5 is started (query data table a); at this time, the task processor temporarily stores the received result of the dependent task 2 feedback (update of the data table e) .
  • the task processor judges that the dependent task 5 cannot continue processing according to the result of the feedback of the dependent task 2 (update of the data table e), and the task processor deletes the temporary storage.
  • the result of the feedback of the dependent task 2 (update of the data table e) waits for the result of the feedback of the next cycle T2 of the dependent task 2, and continues the determination until the dependent task 5 can process.
  • the task processor update task depends on the lookup table, and the updated task dependency comparison table is sent to the time slice allocator and the mapping relationship server. Still taking Table 1 in step 102 as an example, if it is completed by dependent task 3, the task processor updates Table 1, as shown in Table 2.
  • the task processor synchronizes the updated task dependency table (ie, Table 2) to the time slice allocator and the mapping relationship server.
  • Table 2 the updated task dependency table
  • the time slice allocator regains the total number of idle time slice allocations of each dependent task, and sends it to the mapping relationship server and the task processor, and the mapping relationship server according to Table 2, the idle time of each dependent task
  • the total number of slices is allocated and the second strategy regains the period corresponding to each dependent task and sends it to the task processor.
  • the task processor processes the tasks having dependencies in the task queue according to the updated total number of free time slice allocations of the dependent tasks and the corresponding periods until all tasks in the task queue are processed.
  • the system for task assignment processing provided by the preferred embodiment of the present invention includes a client 10, a task processor 12, a time slice distributor 13 and a mapping relationship server 14.
  • the client 10 is connected to the task processor 12, the task processor 12 is connected to the time slice allocator 13 and the mapping relationship server 14, and the mapping relationship server 14 is connected to the time slice allocator 13.
  • the client 10 submits the task to the task processor 12.
  • the task processor 12 puts the tasks having the dependencies into the task queue, and establishes a task dependency comparison table according to the dependencies between the tasks, and synchronizes the task dependency comparison table to the time slice allocator 13 and the mapping relationship server 14.
  • the time slice allocator 13 obtains the total number of idle time slice allocations of each dependent task according to the task dependency comparison table and the first policy, and sends the total number of idle time slice allocations of each dependent task to the mapping relationship server 14 and the task processor 12 .
  • the mapping relationship server 14 determines the period corresponding to each dependent task according to the received task dependency comparison table, the total number of idle time slice allocations of each dependent task, and the second policy, and sends each cycle corresponding to the dependent task to the task processor. 12.
  • the task processor 12 processes the tasks having dependencies in the task queue according to the received total number of idle time slice allocations of each dependent task and the period corresponding to each dependent task. The specific operation process of the above system is the same as that described above, and therefore will not be described again.
  • the time slice allocator obtains the total number of idle time slice allocations of each dependent task according to the task dependency comparison table and the first policy, and The total number of idle time slice allocations of each dependent task is sent to the mapping relationship server and the task processor. Moreover, the mapping relationship server determines the period corresponding to each dependent task according to the received task dependency comparison table, the total number of idle time slice allocations of each dependent task, and the second policy, and sends each cycle corresponding to the dependent task to the task processing. Device.
  • the task processor processes the tasks having dependencies in the task queue according to the received total number of idle time slice allocations of each dependent task and the period corresponding to each dependent task. In this way, the resource allocation efficiency of the task with dependencies is improved, and the tasks with dependencies are better executed and the efficiency is improved.

Abstract

Provided are a task allocation method and system, the method comprising the following steps: a client terminal submits a task to a task processor; the task processor puts the tasks having a dependency relationship into a task queue, establishes a task dependency comparison table according to the dependency relationship between tasks, and synchronizes the task dependency comparison table to a time slice allocator and a mapping relationship server; the time slice allocator acquires the total distribution number of the idle time slices of each dependent task according to the task dependency comparison table and a first policy; the mapping relationship server determines the periods corresponding to each dependent task according to the received task dependency comparison table, the total distribution number of the idle time slices of each dependent task, and a second policy; and the task processor processes the tasks having the dependency relationship in the task queue according to the received total distribution number of the idle time slices of each dependent task and the period corresponding to each dependent task.

Description

One
种任务分配处理的方法及系统 技术领域  Method and system for task assignment processing
本发明属于计算机技术领域, 尤其涉及一种任务分配处理的方法及系统。 背景技术  The invention belongs to the technical field of computers, and in particular relates to a method and a system for task assignment processing. Background technique
目前, 在计算机技术领域, 会遇到一个复杂的计算任务模型由多个有依赖关系的计算任 务组成的情况。 其中, 依赖任务只能在被依赖任务完成后才能进行计算, 而不具有依赖关系 的计算任务可并行计算。 对于这种任务模型, 如何对任务进行资源分配, 以获得最优的任务 处理时间, 是一个重要的问题。 发明内容  Currently, in the field of computer technology, a complex computing task model is encountered that consists of multiple computational tasks with dependencies. Among them, dependent tasks can only be calculated after being completed by dependent tasks, and computing tasks without dependencies can be calculated in parallel. For this kind of task model, how to allocate resources to tasks to get the optimal task processing time is an important issue. Summary of the invention
本发明提供一种任务分配处理的方法及系统, 以解决上述问题。  The present invention provides a method and system for task assignment processing to solve the above problems.
本发明提供一种任务分配处理的方法。 上述方法包括以下步骤: 客户端将任务提交至任 务处理器; 任务处理器将具有依赖关系的任务放入任务队列, 并根据任务之间的依赖关系建 立任务依赖对照表, 并将任务依赖对照表同步至时间片分配器及映射关系服务器; 时间片分 配器根据任务依赖对照表及第一策略, 获得各个被依赖任务的空闲时间片分配总数, 并将各 个被依赖任务的空闲时间片分配总数发送至映射关系服务器及任务处理器; 映射关系服务器 根据接收的任务依赖对照表、 各个被依赖任务的空闲时间片分配总数及第二策略, 确定各个 被依赖任务对应的周期, 并将各个被依赖任务对应的周期发送至任务处理器; 任务处理器根 据接收的各个被依赖任务的空闲时间片分配总数及各个被依赖任务对应的周期, 处理任务队 列中具有依赖关系的任务。  The present invention provides a method of task assignment processing. The above method comprises the following steps: the client submits the task to the task processor; the task processor puts the task with the dependency into the task queue, and establishes a task dependency comparison table according to the dependency relationship between the tasks, and the task dependency comparison table Synchronizing to the time slice allocator and the mapping relationship server; the time slice allocator obtains the total number of idle time slice allocations of each dependent task according to the task dependency comparison table and the first policy, and sends the total number of idle time slice allocations of each dependent task To the mapping relationship server and the task processor; the mapping relationship server determines the period corresponding to each dependent task according to the received task dependency comparison table, the total number of idle time slice allocations of each dependent task, and the second policy, and each dependent task The corresponding period is sent to the task processor; the task processor processes the task having the dependency in the task queue according to the received total number of idle time slice allocations of each dependent task and the period corresponding to each dependent task.
本发明还提供一种任务分配处理的系统, 包括客户端、 任务处理器、 时间片分配器及映 射关系服务器。 客户端连接任务处理器, 任务处理器连接时间片分配器及映射关系服务器, 映射关系服务器连接时间片分配器。 其中, 客户端将任务提交至任务处理器。 任务处理器将 具有依赖关系的任务放入任务队列, 并根据任务之间的依赖关系建立任务依赖对照表, 并将 任务依赖对照表同步至时间片分配器及映射关系服务器。 时间片分配器根据任务依赖对照表 及第一策略, 获得各个被依赖任务的空闲时间片分配总数, 并将各个被依赖任务的空闲时间 片分配总数发送至映射关系服务器及任务处理器。 映射关系服务器根据接收的任务依赖对照 表、 各个被依赖任务的空闲时间片分配总数及第二策略, 确定各个被依赖任务对应的周期, 并将各个被依赖任务对应的周期发送至任务处理器。 任务处理器根据接收的各个被依赖任务 ― The present invention also provides a system for task allocation processing, including a client, a task processor, a time slice allocator, and a mapping relationship server. The client connects to the task processor, the task processor connects to the time slice allocator and the mapping relation server, and the mapping relationship server connects the time slice allocator. Among them, the client submits the task to the task processor. The task processor puts the tasks with dependencies into the task queue, and establishes a task dependency comparison table according to the dependencies between the tasks, and synchronizes the task dependency comparison table to the time slice allocator and the mapping relationship server. The time slice allocator obtains the total number of idle time slice allocations of each dependent task according to the task dependency comparison table and the first policy, and sends the total number of idle time slice allocations of each dependent task to the mapping relationship server and the task processor. The mapping relationship server determines the period corresponding to each dependent task according to the received task dependency comparison table, the total number of idle time slice allocations of each dependent task, and the second policy, and sends each cycle corresponding to the dependent task to the task processor. Task processor based on each received task ―
的空闲时间片分配总数及各个被依赖任务对应的周期,处理任务队列中具有依赖关系的任务。  The total number of idle time slice allocations and the period corresponding to each dependent task, processing tasks with dependencies in the task queue.
相较于先前技术, 根据本发明提供的任务分配处理的方法及系统, 时间片分配器根据任 务依赖对照表及第一策略, 获得各个被依赖任务的空闲时间片分配总数, 并将各个被依赖任 务的空闲时间片分配总数发送至映射关系服务器及任务处理器。 而且, 映射关系服务器根据 接收的任务依赖对照表、 各个被依赖任务的空闲时间片分配总数及第二策略, 确定各个被依 赖任务对应的周期, 并将各个被依赖任务对应的周期发送至任务处理器。 任务处理器根据接 收的各个被依赖任务的空闲时间片分配总数及各个被依赖任务对应的周期, 处理任务队列中 具有依赖关系的任务。 如此, 提高了具有依赖关系的任务的资源分配效率, 使得具有依赖关 系的任务得到了更好的执行, 提高了效率。 附图说明  Compared with the prior art, according to the method and system for task allocation processing provided by the present invention, the time slice allocator obtains the total number of idle time slice allocations of each dependent task according to the task dependency comparison table and the first policy, and each is dependent The total number of free time slice allocations for the task is sent to the mapping server and the task processor. Moreover, the mapping relationship server determines the period corresponding to each dependent task according to the received task dependency comparison table, the total number of idle time slice allocations of each dependent task, and the second policy, and sends each cycle corresponding to the dependent task to the task processing. Device. The task processor processes the tasks having dependencies in the task queue according to the total number of free time slice allocations of the respective dependent tasks received and the periods corresponding to the respective dependent tasks. In this way, the resource allocation efficiency of the task with dependencies is improved, and the task with dependency relationship is better executed and the efficiency is improved. DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发明的示 意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图中:  The drawings are intended to provide a further understanding of the present invention, and are intended to be a part of the present invention, and the description of the present invention is not intended to limit the invention. In the drawing:
图 1所示为根据本发明的较佳实施例提供的任务分配处理的方法的流程图;  1 is a flow chart showing a method of task assignment processing according to a preferred embodiment of the present invention;
图 2所示为根据本发明的较佳实施例提供的任务分配处理的系统的示意图。 具体实施方式  2 is a schematic diagram of a system for task assignment processing in accordance with a preferred embodiment of the present invention. detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。  The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
图 1所示为根据本发明的较佳实施例提供的任务分配处理的方法的流程图。如图 1所示, 本发明的较佳实施例提供的任务分配处理的方法包括步骤 101~105。  1 is a flow chart of a method of task assignment processing in accordance with a preferred embodiment of the present invention. As shown in FIG. 1, the method for task assignment processing provided by the preferred embodiment of the present invention includes steps 101-105.
于步骤 101, 客户端将任务提交至任务处理器。 于此, 任务包括具有依赖关系的任务及 相互独立的任务。 然而, 本发明对此并不限定。  In step 101, the client submits the task to the task processor. Here, tasks include tasks with dependencies and tasks that are independent of each other. However, the present invention is not limited thereto.
于步骤 102, 所述任务处理器将具有依赖关系的任务放入任务队列, 并根据任务之间的 依赖关系建立任务依赖对照表, 并将所述任务依赖对照表同步至时间片分配器及映射关系服 务器。 于此, 任务队列中的任务, 按照依赖关系排序, 被依赖任务优先被执行。  In step 102, the task processor puts a task with a dependency into a task queue, and establishes a task dependency comparison table according to the dependency relationship between the tasks, and synchronizes the task dependency comparison table to the time slice allocator and the mapping. Relational server. Here, the tasks in the task queue are sorted according to the dependencies, and are executed by the dependent tasks first.
于本实施例中, 任务处理器建立的任务依赖对照表例如表 1所示。 然而, 本发明对此并 不限定。  In this embodiment, the task dependency table established by the task processor is as shown in Table 1. However, the present invention is not limited thereto.
Figure imgf000004_0001
Figure imgf000004_0001
One
任务 3 任务 6 表 1 Task 3 Task 6 Table 1
于步骤 103, 所述时间片分配器根据所述任务依赖对照表及第一策略, 获得各个被依赖 任务的空闲时间片分配总数, 并将各个被依赖任务的空闲时间片分配总数发送至所述映射关 系服务器及所述任务处理器。  In step 103, the time slice distributor obtains a total number of idle time slice allocations of each dependent task according to the task dependency comparison table and the first policy, and sends the total number of idle time slice allocations of each dependent task to the Mapping the relationship server and the task processor.
于此, 所述第一策略为: 所述时间片分配器根据所述任务依赖对照表分别计算各个被依 赖任务对应的依赖任务占比, 根据各个被依赖任务对应的依赖任务占比及当前时刻的系统空 闲时间片的总量, 计算获得各个被依赖任务的空闲时间片分配总数。 其中, 各个被依赖任务 对应的依赖任务占比为相应的被依赖任务对应的依赖任务数目与任务总数的比值。 各个被依 赖任务的空闲时间片分配总数为相应的被依赖任务的依赖任务占比与当前时刻的系统空闲时 间片总量的乘积。  The first policy is: the time slice distributor separately calculates the proportion of the dependent tasks corresponding to the respective dependent tasks according to the task dependency comparison table, and according to the proportion of the dependent tasks corresponding to the respective dependent tasks and the current time The total amount of system idle time slices, calculated to obtain the total number of free time slice allocations for each dependent task. The proportion of the dependent tasks corresponding to each dependent task is the ratio of the number of dependent tasks corresponding to the corresponding dependent task to the total number of tasks. The total number of idle time slice allocations for each dependent task is the product of the corresponding dependent task's dependent task percentage and the current system idle time slice total.
于本实施例中, 以表 1为例进行说明, 由表 1可知, 当前任务总数为 6个。 此外, 例如 当前时刻的系统空闲时间片总量为 a, 则被依赖任务 1的依赖任务占比 =3/6=0.5, 且被依赖任 务 1的空闲时间片分配总数 =0.5*a; 被依赖任务 2的依赖任务占比 =2/6=1/3, 且被依赖任务 2 的空闲时间片分配总数= ( 1/3 ) *a; 被依赖任务 3的依赖任务占比 =1/6, 且被依赖任务 3的空 闲时间片分配总数 = ( 1/6 ) *a。 于此, 时间片分配器获得被依赖任务 1~3对应的空闲时间片 分配总数后, 将被依赖任务 1~3对应的空闲时间片分配总数发送至映射关系服务器及任务处 理器。  In the present embodiment, Table 1 is taken as an example. As can be seen from Table 1, the total number of current tasks is six. In addition, for example, the total amount of system idle time slices at the current moment is a, then the proportion of dependent tasks dependent on task 1 is =3/6=0.5, and the total number of idle time slices allocated to task 1 is =0.5*a; The proportion of dependent tasks of task 2 = 2/6 = 1/3, and the total number of idle time slices allocated by task 2 = ( 1/3 ) * a; the proportion of dependent tasks dependent on task 3 = 1 / 6, And the total number of idle time slices allocated by task 3 = (1/6) *a. In this case, after the time slice allocator obtains the total number of idle time slice allocations corresponding to the tasks 1~3, the total number of free time slice allocations corresponding to the tasks 1~3 is sent to the mapping relationship server and the task processor.
于步骤 104, 所述映射关系服务器根据接收的所述任务依赖对照表、 各个被依赖任务的 空闲时间片分配总数及第二策略, 确定各个被依赖任务对应的周期, 并将各个被依赖任务对 应的周期发送至所述任务处理器。  In step 104, the mapping relationship server determines the period corresponding to each dependent task according to the received task dependency comparison table, the total number of idle time slice allocations of each dependent task, and the second policy, and corresponding each dependent task The cycle is sent to the task processor.
于此, 所述第二策略为: 各个被依赖任务对应的周期根据各个被依赖任务的空闲时间片 分配总数及各个被依赖任务对应的依赖任务个数确定。 具体而言, 各个被依赖任务对应的周 期等于相应被依赖任务的空闲时间片分配总数与相应被依赖任务对应的依赖任务个数的比 值。 然而, 本发明对此并不限定。 于其他实施例中, 各个被依赖任务对应的周期还可以等于 相应被依赖任务的空闲时间片分配总数与预设常数的比值。 其中, 所述预设常数的设置可根 据实际需要进行设定。  The second policy is: the period corresponding to each dependent task is determined according to the total number of idle time slice allocations of each dependent task and the number of dependent tasks corresponding to each dependent task. Specifically, the period corresponding to each dependent task is equal to the ratio of the total number of idle time slice allocations of the corresponding dependent task to the number of dependent tasks corresponding to the corresponding dependent task. However, the present invention is not limited thereto. In other embodiments, the period corresponding to each dependent task may also be equal to the ratio of the total number of idle time slice allocations of the corresponding dependent task to the preset constant. The setting of the preset constant can be set according to actual needs.
于本实施例中, 仍以步骤 102中的表 1为例进行说明。 映射关系服务器从任务处理器接 收任务依赖对照表(即, 表 1 ), 从时间分配器接收被依赖任务 1~3对应的空闲时间片分配总 数, 根据第二策略可知, 被依赖任务 1对应的周期 Tl=0.5*a/3= ( 1/6) *a, 被依赖任务 2对 应的周期 T2= ( 1/3 ) *a/2= ( 1/6) *a, 被依赖任务 3对应的周期 T3= ( 1/6) *a。 _ . . . In this embodiment, Table 1 in step 102 is still taken as an example for description. The mapping relationship server receives the task dependency comparison table (ie, Table 1) from the task processor, and receives the total number of idle time slice allocations corresponding to the dependent tasks 1~3 from the time allocator. According to the second policy, the corresponding task 1 corresponds to Period Tl=0.5*a/3=(1/6) *a, the period corresponding to task 2 is T2=( 1/3 ) *a/2= ( 1/6) *a, which is dependent on task 3 Period T3 = (1/6) *a. _ . . .
于步骤 105, 所述任务处理器根据接收的各个被依赖任务的空闲时间片分配总数及各个 被依赖任务对应的周期, 处理所述任务队列中具有依赖关系的任务。  In step 105, the task processor processes the task having the dependency relationship in the task queue according to the received total number of idle time slice allocations of the dependent tasks and the period corresponding to each of the dependent tasks.
具体而言, 任务处理器从时间片分配器接收各个被依赖任务的空闲时间片分配总数, 从 映射关系服务器接收各个被依赖任务对应的周期。 任务处理器根据被依赖任务一个周期反馈 的结果判断是否能够处理任务队列中的依赖任务, 若不能处理, 则继续等待被依赖任务下一 个周期反馈的结果, 直至依赖任务能够处理为止。  Specifically, the task processor receives the total number of idle time slice allocations of each of the dependent tasks from the time slice allocator, and receives the period corresponding to each of the dependent tasks from the mapping relationship server. The task processor judges whether the dependent task in the task queue can be processed according to the result of one cycle feedback of the dependent task. If it cannot be processed, it continues to wait for the result of the next cycle feedback of the dependent task until the dependent task can process it.
于本实施例中, 仍以步骤 102中的表 1为例进行说明。 于此, 任务处理器根据被依赖任 务 1反馈的结果判断是否能够继续处理依赖任务 4、依赖任务 5或依赖任务 6。若不能继续处 理依赖任务 4、 依赖任务 5或依赖任务 6, 则任务处理器删除被依赖任务 1反馈的结果, 且任 务处理器根据被依赖任务 1下一个周期 T1反馈的结果, 再判断依赖任务 4、 依赖任务 5或依 赖任务 6是否能够处理。 上述过程直至依赖任务 4、 依赖任务 5或依赖任务 6能够处理为止。 若任务处理器例如根据被依赖任务 1反馈的结果判断得到依赖任务 5能够处理, 则开始依赖 任务 5的部分处理, 此时, 任务处理器暂存接收到的被依赖任务 2反馈的结果, 并于依赖任 务 5的部分处理完成后, 根据被依赖任务 2反馈的结果判断依赖任务 5能否继续处理, 若能 够继续处理, 则任务处理器继续处理依赖任务 5, 若根据被依赖任务 2反馈的结果判断不能 继续处理依赖任务 5, 则任务处理器删除暂存的被依赖任务 2反馈的结果, 等待被依赖任务 2 下一个周期 T2反馈的结果, 再继续进行判断, 直至依赖任务 5能够处理为止。 此外, 依赖任 务 6的处理过程同依赖任务 5, 故于此不再赘述。  In the present embodiment, Table 1 in step 102 is still taken as an example for description. Here, the task processor judges whether it is possible to continue processing the dependent task 4, the dependent task 5, or the dependent task 6 according to the result of the feedback of the dependent task 1. If the dependent task 4, the dependent task 5, or the dependent task 6 cannot be processed, the task processor deletes the result fed back by the dependent task 1, and the task processor determines the dependent task according to the result of the feedback of the next cycle T1 of the dependent task 1. 4. Depends on task 5 or depends on whether task 6 can handle it. The above process continues until it depends on task 4, dependent task 5, or dependent task 6. If the task processor determines that the dependent task 5 can be processed according to the result of the feedback from the dependent task 1, for example, the partial processing of the dependent task 5 is started. At this time, the task processor temporarily stores the received result of the dependent task 2 feedback, and After the partial processing of the dependent task 5 is completed, it is judged according to the result of the feedback of the dependent task 2 whether the dependent task 5 can continue processing, and if the processing can be continued, the task processor continues to process the dependent task 5, if the feedback is based on the dependent task 2 As a result, it is judged that the dependent task 5 cannot be processed, and the task processor deletes the result of the temporary dependent task 2 feedback, waits for the result of the next task T2 feedback of the dependent task 2, and continues to judge until the dependent task 5 can process. . In addition, the process of relying on task 6 is dependent on task 5, and therefore will not be described here.
例如: 被依赖任务 1为更新数据表 a、 b、 c、 d; 被依赖任务 2为更新数据表 e、 f、 g、 h; 依赖任务 5为查询数据表 a、 g; 若被依赖任务 1在第一个周期 T1时, 完成数据表 a的更新; 被依赖任务 2在第一个周期 T2时, 完成数据表 e的更新, 则任务处理器根据被依赖任务 1 反馈的结果(数据表 a的更新), 判断依赖任务 5能够处理, 则开始任务 5的部分处理(查询 数据表 a); 此时, 任务处理器暂存接收到的被依赖任务 2反馈的结果(数据表 e的更新)。 于 依赖任务 5的部分处理 (查询数据表 a) 完成后, 任务处理器根据被依赖任务 2反馈的结果 (数据表 e的更新), 判断依赖任务 5不能继续处理, 则任务处理器删除暂存的被依赖任务 2 反馈的结果 (数据表 e的更新), 等待被依赖任务 2下一个周期 T2反馈的结果, 再继续进行 判断, 直至依赖任务 5能够处理为止。  For example: dependent task 1 is updated data table a, b, c, d; dependent task 2 is updated data table e, f, g, h; dependent task 5 is query data table a, g; if dependent task 1 In the first cycle T1, the update of the data table a is completed; when the task 2 is dependent on the first cycle T2, the update of the data table e is completed, and the task processor returns the result according to the task 1 (data table a). Update), if it is judged that the dependent task 5 can be processed, the partial processing of the task 5 is started (query data table a); at this time, the task processor temporarily stores the received result of the dependent task 2 feedback (update of the data table e) . After the partial processing of the dependent task 5 (query data table a) is completed, the task processor judges that the dependent task 5 cannot continue processing according to the result of the feedback of the dependent task 2 (update of the data table e), and the task processor deletes the temporary storage. The result of the feedback of the dependent task 2 (update of the data table e) waits for the result of the feedback of the next cycle T2 of the dependent task 2, and continues the determination until the dependent task 5 can process.
此外, 于本实施例中, 若任务队列中的任一被依赖任务完成, 则任务处理器更新任务依 赖对照表,并将更新的任务依赖对照表发送至时间片分配器及映射关系服务器。仍以步骤 102 中的表 1为例, 若被依赖任务 3完成, 则任务处理器更新表 1, 得到例如表 2所示。  In addition, in this embodiment, if any of the task queues are completed by the dependent task, the task processor update task depends on the lookup table, and the updated task dependency comparison table is sent to the time slice allocator and the mapping relationship server. Still taking Table 1 in step 102 as an example, if it is completed by dependent task 3, the task processor updates Table 1, as shown in Table 2.
被依赖任务 依赖任务
Figure imgf000007_0001
Dependent task dependent task
Figure imgf000007_0001
表 2  Table 2
此时, 任务处理器将更新的任务依赖对照表 (即, 表 2) 同步至时间片分配器及映射关 系服务器。 时间片分配器根据表 2及第一策略, 重新获得各个被依赖任务的空闲时间片分配 总数, 并发送给映射关系服务器及任务处理器, 映射关系服务器根据表 2、 各个被依赖任务 的空闲时间片分配总数及第二策略, 重新获得各个被依赖任务对应的周期, 并发送给任务处 理器。 任务处理器根据更新的各个被依赖任务的空闲时间片分配总数及对应的周期, 处理任 务队列中具有依赖关系的任务, 直至将任务队列中的任务全部处理。  At this point, the task processor synchronizes the updated task dependency table (ie, Table 2) to the time slice allocator and the mapping relationship server. According to Table 2 and the first policy, the time slice allocator regains the total number of idle time slice allocations of each dependent task, and sends it to the mapping relationship server and the task processor, and the mapping relationship server according to Table 2, the idle time of each dependent task The total number of slices is allocated and the second strategy regains the period corresponding to each dependent task and sends it to the task processor. The task processor processes the tasks having dependencies in the task queue according to the updated total number of free time slice allocations of the dependent tasks and the corresponding periods until all tasks in the task queue are processed.
图 2所示为根据本发明的较佳实施例提供的任务分配处理的系统的示意图。如图 2所示, 本发明的较佳实施例提供的任务分配处理的系统包括客户端 10、任务处理器 12、 时间片分配 器 13及映射关系服务器 14。 其中, 客户端 10连接任务处理器 12, 任务处理器 12连接时间 片分配器 13及映射关系服务器 14, 映射关系服务器 14连接时间片分配器 13。  2 is a schematic diagram of a system for task assignment processing in accordance with a preferred embodiment of the present invention. As shown in FIG. 2, the system for task assignment processing provided by the preferred embodiment of the present invention includes a client 10, a task processor 12, a time slice distributor 13 and a mapping relationship server 14. The client 10 is connected to the task processor 12, the task processor 12 is connected to the time slice allocator 13 and the mapping relationship server 14, and the mapping relationship server 14 is connected to the time slice allocator 13.
于本实施例中, 客户端 10将任务提交至任务处理器 12。 任务处理器 12将具有依赖关系 的任务放入任务队列, 并根据任务之间的依赖关系建立任务依赖对照表, 并将任务依赖对照 表同步至时间片分配器 13及映射关系服务器 14。 时间片分配器 13根据任务依赖对照表及第 一策略, 获得各个被依赖任务的空闲时间片分配总数, 并将各个被依赖任务的空闲时间片分 配总数发送至映射关系服务器 14及任务处理器 12。 映射关系服务器 14根据接收的任务依赖 对照表、 各个被依赖任务的空闲时间片分配总数及第二策略, 确定各个被依赖任务对应的周 期, 并将各个被依赖任务对应的周期发送至任务处理器 12。 任务处理器 12根据接收的各个 被依赖任务的空闲时间片分配总数及各个被依赖任务对应的周期, 处理任务队列中具有依赖 关系的任务。 关于上述系统的具体操作过程同上述方法所述, 故于此不再赘述。  In the present embodiment, the client 10 submits the task to the task processor 12. The task processor 12 puts the tasks having the dependencies into the task queue, and establishes a task dependency comparison table according to the dependencies between the tasks, and synchronizes the task dependency comparison table to the time slice allocator 13 and the mapping relationship server 14. The time slice allocator 13 obtains the total number of idle time slice allocations of each dependent task according to the task dependency comparison table and the first policy, and sends the total number of idle time slice allocations of each dependent task to the mapping relationship server 14 and the task processor 12 . The mapping relationship server 14 determines the period corresponding to each dependent task according to the received task dependency comparison table, the total number of idle time slice allocations of each dependent task, and the second policy, and sends each cycle corresponding to the dependent task to the task processor. 12. The task processor 12 processes the tasks having dependencies in the task queue according to the received total number of idle time slice allocations of each dependent task and the period corresponding to each dependent task. The specific operation process of the above system is the same as that described above, and therefore will not be described again.
综上所述, 根据本发明较佳实施例提供的任务分配处理的方法及系统, 时间片分配器根 据任务依赖对照表及第一策略, 获得各个被依赖任务的空闲时间片分配总数, 并将各个被依 赖任务的空闲时间片分配总数发送至映射关系服务器及任务处理器。 而且, 映射关系服务器 根据接收的任务依赖对照表、 各个被依赖任务的空闲时间片分配总数及第二策略, 确定各个 被依赖任务对应的周期, 并将各个被依赖任务对应的周期发送至任务处理器。 任务处理器根 据接收的各个被依赖任务的空闲时间片分配总数及各个被依赖任务对应的周期, 处理任务队 列中具有依赖关系的任务。 如此, 提高了具有依赖关系的任务的资源分配效率, 使得具有依 赖关系的任务得到了更好的执行, 提高了效率。  In summary, according to the method and system for task allocation processing provided by the preferred embodiment of the present invention, the time slice allocator obtains the total number of idle time slice allocations of each dependent task according to the task dependency comparison table and the first policy, and The total number of idle time slice allocations of each dependent task is sent to the mapping relationship server and the task processor. Moreover, the mapping relationship server determines the period corresponding to each dependent task according to the received task dependency comparison table, the total number of idle time slice allocations of each dependent task, and the second policy, and sends each cycle corresponding to the dependent task to the task processing. Device. The task processor processes the tasks having dependencies in the task queue according to the received total number of idle time slice allocations of each dependent task and the period corresponding to each dependent task. In this way, the resource allocation efficiency of the task with dependencies is improved, and the tasks with dependencies are better executed and the efficiency is improved.
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技术人员 ― The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and is to those skilled in the art. ―
来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的任何修改、 等 同替换、 改进等, 均应包含在本发明的保护范围之内。 The present invention is susceptible to various modifications and changes. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 ― WO 2014/108000 PCT/CN2013/088488 Claims - WO 2014/108000 PCT/CN2013/088488
1、 一种任务分配处理的方法, 其特征在于, 包括以下步骤: 1. A method for task allocation processing, which is characterized by including the following steps:
客户端将任务提交至任务处理器; The client submits the task to the task processor;
所述任务处理器将具有依赖关系的任务放入任务队列, 并根据任务之间的依赖关系建立 任务依赖对照表, 并将所述任务依赖对照表同步至时间片分配器及映射关系服务器; The task processor puts tasks with dependencies into the task queue, establishes a task dependency comparison table based on the dependency relationships between tasks, and synchronizes the task dependency comparison table to the time slice allocator and mapping relationship server;
所述时间片分配器根据所述任务依赖对照表及第一策略, 获得各个被依赖任务的空闲时 间片分配总数, 并将各个被依赖任务的空闲时间片分配总数发送至所述映射关系服务器及所 述任务处理器; The time slice allocator obtains the total number of idle time slice allocations for each dependent task based on the task dependency comparison table and the first strategy, and sends the total number of idle time slice allocations for each dependent task to the mapping relationship server and The task processor;
所述映射关系服务器根据接收的所述任务依赖对照表、 各个被依赖任务的空闲时间片分 配总数及第二策略, 确定各个被依赖任务对应的周期, 并将各个被依赖任务对应的周期发送 至所述任务处理器; The mapping relationship server determines the cycle corresponding to each dependent task based on the received task dependency comparison table, the total number of idle time slice allocations for each dependent task, and the second strategy, and sends the cycle corresponding to each dependent task to The task processor;
所述任务处理器根据接收的各个被依赖任务的空闲时间片分配总数及各个被依赖任务对 应的周期, 处理所述任务队列中具有依赖关系的任务。 The task processor processes tasks with dependencies in the task queue based on the received total number of idle time slice allocations for each dependent task and the cycle corresponding to each dependent task.
2、 根据权利要求 1所述的方法, 其特征在于, 所述第一策略为: 所述时间片分配器根据 所述任务依赖对照表分别计算各个被依赖任务对应的依赖任务占比, 根据各个被依赖任务对 应的依赖任务占比及当前时刻的系统空闲时间片的总量, 计算获得各个被依赖任务的空闲时 间片分配总数。 2. The method according to claim 1, characterized in that, the first strategy is: the time slice allocator calculates the proportion of dependent tasks corresponding to each dependent task according to the task dependency comparison table. The proportion of dependent tasks corresponding to the dependent tasks and the total amount of system idle time slices at the current moment are calculated to obtain the total number of idle time slices allocated to each dependent task.
3、 根据权利要求 1所述的方法, 其特征在于, 所述第二策略为: 各个被依赖任务对应的 周期根据各个被依赖任务的空闲时间片分配总数及各个被依赖任务对应的依赖任务个数确 定。 3. The method according to claim 1, characterized in that, the second strategy is: the period corresponding to each dependent task is based on the total number of idle time slice allocations of each dependent task and the number of dependent tasks corresponding to each dependent task. The number is determined.
4、 根据权利要求 1所述的方法, 其特征在于, 所述任务队列中的任务, 按照依赖关系排 序, 被依赖任务优先被执行。 4. The method according to claim 1, characterized in that, tasks in the task queue are sorted according to dependency relationships, and dependent tasks are executed first.
5、根据权利要求 1所述的方法, 其特征在于, 所述任务处理器根据被依赖任务一个周期 反馈的结果判断是否能够处理所述任务队列中的依赖任务, 若不能处理, 则继续等待所述被 依赖任务下一个周期反馈的结果, 直至所述依赖任务能够处理为止。 5. The method according to claim 1, characterized in that, the task processor determines whether it can process the dependent task in the task queue based on the result of one cycle of feedback from the dependent task. If it cannot process it, it continues to wait for all the dependent tasks. Describe the results of the dependent task's feedback in the next cycle until the dependent task can process it.
6、根据权利要求 1所述的方法,其特征在于,若所述任务队列中的任一被依赖任务完成, 则所述任务处理器更新所述任务依赖对照表, 并将更新的所述任务依赖对照表发送至所述时 间片分配器及所述映射关系服务器。 6. The method according to claim 1, characterized in that if any dependent task in the task queue is completed, the task processor updates the task dependency comparison table and adds the updated task to The dependency comparison table is sent to the time slice allocator and the mapping relationship server.
7、 一种任务分配处理的系统, 其特征在于, 包括客户端、 任务处理器、 时间片分配器及 映射关系服务器, 所述客户端连接所述任务处理器, 所述任务处理器连接所述时间片分配器 及所述映射关系服务器, 所述映射关系服务器连接所述时间片分配器, 7. A system for task allocation processing, characterized in that it includes a client, a task processor, a time slice allocator and a mapping server, the client is connected to the task processor, and the task processor is connected to the A time slice allocator and the mapping relationship server, the mapping relationship server is connected to the time slice allocator,
其中, 所述客户端将任务提交至所述任务处理器, 权 利 要 求 书 Wherein, the client submits the task to the task processor, claims
― WO 2014/108000 PCT/CN2013/088488 ― WO 2014/108000 PCT/CN2013/088488
所述任务处理器将具有依赖关系的任务放入任务队列, 并根据任务之间的依赖关系建立 任务依赖对照表,并将所述任务依赖对照表同步至所述时间片分配器及所述映射关系服务器, 所述时间片分配器根据所述任务依赖对照表及第一策略, 获得各个被依赖任务的空闲时 间片分配总数, 并将各个被依赖任务的空闲时间片分配总数发送至所述映射关系服务器及所 述任务处理器, The task processor puts tasks with dependencies into the task queue, establishes a task dependency comparison table based on the dependency relationships between tasks, and synchronizes the task dependency comparison table to the time slice allocator and the mapping. Relational server, the time slice allocator obtains the total number of idle time slice allocations for each dependent task based on the task dependency comparison table and the first policy, and sends the total number of idle time slice allocations for each dependent task to the mapping relational server and said task handler,
所述映射关系服务器根据接收的所述任务依赖对照表、 各个被依赖任务的空闲时间片分 配总数及第二策略, 确定各个被依赖任务对应的周期, 并将各个被依赖任务对应的周期发送 至所述任务处理器, The mapping relationship server determines the cycle corresponding to each dependent task based on the received task dependency comparison table, the total number of idle time slice allocations for each dependent task, and the second strategy, and sends the cycle corresponding to each dependent task to the task processor,
所述任务处理器根据接收的各个被依赖任务的空闲时间片分配总数及各个被依赖任务对 应的周期, 处理所述任务队列中具有依赖关系的任务。 The task processor processes tasks with dependencies in the task queue based on the received total number of idle time slice allocations for each dependent task and the cycle corresponding to each dependent task.
8、 根据权利要求 7所述的系统, 其特征在于, 所述第一策略为: 所述时间片分配器根据 所述任务依赖对照表分别计算各个被依赖任务对应的依赖任务占比, 根据各个被依赖任务对 应的依赖任务占比及当前时刻的系统空闲时间片的总量, 计算获得各个被依赖任务的空闲时 间片分配总数。 8. The system according to claim 7, characterized in that, the first strategy is: the time slice allocator calculates the proportion of dependent tasks corresponding to each dependent task according to the task dependency comparison table, and according to each The proportion of dependent tasks corresponding to the dependent tasks and the total amount of system idle time slices at the current moment are calculated to obtain the total number of idle time slices allocated to each dependent task.
9、 根据权利要求 7所述的系统, 其特征在于, 所述第二策略为: 各个被依赖任务对应的 周期根据各个被依赖任务的空闲时间片分配总数及各个被依赖任务对应的依赖任务个数确 定。 9. The system according to claim 7, wherein the second strategy is: the period corresponding to each dependent task is allocated according to the total number of idle time slices of each dependent task and the number of dependent tasks corresponding to each dependent task. The number is determined.
10、 根据权利要求 7所述的系统, 其特征在于, 所述任务队列中的任务, 按照依赖关系 排序, 被依赖任务优先被执行。 10. The system according to claim 7, characterized in that, tasks in the task queue are sorted according to dependency relationships, and dependent tasks are executed first.
PCT/CN2013/088488 2013-01-09 2013-12-04 Task allocation method and system WO2014108000A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310007691.3 2013-01-09
CN201310007691.3A CN103064745B (en) 2013-01-09 2013-01-09 A kind of method and system of task matching process

Publications (1)

Publication Number Publication Date
WO2014108000A1 true WO2014108000A1 (en) 2014-07-17

Family

ID=48107378

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/088488 WO2014108000A1 (en) 2013-01-09 2013-12-04 Task allocation method and system

Country Status (2)

Country Link
CN (1) CN103064745B (en)
WO (1) WO2014108000A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104793996A (en) * 2015-04-29 2015-07-22 中芯睿智(北京)微电子科技有限公司 Task scheduling method and device of parallel computing equipment
CN106254454A (en) * 2016-08-02 2016-12-21 大连文森特软件科技有限公司 The inline graphics online literature editing system calculated based on moving distributing

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064745B (en) * 2013-01-09 2015-09-09 苏州亿倍信息技术有限公司 A kind of method and system of task matching process
CN104268007A (en) * 2014-01-07 2015-01-07 深圳市华傲数据技术有限公司 Distributed event request scheduling method and system
CN104407848B (en) * 2014-10-29 2018-11-06 中国建设银行股份有限公司 A kind of data processing method and device
CN104571462B (en) * 2014-12-30 2017-05-03 深圳先进技术研究院 Method and system for controlling battery power dissipation
CN106528275A (en) * 2015-09-10 2017-03-22 网易(杭州)网络有限公司 Processing method of data tasks and task scheduler
AU2018305146A1 (en) * 2017-11-08 2019-05-23 Afiniti, Ltd. Techniques for benchmarking pairing strategies in a task assignment system
CN108108235B (en) * 2017-12-07 2021-10-29 哈勃智远(北京)科技有限公司 Task processing method and device
CN111967766B (en) * 2020-08-18 2023-10-24 中新软件(上海)有限公司 Serial task dispatching method and device based on performance index

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591712A (en) * 2011-12-30 2012-07-18 大连理工大学 Decoupling parallel scheduling method for rely tasks in cloud computing
CN102722381A (en) * 2011-03-25 2012-10-10 微软公司 Techniques to optimize upgrade tasks
CN103064745A (en) * 2013-01-09 2013-04-24 苏州亿倍信息技术有限公司 Method and system for distributing and processing tasks
CN103077084A (en) * 2013-01-09 2013-05-01 苏州亿倍信息技术有限公司 Method and system for controlling tasks
CN103077086A (en) * 2013-01-09 2013-05-01 苏州亿倍信息技术有限公司 Method and system for controlling task distribution
CN103077083A (en) * 2013-01-09 2013-05-01 苏州亿倍信息技术有限公司 Method and system for processing tasks
CN103077085A (en) * 2013-01-09 2013-05-01 苏州亿倍信息技术有限公司 Method and system for distributing tasks

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421702B1 (en) * 1998-06-09 2002-07-16 Advanced Micro Devices, Inc. Interrupt driven isochronous task scheduler system
JP2008500627A (en) * 2004-05-27 2008-01-10 コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ Signal processing device
US20090025004A1 (en) * 2007-07-16 2009-01-22 Microsoft Corporation Scheduling by Growing and Shrinking Resource Allocation
CN101692208B (en) * 2009-10-15 2011-03-30 北京交通大学 Task scheduling method for processing real-time traffic information
US9086922B2 (en) * 2009-10-26 2015-07-21 Microsoft Technology Licensing, Llc Opportunistically scheduling and adjusting time slices

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722381A (en) * 2011-03-25 2012-10-10 微软公司 Techniques to optimize upgrade tasks
CN102591712A (en) * 2011-12-30 2012-07-18 大连理工大学 Decoupling parallel scheduling method for rely tasks in cloud computing
CN103064745A (en) * 2013-01-09 2013-04-24 苏州亿倍信息技术有限公司 Method and system for distributing and processing tasks
CN103077084A (en) * 2013-01-09 2013-05-01 苏州亿倍信息技术有限公司 Method and system for controlling tasks
CN103077086A (en) * 2013-01-09 2013-05-01 苏州亿倍信息技术有限公司 Method and system for controlling task distribution
CN103077083A (en) * 2013-01-09 2013-05-01 苏州亿倍信息技术有限公司 Method and system for processing tasks
CN103077085A (en) * 2013-01-09 2013-05-01 苏州亿倍信息技术有限公司 Method and system for distributing tasks

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104793996A (en) * 2015-04-29 2015-07-22 中芯睿智(北京)微电子科技有限公司 Task scheduling method and device of parallel computing equipment
CN106254454A (en) * 2016-08-02 2016-12-21 大连文森特软件科技有限公司 The inline graphics online literature editing system calculated based on moving distributing

Also Published As

Publication number Publication date
CN103064745B (en) 2015-09-09
CN103064745A (en) 2013-04-24

Similar Documents

Publication Publication Date Title
WO2014108000A1 (en) Task allocation method and system
Didona et al. Size-aware sharding for improving tail latencies in in-memory key-value stores
Rattihalli et al. Exploring potential for non-disruptive vertical auto scaling and resource estimation in kubernetes
WO2018149221A1 (en) Device management method and network management system
US10013189B1 (en) Storage volume backup management for multi-tenant environments
US9396010B2 (en) Optimization of packet processing by delaying a processor from entering an idle state
EP2901312B1 (en) Real time optimization of compute infrastructure in a virtualized environment
Pastorelli et al. HFSP: size-based scheduling for Hadoop
CN109564528B (en) System and method for computing resource allocation in distributed computing
CN110383764B (en) System and method for processing events using historical data in a serverless system
WO2016106516A1 (en) Method and device for scheduling user request in distributed resource system
US20040015973A1 (en) Resource reservation for large-scale job scheduling
WO2013107012A1 (en) Task processing system and task processing method for distributed computation
CN103761146B (en) A kind of method that MapReduce dynamically sets slots quantity
CN104915253A (en) Work scheduling method and work processor
CN114138486A (en) Containerized micro-service arranging method, system and medium for cloud edge heterogeneous environment
WO2016061935A1 (en) Resource scheduling method, device and computer storage medium
WO2022105337A1 (en) Task scheduling method and system
WO2016183799A1 (en) Hardware acceleration method and relevant device
Rupprecht et al. SquirrelJoin: Network-aware distributed join processing with lazy partitioning
WO2014047902A1 (en) Load balancing method, device, system and computer readable medium
Chhabra et al. A probabilistic model for finding an optimal host framework and load distribution in cloud environment
CN103077083A (en) Method and system for processing tasks
Yun et al. An integrated approach to workflow mapping and task scheduling for delay minimization in distributed environments
US9665409B2 (en) Methods and apparatus facilitating access to storage among multiple computers

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13870937

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13870937

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 15/09/2015)

122 Ep: pct application non-entry in european phase

Ref document number: 13870937

Country of ref document: EP

Kind code of ref document: A1