JPH09305416A - Queue management system for inter-process communication - Google Patents

Queue management system for inter-process communication

Info

Publication number
JPH09305416A
JPH09305416A JP8122097A JP12209796A JPH09305416A JP H09305416 A JPH09305416 A JP H09305416A JP 8122097 A JP8122097 A JP 8122097A JP 12209796 A JP12209796 A JP 12209796A JP H09305416 A JPH09305416 A JP H09305416A
Authority
JP
Japan
Prior art keywords
queue
processes
abnormality
message
integrated value
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
JP8122097A
Other languages
Japanese (ja)
Inventor
Masatoshi Kariya
正年 苅谷
Sumio Noda
純生 野田
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing Co 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP8122097A priority Critical patent/JPH09305416A/en
Publication of JPH09305416A publication Critical patent/JPH09305416A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Computer And Data Communications (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a queue management system which can detect abnormality of transfer of queue information between processes in its early stage. SOLUTION: A queue management library 5 registers queue resource integral values (x) by receiving processes 3 and 4 and queue resource integral values (y) of all processes 1-4 in a queue database 6, outputs a message of process abnormality when an integral value (x) exceeds an abnormality prediction queue resource number α, and forcibly ends and restarts the process when the integral value (x) exceeds an abnormality limit queue resource number β and outputs a message of queue information on the process. When an integral value (y) exceeds an abnormality prediction queue resource number γof all the processes, system abnormality is alarmed with a message and queue transmission to a dummy process is performed; and queue information is recorded and a failure in transmission is sent back to transmitting processes 1 and 2.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、監視制御システム
等におけるプロセス間通信のキュー管理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a queue management system for interprocess communication in a supervisory control system or the like.

【0002】[0002]

【従来の技術】プロセス間通信には、一般にキュー(待
ち行列)を用い、キュー情報として送信側プロセス番号
と受信側プロセスの処理番号と送信データ等を所定のフ
ォーマットにセットしてプロセス間で授受を行う。
2. Description of the Related Art Generally, a queue is used for inter-process communication, and a process number of a transmitting side, a process number of a receiving side process, transmission data, etc. are set in a predetermined format as queue information, and a process is exchanged between processes. I do.

【0003】このとき、キュー管理情報も同時にセット
し、プロセス間のキューを制御するキュー管理ライブラ
リがこれを参照し、プロセスの同期を取ることでシステ
ムの運用を円滑に行うようにしている。
At this time, the queue management information is also set at the same time, and the queue management library for controlling the queue between the processes refers to this to synchronize the processes to smoothly operate the system.

【0004】[0004]

【発明が解決しようとする課題】プロセス間通信に用い
られるキューの授受は、システムのリソースを消費する
ことになるため、その個数には限界があり、通常ではシ
ステム毎に使用できるキューの個数を設定している。
Since the transfer of queues used for interprocess communication consumes system resources, the number of queues is limited. Normally, the number of queues that can be used for each system is limited. It is set.

【0005】また、キューは、それに含まれるキュー管
理情報によってキュー管理ライブラリ内部での処理の優
先順位を制御している。
Further, the queue controls the priority of processing in the queue management library by the queue management information included in the queue.

【0006】しかし、何らかの問題があってキューを受
信できないプロセスへのキュー送信が続いた場合、プロ
セス間通信に用いられるリソースが使い切られると、キ
ュー送信もできなくなり、システム全体の運用が止めら
れることになる。
However, if queue transmission to a process that cannot receive a queue continues due to some problem, when resources used for interprocess communication are used up, queue transmission cannot be performed and operation of the entire system is stopped. become.

【0007】また、リソースがなくならないにしても、
優先されたキューが送信側プロセスの問題で処理されな
いと、応答を待つプロセスも処理の待ち状態になるた
め、システムとして機能できなくなる。
Further, even if resources are not exhausted,
If the priority queue is not processed due to a problem in the sending process, the process waiting for a response will also be in a waiting state for processing and will not be able to function as a system.

【0008】本発明の目的は、プロセス間のキュー情報
の授受の異常を早期に検出できるキュー管理方式を提供
することにある。
An object of the present invention is to provide a queue management system capable of early detecting an abnormality in the transfer of queue information between processes.

【0009】本発明の他の目的は、プロセス間のキュー
情報の授受の異常検出によりプロセスの正常/異常状態
検出及びシステムダウンを回避できるキュー管理方式を
提供することにある。
Another object of the present invention is to provide a queue management method capable of detecting a normal / abnormal state of a process and avoiding a system down by detecting an abnormal transmission / reception of queue information between processes.

【0010】[0010]

【課題を解決するための手段】本発明は、プロセス間通
信をキュー管理ライブラリで管理するにおいて、前記キ
ュー管理ライブラリは、受信プロセス毎のキューリソー
ス積算値xと全プロセスでのキューリソース積算値yを
キューデータベースに登録し、前記積算値xが受信プロ
セス毎の異常限界キューリソース数βより小さくかつ異
常予測キューリソース数αを越えたときにプロセス異常
をメッセージで出力し、前記積算値xが前記キューリソ
ース数βを越えたときに当該プロセスを強制終了して再
起動し、当該プロセスのキュー情報を記録してメッセー
ジ出力し、前記積算値yが全プロセスでの異常予測キュ
ーリソース数γを越えたときにシステム異常をメッセー
ジで警告し、ダミープロセスにキューを送信してその処
理をさせ、キュー情報を記録し、送信プロセスが応答待
ちのときに当該送信プロセスに送信失敗を返すことを特
徴とする。
According to the present invention, in managing inter-process communication with a queue management library, the queue management library has a queue resource integrated value x for each receiving process and a queue resource integrated value y for all processes. Is registered in the queue database, and when the integrated value x is smaller than the abnormal limit queue resource number β for each receiving process and exceeds the abnormally predicted queue resource number α, a process error is output as a message, and the integrated value x is When the number of queue resources β is exceeded, the process is forcibly terminated and restarted, the queue information of the process is recorded and a message is output, and the integrated value y exceeds the error prediction queue resource number γ of all processes. Alerts you to a system error with a message, sends a queue to a dummy process for processing, and Record the transmission process is characterized in that the return transmission failure in the transmission process when the response waiting.

【0011】[0011]

【発明の実施の形態】図1は、本発明の実施形態を示す
キュー管理方式の構成である。システムに持つプロセス
1〜4のうち、プロセス1、2をキュー情報の送信側プ
ロセス、プロセス3、4をキュー情報の受信側プロセス
とする。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows the configuration of a queue management system showing an embodiment of the present invention. Of the processes 1 to 4 in the system, processes 1 and 2 are queue information transmission side processes, and processes 3 and 4 are queue information reception side processes.

【0012】キュー管理ライブラリ5は、送信側プロセ
スから受信側プロセスへのキュー情報の通信にリソース
等を管理し、この管理情報をキューデータベース6に登
録する。
The queue management library 5 manages resources and the like in the communication of queue information from the process on the transmission side to the process on the reception side, and registers this management information in the queue database 6.

【0013】このキュー管理情報は、下記の表に示す値
を持つデータ構造にされる。
The queue management information has a data structure having values shown in the table below.

【0014】[0014]

【表1】 [Table 1]

【0015】この表中で、αとβ及びγは、プロセスの
重要度、キュー発生の頻度等から決定する設定値であ
る。
In this table, α, β, and γ are set values determined from the importance of the process, the frequency of queue occurrence, and the like.

【0016】上記の構成において、キュー管理ライブラ
リ5は、プロセス間の通信管理にキューのリソース情報
を定量的に解析することで、システムの異常を予測し、
さらには異常予測からシステムダウンを回避する。以
下、異常予測とシステムダウン回避のための処理を説明
する。
In the above configuration, the queue management library 5 predicts a system abnormality by quantitatively analyzing queue resource information for communication management between processes,
Furthermore, the system down is avoided from the abnormality prediction. The processing for abnormality prediction and system down avoidance will be described below.

【0017】(1)キュー管理ライブラリ5は、図2に
示すように、キューリソース積算値xが異常限界キュー
リソース数βより小さく(S1)、かつ異常予測キュー
リソース数α以上のとき(S2)、プロセス異常をメッ
セージ等で警告を発生する(S3)。
(1) As shown in FIG. 2, the queue management library 5 determines that the queue resource integrated value x is smaller than the abnormal limit queue resource number β (S1) and is equal to or larger than the abnormality prediction queue resource number α (S2). , A warning is issued by a message or the like regarding the process abnormality (S3).

【0018】したがって、ある受信プロセスのキューリ
ソース積算値xが異常限界キューリソース数βに近づい
たとき、つまり特定プロセスへのキューが異常にたまっ
たり、通常の処理に要する時間より長い時間キューリソ
ースを解放しないとき、キュー情報の授受の異常をメッ
セージで警告することができる。
Therefore, when the integrated value x of queue resources of a certain receiving process approaches the abnormal limit queue resource number β, that is, the queue for a specific process is abnormally accumulated, or a queue resource longer than the time required for normal processing is used. If it is not released, a message can be issued to warn of an abnormal transfer of queue information.

【0019】(2)キュー管理ライブラリ5は、図2に
示すように、キューリソース積算値xが異常限界キュー
リソース数β以上になるとき(S1)、プロセスの強制
終了及び再起動を行う(S4、S6)。このとき、該等
プロセスのキュー情報を記録し、メッセージを出力する
(S5)。
(2) As shown in FIG. 2, when the queue resource integrated value x becomes equal to or larger than the abnormal limit queue resource number β (S1), the queue management library 5 forcibly terminates and restarts the process (S4). , S6). At this time, queue information of the equal process is recorded and a message is output (S5).

【0020】したがって、ある受信プロセスのキューリ
ソース積算値xが異常限界キューリソース数βを越えた
ときには当該プロセスの強制終了によりキューリソース
の解放を得ることができる。
Therefore, when the queue resource integrated value x of a receiving process exceeds the abnormal limit queue resource number β, the queue resource can be released by forcibly ending the process.

【0021】また、プロセスの再起動によりシステムを
正常な状態に戻し、システムダウンを回避できる場合が
ある。このとき、キュー情報記録により当該プロセスの
再起動前のキュー送信状態に戻すことができ、キューデ
ータベースの保存情報から異常原因の分析を行うことが
できる。
In some cases, restarting the process may restore the system to a normal state and prevent the system from going down. At this time, the queue information can be returned to the queue transmission state before the process is restarted, and the cause of the abnormality can be analyzed from the stored information in the queue database.

【0022】また、前記の処理(1)との並行処理によ
り、キューリソース積算値xについて、数αとβによる
段階的条件を持たせた処理ができ、段階的処理により異
常予測が可能となり、場合によってはシステムダウンに
至る前にハードウェアの異常を見つけることができる。
Further, by parallel processing with the above processing (1), the queue resource integrated value x can be processed with a stepwise condition by the numbers α and β, and the stepwise processing enables abnormality prediction, In some cases, a hardware abnormality can be detected before the system goes down.

【0023】(3)キュー管理ライブラリ5は、図3に
示すように、全プロセスでのキューリソース積算値yが
全プロセスでの異常予測キューリソース数γ以上のとき
(S11)、システム異常をメッセージで警告し(S1
2)、優先順位の低いキューをダミープロセスに送信し
て処理させてキューリソースを解放し(S13)、キュ
ー情報を記録する(S14)。
(3) As shown in FIG. 3, when the queue resource integrated value y in all processes is greater than or equal to the abnormality prediction queue resource number γ in all processes (S11), the queue management library 5 sends a message indicating a system abnormality. With a warning (S1
2) Then, the low priority queue is transmitted to the dummy process to be processed, the queue resource is released (S13), and the queue information is recorded (S14).

【0024】この後、送信側プロセスが応答待ちか否か
をチェックし(S15)、応答待ちであればキュー送信
失敗を返してキューリソースを解放させる(S16)。
Thereafter, it is checked whether or not the sending process is waiting for a response (S15), and if it is waiting for a response, a queue transmission failure is returned and the queue resource is released (S16).

【0025】したがって、システムの全プロセスに対す
るキューリソース積算値yについても上記の(1)及び
(2)と同様に、異常予測キューリソース数γを越えた
場合にキュー情報の授受の異常をメッセージ出力するこ
とでプロセスの異常を警告できる。
Therefore, as for the queue resource integrated value y for all processes of the system, similarly to the above (1) and (2), when the abnormality prediction queue resource number γ is exceeded, a message indicating that the queue information is exchanged is output. By doing so, a process abnormality can be warned.

【0026】また、ダミープロセスへの送信によりキュ
ーリソースの解放を得ることができる。さらに、送信プ
ロセスへの送信失敗を返すことでキューリソースの解放
を得、システムダウンを回避できる。
Also, the queue resource can be released by transmitting to the dummy process. Furthermore, by returning the transmission failure to the transmission process, the queue resource is released and the system down can be avoided.

【0027】[0027]

【発明の効果】以上のとおり、本発明によれば、受信プ
ロセス毎のキューリソース積算値xと全プロセスでのキ
ューリソース積算値yについてキュー管理ライブラリが
管理しながらプロセス間通信を行い、受信プロセス毎及
び全プロセスでのキューリソース数の異常を検出してメ
ッセージ出力やプロセスの強制終了さらにはダミープロ
セスへの送信を行うようにしたため、キューリソースの
解放によるキューリソースの確保とプロセス異常に対す
る早期の検出及びシステムダウンを回避した通信ができ
る。
As described above, according to the present invention, interprocess communication is performed while the queue management library manages the queue resource integrated value x for each receiving process and the queue resource integrated value y for all processes, and the receiving process is performed. Since an error in the number of queue resources in each process and all processes is detected and a message is output, the process is terminated forcibly, and the process is sent to a dummy process, the queue resource is secured by releasing the queue resource and the process error Communication that avoids detection and system down is possible.

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

【図1】本発明の実施形態を示すキュー管理方式の構成
図。
FIG. 1 is a configuration diagram of a queue management system showing an embodiment of the present invention.

【図2】実施形態におけるキュー管理フロー(その
1)。
FIG. 2 is a queue management flow (1) according to the embodiment.

【図3】実施形態におけるキュー管理フロー(その
2)。
FIG. 3 is a queue management flow (2) according to the embodiment.

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

1、2…送信プロセス 3、4…受信プロセス 5…キュー管理ライブラリ 6…キューデータベース 1, 2 ... Transmission process 3, 4 ... Reception process 5 ... Queue management library 6 ... Queue database

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 プロセス間通信をキュー管理ライブラリ
で管理するにおいて、 前記キュー管理ライブラリは、受信プロセス毎のキュー
リソース積算値xと全プロセスでのキューリソース積算
値yをキューデータベースに登録し、 前記積算値xが受信プロセス毎の異常限界キューリソー
ス数βより小さくかつ異常予測キューリソース数αを越
えたときにプロセス異常をメッセージで出力し、 前記積算値xが前記キューリソース数βを越えたときに
当該プロセスを強制終了して再起動し、当該プロセスの
キュー情報を記録してメッセージ出力し、 前記積算値yが全プロセスでの異常予測キューリソース
数γを越えたときにシステム異常をメッセージで警告
し、ダミープロセスにキューを送信してその処理をさ
せ、キュー情報を記録し、送信プロセスが応答待ちのと
きに当該送信プロセスに送信失敗を返すことを特徴とす
るプロセス間通信のキュー管理方式。
1. When managing inter-process communication with a queue management library, the queue management library registers a queue resource integrated value x for each receiving process and a queue resource integrated value y for all processes in a queue database, When the integrated value x is smaller than the abnormal limit queue resource number β for each receiving process and exceeds the abnormal predictive queue resource number α, a process error is output as a message, and the integrated value x exceeds the queue resource number β. Then, the process is forcibly terminated and restarted, the queue information of the process is recorded, and a message is output. When the integrated value y exceeds the error prediction queue resource number γ for all processes, a system error is displayed as a message. Warn, send a queue to the dummy process to process it, record queue information, send process A queue management method for inter-process communication characterized by returning a transmission failure to the transmission process while waiting for a response.
JP8122097A 1996-05-17 1996-05-17 Queue management system for inter-process communication Pending JPH09305416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8122097A JPH09305416A (en) 1996-05-17 1996-05-17 Queue management system for inter-process communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8122097A JPH09305416A (en) 1996-05-17 1996-05-17 Queue management system for inter-process communication

Publications (1)

Publication Number Publication Date
JPH09305416A true JPH09305416A (en) 1997-11-28

Family

ID=14827580

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8122097A Pending JPH09305416A (en) 1996-05-17 1996-05-17 Queue management system for inter-process communication

Country Status (1)

Country Link
JP (1) JPH09305416A (en)

Similar Documents

Publication Publication Date Title
US7752370B2 (en) Splitting one hardware interrupt to multiple handlers
US7676610B2 (en) Device and method for optimization of target host device process handling according to the status and the priority of the target host device process
US5835765A (en) Computer operation management system for a computer operating system capable of simultaneously executing plural application programs
JPH1031630A (en) Operation method and system for missing interruption handler
US5946498A (en) Delivery of client remote procedure calls to a server via a request queue utilizing priority and time-out
CN109710394A (en) Timing task processing system and method
US7925922B2 (en) Failover method and system for a computer system having clustering configuration
US20130151743A1 (en) Network adaptor optimization and interrupt reduction
US20180278497A1 (en) Systems for monitoring application servers
US11736506B2 (en) Monitoring apparatus
CN112200505A (en) Cross-business system process monitoring device and method, corresponding equipment and storage medium
US20080098404A1 (en) Information processing apparatus, control method for information processing apparatus and program
JPH09305416A (en) Queue management system for inter-process communication
CN115499493A (en) Asynchronous transaction processing method and device, storage medium and computer equipment
JP2002366393A (en) Method for collecting computer operation information, implementing system therefor, and its processing program
JP5262418B2 (en) Task scheduling apparatus and task scheduling method
US12008396B2 (en) Application state control method apparatus, and terminal and computer-readable storage medium
JPH06103218A (en) Data communication interface and operating method thereof and data processing program product
JP2001331330A (en) Process abnormality detection and restoration system
JP2677175B2 (en) External event detection method for computer system
JP2004164253A (en) Queue controller and registration suppression method used therefor
JPH01258135A (en) Transaction execution control system
JP2005293325A (en) System for monitoring performance of immediate replication for database
CN114691334A (en) Task processing method and device
JPH0756773A (en) Method for diagnosing control device