JPH06119188A - Task managing system - Google Patents

Task managing system

Info

Publication number
JPH06119188A
JPH06119188A JP26474092A JP26474092A JPH06119188A JP H06119188 A JPH06119188 A JP H06119188A JP 26474092 A JP26474092 A JP 26474092A JP 26474092 A JP26474092 A JP 26474092A JP H06119188 A JPH06119188 A JP H06119188A
Authority
JP
Japan
Prior art keywords
task
information
instruction
registration table
processing
Prior art date
Legal status (The legal status 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 status listed.)
Withdrawn
Application number
JP26474092A
Other languages
Japanese (ja)
Inventor
Kazuhide Onishi
和栄 大西
Masatoshi Takita
雅敏 滝田
Yoshitsugu Mizuno
喜次 水野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP26474092A priority Critical patent/JPH06119188A/en
Publication of JPH06119188A publication Critical patent/JPH06119188A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To provide technique by which false task processing can be performed at high speed by starting up the minimum required number of tasks in an operating system feasible only single task processing. CONSTITUTION:This system is comprised of a task registration table 1 which registers task information to specify individual task classified by every priority at every task group relating to processing in execution, a task storage part 2 which stores the task in accordance with the task information, an instruction issuing means 3 which issues an execution instruction at every unit by decoding a program 5, and an instruction execution means 4 which refers to the task registration table 1 in accordance with an execution instruction issued from the instruction issuing means 3, and reads out the task registered on the task registration table 1, and executes the task.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、シングルタスク処理の
み実行可能なオペレーティングシステムを備えるシステ
ムにおいて、特に、複数のタスクを疑似的に並行処理す
る疑似マルチタスク処理を行う際の処理の高速化を図る
技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system provided with an operating system capable of executing only single task processing, and in particular, to speed up the processing when performing pseudo multitask processing in which a plurality of tasks are processed in parallel. Concerning technology to plan.

【0002】[0002]

【従来の技術】現在パーソナルコンピュータ等のオペレ
ーティングシステム(以下、OSと略称する)では、シ
ングルタスクのOS(現在では、MS−DOSが主流)
が一般的になっている。
2. Description of the Related Art In a current operating system (hereinafter abbreviated as OS) of a personal computer or the like, a single-task OS (currently, MS-DOS is mainly used).
Has become commonplace.

【0003】このシングルタスクのOSのもとに、プロ
グラム開発を行った場合、そのプログラムを実行する
際、シングルタスクのみ実行可能であるために、処理に
時間がかかっていた。
When a program is developed under this single task OS, when the program is executed, only a single task can be executed, so that it takes a long time to process.

【0004】そこで、従来では、シングルタスクのOS
上において、疑似マルチタスク処理を行うために以下の
ようなタスク管理方式を採用している。従来のタスク管
理方式では、プログラムの各処理毎に、その処理を実行
する際に必要なタスクを予めグループ分けしておく方式
である。
Therefore, conventionally, a single-task OS is used.
In the above, the following task management method is adopted to perform the pseudo multitask processing. The conventional task management system is a system in which, for each process of a program, the tasks required for executing the process are grouped in advance.

【0005】この具体的な説明を以下に示す。図9は、
従来のタスク処理システムの構成を示すブロック図であ
り、命令発行部100、命令実行部110、タスク格納
部120、処理プログラム100aとから構成される。
A detailed description of this will be given below. Figure 9
FIG. 10 is a block diagram showing a configuration of a conventional task processing system, which includes an instruction issuing unit 100, an instruction executing unit 110, a task storage unit 120, and a processing program 100a.

【0006】命令発行部100は、処理プログラム10
0aを解読して、当該処理プログラム100aを実行す
る際に、処理単位毎に実行命令を発呼するものである。
命令実行部110は、前記命令実行部100の発行した
命令を処理単位に実行するものである。
The instruction issuing unit 100 includes a processing program 10
When 0a is decoded and the processing program 100a is executed, an execution instruction is issued for each processing unit.
The instruction execution unit 110 executes the instruction issued by the instruction execution unit 100 in processing units.

【0007】タスク格納部120は、各処理単位毎に必
要なタスクをグループ分けして格納するものである。こ
の具体例を図10に示す。
The task storage unit 120 stores necessary tasks in groups for each processing unit. A specific example of this is shown in FIG.

【0008】ここでは、命令発行部100は、プログラ
ム実行にかかる処理を処理識別フラグにより指定するよ
うにする。例えば、任意の処理実行にかかるタスクを、
タスクA、タスクD、タスクE、タスクH、タスクJと
すると、これらのタスク群にフラグ”1”を付加し、命
令発行部100から命令実行部110に対してフラグ”
1”が通知されると、命令実行部110は、タスク格納
部120にアクセスして、このフラグ”1”に対応する
タスクグループ、即ちタスクA、D、E、H、Jを読み
出す。そして、命令実行部110は、タスクA、タスク
D,タスクE、タスクH、タスクJを疑似並行処理する
ために、タスクAの一部を実行した後、タスクDを起動
してタスクDの一部を実行した後に、タスクEを起動し
てタスクEの一部を実行した後、タスクHを起動してこ
のタスクHの一部を実行し、さらにタスクJを起動して
タスクJの一部を実行する。ここで、各タスクの実行の
切換は、タイマの計時する一定時間により行う。つま
り、タスクAを、タイマの計時する一定時間内実行した
後、タスクDを同様に一定時間実行し、さらにタスクE
を同様に一定時間を計時し、タスクH、タスクJに関し
てもこのタイマの計時する一定時間内実行する。そし
て、これらの処理を各タスクにかかる処理を総て実行す
るまで繰り返し行い、タスクA、D、E、H、Jを疑似
的に並行処理している。
Here, the instruction issuing unit 100 specifies a process related to program execution by a process identification flag. For example, a task for executing arbitrary processing
If task A, task D, task E, task H, and task J, a flag "1" is added to these task groups, and the instruction issuing unit 100 sends a flag "to the instruction executing unit 110".
When "1" is notified, the instruction execution unit 110 accesses the task storage unit 120 and reads the task group corresponding to the flag "1", that is, the tasks A, D, E, H, and J. The instruction execution unit 110 executes a part of the task A, executes the part of the task D to execute a part of the task D in order to perform the pseudo parallel processing of the task A, the task D, the task E, the task H and the task J. After the execution, the task E is started and a part of the task E is executed, then the task H is started and a part of the task H is executed, and further, the task J is started and a part of the task J is executed. Here, the switching of the execution of each task is performed by the fixed time measured by the timer, that is, after the task A is executed within the fixed time measured by the timer, the task D is similarly executed for the fixed time. Task E
In the same manner, a fixed time is measured, and task H and task J are also executed within the fixed time measured by this timer. Then, these processes are repeatedly performed until all processes related to each task are executed, and the tasks A, D, E, H, and J are pseudo-processed in parallel.

