CN101086711B - Mission management method of multiple-mission operation system - Google Patents

Mission management method of multiple-mission operation system Download PDF

Info

Publication number
CN101086711B
CN101086711B CN 200610027564 CN200610027564A CN101086711B CN 101086711 B CN101086711 B CN 101086711B CN 200610027564 CN200610027564 CN 200610027564 CN 200610027564 A CN200610027564 A CN 200610027564A CN 101086711 B CN101086711 B CN 101086711B
Authority
CN
China
Prior art keywords
task
tasks
content
defined
object
Prior art date
Application number
CN 200610027564
Other languages
Chinese (zh)
Other versions
CN101086711A (en
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 上海全成通信技术有限公司
Priority to CN 200610027564 priority Critical patent/CN101086711B/en
Publication of CN101086711A publication Critical patent/CN101086711A/en
Application granted granted Critical
Publication of CN101086711B publication Critical patent/CN101086711B/en

Links

Abstract

The task management method for a multi task running system separates the tasks into task content and the task execution. The task content comprises the working process and to be finished affairs in static content. The task execution is dynamic in content with running time, frequency, actual execution and completion of the task being defined. For a task content, it can be several task execution modes, with generation of several task objects, with several tasks with the same execution mode being integrated to generate a new task object, and the task content being several task content in series or parallel, using the same task coordination strategy. It brings great unity and flexibility for the task management and realization.

Description

一种多任务运行系统中的任务管理方法 Task management method for multi-task operation system

技术领域 FIELD

[0001] 本发明涉及一种计算机运行系统,尤其涉及一种多任务运行系统中的任务管理方法。 [0001] The present invention relates to a computer operating system, particularly to a method for task management in a multi-tasking operating system.

背景技术 Background technique

[0002] 在多任务运行系统中,一般对每个任务都作为一个完整独立的实体进行管理,首先要定义任务的工作流程,指定该任务负责完成的事务,再定义任务的工作方式,比如任务运行时间和频度等,然后再实际地执行任务,完成任务定义的具体事务。 [0002] In the multitasking systems, generally to complete each task as a separate entity to manage, we must first define the workflow tasks, specify Affairs is responsible for completing the task, and then define the task of working, such as task run time and frequency, etc., before actually performing the task, the completion of the transaction specific task definition. 在这种任务处理模式中,任务的工作内容和任务的工作方式是紧密结合在一起进行处理的,如果系统需要有多个工作内容相同,而运行方式不同的任务,在管理和实现方面就显得很不灵活。 In this job processing mode, job content and tasks of the mission is to work closely together for processing, if the system requires more work the same content, but different ways of running the task in the management and implementation becomes very flexible. 比如, 在一个实际监测系统中,对于同一个监测对象,可能需要进行不同周期、不同频度的多种形式、多方位并行监测,如果根据不同的监测形式来定义多个不同的监测任务时,都要定义一次监测的对象,就会造成重复和浪费。 For example, in a practical monitoring system for monitoring the same object may require different periods, the frequency of different forms, multi-directional parallel monitoring, if the defined plurality of different monitoring tasks according to different forms of monitoring, monitoring should define an object once, it will cause duplication and waste.

发明内容 SUMMARY

[0003] 本发明的目的,在于解决现有技术中存在的上述问题,提供一种新的多任务运行系统中的任务管理方法。 [0003] The object of the present invention is to solve the above problems present in the prior art, to provide a new method for task management in a multitasking operating system.

[0004] 本发明的目的是这样实现的:一种多任务运行系统中的任务管理方法,包括以下步骤: [0004] The object of the present invention is implemented as follows: A method for task management in a multi-task operation system, comprising the steps of:

[0005] a、任务定义模块对任务按照“任务内容”和“任务执行”进行抽象分离,定义新的任务内容,确定任务的实现流程和事务逻辑;“任务内容”包括任务的工作流程和任务负责完成的事务;“任务执行”是指定义任务的运行时间、频度,并实际执行任务,完成任务内容; [0005] a, task definition module task in accordance with "SUMMARY" and "mandate" abstract separated, define a new task content determination implementation process and transaction logic tasks; "SUMMARY" includes a task of the workflow and the task responsible for the completion of the transaction; "mandate" refers to the definition of the task of running time, frequency, and the actual implementation tasks, to complete the task content;

[0006] b、任务生成模块对步骤a中定义的新的任务内容进行运行方式的定义和配置,根据不同的运行方式产生至少一个任务对象,加入任务池,并对任务内容不同而运行方式相同的任务进行整合,生成统一的新的任务对象,采用同一个任务调度策略进行调度运行; [0006] b, task generation module to the new task contents defined in step a defined configuration and mode of operation, generating at least one task according to the different operating modes objects, task pool was added, and the object of the same of different operating modes the task of integration, a new generation of unified task object, use the same task scheduling strategy scheduled to run;

[0007] C、任务调度模块根据步骤b中定义的运行方式,实时监控任务池,调度符合运行条件的任务对象,执行步骤a中定义的新的任务内容,处理任务定义的事务; [0007] C, depending on the operating mode scheduling module defined in step b, a new object of the real-time monitoring task pool, scheduled task objects that meet operating conditions, as defined in step a, defined transaction processing tasks;

[0008] d、任务池管理模块定期管理维护任务池中的任务对象,清理过期或失效的任务; [0008] d, the task management module pool management and maintenance tasks regularly target task pool, obsolete or failure of the mission;

[0009] 步骤b中所述的运行方式包括任务运行的时间和频度。 [0009] Step b, the operating modes include time and frequency of running task.

[0010] 本发明多任务运行系统中的任务管理方法较好地把任务的“静态”和“动态”内容进行分离,提高了任务的管理和实现的灵活性;同时对于任务执行方式相同的多个任务进行整合,采用统一的调度策略运行任务,简化了多任务调度处理的负责性,提高了任务调度的效率。 [0010] The task management method of a multitasking operating system according to the present invention preferably the "static" and "dynamic" separation TASK, the task management and improved flexibility achieved; the same way for the same multi-task execution task integration, unified scheduling policy to run the task, simplifying responsible for multi-task scheduling process, improve the efficiency of task scheduling.

[0011] 附图说明 [0011] BRIEF DESCRIPTION OF DRAWINGS

[0012] 图1为本发明的实现原理框图; [0012] Figure 1 is a schematic block diagram of implementation of the invention;

[0013] 图2为本发明的任务整合方法框图;[0014] 图3为本发明的实现模块框图。 Task integrated process block diagram [0013] of the present invention. FIG. 2; [0014] Fig 3 block diagram of the present invention is implemented.

[0015] 具体实施方式 [0015] DETAILED DESCRIPTION

[0016] 配合参见图1,配合参见图2、图3,本发明的多任务运行系统对任务采用一种抽象处理方法,把系统中的任务抽象分离成任务内容和任务执行两个部分进行管理,其中任务内容包括任务的工作流程,和任务负责完成的事务等,是个“静态”内容,而任务执行则是任务的“动态”内容,定义任务的运行时间、频度,并实际执行任务,完成任务内容。 [0016] Referring to Figure 1 complex, with see FIG. 2, FIG. 3, multi-task operation system of the invention uses an abstract task processing method, the system is separated into an abstract object of the task and the task execution management two parts where tasks including task workflow, and task responsible for the completion of the transaction, is a "static" content, and task execution is the run-time "dynamic" content, defining the task, the frequency of the task, and the actual implementation tasks, to complete the task content. 这样把一个任务的“静态”任务内容和“动态”的任务执行分离后,对于同一个任务内容,就可以定义多种任务执行方式,生成多个任务对象;同时对于任务内容不同但任务的执行方式相同的多个任务也可以进行整合,生成一个新的任务对象,任务内容为多个任务的任务内容的并联或串联集合,采用同一个任务调度策略进行调度运行。 Thus the "static" and the object of the "dynamic" task after a task execution separation, for the same task contents, you can define a variety of task execution mode, generating a plurality of task objects; content while performing tasks for different tasks but the same manner as a plurality of tasks can also be integrated to generate a new task object, SUMMARY SUMMARY parallel or in series to a plurality of tasks set, performs scheduling using a scheduling policy to run the same. 例如图2所示,即是将任务内容Tl 和任务内容T2整合成一个新的任务对象T,用同一个执行方式P执行。 As shown in FIG. 2, that is, the object of Tl and T2 SUMMARY integrated into a new task object T, by executing the same implementation P. 这种处理方法在多任务的管理和实现上都带来了很大的统一性和灵活性。 This approach in the management and multitasking have brought great unity and flexibility.

[0017] 本发明多任务运行系统中的任务管理方法的具体的实现流程是,首先由任务定义模块对任务进行抽象分离,定义新的任务内容如任务的工作流程和任务负责完成的工作具体内容、参数等静态信息,确定任务的实现流程和事务逻辑;然后由任务生成模块对在任务定义模块中定义的任务进行配置,确定任务的执行方式,并根据不同任务执行方式生成不同任务对象,并把任务对象加入任务池,等待任务调度模块的调度运行;同时可以对于任务的执行方式相同的多个任务进行整合,生成一个新的任务对象,任务内容为多个任务的任务内容的并联或串联集合,采用同一个任务调度策略进行调度运行。 [0017] The specific implementation process task management method of multi-task operating system of the present invention are, first, the task abstraction separated by the task definition module, a new object of as defined workflow and job tasks responsible for completing the work details , parameters static information, determining the implementation process and the transaction logic tasks; followed by the task generating module task definitions in the task definition module configured to determine how the task, and generate different task objects depending on the task execution mode, and the task object added task pool, waiting to be scheduled to run the task scheduler module; parallel or in series can be integrated simultaneously for the same plurality of tasks in the task execution mode, generates a new task object, object of a plurality of tasks SUMMARY collection, are scheduled to run using the same scheduling strategy. 任务调度模块则根据根据任务池中的任务对象信息,生成具体的任务线程,并按照任务的运行方式动态的执行任务线程。 The scheduling module is based on the task information of the task objects in the pool, the task of generating a particular thread, and perform tasks in accordance with a dynamic mode of operation task thread. 另外,本发明还通过一个任务池管理模块定期管理维护任务池中的任务对象,清理过期或失效的任务对象。 In addition, the present invention also by a task management module pool management and maintenance tasks regularly target task pool, obsolete or invalid task object. 以确保系统的稳定高效运行。 To ensure stable and efficient operation of the system.

Claims (1)

1. 一种多任务运行系统中的任务管理方法,其特征在于,包括以下步骤:a、任务定义模块对任务按照“任务内容”和“任务执行”进行抽象分离,定义新的任务内容,确定任务的实现流程和事务逻辑;“任务内容”包括任务的工作流程和任务负责完成的事务;“任务执行”是指定义任务的运行时间、频度,并实际执行任务,完成任务内容;b、任务生成模块对步骤a中定义的新的任务内容进行运行方式的定义和配置,根据不同的运行方式产生至少一个任务对象,加入任务池,并对任务内容不同而运行方式相同的任务进行整合,生成统一的新的任务对象,采用同一个任务调度策略进行调度运行;C、任务调度模块根据步骤b中定义的运行方式,实时监控任务池,调度符合运行条件的任务对象,执行步骤a中定义的新的任务内容,处理任务定义的事务;d、任 1. A method of task management multitasking system, characterized by comprising the steps of: a, of the tasks in the task definition module "SUMMARY" and "mandate" abstract separated, define a new task content determination implementation process and transaction logic tasks; "the object" includes task workflows and tasks responsible for the completion of the transaction; "mandate" means the running time is defined tasks, frequency, and actually perform the task, the task content; b, task generation module for the new task contents defined in step a defined configuration and mode of operation, generating at least one task according to the different operating modes objects, task pool was added, and the same object of different operating modes of integration tasks, new task object generation unified using scheduling run the same scheduling strategy; C, task scheduling module according to the operating mode in step b defined, real-time monitoring task pool, scheduled task objects that meet operating conditions, step a defined the new task content, transaction processing tasks defined; d, either 务池管理模块定期管理维护任务池中的任务对象,清理过期或失效的任务; 步骤b中所述的运行方式包括任务运行的时间和频度。 Service pool management module periodic maintenance task object management tasks in the pool, the task of obsolete or invalid; step b of the operating modes include time and frequency of running task.
CN 200610027564 2006-06-11 2006-06-11 Mission management method of multiple-mission operation system CN101086711B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610027564 CN101086711B (en) 2006-06-11 2006-06-11 Mission management method of multiple-mission operation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610027564 CN101086711B (en) 2006-06-11 2006-06-11 Mission management method of multiple-mission operation system

Publications (2)

Publication Number Publication Date
CN101086711A CN101086711A (en) 2007-12-12
CN101086711B true CN101086711B (en) 2012-02-29

Family

ID=38937680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610027564 CN101086711B (en) 2006-06-11 2006-06-11 Mission management method of multiple-mission operation system

Country Status (1)

Country Link
CN (1) CN101086711B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266553B (en) 2008-05-06 2010-06-02 无锡紫芯集成电路系统有限公司 Multitask management process based on embedded system
CN101551758B (en) * 2009-05-13 2013-06-05 中兴通讯股份有限公司 System and method for implementing paralleling work of device management and tasks
CN103150620A (en) * 2011-12-07 2013-06-12 徐翔 Project decomposition processing method and system
CN102880503B (en) * 2012-08-24 2015-04-15 新浪网技术(中国)有限公司 Data analysis system and data analysis method
CN104252391B (en) * 2013-06-28 2017-09-12 国际商业机器公司 Method and apparatus for managing multiple operations in distributed computing system
CN104978230B (en) * 2014-04-02 2019-06-11 腾讯科技(深圳)有限公司 Asynchronous task canceling method, device and electronic equipment
CN103942109B (en) * 2014-05-04 2017-02-15 江苏物联网研究发展中心 Self-adaptation task scheduling method based on multi-core DSP
CN104216785B (en) * 2014-08-26 2017-10-10 烽火通信科技股份有限公司 General policies task system and its implementation
CN104504495A (en) * 2014-11-27 2015-04-08 北京百度网讯科技有限公司 Operation and maintenance abnormity processing method, device and equipment
CN105706126A (en) * 2015-05-22 2016-06-22 深圳市博安达信息技术股份有限公司 Monitoring task generation method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1637764A (en) 2004-01-07 2005-07-13 国际商业机器公司 Workflow system and method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1637764A (en) 2004-01-07 2005-07-13 国际商业机器公司 Workflow system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
史美林等.WFMS:工作流管理系统.计算机学报22 3.1999,22(3),325-333.
邓水光等.动态工作流建模方法的研究与设计.计算机集成制造系统10 6.2004,10(6),601-607.

Also Published As

Publication number Publication date
CN101086711A (en) 2007-12-12

Similar Documents

Publication Publication Date Title
Mahony et al. Timed communicating object Z
Kennedy et al. Toward a framework for preparing and executing adaptive grid programs
Baer A survey of some theoretical aspects of multiprocessing
Harel et al. The rhapsody semantics of statecharts (or, on the executable core of the UML)
CN103729330B (en) Distributing services in graph-based computations
Gardner UML modelling of automated business processes with a mapping to BPEL4WS
MacDonald et al. From patterns to frameworks to parallel programs
Vanderfeesten et al. Evaluating workflow process designs using cohesion and coupling metrics
Miller et al. CORBA-based run-time architectures for workflow management systems
US5974536A (en) Method, system and computer program product for profiling thread virtual memory accesses
US20030200533A1 (en) Method and apparatus for creating software objects
Wiederhold et al. Toward megaprogramming
Keizer et al. Pirana and PCluster: a modeling environment and cluster infrastructure for NONMEM
Falcou et al. Quaff: efficient c++ design for parallel skeletons
US20060069596A1 (en) Workflow hosting computing system using a collaborative application
US20070239499A1 (en) Framework for modeling continuations in workflows
RU2445688C2 (en) Modelling of user input and interaction in applications based on working process
Selic On the semantic foundations of standard UML 2.0
JPH0683841A (en) Method and system for work flow management
WO2007078461A1 (en) Multiple concurrent workflow persistence schemes
Baruah Optimal utilization bounds for the fixed-priority scheduling of periodic task systems on identical multiprocessors
Tavakkoli-Moghaddam et al. A computer simulation model for job shop scheduling problems minimizing makespan
JPH0683689A (en) Long-time operation transaction management system and method for executing long-time operation transaction
CN1490717A (en) Method and system for multiprocessor simulation in multiprocessor host system
Momotko et al. Process query language: A way to make workflow processes more flexible

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted