JPS61264443A - Informing system for task generation state - Google Patents

Informing system for task generation state

Info

Publication number
JPS61264443A
JPS61264443A JP10711785A JP10711785A JPS61264443A JP S61264443 A JPS61264443 A JP S61264443A JP 10711785 A JP10711785 A JP 10711785A JP 10711785 A JP10711785 A JP 10711785A JP S61264443 A JPS61264443 A JP S61264443A
Authority
JP
Japan
Prior art keywords
task
generation
ecb
status
request
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.)
Pending
Application number
JP10711785A
Other languages
Japanese (ja)
Inventor
Yoshio Tsukagoshi
塚越 喜雄
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 JP10711785A priority Critical patent/JPS61264443A/en
Publication of JPS61264443A publication Critical patent/JPS61264443A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce a communication area and also to perform both the information of generation of a task and the process to eliminate a waiting state of the requester task just in a single step, by writing an end code and a waiting state releasing macro to an event control block ECB. CONSTITUTION:When a main task 1 wants the generation of a subtask, this request is written to a communication area ECB-1. A requester task is kept waiting until the generation of the subtask is through. A task production part 2-2 discriminates the task production request and prepares the environment where a new task works to produce a new task. A deciding part 2-3 receives the result of operation from the part 2-2 to decides whether it is normal or not and informs each state value (end code) to a state end informing part 2-4. This state value and the POST macro are written to a communication area ECB-2. Then the waiting state of the task 1 is released.

Description

【発明の詳細な説明】 〔目 次〕 概要 産業上の利用分野(第3図) 従来の技術(第4図) 発明が解決しようとする問題点 問題点を解決するための手段(第1図)作用 実施例 (1)実施例の構成(第2図) (2)実施例の動作 発明の効果 〔概 要〕 本発明は、管理タスクとその子タスクというタスク構造
において、子タスクから管理タスクに対して別タスクの
生成を依頼する場合、管理タスクはタスク生成後、その
生成状態の通知と、別タスりの生成依頼をした子タスク
の待ちの解除を、事象管理ブロックの特定領域に記入す
ることによシ行うものである。
[Detailed description of the invention] [Table of contents] Overview Industrial application field (Figure 3) Prior art (Figure 4) Problems to be solved by the invention Means for solving the problems (Figure 1) ) Functional Example (1) Structure of the Example (Fig. 2) (2) Effect of the Operational Invention of the Example [Summary] In the task structure of a management task and its child tasks, the present invention provides an example of the operation of the management task from the child task to the management task. When requesting the creation of another task, the management task, after creating the task, notifies the creation status and releases the waiting state of the child task that requested the creation of another task in a specific area of the event management block. This is especially true.

〔産業上の利用分野〕[Industrial application field]

本発明はPL/I言語のマルチタスク構成におけるタス
ク生成状態通知方式に係シ、特にタスク生成処理におけ
る管理タスクから要求元タスクへタスクの生成状況を効
率的に通知する通知方式に関するものであるO PL/I言語では、複数のタスクが時分割的に動作して
外部からみれば複数のタスクが同時に動作させるように
することができる。
The present invention relates to a task generation status notification method in a multitask configuration of the PL/I language, and in particular to a notification method for efficiently notifying the task generation status from a management task to a requesting task in task generation processing. In the PL/I language, a plurality of tasks can be operated in a time-division manner, and from an external perspective, the plurality of tasks can be operated simultaneously.

ジョブの起動にともない主タスクが同時に起動する。主
タスクの動作にともないサブタスクを動作させることが
必要となるとき、CALL  5UBTASK  とい
うプログラム文によシサブタスクを呼出すことができる
0勿論サブタスクもその動作によシその下位のタスク(
持タスク)を呼出し動作することになる。ところで主タ
スクはサブタスクの動作が正常終了か異常終了かわかる
が、持タスクが正常終了か異常終了かはわからない。そ
れ故、第3図に示す如く、主タスク21と、複数のサブ
タスク22−1〜22−nの上位に管理タスク20を設
、け、管理タスク20に対して主タスク21及びサブタ
スク22−1〜22−nはいずれも親子関係“に位置す
るようにして管理タスク20が主タスク21、サブタス
ク22−1〜22−nの状態を管理できるように、マル
チタスク機能では構成されている。この場合、主タスク
は常に生成されるが、他のタスク1〜nは主タスクまた
は生成ずみのタスクからの生成要求がなされたとき管理
タスクによシ生成される。
When the job starts, the main task starts at the same time. When it becomes necessary to operate a subtask in accordance with the operation of the main task, the subtask can be called by the program statement CALL 5UBTASK.0Of course, a subtask also depends on its operation, and its subordinate tasks (
The current task will be called and executed. By the way, the main task can tell whether the subtask's operation has ended normally or abnormally, but it cannot know whether the owning task has ended normally or abnormally. Therefore, as shown in FIG. 3, a management task 20 is provided above a main task 21 and a plurality of subtasks 22-1 to 22-n. - 22-n are all located in a "parent-child relationship" so that the management task 20 can manage the status of the main task 21 and subtasks 22-1 to 22-n. In this case, the main task is always generated, but the other tasks 1 to n are generated by the management task when a generation request is made from the main task or the generated task.

〔従来の技術〕[Conventional technology]

主タスクから新タスクの生成要求を行う場合。 When requesting the generation of a new task from the main task.

従来では、第4図に示す如く、主タスク21の要求部2
1−1が事象管理ブロック(ECB)23の領域区分E
CB 1にこの要求を表示する。管理タスク20の受付
部20−1はこれによシ新タスク生成要求の存在を識別
し、タスク生成部20−2を制御して新タスク生成処理
を行う。この処理としては要求されたタスクに対するタ
スク制御ブロック(TCB)を作シ適当なTCBキュー
につなげそのタスクの最初のプログラムに制御を渡す準
備をする。
Conventionally, as shown in FIG.
1-1 is the area division E of the event management block (ECB) 23
Display this request on CB 1. The reception unit 20-1 of the management task 20 thereby identifies the existence of the new task generation request, and controls the task generation unit 20-2 to perform new task generation processing. This process involves creating a task control block (TCB) for the requested task, connecting it to an appropriate TCB queue, and preparing to transfer control to the first program for that task.

タスク生成部20−2は、このようにして新しいタスク
が動作するまでの環境を整えて、新タスクを発生させる
準備をするものである。ところでこのような生成準備を
行った結果2例えばTCBキューの作成領域に空きがな
くキューの接続ができなかったような状態の失敗や、正
常に生成できた場合のような結果報告をタスク生成部2
0−2は判定部20−3に伝達する。判定部20−3は
このタスク生成部20−2からの結果を受取シ、状態値
に変換し、これを状態通知部20−4に伝達する。状態
通知部20−4はこの状態値(完了コード)を返却領域
24に設定する。また完了通知部20−5はこの状態通
知部20−4からの通知によシ、タスク生成が完了した
ことを主タスクへ通知するため事象管理ブロックBCB
の領域区分ECB−2にこれを記入する。このときPO
8Tマクロ(待状態解除)を発行し要求元タスクの待ち
を解く。主タスク21では完了受付部21−2がタスク
生成が完了したか否かをECB−2で判定する。これは
完了するまで判定を繰返す。そして完了したとき、これ
を検査部21−3に報告し、検査部21−3は返却領域
24を調べてタスク生成が正しくなされたか否かを検査
することになる。なお、第4図において実線はデータの
流れを示し、広幅矢印は制御信号を示す。
The task generation unit 20-2 thus prepares the environment for the new task to operate and prepares to generate the new task. By the way, as a result of such generation preparation, the task generation module reports failures such as failures such as the TCB queue creation area not being able to connect due to lack of free space, and results such as successful generation. 2
0-2 is transmitted to the determination unit 20-3. The determining unit 20-3 receives the result from the task generating unit 20-2, converts it into a status value, and transmits this to the status notification unit 20-4. The status notification unit 20-4 sets this status value (completion code) in the return area 24. In addition, the completion notification unit 20-5 uses the notification from the status notification unit 20-4 to inform the event management block BCB of the completion of task generation to the main task.
Enter this in area division ECB-2. At this time, P.O.
Issues an 8T macro (waiting state release) to release the requesting task from waiting. In the main task 21, the completion reception unit 21-2 determines whether task generation is completed using the ECB-2. This process is repeated until completion. When the task is completed, this is reported to the inspection section 21-3, and the inspection section 21-3 examines the return area 24 to inspect whether the task was correctly generated. In FIG. 4, solid lines indicate the flow of data, and wide arrows indicate control signals.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ところで第4図に示す従来の通知方式では9通信領域に
事象管理ブロック(ECB)23と、返却領域24とい
う2つの領域を必要とする。このためこの通信領域も大
きくなるのみならず、この2つの領域のためにそれぞれ
のインタ7エイスが必要となシ、このため通信領域に対
して2つのインタフェイスを持たなければならないとい
う問題がある。
By the way, the conventional notification method shown in FIG. 4 requires two areas, an event management block (ECB) 23 and a return area 24, in nine communication areas. Therefore, not only does this communication area become large, but each interface requires two interfaces for these two areas, which creates the problem of having to have two interfaces for the communication area. .

本発明の目的は、このようなインタフェイスが2つ必要
であるということおよび前記の如く、■返却領域24に
状態値を設定する。■ECB−2に待状態解除マクロを
記入して要求元タスクの待状態を解くという2つのステ
ップを必要としたものを1ステツプで行うことを可能と
したタスク生成状態通知方式を提供するものである。
The object of the present invention is that two such interfaces are required, and as described above, (1) setting a status value in the return area 24; ■It provides a task creation state notification method that makes it possible to perform in one step what previously required two steps: writing a waiting state release macro in the ECB-2 and releasing the requesting task from the waiting state. be.

〔問題点を解決するための手段〕[Means for solving problems]

本発明では、第1図に示す如く、主タスク(要求元タス
ク)からタスク生成要求があったとき。
In the present invention, as shown in FIG. 1, when there is a task generation request from the main task (request source task).

その生成状態(正常または異常)を報告する完了コード
とともにPO8Tマクロ(待状態解除マクロ)を発行す
る。これらの完了コードおよびPO8Tマクロは、事象
管理ブロックの特定領域に記入される。要求元タスクで
はこれを識別して待状態を解除し、また完了コードを解
析して正常か異常かを判別し、異常終了の場合にはその
内容に応じて処理の振シ分けを行うことになる。
A PO8T macro (waiting state release macro) is issued along with a completion code that reports the generation status (normal or abnormal). These completion codes and PO8T macros are written into specific areas of the event management block. The requesting task identifies this and releases it from the waiting state, and also analyzes the completion code to determine whether it is normal or abnormal, and in the case of abnormal termination, distributes processing according to the content. Become.

〔作 用〕[For production]

本発明によれば9通信領域としては事象管理ブロック(
ECB)領域のみでよく、従来のように返却領域を必要
としないので通信領域も小さくすることができ、インタ
フェイスも1つでよい。しかもタスク生成状況の通知と
要求元タスクの待ちを解くという処理を同時にBCBに
記入することによ)行うので、1ステツプで行うことが
できる。
According to the present invention, the nine communication areas include the event management block (
Since only the ECB area is required and there is no need for a return area as in the past, the communication area can be made smaller and only one interface is required. Moreover, since the process of notifying the task generation status and releasing the requesting task from the waiting state are performed simultaneously (by writing them in the BCB), this can be done in one step.

〔実施例〕〔Example〕

本発明の一実施例を、第2図によシ、他図を参照しなが
ら説明する。
An embodiment of the present invention will be described with reference to FIG. 2 and other figures.

(1)実施例の構成 第2図は本発明の一実施例構成図であシ1図中1は主タ
スク、2は管理タスク、3は事象管理ブロック(BCB
)であ多通信領域である。
(1) Configuration of Embodiment FIG. 2 is a configuration diagram of an embodiment of the present invention. In the figure, 1 is the main task, 2 is the management task, and 3 is the event management block (BCB).
) is a multi-communications area.

