JPH05143423A - On-line journal acquiring system - Google Patents

On-line journal acquiring system

Info

Publication number
JPH05143423A
JPH05143423A JP3303071A JP30307191A JPH05143423A JP H05143423 A JPH05143423 A JP H05143423A JP 3303071 A JP3303071 A JP 3303071A JP 30307191 A JP30307191 A JP 30307191A JP H05143423 A JPH05143423 A JP H05143423A
Authority
JP
Japan
Prior art keywords
task
journal
output operation
wait
completed
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
JP3303071A
Other languages
Japanese (ja)
Inventor
Hiroshi Terajima
博 寺島
Tomoo Miyazaki
朝生 宮崎
Norihiro Goto
典弘 後藤
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.)
Hitachi Software Engineering Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Software Engineering Co Ltd
Hitachi 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 Hitachi Software Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Software Engineering Co Ltd
Priority to JP3303071A priority Critical patent/JPH05143423A/en
Publication of JPH05143423A publication Critical patent/JPH05143423A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the internal processing of a CPU by decreasing the number of times for issuing a supervisor call concerning wait and wait release by starting the journal output operation of a following task without informing it of the following task after the journal output operation of a preceding task is completed, and releasing the wait of the following task when the started output operation is completed. CONSTITUTION:When a preceding task 1 is under outputting journal information 1, a following task demands the output operation start of journal information 2 to the preceding task 1 and is turned to a waiting state according to the WAIT supervisor call until the operation is completed. When the output operation of the journal information 1 is completed, the preceding task 1 starts the output operation of the journal information 2 in place of the task 2 and finishes the processing. When the wait of the task 2 is released by the POST supervisor call showing the completion of this output operation, a series of processings are completed. Thus, the WAIT and POST supervisor calls for communication between the tasks 1 and 2 are omitted and performance can be improved.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は高トラフィック・オンラ
インシステムにおいて発生するリラン用ジャーナル情報
取得時のCPU内部処理ネックを解消するために採用し
たオンラインジャーナル取得方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an online journal acquisition system adopted to eliminate a CPU internal processing neck at the time of acquiring rerun journal information which occurs in a high traffic online system.

【0002】[0002]

【従来の技術】従来はオンラインジャーナルを取得する
場合、特開昭62−266643号公報に記載のよう
に、先行タスクの出力動作中に、ジャーナル取得要求が
発生すると後続タスクはジャーナル情報をキューイング
して自らは先行タスクからの連絡を待つために待ち状態
となる。この後到着する後続タスクも同様である。前記
先行タスクの出力動作が完了した時にその旨先行タスク
が後続タスクに連絡するため待ち解除手段により後続タ
スクの待ちを解除し、動き出した後続タスクがキューイ
ングされてるジャーナル情報の一括出力のため出力動作
を開始し、出力動作の完了まで再び待ち状態となり、出
力動作の完了後再び待ちが解除される方式であった。
2. Description of the Related Art Conventionally, in the case of acquiring an online journal, as described in JP-A-62-266643, when a journal acquisition request is issued during the output operation of the preceding task, the succeeding task queues the journal information. Then, it waits for the contact from the preceding task. The same applies to subsequent tasks that arrive after this. When the output operation of the preceding task is completed, the preceding task contacts the succeeding task to that effect, so that the waiting release means releases the waiting of the succeeding task, and the started succeeding task is output for batch output of the queued journal information. It is a system in which the operation is started, the waiting state is again waited until the output operation is completed, and the waiting is released again after the output operation is completed.

【0003】[0003]

【発明が解決しようとする課題】特開昭62−2666
43の方式はジャーナルデバイスへの出力動作の回数を
減らしアクセスネックを解決したが、待ちと待ち解除に
関するスーパバイザコールの発行回数に大きく依存する
CPU内部処理ネックは解決されないという問題があっ
た。本発明は待ちと待ち解除に関するスーパバイザコー
ルの発行回数を減らしてCPU内部処理を軽減しようと
するものである。
Problems to be Solved by the Invention JP-A-62-1666
The method of No. 43 reduces the number of output operations to the journal device and solves the access neck, but there is a problem that the CPU internal processing neck, which largely depends on the number of times of issuing supervisor calls for waiting and releasing the wait, cannot be solved. The present invention is intended to reduce the internal processing of the CPU by reducing the number of times of issuing supervisor calls relating to waiting and waiting release.

【0004】[0004]

【課題を解決するための手段】ジャーナル情報を取得す
るオンラインシステムにおいて、入出力動作の完了を待
つためタスクを待ち状態にする場合と、他タスクからの
連絡を待つためタスクを待ち状態にする場合に共通な、
待ち手段WAITスーパバイザコールと、待ちを解除す
る手段POSTスーパバイザコールを有し、複数のジャ
ーナル取得要求が集中した場合に先行タスクの入出力動
作の完了を後続タスクが待ち手段WAITスーパバイザ
コールにて待つことによりジャーナル取得を直列化する
方法であって、先行タスクのジャーナル出力動作完了後
に、後続タスクへの連絡をすることなく後続タスクのジ
ャーナル出力動作を始動し、出力動作の完了POSTス
ーパバイザコールにて後続タスクの待ちを解除する。
[Means for solving the problems] In an online system for collecting journal information, when a task is placed in a waiting state to wait for the completion of an I / O operation, and when a task is placed in a waiting state to wait for communication from another task Common to
It has a wait means WAIT supervisor call and a wait release means POST supervisor call, and when a plurality of journal acquisition requests are concentrated, the succeeding task waits for the completion of the input / output operation of the preceding task by the wait means WAIT supervisor call. The method is to serialize the journal acquisition by starting the journal output operation of the succeeding task without contacting the successor task after the completion of the journal output operation of the predecessor task, and then completing the output operation by the POST supervisor call. Release the task wait.

【0005】[0005]

【作用】本方式では、先行するタスクがジャーナル出力
動作中に後続するタスクがジャーナル出力しようとした
場合、後続タスクは先行タスクにジャーナル出力を依頼
して待ち手段WAITスーパバイザコールにより待ち状
態となる。先行するタスクは自タスクのジャーナル出力
動作を完了すると後続タスクに依頼されたジャーナルが
あればその出力を開始してジャーナルに関する処理を終
了する。
In this method, when the succeeding task attempts to output the journal while the preceding task is performing the journal output operation, the succeeding task requests the preceding task to output the journal and enters the waiting state by the waiting means WAIT supervisor call. When the preceding task completes the journal output operation of the invoking task, if there is a journal requested by the succeeding task, it starts outputting the journal and ends the processing related to the journal.

【0006】この後、後続タスクのジャーナル出力動作
の完了のPOSTスーパバイザコールにより、後続タス
クの待ちが解除されることにより、後続タスクのジャー
ナルに関する処理も終了する。こうして入出力動作の完
了待ちとタスク間の連絡待ちを兼用することにより、待
ちと待ち解除に関するスーパバイザコールの回数を減ら
し内部処理オーバヘッドを削減して直列化を実現する。
Thereafter, the POST supervisor call for completion of the journal output operation of the succeeding task releases the waiting of the succeeding task, so that the processing relating to the journal of the succeeding task also ends. In this way, by using both waiting for completion of I / O operations and waiting for communication between tasks, the number of supervisor calls relating to waiting and waiting release is reduced, and internal processing overhead is reduced to realize serialization.

【0007】[0007]

【実施例】本発明はオンラインシステム、データベース
システムのジャーナル取得処理において、特に有利に実
施し得る。図2は本発明の適用されるオンラインシステ
ムのシステム構成である。図3は取得されるジャーナル
のデータ形式である。
BEST MODE FOR CARRYING OUT THE INVENTION The present invention can be particularly advantageously implemented in journal acquisition processing of online systems and database systems. FIG. 2 is a system configuration of an online system to which the present invention is applied. FIG. 3 shows the data format of the acquired journal.