【0009】[0009]

【発明が解決しようとする課題】ところで、前記したタ
スク管理方式では、任意のタスクを一定時間実行した後
に次に実行すべきタスクにタスク起動をかけなければな
らならない。即ち、タイマの計時する一定時間毎にタス
ク起動を行わなければならず、任意の処理を実行する際
に余計な時間がかかるという問題がある。また、ユーザ
が予めグループ分けしてタスクを登録する必要があり、
手間がかかる。
By the way, in the above-mentioned task management system, it is necessary to execute a task for a certain period of time and then activate the task to be executed next. That is, there is a problem in that task activation must be performed at regular time intervals measured by a timer, and an extra time is required to execute an arbitrary process. Also, the user needs to divide the group into groups in advance and register the tasks,
It takes time and effort.

【0010】そこで、本発明は、前記問題点に鑑みてな
されたものであり、必要最小限のタスク起動により、疑
似タスク処理を高速に行えるタスク管理方式を提供する
ことを課題とする。
Therefore, the present invention has been made in view of the above problems, and an object of the present invention is to provide a task management system capable of performing pseudo task processing at high speed by activating a minimum required number of tasks.

【0011】[0011]

【課題を解決するための手段】本発明は、前記課題を解
決するために、以下のようにした。これを図1の原理図
に基いて説明する。
The present invention has the following features to attain the object mentioned above. This will be described based on the principle diagram of FIG.

【0012】本発明にかかるタスク管理方式は、任意の
プログラム5を処理単位に分割し、各処理に対応するタ
スク群をシリアルに実行するシングルタスクシステムに
おいて、タスク登録テーブル1、タスク格納部2、命令
発行手段3、命令実行手段4とから構成する。
In the task management system according to the present invention, an arbitrary program 5 is divided into processing units, and a task group corresponding to each processing is executed serially in a single task system, a task registration table 1, a task storage unit 2, It is composed of an instruction issuing means 3 and an instruction executing means 4.

【0013】前記のタスク登録テーブル1は、前記タス
ク群毎に、個々のタスクを特定するタスク情報を優先順
位別に登録するものである。前記タスク格納部2は、前
記各タスク登録テーブル1に登録されているタスク情報
に対応するタスク本体を格納する。
The task registration table 1 is for registering, for each task group, task information for specifying individual tasks by priority order. The task storage unit 2 stores the task body corresponding to the task information registered in each task registration table 1.

【0014】命令発行手段3は、プログラム5実行命令
を各処理毎に発行するものである。命令実行手段4は、
命令発行手段3の発行した実行命令を解析して、この実
行命令に対応するタスク登録テーブル1を参照し、この
タスク登録テーブル1に登録されているタスク情報に対
応するタスクを前記タスク格納部2から読み出し、且つ
実行するものである。
The instruction issuing means 3 issues a program 5 execution instruction for each processing. The instruction executing means 4
The execution instruction issued by the instruction issuing means 3 is analyzed, the task registration table 1 corresponding to this execution instruction is referenced, and the task corresponding to the task information registered in this task registration table 1 is searched for in the task storage unit 2 It is read from and executed.

【0015】ここで、前記タスク登録テーブル1を優先
順位別に複数のテーブルから構成するようにしてもよ
い。例えば、優先順位の高い順にハイレベルのタスクを
登録するハイレベルタスク登録テーブル、ミドルレベル
のタスクを登録するミドルレベルタスク登録テーブル、
ロウレベルのタスクを登録するロウレベルタスク登録テ
ーブルに分割してタスクを登録するにできる。
Here, the task registration table 1 may be composed of a plurality of tables according to priorities. For example, a high-level task registration table that registers high-level tasks in descending order of priority, a middle-level task registration table that registers middle-level tasks,
You can register tasks by dividing them into a low-level task registration table that registers low-level tasks.

【0016】さらに、任意のタスクを前記タスク登録テ
ーブル1に登録するタスク登録手段6を設けるようにし
てもよい。また、任意のタスク情報を前記タスク登録テ
ーブル1から削除するタスク消去手段7を設けるように
してもよい。
Further, a task registration means 6 for registering an arbitrary task in the task registration table 1 may be provided. Further, task erasing means 7 for deleting arbitrary task information from the task registration table 1 may be provided.

【0017】[0017]

【作用】本発明によれば、命令発行手段3は、プログラ
ム5を処理単位に分割し、各処理単位を実行する際に、
任意の処理に対応する実行命令を発行する。
According to the present invention, the instruction issuing means 3 divides the program 5 into processing units, and when executing each processing unit,
Issue an execution instruction corresponding to an arbitrary process.

【0018】命令発行手段3の発行した実行命令を受け
た命令実行手段4は、当該処理に対応するタスク登録テ
ーブル1にアクセスし、優先順位に従って個々のタスク
情報を読み出す。そして、個々のタスク情報に基いてタ
スク格納部2にアクセスし、タスク情報に対応するタス
クを読み出して実行する。
Upon receiving the execution instruction issued by the instruction issuing means 3, the instruction executing means 4 accesses the task registration table 1 corresponding to the processing and reads out individual task information according to the priority order. Then, the task storage unit 2 is accessed based on the individual task information, and the task corresponding to the task information is read and executed.