主タスク1には、タスク生成を管理タスク2に依頼する
ため、事象管理ブロック3の区分BCB−1にその旨を
記入表示する要求部1−1.タスク生成が完了したか否
かを事象管理ブロック3の区分ECB−2に記入された
データにもとづき判定する完了受付部1−2.タスク生
成が完了したとき前記ECB−2内の状態値を調べてタ
スク生成が正しくなされたか否かを検査する検査部1−
3等が設けられている。なお前記完了受付部1−2はタ
スク生成が完了するまで前記ECB−2のデータをよみ
判定処理を繰返すものである。
In order to request task generation to the management task 2, the main task 1 includes a request section 1-1. Completion receiving unit 1-2 that determines whether task generation is completed based on data entered in section ECB-2 of event management block 3. An inspection unit 1- that checks the status value in the ECB-2 when the task generation is completed to check whether the task generation has been performed correctly.
3rd class is provided. The completion reception unit 1-2 reads the data of the ECB-2 and repeats the determination process until task generation is completed.

管理タスク2には、タスク生成要求依頼があったか否か
を前記ECB−1のデータによシ判定する受付部1−1
と、前記タスク生成部20−2と同様に、新しいタスク
が動作するまでの環境を整えて新タスクを発生させるタ
スク生成部2−2と、該タスク生成部2−2から結果を
受取シ状態値に変換する判定部2−3と、該状態値とタ
スク生成の完了を通知するため、前記ECB−2にその
旨を記入して表示する状態・完了通知部2−4等が設け
られている。なお前記受付部2−1は、タスク生成要求
依頼があるまで前記FliCB−1をよみとシ判定処理
を繰返すものである。
The management task 2 includes a reception unit 1-1 that determines whether or not there is a task generation request based on the data of the ECB-1.
Similar to the task generation unit 20-2, a task generation unit 2-2 generates a new task by preparing the environment until the new task operates, and a task generation unit 2-2 receives the result from the task generation unit 2-2. A determination unit 2-3 that converts the status value into a value, and a status/completion notification unit 2-4 that writes and displays the status value and the completion of task generation in the ECB-2 to notify the status value and the completion of task generation. There is. The reception unit 2-1 reads the FliCB-1 and repeats the determination process until a task generation request is received.

