JP2718377B2 - Waiting system for child task completion - Google Patents

Waiting system for child task completion

Info

Publication number
JP2718377B2
JP2718377B2 JP6243760A JP24376094A JP2718377B2 JP 2718377 B2 JP2718377 B2 JP 2718377B2 JP 6243760 A JP6243760 A JP 6243760A JP 24376094 A JP24376094 A JP 24376094A JP 2718377 B2 JP2718377 B2 JP 2718377B2
Authority
JP
Japan
Prior art keywords
task
child
waiting
request
event
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.)
Expired - Fee Related
Application number
JP6243760A
Other languages
Japanese (ja)
Other versions
JPH08106395A (en
Inventor
正純 川名部
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP6243760A priority Critical patent/JP2718377B2/en
Publication of JPH08106395A publication Critical patent/JPH08106395A/en
Application granted granted Critical
Publication of JP2718377B2 publication Critical patent/JP2718377B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は1つのジョブを複数のタ
スクから構成することが可能なマルチプログラミング計
算機システムに関し、特にジョブを構成するタスク間に
階層構造のあるシステムにおける子タスク終了待ち合わ
せシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multi-programming computer system capable of constituting one job from a plurality of tasks, and more particularly to a child task completion waiting system in a system having a hierarchical structure between tasks constituting jobs. .

【0002】[0002]

【従来の技術】1994年5月に第4版が日本電気株式
会社から発行された「ACOS−4/XVP スーパバ
イザ解説書、DDA82−4」、1991年4月に初版
が日本電気株式会社から発行された「ACOS−4/X
VP システムマクロプログラミングハンドブック、D
CC81−1」において開示されている、親タスクが子
タスクの終了を待ち合わせる子タスク終了待ち合わせ方
式においては、待ち合わせをする子タスクは1つしか指
定することができなかった。
2. Description of the Related Art The fourth edition of "ACOS-4 / XVP Supervisor Manual, DDA82-4" was issued by NEC in May 1994, and the first edition was issued by NEC in April 1991. "ACOS-4 / X
VP System Macro Programming Handbook, D
In the child task end waiting method in which the parent task waits for the end of the child task disclosed in CC81-1 ", only one child task waiting can be designated.

【0003】また、特開平2−226427号公報記載
のタスクの終了判定方法においては、子タスクの1つを
指定することにより、指定した子タスクの子孫のすべて
のタスクの終了を待ち合わせることができるが、自タス
クが複数の子タスクを持つ場合は、それらを同時に待ち
合わせることはできなかった。
In the task termination determination method described in Japanese Patent Application Laid-Open No. 2-226427, by specifying one of the child tasks, it is possible to wait for the termination of all the tasks of the descendants of the specified child task. However, if the invoking task has multiple child tasks, they cannot wait for them at the same time.

【0004】[0004]

【発明が解決しようとする課題】これらの従来の技術
は、1つの親タスクが複数の子タスクの終了を待ち合わ
せたい場合は、ユーザがプログラム上で自タスクの全て
の子タスクの名前を意識し、何度もシステムが提供する
子タスク終了待ち合わせ方式を呼び出さなければなら
ず、ユーザプログラムの構成が複雑になるという問題が
あった。
In the prior art, when one parent task wants to wait for the termination of a plurality of child tasks, the user recognizes the names of all the child tasks of the own task on a program. In addition, there is a problem in that the child task termination waiting system provided by the system must be called many times, which complicates the configuration of the user program.

【0005】本発明の目的は、1つのジョブを複数のタ
スクから構成することが可能なマルチプログラミング計
算機システム環境で、特にジョブを構成するタスク間に
階層構造のあるシステム環境において、ユーザのプログ
ラミングの自由度を向上させることにある。
An object of the present invention is to provide a multi-programming computer system environment in which one job can be composed of a plurality of tasks, and in particular, a user programming method in a system environment having a hierarchical structure between tasks constituting a job. The purpose is to improve the degree of freedom.

【0006】本発明の他の目的は、1度の呼び出しによ
り、そのタスクの全ての子タスクの終了を待ち合わせる
ことのできる子タスク終了待ち合わせシステムを提供
し、ユーザのプログラミングの自由度を向上させること
にある。
Another object of the present invention is to provide a child task end waiting system which can wait for the end of all the child tasks of the task by a single call, thereby improving the degree of freedom of programming for the user. It is in.

【0007】さらに本発明の他の目的は、1度の呼び出
しにより、特定の子タスクの終了を待ち合わせるか、ま
たはそのタスクのすべての子タスクの終了を待ち合わせ
るかを選択することのできる子タスク終了待ち合わせシ
ステムを提供し、ユーザのプログラミングの自由度を向
上させることにある。
[0007] Still another object of the present invention is to provide a child task termination which can select whether to wait for termination of a specific child task or all child tasks of the task by one invocation. It is an object of the present invention to provide a queuing system and improve the user's degree of programming.

【0008】[0008]

【課題を解決するための手段】本発明の第1の子タスク
終了待ち合わせシステムは、1つのジョブを複数のタス
クから構成することが可能なマルチプログラミング計算
機システムにおいて、タスクの待ち合わせ要求が行われ
た時に、該要求タスクのすべての子タスクについて、子
タスク毎に該子タスクの終了を待ち合わせ、すべての子
タスクが終了した時点で、該要求タスクの終了通知を返
却するタスク待ち合わせ要求識別手段から構成されてい
る。
According to a first child task end waiting system of the present invention, a task waiting request is made in a multi-programming computer system in which one job can be composed of a plurality of tasks. A task waiting request identifying means for waiting for the termination of the child task for each child task for all the child tasks of the request task, and returning an end notification of the request task when all the child tasks are completed. Have been.

【0009】本発明の第2の子タスク終了待ち合わせシ
ステムは、1つのジョブを複数のタスクから構成するこ
とが可能なマルチプログラミング計算機システムにおい
て、タスク単位に存在し、各タスクが終了時にイベント
を通知し、イベントの有無によりタスクの終了を判断す
るためのターミネーションセマフォと、タスクの待ち合
わせ要求が行われた時に、該要求タスクのすべての子タ
スクについて、子タスク毎に該子タスクの前記ターミネ
ーションセマフォに対してイベント待ちを行い、イベン
トを受け取った後にそのターミネーションセマフォにイ
ベント通知を行い、すべての子タスクが終了した時点
で、呼び出し元に該要求タスクが終了した旨を返却する
タスク待ち合わせ要求識別手段とから構成されている。
A second task waiting system for child tasks according to the present invention is a multi-programming computer system in which one job can be composed of a plurality of tasks. A termination semaphore for judging the end of the task based on the presence or absence of an event, and when a task waiting request is issued, for all child tasks of the requested task, the termination semaphore of the child task is assigned to each child task. Task waiting request identification means for performing an event waiting for the termination semaphore after receiving the event, notifying the event to the termination semaphore, and returning to the caller that the requested task has been completed when all the child tasks are completed. It is composed of

【0010】本発明の第3の子タスク終了待ち合わせシ
ステムは、1つのジョブを複数のタスクから構成するこ
とが可能なマルチプログラミング計算機システムにおい
て、タスク単位に存在し、各タスクが終了時にイベント
を通知し、イベントの有無によりタスクの終了を判断す
るためのターミネーションセマフォと、タスク単位に存
在し、各タスクの子タスクの数と子タスクの名前が登録
された子タスク名一覧表と、タスクの待ち合わせ要求が
行われた時に、その要求が特定の1つのタスクの終了を
待ち合わせるものか、該要求タスクのすべての子タスク
の終了を待ち合わせるものかを判定し、特定の1つのタ
スクの終了を待ち合わせる要求であると判定した場合に
は、待ち合わせ対象の子タスクの前記ターミネーション
セマフォに対してイベント待ちを行い、イベントを受け
取った後にそのターミネーションセマフォにイベント通
知を行い、該子タスクが終了した時点で、呼び出し元に
該要求タスクが終了した旨を返却し、一方すべての子タ
スクの終了を待ち合わせる要求であると判定した場合に
は、該要求タスクの前記タスク名一覧表を参照し、この
前記タスク名一覧表に登録されているタスク毎に、該タ
スクの前記ターミネーションセマフォに対してイベント
待ちを行い、イベントを受け取った後にそのターミネー
ションセマフォにイベント通知を行い、すべての子タス
クが終了した時点で、呼び出し元に該要求タスクが終了
した旨を返却するタスク待ち合わせ要求識別手段とから
構成されている。
[0010] A third child task completion waiting system of the present invention is a multi-programming computer system in which one job can be composed of a plurality of tasks. A termination semaphore for determining the end of a task based on the presence or absence of an event, a child task name list that exists for each task, and the number of child tasks and the name of the child task are registered, and task waiting When a request is made, it is determined whether the request waits for completion of a specific task or all child tasks of the request task, and waits for completion of the specific task. If it is determined that the termination semaphore of the child task to be waited for, Wait for the event, notify the termination semaphore after receiving the event, and when the child task ends, return to the caller the end of the requested task, and terminate all child tasks. If it is determined that the request is a waiting request, the task name list of the requested task is referred to, and for each task registered in the task name list, an event is waited for the termination semaphore of the task. Task termination notification semaphore after receiving the event, notifies the termination semaphore of the event, and, when all the child tasks have been completed, returns to the caller a notification that the requested task has been completed. I have.

【0011】本発明の第4の子タスク終了待ち合わせシ
ステムは、1つのジョブを複数のタスクから構成するこ
とが可能なマルチプログラミング計算機システムにおい
て、タスク単位に存在し、各タスクが終了時にイベント
を通知し、イベントの有無によりタスクの終了を判断す
るためのターミネーションセマフォと、タスク単位に存
在し、各タスクの子タスクの数と子タスクの名前が登録
された子タスク名一覧表と、タスクの開始時に、開始さ
れるタスクのターミネーションセマフォをイベントが存
在しない状態に初期化するターミネーションセマフォ初
期化手段と、タスクの開始時に、開始されるタスクの前
記子タスク名一覧表を作成する子タスク一覧表作成手段
と、タスクの終了時に、終了するタスクの前記ターミネ
ーションセマフォにイベントを通知するタスク終了通知
手段と、指定されたタスク名のタスクの前記ターミネー
ションセマフォに対してイベント待ちを行い、イベント
を受け取った後にそのターミネーションセマフォにイベ
ント通知を行い、その後、呼び出し元に指定されたタス
クが終了した旨を返却するタスク終了待ち合わせ手段
と、タスクの待ち合わせ要求が行われた時に、要求元タ
スクの前記タスク名一覧表を参照し、タスク名を取得
し、前記タスク終了待ち合わせ手段を呼び出す処理を子
タスクの数分繰り返す待ち合わせタスク選択手段と、タ
スクの待ち合わせ要求が行われた時に、その要求が特定
の1つのタスクの終了を待ち合わせるものか、要求元タ
スクのすべての子タスクの終了を待ち合わせるものかを
判定し、特定の1つのタスクの終了を待ち合わせる要求
であると判定した場合には、待ち合わせ対象の子タスク
名を指定し、前記タスク終了待ち合わせ手段に制御を渡
し、すべての子タスクの終了を待ち合わせる要求である
と判定した場合には、前記待ち合わせタスク選択手段に
制御を渡すタスク待ち合わせ要求識別手段とから構成さ
れている。
A fourth child task completion waiting system according to the present invention is a multi-programming computer system in which one job can be composed of a plurality of tasks. A termination semaphore for determining the end of a task based on the presence or absence of an event, a child task name list that exists for each task, and the number of child tasks of each task and the name of the child task are registered, and a task start Termination semaphore initialization means for initializing a termination semaphore of a task to be started to a state in which no event exists, and a child task list for creating the child task name list of the started task at the start of the task Means, and at the end of the task, the termination semaphore of the task to be terminated. A task end notifying means for notifying an event, and an event waiting for the termination semaphore of the task having the specified task name, and after receiving the event, performing an event notification to the termination semaphore. Task completion waiting means for returning that the task has been completed, and when a task waiting request is made, refer to the task name list of the requesting task, obtain a task name, and execute the task completion waiting means. Waiting task selecting means for repeating the calling process for the number of child tasks, and when a task waiting request is made, whether the request waits for completion of a specific task, or completion of all child tasks of the requesting task And wait for the end of one specific task. If it is determined that the request is to be matched, specify the name of the child task to be waited for, pass control to the task end waiting means, if it is determined to be a request to wait for the end of all child tasks, And a task waiting request identifying means for transferring control to the waiting task selecting means.

【0012】[0012]

【実施例】以下、本発明の一実施例について、図を参照
しながら詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below in detail with reference to the drawings.

【0013】図1を参照すると、本発明の一実施例であ
る子タスク終了待ち合わせシステムは、タスク単位に存
在し、各タスクが終了時にイベントを通知し、イベント
の有無によりタスクの終了を判断するためのターミネー
ションセマフォ1と、タスク単位に存在し、各タスクの
子タスクの数と子タスクの名前が登録された子タスク名
一覧表2と、タスクの開始時に、開始されるタスクのタ
ーミネーションセマフォ1をイベントが存在しない状態
に初期化するターミネーションセマフォ初期化手段11
と、タスクの開始時に、開始されるタスクの子タスク名
一覧表2を作成する子タスク一覧表作成手段12と、タ
スクの終了時に、終了するタスクのターミネーションセ
マフォ1にイベントを通知するタスク終了通知手段21
と、タスクの待ち合わせ要求が行われた時に、その要求
が特定の1つのタスクの終了を待ち合わせるものか、要
求元タスクのすべての子タスクの終了を待ち合わせるも
のかを判定し、特定の1つのタスクの終了を待ち合わせ
る要求であると判定した場合には、待ち合わせ対象の子
タスク名を指定し、タスク終了待ち合わせ手段33に制
御を渡し、すべての子タスクの終了を待ち合わせる要求
であると判定した場合には、待ち合わせタスク選択手段
32に制御を渡すタスク待ち合わせ要求識別手段31
と、タスクの待ち合わせ要求が行われた時に、要求元タ
スクのタスク名一覧表2を参照し、タスク名を取得し、
タスク終了待ち合わせ手段33を呼び出す処理を子タス
クの数分繰り返す待ち合わせタスク選択手段32と、指
定されたタスク名のタスクのターミネーションセマフォ
1に対してイベント待ちを行い、イベントを受け取った
後にそのターミネーションセマフォ1にイベント通知を
行い、その後、呼び出し元に指定されたタスクが終了し
た旨を返却するタスク終了待ち合わせ手段33とから構
成されている。
Referring to FIG. 1, a child task completion waiting system according to an embodiment of the present invention exists in units of tasks, notifies an event when each task is completed, and determines the end of the task based on the presence or absence of an event. Semaphore 1 for a task, a child task name list 2 that exists in each task, and the number of child tasks of each task and the name of the child task are registered, and a termination semaphore 1 of the task to be started when the task is started. Semaphore initialization means 11 for initializing the semaphore to a state in which no event exists
And a child task list creating means 12 for creating a child task name list 2 of the task to be started at the start of the task, and a task end notification for notifying the event to the termination semaphore 1 of the task to be ended at the end of the task Means 21
When a task waiting request is made, it is determined whether the request waits for completion of a specific task or all child tasks of the requesting task. If it is determined that the request is to wait for the end of the task, the name of the child task to be waited for is specified, control is passed to the task end waiting means 33, and if it is determined that the request is to wait for the end of all the child tasks. Is a task waiting request identifying means 31 that passes control to a waiting task selecting means 32
When a task waiting request is made, the task name is obtained by referring to the task name list 2 of the request source task,
The waiting task selecting means 32, which repeats the process of calling the task end waiting means 33 for the number of child tasks, waits for an event for the termination semaphore 1 of the task having the specified task name, and after receiving the event, the termination semaphore 1 And a task end waiting means 33 for returning that the task designated as the caller has ended.

【0014】次に本発明の一実施例である子タスク終了
待ち合わせシステムについて、図1〜図4を参照して説
明する。
Next, a child task completion waiting system according to an embodiment of the present invention will be described with reference to FIGS.

【0015】タスクの開始時に、ターミネーションセマ
フォ初期化手段11は、開始されるタスクのターミネー
ションセマフォ1をイベントが存在しない状態に初期化
し、子タスク一覧表作成手段12に制御を渡す。
At the start of the task, the termination semaphore initialization means 11 initializes the termination semaphore 1 of the task to be started to a state in which no event exists, and passes control to the child task list creation means 12.

【0016】子タスク一覧表作成手段12は、タスクの
開始時に、開始されるタスクに対応する子タスク名一覧
表2に子タスクの数とすべての子タスク名を格納する。
The child task list creator 12 stores the number of child tasks and the names of all child tasks in a child task name list 2 corresponding to the task to be started when the task is started.

【0017】タスクの終了時に、タスク終了通知手段2
1は、終了するタスクのターミネーションセマフォ1に
イベントを通知する。
At the end of the task, task end notification means 2
1 notifies the termination semaphore 1 of the task to be finished of the event.

【0018】図2を参照すると、タスクの待ち合わせ要
求が行われた時に、タスク待ち合わせ要求識別手段31
は、該要求を解析し、該要求が特定の1つのタスクの終
了を待ち合わせるものか、要求元タスクのすべての子タ
スクの終了を待ち合わせるものかを判定し(ステップ2
01)、特定のタスクの終了を待ち合わせる要求である
と判定した場合には、待ち合わせ対象の子タスク名を指
定し、タスク終了待ち合わせ手段33に制御を渡す(ス
テップ202)。
Referring to FIG. 2, when a task waiting request is made, the task waiting request identifying means 31
Analyzes the request and determines whether the request waits for the end of one specific task or all child tasks of the requesting task (step 2).
01), if it is determined that the request is a request to wait for the end of a specific task, the name of the child task to be waited for is specified, and control is passed to the task end waiting means 33 (step 202).