【0019】これにより、優先順位に基いてタスクを実
行するため、優先順位の高いタスクを優先順位の低いタ
スクに比べて多く起動することにより、効率のよく高速
にタスク処理を行える。
As a result, the tasks are executed based on the priority order, so that the task with the higher priority order is activated more than the task with the lower priority order, whereby the task processing can be performed efficiently and at high speed.

【0020】また、前記のタスク登録テーブル1を優先
順位別に複数のテーブルから構成した場合、命令実行手
段4は、優先順位の最も低いテーブルにアクセスし、こ
のテーブルから任意に単一のタスク情報を検出してこの
タスク情報に対応するタスクを実行する。
When the task registration table 1 is composed of a plurality of tables according to priority order, the instruction executing means 4 accesses the table with the lowest priority order, and arbitrarily obtains single task information from this table. Detect and execute the task corresponding to this task information.

【0021】そして、前記最下位のテーブルに登録され
ているタスクを実行した後、次に、優先順位の低いテー
ブルに登録されている任意のタスクを一つ実行する。こ
の動作を繰り返し行い、優先順位の最も高いテーブルに
登録されているタスクを実行した際には、さらにこのテ
ーブルに登録されているタスクを順次実行し、この最上
位のテーブルに登録されているタスクを総て実行する。
そして、次に、優先順位の高いテーブルにアクセスし、
先に実行したタスクを除く全てのタスクを順次実行す
る。この動作を繰り返し行い、最下位の次に優先順位の
低いテーブルに登録されているタスクを総て実行終了し
た場合に、再び最下位のテーブルに登録されているタス
クのうち、前回実行したタスクを除いたタスクを順次実
行する。
After executing the task registered in the lowest table, next, one arbitrary task registered in the table with the lower priority is executed. When this operation is repeated and the task registered in the table with the highest priority is executed, the tasks registered in this table are sequentially executed, and the task registered in this highest table is executed. Perform all.
And then access the table with the highest priority,
Sequentially execute all tasks except the previously executed task. When this operation is repeated and all the tasks registered in the table with the next lowest priority are finished executing, the previously executed task among the tasks registered in the lowest table is executed again. Execute the excluded tasks sequentially.

【0022】これにより、優先順位の高いタスクを多く
起動し、必要最小限の起動回数により当該処理を実行で
きる。また、ユーザが任意のタスクの登録要求を当該シ
ステムに入力した場合、即ち、登録すべきタスク指定情
報と、当該タスクの優先順位情報を入力した場合、タス
ク登録手段6は、登録要求からタスクの優先順位を検出
し、この優先順位に対応するタスク登録テーブル1に当
該タスクを特定するタスク情報を登録すると共に、前記
タスクを前記タスク格納部2に格納することができる。
これにより、ユーザは、任意のタスクの優先順位を決定
することが可能となり、処理すべきプログラムに基いて
優先順位を選択可能である。
As a result, a large number of high-priority tasks can be activated and the processing can be executed with the minimum required number of activations. Further, when the user inputs a registration request of an arbitrary task to the system, that is, when the task designation information to be registered and the priority information of the task are input, the task registration means 6 determines the task from the registration request. It is possible to detect the priority order, register the task information specifying the task in the task registration table 1 corresponding to the priority order, and store the task in the task storage unit 2.
As a result, the user can determine the priority order of any task, and can select the priority order based on the program to be processed.

【0023】また、ユーザが登録されているタスクを消
去すべき消去要求を入力した場合には、タスク消去手段
7は、当該消去要求から消去すべきタスクのアドレス情
報を認識すると共に、このアドレス情報に基いて前記タ
スク登録テーブル1を検索して前記アドレス情報に対応
する領域にアクセスし、この領域に登録されているタス
ク情報を消去すると共に、このタスク情報に基いて前記
タスク格納部2にアクセスして当該タスク情報に対応す
るタスクを消去することが可能となる。これにより、不
必要なタスクの起動を防止できる。
When the user inputs an erasing request for erasing the registered task, the task erasing means 7 recognizes the address information of the task to be erased from the erasing request and the address information. Based on the above, the task registration table 1 is searched to access the area corresponding to the address information, the task information registered in this area is erased, and the task storage unit 2 is accessed based on this task information. Then, the task corresponding to the task information can be deleted. This can prevent unnecessary task activation.

【0024】[0024]

【実施例】本発明の具体的な実施例について以下に説明
する。本実施例におけるタスク管理システムは、処理装
置8、主記憶装置9、入力装置10、ディスプレイ装置
11とから構成される。
EXAMPLES Specific examples of the present invention will be described below. The task management system according to this embodiment includes a processing device 8, a main storage device 9, an input device 10, and a display device 11.

【0025】主記憶装置9には、処理装置8が実行すべ
きプログラム9a、タスク登録テーブル9b、タスク格
納部9cを収容している。タスク登録テーブル9bは、
プログラム9aの各処理毎に設け、任意の処理を実行す
る際に必要なタスクを優先順位別に登録するテーブルで
あり、実際には個々のタスクを特定するタスクデータを
登録する。この詳しい説明は後述する。
The main memory 9 contains a program 9a to be executed by the processor 8, a task registration table 9b, and a task storage 9c. The task registration table 9b is
This is a table that is provided for each process of the program 9a and registers the tasks necessary for executing an arbitrary process by priority order. Actually, the task data that specifies each task is registered. This detailed description will be given later.

【0026】タスク格納部9cは、前記のプログラム9
a実行に必要なすべてのタスクをアドレス別に格納する
ものである。一方、処理装置8は、命令発行部8a、命
令実行部8b、タスク登録部8c、タスク削除部8dと
から構成される。
The task storage unit 9c stores the program 9 described above.
a) All tasks required for execution are stored by address. On the other hand, the processing device 8 includes an instruction issuing unit 8a, an instruction executing unit 8b, a task registering unit 8c, and a task deleting unit 8d.

【0027】命令発行部8aは、前記プログラム9aを
処理単位に解読し、任意の処理実行にかかる実行命令を
発行するものである。命令実行部8bは、命令発行部8
aから発行された実行命令に基づき、実行すべき処理に
対応するタスク登録テーブル9bにアクセスし、このタ
スク登録テーブル9bの優先順位に基いて順次タスクを
起動・実行するものである。
The instruction issuing unit 8a decodes the program 9a in processing units and issues an execution instruction for executing arbitrary processing. The instruction executing unit 8b is the instruction issuing unit 8
Based on the execution instruction issued from a, the task registration table 9b corresponding to the process to be executed is accessed, and the tasks are sequentially activated and executed based on the priority order of the task registration table 9b.

【0028】タスク登録部8cは、上記の入力装置10
にタスク登録要求が入力された場合に、その登録要求に
基いたタスクを特定するタスクデータをタスク登録テー
ブル9bに登録するものであり、この詳しい説明は後述
する。
The task registration unit 8c is the input device 10 described above.
When a task registration request is input to the task registration table 9b, the task data specifying the task based on the registration request is registered in the task registration table 9b, and the detailed description thereof will be described later.

【0029】タスク削除部8dは、上記の入力装置10
にタスク削除要求が入力された場合に、その策状要求に
基づいたタスクを特定するタスクデータをタスク登録テ
ーブル9bから削除する。この詳しい説明は後述する。
The task deleting unit 8d is the input device 10 described above.
When a task deletion request is input to the task registration table 9b, the task data that specifies the task based on the policy request is deleted from the task registration table 9b. This detailed description will be given later.

【0030】ディスプレイ装置11は、タスク登録時に
タスクに割り振られるべきタスク番号を表示する。次
に、図3に本実施例におけるタスク登録テーブル9bの
具体例を示す。
The display device 11 displays the task number to be assigned to the task when the task is registered. Next, FIG. 3 shows a concrete example of the task registration table 9b in this embodiment.

【0031】本実施例では、当該タスク登録テーブル9
bを三段階の優先順位に分割している。同図において、
タスク登録テーブル9bは、最も優先順位の高いタスク
を登録するH(;High)レベルテーブル12、最も
優先順位の低いタスクを登録するL(;Low)レベル
テーブル14、そして、前記Hレベルテーブル12より
優先順位が低く、且つLレベルテーブル14より優先順
位の高いタスクを登録するM(;Middle)レベル
テーブル13とから構成する。
In this embodiment, the task registration table 9
b is divided into three levels of priority. In the figure,
The task registration table 9b includes an H (; High) level table 12 for registering the highest priority task, an L (; Low) level table 14 for registering the lowest priority task, and the H level table 12. It is composed of an M (; Middle) level table 13 for registering a task having a lower priority and a higher priority than the L level table 14.

【0032】各テーブルのヘッダ部分に格納するタスク
ヘッド最大数は、テーブルに格納されているタスクデー
タの個数を示す。また、当該タスク登録テーブル9bに
は、タスク自体を登録するのではなく、個々のタスクを
特定するタスクデータを登録する。このタスクデータの
内容を図4に示す。
The maximum number of task heads stored in the header portion of each table indicates the number of task data stored in the table. Further, in the task registration table 9b, the task itself is not registered, but the task data for identifying each task is registered. The contents of this task data are shown in FIG.

【0033】本実施例におけるタスクデータは、タスク
ヘッド情報、タスク状態情報、ユーザトランザクション
情報、タスク番号からなるデータであり、タスクヘッド
情報とはタスク格納部におけるタスクの存在するアドレ
スである。
The task data in this embodiment is data consisting of task head information, task status information, user transaction information, and task number, and task head information is an address where a task exists in the task storage unit.

【0034】タスク状態情報とは、現在のタスクの状態
をフラグで示す情報であり、フラグ”0”は実行中、”
1”は待機中、”2”は停止中を示す。ここで、実行中
は、タスクが起動されている状態を示す。
The task status information is information indicating the current task status by a flag, and the flag "0" indicates that the task is being executed.
“1” indicates that the task is on standby, and “2” indicates that the task is stopped.

【0035】待機中は、任意のタスク登録テーブル9b
に登録されている状態を示し、起動可能な状態を示す。
停止中は、任意のタスク登録テーブル9bに登録されて
いるが、起動不可能な状態を示す。つまり、任意のタス
クが次に行うべき処理に不必要な場合に、そのタスクに
フラグ”2”を立てておくことにより、命令実行部8b
は、タスクデータを読み込む際に、当該タスクデータを
スキップし、読み込まない。従って、各処理毎にタスク
の登録/削除を行う手間を省くことができる。
While waiting, any task registration table 9b
Shows the state registered in, and shows the state that can be activated.
While stopped, it is registered in the arbitrary task registration table 9b, but cannot be activated. That is, when an arbitrary task is unnecessary for the processing to be performed next, the flag "2" is set for the task, so that the instruction execution unit 8b
Skips and does not read the task data when reading the task data. Therefore, it is possible to save the trouble of registering / deleting the task for each process.

【0036】ユーザトランザクション情報は、当該タス
クデータに対応するタスクを実行する際に、必要な付加
情報を格納するものである。例えば、当該タスクが数値
計算処理の場合、このユーザトランザクションに任意の
数値を格納しておくことにより、タスク実行時には、こ
の数値を代入して数値計算を行う。
The user transaction information stores additional information necessary for executing the task corresponding to the task data. For example, when the task is a numerical calculation process, an arbitrary numerical value is stored in this user transaction, and when the task is executed, this numerical value is substituted to perform numerical calculation.

【0037】タスク番号は、当該タスク登録テーブル9
bに登録されているタスクの通し番号(シーケンス番
号)である。また、上記の各テーブルへのタスク登録
は、ユーザが任意に行えるものとした。この詳細な説明
は後述する。
The task number is the task registration table 9
It is a serial number (sequence number) of the task registered in b. In addition, the user can arbitrarily register the tasks in the above tables. This detailed description will be given later.

【0038】本実施例では、当該タスク登録テーブル9
bに基いて処理を行う場合、命令実行部8bは、Lレベ
ルテーブル14の最上位アドレスであるタスクdを実行
し、次にMレベルテーブル13の最上位アドレスに登録
されているタスクCを実行する。続いてHレベルテーブ
ルの最上位アドレスに登録されているタスクA実行し、
その後、タスクB,タスクF、タスクGを実行し、Hレ
ベルテーブル12に登録されている全てのタスクを実行
後、Mレベルテーブル13を参照し、最上位の次のアド
レスに登録されているタスクデータEを実行する。そし
て、再びHレベルテーブル12の全てのタスクを実行
後、Mレベルテーブル13を参照する。このとき、Mレ
ベルテーブル13に登録されている全てのタスクを実行
終了したので、Lレベルテーブル14に復帰して、最上
位の次のアドレスに登録されているタスクHを実行した
のち、上記と同様の動作を繰り返し行う。
In this embodiment, the task registration table 9
When performing processing based on b, the instruction execution unit 8b executes the task d which is the highest address of the L level table 14, and then the task C registered at the highest address of the M level table 13. To do. Then execute task A registered at the highest address of the H level table,
After that, the task B, the task F, and the task G are executed, and after all the tasks registered in the H level table 12 are executed, the task registered in the next highest address by referring to the M level table 13 Execute data E. Then, after executing all the tasks of the H level table 12 again, the M level table 13 is referred to. At this time, since all the tasks registered in the M level table 13 have been completed, the task returns to the L level table 14 and executes the task H registered in the next highest address, and then The same operation is repeated.

【0039】図5は、本実施例におけるタスク格納部9
cの具体例を示す図である。同図は、上記の図3に対応
した図であり、タスクA〜タスクIの9つのタスクを格
納している。このタスク格納部におけるアドレスを前記
のタスクヘッド情報として格納する。例えば、タスクA
のタスクデータには、タスクヘッド情報としてアドレ
ス”01”を収容し、タスクBのタスクデータには、タ
スクヘッド情報としてアドレス”02”を収容する。
FIG. 5 shows the task storage unit 9 in this embodiment.
It is a figure which shows the specific example of c. This figure is a diagram corresponding to FIG. 3 described above, and stores nine tasks A to I. The address in this task storage unit is stored as the task head information. For example, task A
The task data of “1” contains the address “01” as task head information, and the task data of the task B contains “02” as the task head information.

【0040】次に、本実施例におけるタスク登録部8c
の動作過程を図6のフローチャート基いて説明する。ユ
ーザが入力装置10からタスク登録要求を入力した場
合、当該タスク登録部8cがこの要求を認識し(ステッ
プ601)、当該タスク登録要求から登録すべきタスク
のアドレス情報(タスクヘッド情報)及びそのタスクの
優先順位情報を検出する(ステップ602)。
Next, the task registration section 8c in this embodiment.
The operation process of will be described with reference to the flowchart of FIG. When the user inputs a task registration request from the input device 10, the task registration unit 8c recognizes the request (step 601), and the task address information (task head information) to be registered from the task registration request and the task thereof. The priority information of is detected (step 602).

【0041】次に、前記の優先順位情報に対応するタス
ク登録テーブルからタスクヘッド最大数を検出し、この
タスクヘッド最大数に1を加算した領域に当該タスクに
かかるタスクデータを登録する(ステップ603)。こ
こで、タスクデータのうち、ユーザトランザクション情
報はユーザが入力装置10から入力する。さらに、当該
タスクを次の処理で使用しない場合には、タスク状態情
報としてフラグ”2”を入力することも可能である。
Next, the maximum number of task heads is detected from the task registration table corresponding to the priority information, and task data related to the task is registered in the area obtained by adding 1 to this maximum number of task heads (step 603). ). Here, among the task data, the user transaction information is input by the user from the input device 10. Further, when the task is not used in the next process, it is possible to input the flag "2" as the task status information.

【0042】当該タスク登録部8cはタスクデータの登
録を終了後、当該タスク登録テーブルのタスクヘッド最
大数を”1”インクリメントする(ステップ604)。
さらに、登録したタスクにタスク番号を割り振り(ステ
ップ605)、このタスク番号をディスプレイ装置11
に表示して、ユーザに当該タスクのタスク番号を通知す
る(ステップ606)。
After completing the registration of the task data, the task registration unit 8c increments the maximum number of task heads in the task registration table by "1" (step 604).
Further, a task number is assigned to the registered task (step 605) and this task number is displayed on the display device 11.
Is displayed on the screen and the user is notified of the task number of the task (step 606).

【0043】図7は、本実施例におけるタスク削除部8
dの動作過程を示すフローチャート図である。本実施例
では、ユーザが任意のタスクの削除要求、即ち削除すべ
きタスクのタスク番号を前記入力装置10から入力した
場合に、当該タスク削除部8dがこの要求を認識して
(ステップ701)、この要求情報から削除すべきタス
クのタスク番号を検出する(ステップ702)。
FIG. 7 shows the task deleting section 8 in this embodiment.
It is a flowchart figure which shows the operation process of d. In the present embodiment, when the user inputs a request to delete an arbitrary task, that is, the task number of the task to be deleted, the task deletion unit 8d recognizes the request (step 701), The task number of the task to be deleted is detected from this request information (step 702).

【0044】次に、当該タスク削除部8dは、当該タス
ク番号に基いて各タスク登録テーブル9bを検索し(ス
テップ703)、該当するタスクデータそのタスク登録
テーブル9bから削除する(ステップ704)。
Next, the task deletion unit 8d searches each task registration table 9b based on the task number (step 703) and deletes the corresponding task data from the task registration table 9b (step 704).

【0045】そして、タスクデータを削除したことによ
り、タスク番号にずれを生じたタスク登録テーブル9b
に対し、タスク番号の振り直し(リプレース)を行い
(ステップ705)、当該タスク登録テーブル9bのタ
スクヘッド最大数を”1”デクリメントする(ステップ
706)。
Then, the task registration table 9b has a deviation in the task numbers due to the deletion of the task data.
On the other hand, the task number is reassigned (replaced) (step 705) and the maximum number of task heads in the task registration table 9b is decremented by "1" (step 706).

【0046】以上から、ユーザは、実行すべきプログラ
ムに応じて個々のタスクの優先順位を任意に決定するこ
とができ、必要最小限のタスクのみを登録することが可
能となる。
From the above, the user can arbitrarily determine the priority order of individual tasks according to the program to be executed, and can register only the minimum required tasks.

【0047】以下に、本実施例におけるタスク管理シス
テムの動作過程を図8のフローチャート図に基いて説明
する。本実施例におけるタスク管理システムでは、命令
実行部8bにHレベルカウンタ、Mレベルカウンタ、L
レベルカウンタ(図示せず)を備えている。
The operation process of the task management system in this embodiment will be described below with reference to the flowchart of FIG. In the task management system of this embodiment, the instruction execution unit 8b has an H level counter, an M level counter, and an L level counter.
A level counter (not shown) is provided.

【0048】前記の各カウンタは、各レベルテーブルに
おいて、タスク起動毎に”1”インクリメントするもの
であり、命令実行部8bはこのカウンタ値に対応する領
域のタスクを実行する。例えば、Mレベルカウンタの値
が”1”の場合は、Mレベルテーブル13のタスクヘッ
ド”1”の領域に格納されているタスクCを実行し、M
レベルカウンタの値が”2”の場合には、Mレベルテー
ブル13のタスクヘッド”2”の領域に格納されている
タスクEを実行する。
Each of the counters is incremented by "1" every time the task is activated in each level table, and the instruction executing section 8b executes the task in the area corresponding to the counter value. For example, when the value of the M level counter is "1", the task C stored in the area of the task head "1" of the M level table 13 is executed, and M
When the value of the level counter is "2", the task E stored in the task head "2" area of the M level table 13 is executed.

【0049】本実施例におけるタスク管理システムは、
命令発行部8aがプログラム9aを各処理単位に解読
し、任意の処理実行命令を発行する(ステップ80
1)。そして、当該実行命令を受けた命令実行部8bで
は、この実行命令に対応するタスク登録テーブル9bに
アクセスし(ステップ802)、Hレベルカウンタ、M
レベルカウンタ、Lレベルカウンタの値を”1”に設定
する(ステップ803)。
The task management system in this embodiment is
The instruction issuing unit 8a decodes the program 9a into each processing unit and issues an arbitrary processing execution instruction (step 80).
1). Then, the instruction execution unit 8b that has received the execution instruction accesses the task registration table 9b corresponding to this execution instruction (step 802), and then the H level counter, M
The values of the level counter and the L level counter are set to "1" (step 803).

【0050】次に、命令実行部8bは、Lレベルテーブ
ル14にアクセスし(ステップ804)、このLレベル
テーブル14のタスクヘッド最大数を読み出し、この値
と前記Lレベルカウンタの値を比較する(ステップ80
5)。
Next, the instruction execution section 8b accesses the L level table 14 (step 804), reads the maximum number of task heads of this L level table 14, and compares this value with the value of the L level counter (step S804). Step 80
5).

【0051】ここで、Lレベルカウンタ値がタスクヘッ
ド最大数未満の場合、命令実行部8bは、Lレベルカウ
ンタ値に対応する領域のタスクデータを認識する。即
ち、実行すべきタスクの格納アドレス情報及び停止中フ
ラグ”2”がたっていないか否か、当該タスクに対する
付加情報が登録されているか否かを認識して、これらの
情報に基いてタスク格納部9cから当該タスクを検出
し、実行する(ステップ806)。
If the L level counter value is less than the maximum number of task heads, the instruction executing section 8b recognizes the task data in the area corresponding to the L level counter value. That is, it is recognized whether or not the storage address information of the task to be executed and the stop flag "2" are set, and whether or not the additional information for the task is registered, and based on these information, the task storage unit is recognized. The task is detected from 9c and executed (step 806).

【0052】そして、当該Lレベルのタスク実行終了
後、命令実行部8bはMレベルテーブル13にアクセス
し(ステップ807)、前記Mレベルカウンタの値とM
レベルテーブル13のタスクヘッド最大数を比較する
(ステップ808)。
After the execution of the task of the L level, the instruction executing section 8b accesses the M level table 13 (step 807), and the value of the M level counter and M
The maximum number of task heads in the level table 13 is compared (step 808).

【0053】ここで、Mレベルカウンタ値がタスクヘッ
ド最大数未満の場合には、命令実行部8bは、Mレベル
カウンタ値に対応する領域にアクセスし、そこに格納さ
れているタスクデータに基いて実行すべきタスクをタス
ク格納部9cから検出し、実行する(ステップ80
9)。
Here, when the M level counter value is less than the maximum number of task heads, the instruction executing section 8b accesses the area corresponding to the M level counter value and based on the task data stored therein. The task to be executed is detected from the task storage unit 9c and executed (step 80).
9).

【0054】さらに、命令実行部8bは、Mレベルのタ
スク実行終了後、Hレベルテーブル12にアクセスし
(ステップ810)、このHレベルテーブル12のタス
クヘッド最大数と当該Hレベルカウンタの値とを比較す
る(ステップ811)。
Further, the instruction executing section 8b accesses the H level table 12 after the execution of the M level task (step 810), and obtains the maximum number of task heads of this H level table 12 and the value of the H level counter. The comparison is made (step 811).

【0055】ここで、Hレベルカウンタの値がHレベル
テーブル12のタスクヘッド最大数未満の場合に、当該
命令実行部8bは、前記Hレベルカウンタ値に対応する
領域のタスクデータに基いて、実行すべきタスクをタス
ク格納部9cから検出し、実行する(ステップ81
2)。
Here, when the value of the H level counter is less than the maximum number of task heads in the H level table 12, the instruction executing section 8b executes the task based on the task data in the area corresponding to the H level counter value. A task to be performed is detected from the task storage unit 9c and executed (step 81).
2).