【0008】発明の概略を理解するため図1を参照す
る。各タスクはジャーナル情報の出力を実行しようとす
る時に、既にジャーナルファイルに出力動作中の先行タ
スクが存在するか確認し(ステップ10)、存在しなけれ
ば、自タスクの出力動作を実行する(ステップ40)。自
タスクの出力動作完了後、後続するタスクからのジャー
ナル出力動作開始依頼がないか確認し(ステップ50)、
なければ一連の動作を終了する。ジャーナル出力動作を
実行しようとした時点で、すでにジャーナルファイルに
出力動作中の先行タスクが存在した場合は、出力動作の
開始を先行タスクに委ね(ステップ20)、自タスクは出
力動作完了待ちとなる(ステップ30)。この場合先行タ
スクの出力動作完了時に後続タスクからのジャーナル出
力依頼の有無をチェックし(ステップ50)、依頼がある
ため、先行タスクは後続タスクのジャーナル情報出力開
始し(ステップ60)一連の動作を終了する。この出力動
作の完了連絡が後続タスクの待ちを解除すると後続タス
クのジャーナル出力処理が終了する。この時も、さらに
後続するタスクが出力依頼をしていないか確認し、先に
述べた通りの流れとなる。
Reference is made to FIG. 1 for a general understanding of the invention. When each task tries to output the journal information, it checks whether there is a preceding task that is already in the output operation in the journal file (step 10), and if it does not exist, it executes the output operation of the invoking task (step 10). 40). After the output operation of the invoking task is completed, check if there is a journal output operation start request from the following task (step 50),
If not, the series of operations ends. At the time of attempting to execute the journal output operation, if there is already a preceding task in output operation in the journal file, the start of the output operation is delegated to the preceding task (step 20), and the invoking task waits for the completion of the output operation. (Step 30). In this case, when the output operation of the preceding task is completed, the presence or absence of a journal output request from the succeeding task is checked (step 50), and since there is a request, the preceding task starts outputting the journal information of the succeeding task (step 60) and performs a series of operations. finish. When the completion notification of this output operation releases the waiting of the succeeding task, the journal output processing of the succeeding task ends. At this time as well, it is confirmed whether or not the subsequent task makes an output request, and the flow is as described above.

【0009】図4に従来の技術による、タスクの動作を
示す。後続するタスク2は、先行するタスク1がジャー
ナル情報1を出力中であると、先行タスクから出力完了
の連絡を受けるまでWAITスーパバイザコールにて待
ち状態となる。タスク1は出力動作を完了するとタスク
2に対してPOSTスーパバイザコールを発行し待ちを
解除し処理終了する。タスク2は待ちが解除されるとジ
ャーナル情報2の出力動作を開始し、その完了をWAI
Tスーパバイザコールにて待つ。この後出力動作完了の
POSTスーパバイザコールにより待ちが解除されると
一連の処理を終了する。
FIG. 4 shows the operation of a task according to the conventional technique. When the preceding task 1 is outputting the journal information 1, the succeeding task 2 is in a waiting state by the WAIT supervisor call until the preceding task 1 receives a notification of completion of output from the preceding task 1. When task 1 completes the output operation, it issues a POST supervisor call to task 2, cancels the wait, and ends the processing. When the task 2 is released from the wait, the output operation of the journal information 2 is started
Wait at T Supervisor Call. After that, when the waiting is released by the POST supervisor call for the completion of the output operation, the series of processing is ended.

【0010】図5に本発明を実施した例のタスクの動作
を示す。後続するタスク2は、先行するタスク1がジャ
ーナル情報1を出力中であると、先行タスク1にジャー
ナル情報2の出力動作開始を先行するタスク1に依頼
し、その完了までWAITスーパバイザコールにて待ち
状態となる。先行するタスク1はジャーナル情報1の出
力動作が完了するとタスク2に代わってジャーナル情報
2の出力動作を開始し処理終了する。この出力動作の完
了のPOSTスーパバイザコールによりタスク2の待ち
が解除されると一連の処理が終了する。
FIG. 5 shows the operation of the task of the example in which the present invention is implemented. When the preceding task 1 is outputting the journal information 1, the succeeding task 2 requests the preceding task 1 to start outputting the journal information 2 to the preceding task 1, and waits for the completion with a WAIT supervisor call. It becomes a state. When the output operation of the journal information 1 is completed, the preceding task 1 starts the output operation of the journal information 2 instead of the task 2 and ends the processing. When the waiting of the task 2 is released by the POST supervisor call for the completion of the output operation, the series of processing ends.