【0019】タスク待ち合わせ要求識別手段31は、ス
テップ201においてタスクの待ち合わせ要求がすべて
の子タスクの終了を待ち合わせる要求であると判定した
場合には、待ち合わせタスク選択手段32に制御を渡す
(ステップ203)。
If the task waiting request identification means 31 determines in step 201 that the task waiting request is a request waiting for the end of all child tasks, it passes control to the waiting task selecting means 32 (step 203). .

【0020】図3を参照すると、タスクの待ち合わせ要
求が行われた時に、待ち合わせタスク選択手段32は、
要求元タスクのタスク名一覧表2を参照し、すべての子
タスクについてタスク終了待ち合わせ手段33を呼び出
しているか否かを判定し(ステップ301)、すべての
子タスクについてタスク終了待ち合わせ手段33を呼び
出したわけではないと判定した場合には、まだタスク終
了待ち合わせを行っていない子タスクを子タスク名一覧
表2より選択し(ステップ302)、選択した子タスク
のタスク名を指定してタスク終了待ち合わせ手段33を
呼び出し、判断ステップ301に戻る(ステップ30
3)。
Referring to FIG. 3, when a task waiting request is made, the waiting task selecting means 32
Referring to the task name list 2 of the requesting task, it is determined whether or not the task end waiting means 33 has been called for all child tasks (step 301), and the task end waiting means 33 has been called for all child tasks. If it is determined that the child task is not waiting for completion of the task, it is selected from the child task name list 2 (step 302), and the task name of the selected child task is designated to specify the task completion waiting means 33. And returns to the decision step 301 (step 30).
3).