(2)実施例の動作 いま主タスク1がデータ処理の遂行にともなってサブタ
スク(新しいタスク)の生成が必要となったとき、主タ
スク1の要求部1−1はECB−1にこの要求事項を記
入する。要求元タスクはタスク生成が完了するまで待ち
状態になる。
(2) Operation of the embodiment When the main task 1 needs to generate a subtask (new task) as it performs data processing, the requesting unit 1-1 of the main task 1 sends the request to the ECB-1. Enter. The requesting task remains in a waiting state until task generation is completed.

管理タスク2の受付部2−1はとのECB−1をみてタ
スク生成要求を識別し、これをタスク生成部2−2に伝
達する。これによシタスフ生成部2−2は、新しいタス
クの制御ブロック(TCB)を作りこれをTCBキュー
に連結する等の、新しいタスクが動作するための環境を
整えて新タスクを発生させる。
The reception unit 2-1 of the management task 2 identifies the task generation request by looking at the ECB-1, and transmits it to the task generation unit 2-2. Accordingly, the task flow generation unit 2-2 creates an environment for the new task to operate, such as creating a new task control block (TCB) and connecting it to the TCB queue, and generates the new task.

そしてタスク生成部2−2はこのような生成結果が正常
であったか異常であったかを判定部2−3に報告する。
The task generation unit 2-2 then reports to the determination unit 2-3 whether such generation result is normal or abnormal.