【0056】ここで、命令実行部8bは、Hレベルカウ
ンタの値を”1”インクリメントし(ステップ81
3)、上記のステップ811以降の処理を繰り返す。そ
して、Hレベルカウンタの値がタスクヘッド最大数と同
値に達した場合、Mレベルカウンタの値を”1”インク
リメントし(ステップ814)、上記のステップ808
以降の処理を繰り返し行う。
Here, the instruction executing section 8b increments the value of the H level counter by "1" (step 81).
3), the processing from step 811 above is repeated. Then, when the value of the H level counter reaches the same value as the maximum number of task heads, the value of the M level counter is incremented by "1" (step 814), and the above step 808 is performed.
The subsequent processing is repeated.

【0057】さらに、Mレベルカウンタの値がMレベル
テーブル13のタスクヘッド最大数と同値に達した場
合、当該命令実行部8bは、Lレベルカウンタの値を”
1”インクリメントし(ステップ815)、上記のステ
ップ805以降の処理を繰り返し行い、Lレベルカウン
タの値が、Lレベルテーブル14のタスクヘッド最大数
と同値に達した場合に、当該実行命令を終了する。
Further, when the value of the M level counter reaches the same value as the maximum number of task heads of the M level table 13, the instruction executing section 8b changes the value of the L level counter to "
1 "is incremented (step 815), the processes of step 805 and thereafter are repeated, and when the value of the L level counter reaches the same value as the maximum number of task heads of the L level table 14, the execution instruction is ended. .

【0058】以上、本実施例によれば、プログラムに応
じて、タスクの優先順位を任意に設定可能であり、さら
に、優先順位の高いタスクをより多く起動させることが
可能となる。
As described above, according to the present embodiment, it is possible to arbitrarily set the priority order of tasks according to the program, and it is possible to activate more tasks having higher priority orders.

【0059】[0059]

【発明の効果】本発明によれば、シングルタスク処理を
行うシステムにおいて、必要最小限のタスク起動によ
り、プログラムの高速処理を行うことが可能となる。
According to the present invention, in a system for performing single task processing, it is possible to perform high speed processing of a program by activating a minimum required number of tasks.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の原理図FIG. 1 is a principle diagram of the present invention.

【図2】本実施例におけるタスク管理システムの全体構
成ブロック図
FIG. 2 is an overall configuration block diagram of a task management system according to this embodiment.

【図3】本実施例におけるタスク登録テーブルの具体例FIG. 3 is a specific example of a task registration table in this embodiment.

【図4】本実施例におけるタスクデータの具体例FIG. 4 is a specific example of task data in this embodiment.

【図5】本実施例におけるタスク格納部の具体例FIG. 5 is a specific example of a task storage unit in this embodiment.

【図6】本実施例におけるタスク登録部の動作過程を示
すフローチャート図
FIG. 6 is a flowchart showing an operation process of a task registration unit in this embodiment.

【図7】本実施例におけるタスク削除部の動作過程を示
すフローチャート図
FIG. 7 is a flowchart showing an operation process of a task deletion unit in this embodiment.

【図8】本実施例におけるタスク管理システムの動作フ
ローチャート図
FIG. 8 is an operation flowchart of the task management system according to this embodiment.

【図9】従来のタスク管理システムの構成ブロック図FIG. 9 is a configuration block diagram of a conventional task management system.

【図10】従来のタスク格納部の内部構成図[Fig. 10] Internal configuration diagram of a conventional task storage unit

【符号の説明】[Explanation of symbols]

1・・タスク登録テーブル 2・・タスク格納部 3・・命令発行手段 4・・命令実行手段 5・・処理プログラム 6・・タスク登録手段 7・・タスク消去手段 8・・処理装置 8a・・命令発行部 8b・・命令実行部 8c・・タスク登録部 8d・・タスク削除部 9・・主記憶装置 9a・・プログラム 9b・・タスク登録テーブル 9c・・タスク格納部 10・・入力装置 11・・ディスプレイ装置 12・・Hレベルテーブル 13・・Mレベルテーブル 14・・Lレベルテーブル 1 ... task registration table 2 ... task storage unit 3 ... instruction issuing unit 4 ... instruction execution unit 5 ... processing program 6 ... task registration unit 7 ... task erasing unit 8 ... processing unit 8a ... instruction Issuing unit 8b ... Instruction execution unit 8c ... Task registration unit 8d ... Task deletion unit 9 ... Main storage device 9a ... Program 9b ... Task registration table 9c ... Task storage unit 10 ... Input device 11 ... Display device 12 ... H level table 13 ... M level table 14 ... L level table

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 任意のプログラム(5)を処理単位に分
割し、各処理に対応するタスク郡をシリアルに実行する
シングルタスクシステムにおいて、 前記タスク群毎に、個々のタスクを特定するタスク情報
を優先順位別に登録するタスク登録テーブル(1)と、 前記タスク情報に対応するタスク本体を格納するタスク
格納部(2)と、 前記プログラム(5)を処理単位に解読し、任意の処理
にかかる実行命令を発行する命令発行手段(3)と、 前記命令発行手段(3)の発行した実行命令に対応する
タスク登録テーブル(1)を参照し、このタスク登録テ
ーブル(1)に登録されているタスク情報に対応するタ
スク本体を前記タスク格納部(2)から読み出し、実行
する命令実行手段(4)とを備え、 前記命令発行手段(3)は、前記プログラム(5)を解
読して処理単位に実行命令を発行し、 前記命令実行手段(4)は、前記実行命令に対応するタ
スク登録テーブル(1)を参照して、このタスク登録テ
ーブル(1)に登録されているタスク情報及び個々のタ
スク情報の優先順位を認識し、この優先順位に従って各
タスク情報に対応するタスクを前記タスク格納部(2)
から読み出し、実行することを特徴とするタスク管理方
式。
1. A single-task system in which an arbitrary program (5) is divided into processing units and a task group corresponding to each processing is executed serially, in which task information specifying individual tasks is provided for each task group. A task registration table (1) that registers by priority, a task storage unit (2) that stores a task body corresponding to the task information, and the program (5) that is decrypted in processing units and executed for arbitrary processing. An instruction issuing means (3) for issuing an instruction and a task registration table (1) corresponding to the execution instruction issued by the instruction issuing means (3) are referred to, and tasks registered in the task registration table (1) are referred to. An instruction executing means (4) for reading out and executing a task main body corresponding to information from the task storage part (2), wherein the instruction issuing means (3) The program (5) is decoded and an execution instruction is issued for each processing unit, and the instruction execution means (4) refers to the task registration table (1) corresponding to the execution instruction and refers to the task registration table (1). Recognizing the priority order of the task information and individual task information registered in, the task corresponding to each task information according to this priority order is stored in the task storage unit (2).
A task management method characterized by reading from and executing.
【請求項2】 前記タスク登録テーブル(1)は、優先
順位別に複数のテーブルから構成し、 前記命令実行手段(4)は、優先順位の低いテーブルに
格納されているタスクを一つ実行する毎に、優先順位の
高いテーブルに格納されているタスクを複数実行するこ
とを特徴とする請求項1記載のタスク管理方式。
2. The task registration table (1) is composed of a plurality of tables according to priorities, and the instruction execution means (4) executes each task stored in a table with a low priority. The task management system according to claim 1, wherein a plurality of tasks stored in a table with a high priority are executed.
【請求項3】 任意のタスクを前記タスク登録テーブル
(1)に登録するタスク登録手段(6)を設け、 前記タスク登録手段(6)は、タスクの登録要求を認識
した場合に、当該登録要求から前記タスクの優先順位を
検出し、この優先順位に対応するタスク登録テーブル
(1)に当該タスクを特定するタスク情報を登録すると
共に、前記タスクを前記タスク格納部(2)に格納する
ことを特徴とする請求項1記載のタスク管理方式。
3. A task registration means (6) for registering an arbitrary task in the task registration table (1) is provided, and when the task registration means (6) recognizes a task registration request, the task registration request is issued. Detecting the priority order of the task from the above, registering the task information specifying the task in the task registration table (1) corresponding to this priority order, and storing the task in the task storage section (2). The task management system according to claim 1, which is characterized in that.
【請求項4】 任意のタスク情報を前記タスク登録テー
ブル(1)から削除するタスク消去手段(7)を設け、 前記タスク消去手段(7)は、タスク情報の消去要求を
認識した場合に、当該消去要求から消去すべきタスクの
アドレス情報を認識すると共に、このアドレス情報に基
いて前記タスク登録テーブル(1)を検索して前記アド
レス情報に対応する領域にアクセスし、この領域に登録
されているタスク情報を消去すると共に、このタスク情
報に基いて前記タスク格納部(2)にアクセスして当該
タスク情報に対応するタスクを消去することを特徴とす
る請求項1記載のタスク管理方式。
4. A task erasing means (7) for erasing arbitrary task information from the task registration table (1) is provided, and the task erasing means (7) is provided when the task information erasing request is recognized. The address information of the task to be erased is recognized from the erase request, the task registration table (1) is searched based on this address information, the area corresponding to the address information is accessed, and the area is registered in this area. 2. The task management system according to claim 1, wherein the task information is erased and the task corresponding to the task information is erased by accessing the task storage unit (2) based on the task information.
JP26474092A 1992-10-02 1992-10-02 Task managing system Withdrawn JPH06119188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26474092A JPH06119188A (en) 1992-10-02 1992-10-02 Task managing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26474092A JPH06119188A (en) 1992-10-02 1992-10-02 Task managing system

Publications (1)

Publication Number Publication Date
JPH06119188A true JPH06119188A (en) 1994-04-28

Family

ID=17407523

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26474092A Withdrawn JPH06119188A (en) 1992-10-02 1992-10-02 Task managing system

Country Status (1)

Country Link
JP (1) JPH06119188A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7809363B2 (en) 2004-10-29 2010-10-05 Kyocera Corporation Mobile phone terminal, program management method, and computer program for the same
JP2013058228A (en) * 2012-11-01 2013-03-28 Nihon Univ Security processing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7809363B2 (en) 2004-10-29 2010-10-05 Kyocera Corporation Mobile phone terminal, program management method, and computer program for the same
JP2013058228A (en) * 2012-11-01 2013-03-28 Nihon Univ Security processing device

Similar Documents

Publication Publication Date Title
US6996821B1 (en) Data processing systems and method for batching tasks of the same type in an instruction cache
US7827167B2 (en) Database management system and method including a query executor for generating multiple tasks
EP0243892A2 (en) System for guaranteeing the logical integrity of data
JPH05204674A (en) Multitasking data processing system
JP2005302030A (en) Multi-process access method and device to link list
US20070226172A1 (en) File-management apparatus, file-management method, and computer product
JPH06119188A (en) Task managing system
JPH0277884A (en) Information retrieval device
US7318228B2 (en) System and method for task arbitration in multi-threaded simulations
CN112116427A (en) Commodity recommendation method and device, electronic equipment and storage medium
JPS6349945A (en) Process roll-in system for data processor
JP2716019B2 (en) Job class determination method
JP2843748B2 (en) Exclusive control method
KR100297744B1 (en) System and method for processing thread exception
JPH06324919A (en) Performance evaluating method
US6345312B1 (en) Selectively dummying a data pipe transparent to a writer application
JPS61199126A (en) Microprogram check system
JP2002182948A (en) Trace acquisition method and device
JPH05241890A (en) Data trace system
JPH06149765A (en) Automatic resetting system for common memory exclusive control
JP3585264B2 (en) Database system and data retrieval method
JP2735400B2 (en) Asynchronous I / O control method
JPS59189452A (en) Queue structure for data processor
JPH04167152A (en) Idle memory control system
GB2261537A (en) Computer

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20000104