【0021】図4を参照すると、タスク終了待ち合わせ
手段33は、指定されたタスク名のタスクのターミネー
ションセマフォ1に対してイベント待ちを行い、イベン
トを受け取った後にそのターミネーションセマフォ1に
イベント通知を行う(ステップ401)。
Referring to FIG. 4, the task end waiting means 33 waits for an event on the termination semaphore 1 of the task having the designated task name, and after receiving the event, notifies the termination semaphore 1 of the event ( Step 401).

【0022】さらにタスク終了待ち合わせ手段33は、
呼び出し元に指定されたタスクが終了した旨返却する
(ステップ402)。
Further, the task end waiting means 33 comprises:
It returns that the task specified as the caller has been completed (step 402).

【0023】以上により、本発明の一実施例である子タ
スク終了待ち合わせシステムの処理が完了する。
As described above, the processing of the child task completion waiting system according to the embodiment of the present invention is completed.

【0024】本発明の一実施例である子タスク終了待ち
合わせシステムは、1度の呼び出しにより、特定の子タ
スクの終了を待ち合わせるか、またはそのタスクのすべ
ての子タスクの終了を待ち合わせるかを選択することの
できる子タスク終了待ち合わせシステムを提供し、ユー
ザのプログラミングの自由度を向上させることができる
効果を有している。
The child task end waiting system according to one embodiment of the present invention selects, by one invocation, whether to wait for the end of a specific child task or all the child tasks of the task. The present invention has an effect of providing a child task completion waiting system capable of improving a user's degree of freedom in programming.

【0025】[0025]

【発明の効果】以上説明したように、本発明の子タスク
終了待ち合わせシステムは、1つのジョブを複数のタス
クから構成することが可能なマルチプログラミング計算
機システム環境で、特にジョブを構成するタスク間に階
層構造のあるシステム環境において、ユーザのプログラ
ミングの自由度を向上させることができる効果を有して
いる。
As described above, the child task completion waiting system according to the present invention is a multi-programming computer system environment in which one job can be composed of a plurality of tasks. In a system environment having a hierarchical structure, there is an effect that the degree of freedom of the user's programming can be improved.

【0026】また、本発明の子タスク終了待ち合わせシ
ステムは、1度の呼び出しにより、そのタスクの全ての
子タスクの終了を待ち合わせることのできる子タスク終
了待ち合わせシステムを提供し、ユーザのプログラミン
グの自由度を向上させることができる効果を有してい
る。
Further, the child task completion waiting system of the present invention provides a child task completion waiting system which can wait for the completion of all the child tasks of the task by one call, and provides a user with a high degree of freedom in programming. Has the effect that can be improved.

【0027】さらに、1度の呼び出しにより、特定の子
タスクの終了を待ち合わせるか、またはそのタスクのす
べての子タスクの終了を待ち合わせるかを選択すること
のできる子タスク終了待ち合わせシステムを提供し、ユ
ーザのプログラミングの自由度を向上させることができ
る効果を有している。
Further, a child task completion waiting system is provided which allows the user to select whether to wait for the completion of a specific child task or to wait for the completion of all child tasks of the task by one invocation. Has the effect of improving the degree of freedom of programming.

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.

【図2】本発明の一実施例におけるタスク待ち合わせ要
求識別手段31の処理を示す流れ図である。
FIG. 2 is a flowchart showing a process of a task waiting request identification unit 31 in one embodiment of the present invention.

【図3】本発明の一実施例における待ち合わせタスク選
択手段処理32の処理を示す流れ図である。
FIG. 3 is a flowchart showing processing of a waiting task selecting means processing 32 according to an embodiment of the present invention.

【図4】本発明の一実施例におけるタスク終了待ち合わ
せ手段33の処理の示す流れ図である。
FIG. 4 is a flowchart showing processing of a task end waiting means 33 according to an embodiment of the present invention.

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

1 ターミネーションセマフォ 2 子タスク名一覧表 11 ターミネーションセマフォ初期化手段 12 子タスク一覧表作成手段 21 タスク終了通知手段 31 タスク待ち合わせ要求識別手段 32 待ち合わせタスク選択手段 33 タスク終了待ち合わせ手段 DESCRIPTION OF SYMBOLS 1 Termination semaphore 2 Child task name list 11 Termination semaphore initialization means 12 Child task list creation means 21 Task end notification means 31 Task waiting request identification means 32 Waiting task selection means 33 Task end waiting means

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 1つのジョブを複数のタスクから構成すA job is composed of a plurality of tasks.
ることが可能なマルチプログラミング計算機システムにMulti-programming computer system
おいて、And タスク単位に存在し、各タスクが終了時にイベントを通It exists on a task-by-task basis.
知し、イベントの有無によりタスクの終了を判断するたTo determine the end of a task based on the presence or absence of an event.
めのターミネーションセマフォと、Termination semaphore and タスク単位に存在し、各タスクの子タスクの数と子タスIt exists for each task, and the number of child tasks and child tasks of each task
クの名前が登録された子タスク名一覧表と、A list of child task names with registered task names, タスクの待ち合わせ要求が行われた時に、その要求が特When a task wait request is made, the request is
定の1つのタスクの終了を待ち合わせるものか、該要求Wait for the completion of a specific task or the request
タスクのすべての子タスクの終了を待ち合わせるものかWhether to wait for all child tasks of the task to finish
を判定し、特定の1つのタスクの終了を待ち合わせる要And wait for the end of one specific task.
求であると判定した場合には、待ち合わせ対象の子タスRequest, the child task to be waited for
クの前記ターミネーションセマフォに対してイベント待Event waiting for the termination semaphore
ちを行い、イベントを受け取った後にそのターミネーシAfter receiving the event
ョンセマフォにイベント通知を行い、該子タスクが終了Event notification to the local semaphore and the child task ends.
した時点で、呼び出し元に該要求タスクが終了した旨をAt that point, the caller is informed that the requested task has been completed.
返却し、一方すべての子タスクの終了を待ち合わせる要Must be returned while waiting for all child tasks to complete
求であると判定した場合には、該要求タスクの前記タスIf the task is determined to be
ク名一覧表を参照し、この前記タスク名一覧表に登録さRefer to the task name list and register it in this task name list.
れているタスク毎に、該タスクの前記ターミネーションFor each task that has been terminated
セマフォに対してイベント待ちを行い、イベントを受けWait for an event on the semaphore and receive the event
取った後にそのターミネーションセマフォにイベント通After taking it, the event is sent to the termination semaphore.
知を行い、すべての子タスクが終了した時点で、呼び出When all the child tasks are finished,
し元に該要求タスクが終了した旨を返却するタスク待ちTask waiting to return to the source that the requested task has been completed
合わせ要求識別手段とを備えたことを特徴とする子タスChild task comprising matching request identification means.
ク終了待ち合わせシステム。End completion system.
【請求項2】 1つのジョブを複数のタスクから構成す2. One job is composed of a plurality of tasks.
ることが可能なマルチプログラミング計算機システムにMulti-programming computer system
おいて、And タスク単位に存在し、各タスクが終了時にイベントを通It exists on a task-by-task basis.
知し、イベントの有無によりタスクの終了を判断するたTo determine the end of a task based on the presence or absence of an event.
めのターミネーションセマフォと、Termination semaphore and タスク単位に存在し、各タスクの子タスクの数と子タスIt exists for each task, and the number of child tasks and child tasks of each task
クの名前が登録された子タスク名一覧表と、A list of child task names with registered task names, タスクの開始時に、開始されるタスクのターミネーショTermination of the started task when the task starts
ンセマフォをイベントが存在しない状態に初期化するタInitializes the semaphore to a state where no events exist.
ーミネーションセマフォ初期化手段と、-Termination semaphore initialization means, タスクの開始時に、開始されるタスクの前記子タスク名When starting a task, the child task name of the task to be started
一覧表を作成する子タChild that creates a list スク一覧表作成手段と、Disk list creation means, タスクの終了時に、終了するタスクの前記ターミネーシAt the end of the task, the termination of the task to be terminated
ョンセマフォにイベントを通知するタスク終了通知手段Task end notification means for notifying events to event semaphores
と、When, 指定されたタスク名のタスクの前記ターミネーションセThe termination session for the task with the specified task name
マフォに対してイベント待ちを行い、イベントを受け取Wait for event on mafo and receive event
った後にそのターミネーションセマフォにイベント通知Event notification to the termination semaphore
を行い、その後、呼び出し元に指定されたタスクが終了And then the task specified by the caller ends
した旨を返却するタスク終了待ち合わせ手段と、Task end waiting means for returning the fact that タスクの待ち合わせ要求が行われた時に、要求元タスクWhen the task wait request is made, the requesting task
の前記タスク名一覧表を参照し、タスク名を取得し、前Refer to the above task name list, obtain the task name, and
記タスク終了待ち合わせ手段を呼び出す処理を子タスクThe task that calls the task end waiting means is a child task
の数分繰り返す待ち合わせタスク選択手段と、A waiting task selecting means to be repeated for several minutes, タスクの待ち合わせ要求が行われた時に、その要求が特When a task wait request is made, the request is
定の1つのタスクの終了を待ち合わせるものか、要求元Whether to wait for the completion of a specific task or the request source
タスクのすべての子タスクの終了を待ち合わせるものかWhether to wait for all child tasks of the task to finish
を判定し、特定の1つのタスクの終了を待ち合わせる要And wait for the end of one specific task.
求であると判定した場合には、待ち合わせ対象の子タスRequest, the child task to be waited for
ク名を指定し、前記タスク終了待ち合わせ手段に制御をTask name, and control the task end waiting means.
渡し、すべての子タスクの終了を待ち合わせる要求であRequest to wait for the end of all child tasks.
ると判定した場合には、前記待ち合わせタスク選択手段If it is determined that the waiting task selection means
に制御を渡すタスク待ち合わせ要求識別手段とを備えたTask waiting request identification means for transferring control to
ことを特徴とする子タスク終了待ち合わせシステム。A child task completion waiting system.
JP6243760A 1994-10-07 1994-10-07 Waiting system for child task completion Expired - Fee Related JP2718377B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6243760A JP2718377B2 (en) 1994-10-07 1994-10-07 Waiting system for child task completion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6243760A JP2718377B2 (en) 1994-10-07 1994-10-07 Waiting system for child task completion