【0011】こうして図4に示す従来技術と図5に示す
本発明を比較すると、タスク間の連絡のためのWAIT
およびPOSTスーパバイザコールが省略されており、
このことにより、性能が向上する。
Thus, comparing the prior art shown in FIG. 4 with the present invention shown in FIG. 5, a WAIT for communication between tasks
And POST supervisor call are omitted,
This improves performance.

【0012】[0012]

【発明の効果】本発明の方式は、タスク間の連絡処理に
関するスーパバイザコールの回数を削減する。例えばト
ラフィックの高いオンラインシステムや多重度の高いデ
ータベースシステムのジャーナル取得処理に適用すると
トランザクション1件当たりのダイナミックステップ数
を減らすことができ、単位時間当たりの処理能力を上げ
る効果がある。
According to the method of the present invention, the number of supervisor calls relating to communication processing between tasks is reduced. For example, when applied to a journal acquisition process of an online system with high traffic or a database system with high multiplicity, the number of dynamic steps per transaction can be reduced, and the processing capacity per unit time can be increased.

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

【図1】本発明の実施例の概略を示す流れ図である。FIG. 1 is a flow chart showing an outline of an embodiment of the present invention.

【図2】本発明の実施例のシステムの構成を示す図であ
る。
FIG. 2 is a diagram showing a configuration of a system according to an embodiment of the present invention.

【図3】本発明の実施例のジャーナルファイルのデータ
構成を示す図である。
FIG. 3 is a diagram showing a data structure of a journal file according to the embodiment of this invention.

【図4】本発明の実施例を説明するための、従来技術に
よるタスクの動作を示す図である。
FIG. 4 is a diagram showing an operation of a task according to a conventional technique for explaining an embodiment of the present invention.

【図5】本発明の実施例の効果を説明するための、本方
式によるタスクの動作を示す図である。
FIG. 5 is a diagram showing an operation of a task according to this method for explaining the effect of the embodiment of the present invention.

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

1…端末、 2…伝送網、 3…処理装置、 4…ジャーナルファイル。 1 ... Terminal, 2 ... Transmission network, 3 ... Processing device, 4 ... Journal file.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 宮崎 朝生 神奈川県横浜市中区尾上町6丁目81番地日 立ソフトウエアエンジニアリング株式会社 内 (72)発明者 後藤 典弘 神奈川県横浜市中区尾上町6丁目81番地日 立ソフトウエアエンジニアリング株式会社 内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Asahi Miyazaki 6-81, Onoe-cho, Naka-ku, Yokohama-shi, Kanagawa, Hitachi Software Engineering Co., Ltd. (72) Norihiro Goto Inoue-cho, Naka-ku, Yokohama, Kanagawa 81-chome Nititsu Software Engineering Co., Ltd.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】ジャーナル情報を取得するオンラインシス
テムにおいて、入出力動作の完了待ちとタスク間の連絡
に共通の、タスクを待たせる手段と待ちを解除する手段
を有し、複数のジャーナル取得要求が集中した場合に先
行タスクの入出力動作の完了を後続タスクが待つことに
よりジャーナル取得を直列化する方法であって、先行す
るタスクのジャーナル出力動作完了後に、後続タスクへ
の連絡をすることなく後続タスクのジャーナル出力動作
を始動し、出力動作の完了により後続タスクの待ちを解
除することを特徴とするオンラインジャーナル取得方
式。
1. An online system for acquiring journal information, comprising a means for holding a task and a means for releasing the wait, which are common for waiting for completion of input / output operations and communication between tasks, and a plurality of journal acquisition requests are provided. This is a method of serializing journal acquisition by waiting for the completion of the input / output operation of the preceding task by the succeeding task when it is concentrated. After the completion of the journal output operation of the preceding task, the succeeding task continues without contacting the subsequent task. An online journal acquisition method that starts the journal output operation of a task and releases the waiting of the succeeding task when the output operation is completed.
【請求項2】ジャーナル情報を取得するオンラインシス
テムにおいて、入出力動作の完了を待つためタスクを待
ち状態にする場合と、他タスクからの連絡を待つためタ
スクを待ち状態にする場合に共通な、待ち手段WAIT
スーパバイザコールと、待ちを解除する手段POSTス
ーパバイザコールを有し、複数のジャーナル取得要求が
集中した場合に先行タスクの入出力動作の完了を後続タ
スクが待ち手段WAITスーパバイザコールにて待つこ
とによりジャーナル取得を直列化する方法であって、先
行タスクのジャーナル出力動作完了後に、後続タスクへ
の連絡をすることなく後続タスクのジャーナル出力動作
を始動し、出力動作の完了POSTスーパバイザコール
にて後続タスクの待ちを解除することを特徴とするオン
ラインジャーナル取得方式。
2. An online system for acquiring journal information, which is common when a task is placed in a waiting state to wait for the completion of an input / output operation and when a task is placed in a waiting state to wait for contact from another task. Waiting means WAIT
It has a supervisor call and a POST supervisor call means to release the wait. When multiple journal acquisition requests are concentrated, the succeeding task waits for the completion of the input / output operation of the preceding task with the waiting means WAIT supervisor call to acquire the journal. Is a method of serializing, and after the journal output operation of the preceding task is completed, the journal output operation of the subsequent task is started without contacting the subsequent task, and the output operation is completed. Wait for the subsequent task with the POST supervisor call. An online journal acquisition method that is characterized by canceling.
JP3303071A 1991-11-19 1991-11-19 On-line journal acquiring system Pending JPH05143423A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3303071A JPH05143423A (en) 1991-11-19 1991-11-19 On-line journal acquiring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3303071A JPH05143423A (en) 1991-11-19 1991-11-19 On-line journal acquiring system

Publications (1)

Publication Number Publication Date
JPH05143423A true JPH05143423A (en) 1993-06-11

Family

ID=17916548

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3303071A Pending JPH05143423A (en) 1991-11-19 1991-11-19 On-line journal acquiring system

Country Status (1)

Country Link
JP (1) JPH05143423A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996027157A1 (en) * 1995-02-28 1996-09-06 Ntt Data Communications Systems Corporation Cooperative distributed system, and journal and recovery processings therein

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996027157A1 (en) * 1995-02-28 1996-09-06 Ntt Data Communications Systems Corporation Cooperative distributed system, and journal and recovery processings therein
US6052695A (en) * 1995-02-28 2000-04-18 Ntt Data Communications Systems Corporation Accurate completion of transaction in cooperative type distributed system and recovery procedure for same

Similar Documents

Publication Publication Date Title
JPH0552973B2 (en)
JPS61233849A (en) Method for controlling exclusively data base
CN112188015A (en) Method and device for processing customer service session request and electronic equipment
JPH05143423A (en) On-line journal acquiring system
JP2915074B2 (en) Event dequeueing method in multitask processing system
JPH0934730A (en) Distributed processing method and distributed processor for the same
JP2526399B2 (en) Load balancing method for parallel computers
JPS63223860A (en) Multi-processor constituting device
CN113518384B (en) Distributed transaction processing method, device, equipment and computer readable storage medium
JP2867381B2 (en) Transaction processing load balancing method
JP2985299B2 (en) Exclusive control unit
JPH10247158A (en) On-line exclusive wait evading method
JPH02165368A (en) Lock waiting task canceling system between plural host computers
KR950014165B1 (en) Boundary area supporting method in unix operating system
JP2001344119A (en) Transaction execution control system and transaction execution control method
JPH0667957A (en) Processor for transaction
JPH05204671A (en) Method and device for smoothly controlling load
CN117827472A (en) Transaction locking processing method and device
JP2752894B2 (en) File transfer device
JP2000003287A (en) Exclusive controller for shared resource, method therefor and recording medium for recording exclusive control program
JPH04336356A (en) Server-side resource pool control system in server-client model
JPH03131935A (en) Timer managing system
JP2961542B2 (en) Data processing system
JPS63124138A (en) Occupation conflict control method for shared resources
JPH064323A (en) Multiprocessor system