判定部2−3はこのタスク生成部2−2からの結果を受
けとシ、正常の場合はそれを示す状態値(完了コード)
に変換し、異常の場合にはどのような異常かを示す状態
値(完了コード)に変換する0 この状態値は状態・完了通知部2−4に伝達されるので
、該状態・完了通知部2−4は状態値とタスク生成の完
了を通知するため、ECB−2にこの状態値と、 PO
8Tマクロを記入し主タスクの待ちを解く処理を行う。
The determining unit 2-3 receives the result from the task generating unit 2-2, and if it is normal, it outputs a status value (completion code) indicating it.
In the case of an abnormality, it is converted into a status value (completion code) indicating what kind of abnormality it is.0 This status value is transmitted to the status/completion notification unit 2-4, so the status/completion notification unit 2-4 notifies ECB-2 of the state value and completion of task generation, and sends this state value and PO
Write the 8T macro and perform processing to release the main task from waiting.

主タスク1の完了受付部1−2はタスク生成が完了する
まで前記ECB−2をチェックしているので、BCB−
2に前記事項が記入されたとき、これをよみ出し待ち状
態を解除する。このとき前記状態値は検査部1−3によ
り解読され、正常生成か。
Since the completion receiving unit 1-2 of the main task 1 checks the ECB-2 until the task generation is completed, the BCB-
When the above-mentioned information is entered in 2, it is read out and the waiting state is released. At this time, the status value is decoded by the inspection unit 1-3 to determine whether it is normally generated.

異常か、もし異常ならばその異常状態を判別してそれに
対応した工2−処理の振分けが行われることになる。
Is it abnormal? If so, the abnormal state is determined and the corresponding work 2-processing is distributed.

なお前記説明は主タスクによシタスフ生成要求された場
合について説明したが9本発明では勿論これに限定され
るものではなく、すでに生成ずみのPL/Iタスクによ
シタスフ生成要求の行なわれる場合も同様である。
Although the above explanation deals with the case where the main task requests the generation of a status flow, the present invention is of course not limited to this, and there may also be a case where a request to generate a status flow is made by a PL/I task that has already been generated. The same is true.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、従来の場合には事象管理ブロックEC
Bと返却領域の2つの通信領域を必要とし、したがって
これらに対する2つのインク7エイスが必要のため構成
が複雑で、しかも通信領域も広いものが必要でアシ、さ
らに返却領域に対しては完了コードの設定を行ない、B
CBに対してはPO8Tマクロを記入して待状態を解除
しなければならなかったという欠点を、ECBに完了コ
ードと待状態解除マクロを記入すればよいので、インタ
7エイスも1つですみ、また通信領域も小さくすること
ができる。しかも完了コードと待状態解除マクロを1つ
のステップで記入することができる。
According to the present invention, in the conventional case, the event management block EC
It requires two communication areas, B and return area, and therefore requires two Ink 7 Aces for these, making the configuration complex and requiring a wide communication area.Furthermore, a completion code is required for the return area. Set up B.
The disadvantage of having to enter the PO8T macro to release the wait state for the CB is now that you just need to enter the completion code and the wait state release macro in the ECB, so you only need one Inter7Ace. Furthermore, the communication area can also be made smaller. Furthermore, a completion code and a waiting state release macro can be written in one step.

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

第1図は本発明の原理図。 第2図は本発明の一実施例構成図。 第3図はマルチタスク構成図。 第4図は従来のタスク生成状態通知方式である。 図中、1・・・主タスク。 2・・・管理タスク。 3・・・事象管理ブロック。 FIG. 1 is a diagram showing the principle of the present invention. FIG. 2 is a configuration diagram of an embodiment of the present invention. Figure 3 is a multitasking configuration diagram. FIG. 4 shows a conventional task generation status notification method. In the figure, 1...main task. 2... Management tasks. 3...Event management block.

Claims (1)

【特許請求の範囲】 タスク生成要求元タスクと、管理タスク(2)を有し、
タスク生成要求を管理タスクが処理するとともにタスク
生成要求元のタスクはタスク要求を行つたとき待状態と
なるデータ処理方式において、管理タスク(2)には、
受付手段と、タスク生成手段と、判定手段と、状態・完
了通知手段を設けるとともに、 要求事項や命令等が記入される通信手段(3)を設け、 またタスク生成要求元タスクには前記通信手段に記入さ
れた事項を読出し、これに応じた制御を行う完了受付部
を設け、 タスク生成結果に応じた状態および待状態解除信号を前
記通信手段に記入してこれに応じた処理を行うようにし
たことを特徴とするタスク生成状態通知方式。
[Claims] A task generation request source task and a management task (2),
In a data processing method in which a management task processes a task generation request and the task that is the source of the task generation request is placed in a waiting state when the task request is made, the management task (2) has the following:
In addition to providing a reception means, a task generation means, a determination means, and a status/completion notification means, a communication means (3) is provided in which requirements, commands, etc. are entered, and the task that requests task generation is provided with the communication means. A completion reception unit is provided which reads out the items entered in the task information and performs control accordingly, and writes the status and standby state release signal in accordance with the task generation result into the communication means and performs processing accordingly. A task generation status notification method characterized by the following.
JP10711785A 1985-05-20 1985-05-20 Informing system for task generation state Pending JPS61264443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10711785A JPS61264443A (en) 1985-05-20 1985-05-20 Informing system for task generation state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10711785A JPS61264443A (en) 1985-05-20 1985-05-20 Informing system for task generation state

Publications (1)

Publication Number Publication Date
JPS61264443A true JPS61264443A (en) 1986-11-22

Family

ID=14450907

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10711785A Pending JPS61264443A (en) 1985-05-20 1985-05-20 Informing system for task generation state

Country Status (1)

Country Link
JP (1) JPS61264443A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01106234A (en) * 1987-10-20 1989-04-24 Fujitsu Ltd Method for controlling debugging of parallel processing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01106234A (en) * 1987-10-20 1989-04-24 Fujitsu Ltd Method for controlling debugging of parallel processing

Similar Documents

Publication Publication Date Title
US6625638B1 (en) Management of a logical partition that supports different types of processors
JPH02500059A (en) Communication interface protocol
EP0196331A1 (en) Method of and arrangement for ordering of multiprocessor operations in a multiprocessor system.
US5228127A (en) Clustered multiprocessor system with global controller connected to each cluster memory control unit for directing order from processor to different cluster processors
JP3490473B2 (en) Communication system between processors
JPS61264443A (en) Informing system for task generation state
JP2877095B2 (en) Multiprocessor system
JPH06348512A (en) Resource-control computer system
US4740910A (en) Multiprocessor system
JP2809325B2 (en) Multiple computer system and its monitoring operation method
JPH01305461A (en) Right of using bus control system
JPH02224169A (en) Processing distributing system for computer system
CN114780505A (en) Data and file interaction method
JPH0342762A (en) Inter-processor communication method for multiprocessor system
JP3039918B2 (en) Processor system
JPH03246743A (en) Inter-processor communication system
JPS59167770A (en) Managing system of information source
JPH06224975A (en) Method for resetting modules connected with each other, and system using this method
JPS60118966A (en) Job decentralizing processing system
JPH04139556A (en) Retry control system
JP2503287B2 (en) Multi-function computer with survival confirmation function
JPS59135554A (en) Communication system between computer systems
Rosenbaum et al. Software Development Issues For Network Node Equipment
JPS6042978B2 (en) I/O interrupt control method
JPS62229350A (en) Command transmission and control system