Publications (2)

Publication Number Publication Date
JPH08106395A JPH08106395A (en) 1996-04-23
JP2718377B2 true JP2718377B2 (en) 1998-02-25

Family

ID=17108584

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6243760A Expired - Fee Related JP2718377B2 (en) 1994-10-07 1994-10-07 Waiting system for child task completion

Country Status (1)

Country Link
JP (1) JP2718377B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4577343B2 (en) * 2007-09-13 2010-11-10 日本電気株式会社 Computer system and job step parallel processing method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02226427A (en) * 1989-02-28 1990-09-10 Toshiba Corp Method for deciding termination of task
JPH035829A (en) * 1989-06-01 1991-01-11 Fujitsu Ltd Automatic operation control system for job execution
JP2573875B2 (en) * 1989-06-23 1997-01-22 日本電気エンジニアリング株式会社 Program control method
JP2999024B2 (en) * 1991-08-09 2000-01-17 富士通株式会社 End process for child process

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
M.J.Bach/・著、坂本(外2名)・訳、「UNIXカーネルの設計」、共立出版株式会社・刊(1990年10月)、P.183〜186

Also Published As

Publication number Publication date
JPH08106395A (en) 1996-04-23

Similar Documents

Publication Publication Date Title
US7316017B1 (en) System and method for allocatiing communications to processors and rescheduling processes in a multiprocessor system
US6269391B1 (en) Multi-processor scheduling kernel
JP3807588B2 (en) Multi-thread processing apparatus, processing method, and computer-readable recording medium storing multi-thread program
JPH0820963B2 (en) Method for operating computer system and computer system
JP2004021985A (en) Spin-yield in multithread system
JP2718377B2 (en) Waiting system for child task completion
EP0913770A2 (en) Method and apparatus for sharing a time quantum
JPH11305998A (en) Computer system
JPH07141208A (en) Multitask processor
JP3544140B2 (en) Exclusive control method in distributed object environment
JPH08292956A (en) Device and method for data base management
WO2007108133A1 (en) Multi-processing method and multi-processing system
JPH04335441A (en) Command immediate answer property securing system
JPH07114518A (en) Task scheduling system of multiprocessor system
JP2752894B2 (en) File transfer device
JPH0194446A (en) System for controlling program
JPH0844574A (en) Job operation management device
JPH05241890A (en) Data trace system
JP2000194573A (en) System and method for thread control
JPH0282316A (en) Attention exit starting system at picture division
JPH0778091A (en) Multitask managing method
JPH0424829A (en) Limit application system for schedule production system
JPH06161872A (en) Inter-task exclusive control method
JPH03119428A (en) Parallelled procedure execution system
JPH06230950A (en) Task control method in decentralized processing environment

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19971014

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071114

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081114

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081114

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091114

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091114

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101114

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees