JPS6228847A - Monitoring system for state of process - Google Patents

Monitoring system for state of process

Info

Publication number
JPS6228847A
JPS6228847A JP60169414A JP16941485A JPS6228847A JP S6228847 A JPS6228847 A JP S6228847A JP 60169414 A JP60169414 A JP 60169414A JP 16941485 A JP16941485 A JP 16941485A JP S6228847 A JPS6228847 A JP S6228847A
Authority
JP
Japan
Prior art keywords
state
waiting
information
process information
processes
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
JP60169414A
Other languages
Japanese (ja)
Inventor
Hisami Ishii
石井 久美
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 JP60169414A priority Critical patent/JPS6228847A/en
Publication of JPS6228847A publication Critical patent/JPS6228847A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To decide rapidly and precisely by outputting corresponding process information or a waiting event in accordance with anyone of the state, i.e. an executing state, a waiting state or an operation-enabled state, from a process relating to a monitor request. CONSTITUTION:When a process state display request command is inputted from a console 31, the inputted command is analyzed and the analyzed result is transferred to a process information acquiring means 22. When the process is in the executing state, the process information is acquired from a process control table 13 and displayed on a CRT 32. When the process is in the waiting state, the process information is transferred to a waiting process information acquiring means 23 and the waiting information is acquired from a process synchronization control means 14 and displayed on the CRT 32. When the specified process is in the operation-enabled state, the means 22 acquires the process information from the table 13 and transfers the process information to a process state means 24. If a specified program is not registered in the table 13, a message informing its unregistration is transferred to a display means.

Description

【発明の詳細な説明】 発明の目的 産業上の利用分野 本発明は、電子計算機システムの稼働中に、外部からの
要求に応じて任意のプロセスの処理状態をモニタするプ
ロセス状態のモニタシステムに関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a process status monitoring system that monitors the processing status of any process in response to an external request while a computer system is in operation. It is.

従来の技術 電子計算機システムでは、走行中のプロセスの処理状態
を直接モニタすることは従来行われておらず、システム
の正常な運転を妨げるような異常が発生した時点で運転
を強制的に中断させてその時点のプロセスの処理状態を
表示するメモリの内容を読出して分析したり、プロセス
の走行履歴を採取しておき事後にこれを分析したりする
ことにより、異常動作を引き起こし7た原因を究明する
という方法がとられている。
Conventional computer systems have not been able to directly monitor the processing status of running processes, and have been forced to forcibly interrupt operation when an abnormality that prevents the system from operating normally occurs. Investigate the cause of abnormal behavior by reading and analyzing the contents of the memory that displays the processing status of the process at that point in time, or by collecting the running history of the process and analyzing it after the fact. The method is to do so.

発明が解決しようとする問題点 上記異常発生時のメモリダンプによるプロセス処理状態
の情報採取の方式では、情報を採取するためにシステム
の運転を中断させなくてはならず、またこれによって採
取できる情報は一時点での状態を示す静的なものに過ぎ
ないため、異常原因の究明が難しいという問題がある。
Problems to be Solved by the Invention In the above method of collecting information on process processing status by memory dump when an abnormality occurs, system operation must be interrupted in order to collect the information, and the information that can be collected by this method is The problem is that it is difficult to investigate the cause of an abnormality because it is only a static value that indicates the state at one point in time.

また、走行履歴を分析する方法では、走行履歴を採取す
るのに大容量の記憶装置が必要になるだけでなく、多量
の走行履歴を分析するために多大な手間がかかるという
問題がある。
In addition, the method of analyzing driving history not only requires a large-capacity storage device to collect the driving history, but also has the problem that it takes a lot of effort to analyze a large amount of driving history.

特に、並列処理されるプロセス群のうちのあるものが長
時間動作しないような状態が生じても、外部からそれを
知ることができず、例え知り得たとしても、それが正常
な状態なのか異常な状態なのかを判定することができな
い。
In particular, even if a state occurs in which some of the processes that are processed in parallel do not operate for a long time, it is not possible to know this from the outside, and even if it could be known, is it a normal state? It is not possible to determine whether the condition is abnormal or not.

オンライン・データベース・システムなど大規模な電子
計算機システムでは、多数のプロセスが並行処理される
ため、プロセス間の同期操作の誤りによって発生し得な
いイベントを待ち続けるような事態も生じる。
In large-scale computer systems such as online database systems, a large number of processes are processed in parallel, so errors in synchronization between processes may result in a situation where the user continues to wait for an event that cannot occur.

発明の構成 問題点を解決するための手段 上記従来技術の問題点を解決する本発明のプロセス状態
のモニタシステムは、電子計算機システムの運転中に外
部から発せらるプロセス処理状態のモニタ要求を受け付
ける手段と、モニタ要求に係わるプロセスが実行状態、
待機状態又は動作可能状態のいずれであるかに応じて、
対応のプロセス情報や、待っているイベントを外部に出
力することにより、システムの運転を停止させることな
く、任意のプロセスの処理状態を任意の時点でモニタで
きるように構成されている。
Structure of the Invention Means for Solving the Problems The process state monitoring system of the present invention which solves the problems of the prior art described above accepts a process processing state monitoring request issued from the outside while the computer system is operating. means, the process related to the monitor request is in the running state,
Depending on whether it is in standby or ready state,
By outputting corresponding process information and waiting events to the outside, the processing status of any process can be monitored at any time without stopping system operation.

以下、本発明の作用を実施例と共に詳細に説明する。Hereinafter, the operation of the present invention will be explained in detail together with examples.

実施例 第1図は、本発明の一実施例のプロセス処理状態のモニ
タシステム20の構成を、モニタ対象のプロセス群が並
行処理される電子計算機システム10の関連部分の構成
と共に示す機能ブロック図である。
Embodiment FIG. 1 is a functional block diagram showing the configuration of a process processing status monitoring system 20 according to an embodiment of the present invention, together with the configuration of related parts of a computer system 10 in which a group of processes to be monitored are processed in parallel. be.

電子計算機システム10は、処理部11と主記憶装置1
2を備え、モニタ対象のプロセス群を並行処理する。
The computer system 10 includes a processing section 11 and a main storage device 1.
2, and processes a group of processes to be monitored in parallel.

電子計算機システム10のオペ1.−−ティング・シス
テムは、プログラムの実行に際しこのシステム内にプロ
セスを生成し、プログラムが終了するとそのプロセスを
削除する。生成されたプロセスは、処理部11において
実行される一連の命令群として定義される。電子計算機
システム10内には複数のプロセスが同時に存在するが
、任意の瞬間には一つのプロセスだけが処理部11で実
行される。
Operation of electronic computer system 10 1. --A teaching system creates a process within the system when a program is executed, and deletes that process when the program ends. The generated process is defined as a series of instructions executed by the processing unit 11. Although a plurality of processes exist simultaneously in the computer system 10, only one process is executed by the processing unit 11 at any given moment.

生成されたプロセスは一般に実行中、待機中、動作可の
状態をもつ。実行中は、プロセスが処理部11の制御を
有する状態である。待機中は、入出力の終了等特定のイ
ベントが発生ずるまで実行できない状態である。動作可
の状態は、実行可能ではあるが、優先度の高い他のプロ
セスが実行されているため、処理部11の制御を有さな
い状態である。
A generated process generally has states of running, waiting, and ready for operation. During execution, the process is under the control of the processing unit 11. While on standby, execution is not possible until a specific event occurs, such as completion of input/output. The ready state is a state in which the process is executable but is not controlled by the processing unit 11 because another process with a higher priority is being executed.

プロセス群の並行処理を制御するために、各プロセスに
関する情報が主記憶装置12内のプロセス制御表13内
に登録される。プロセス制御表には、各プロセスに割り
当てられた資源やプロセスの状態などの情報に加えて、
実行中のプロセスについてはプログラム・カウンタの内
容や各種レジスタの内容、待機中と実行可のプロセスに
ついては退避中のプログラム・カウンタの内容などを含
む各種の情報が格納されている。
In order to control the parallel processing of the process group, information regarding each process is registered in the process control table 13 in the main storage device 12. In addition to information such as resources allocated to each process and process status, the process control table contains information such as the resources allocated to each process and the process status.
Various types of information are stored, including the contents of program counters and contents of various registers for processes in execution, and contents of program counters being saved for waiting and executable processes.

主メモリ12内に形成されるプロセス同期制御手段14
は、プロセス相互の同期的実行と通信を制御する。この
プロセス同期制御手段14は、待機中のプロセスとこれ
が待っているイベントを管理する。待機中のプロセスが
待っているイベントは、通常、各プロセスがオペレーテ
ィング・システムになんらかの処理を依頼したときの結
果や、並行処理される他のプロセスからの情報などであ
リ、プロセス同期制御手段によって管理されるイベント
制御ブロック名やセマフォ名で表現される。
Process synchronization control means 14 formed in main memory 12
controls the synchronous execution and communication between processes. This process synchronization control means 14 manages waiting processes and events that they are waiting for. The event that a waiting process is waiting for is usually the result of each process requesting some processing from the operating system, information from other processes being processed in parallel, etc. It is expressed by the managed event control block name or semaphore name.

イベント制御ブロックやセマフォは、並行処理される事
象の完了やある種の効力の発生などに関連づけられる意
味を持つ。
An event control block or semaphore has a meaning associated with the completion of concurrently processed events or the occurrence of some kind of effect.

プロセス同期制御手段14は、プロセス間のイベントの
送受を制御する。 各プロセスは、プロセス同期制御手
段を介して、信号を送る操作と信号を受け取る操作を実
行する。各プロセスは、信号を送る操作により、プロセ
スの処理の結果やデータが用意されていることなどを他
のプロセスに通知する。信号を送ったプロセスは通常は
次の命令へ進む。各プロセスは、指定されたイベントの
制御ブロックやセマフォアを調査し、受け取るべき信号
を検出する。そのような信号が存在するならば、受け取
り側のプロセスは命令を進める。そのような信号がなけ
れば受け取り側のプロセスは待機中の状態となる。
The process synchronization control means 14 controls the transmission and reception of events between processes. Each process performs a signal sending operation and a signal receiving operation via the process synchronization control means. By sending a signal, each process notifies other processes of the processing results of the process, the availability of data, and the like. The process that sends the signal normally moves on to the next instruction. Each process examines the control blocks and semaphores for specified events to detect the signals it should receive. If such a signal exists, the receiving process advances the instruction. In the absence of such a signal, the receiving process remains in a waiting state.

本実施例のプロセス状態モニタシステム20は、コマン
ド解析手段21と、プロセス情報取得手段22と、待機
中プロセス情報取得手段23と、プロセス状態表示手段
24とを備えている。
The process state monitoring system 20 of this embodiment includes a command analysis means 21, a process information acquisition means 22, a waiting process information acquisition means 23, and a process state display means 24.

コマンド解析手段21は、コンソール31から入力され
たプロセスの状態表示要求のコマンドを解析し、どのプ
ロセスの状態を表示するための要求か識別する。プロセ
ス情報取得手段22は、プロセス制御表13に登録され
ているプロセスの情報を取得する。待機中プロセス情報
取得手段23は、待機中のプロセスが待っているイベン
ト等の待機中情報をプロセス同期制御手段14から取得
する。プロセス状態表示手段24は、プロセス情報取得
手段22で取得されたプロセス情報や、待機中プロセス
情報取得手段23で取得された待機中情報をCRT32
やプリンタ33に出力する。
The command analysis unit 21 analyzes a process status display request command input from the console 31, and identifies which process status the request is for displaying. The process information acquisition means 22 acquires information on processes registered in the process control table 13. The waiting process information acquisition means 23 acquires waiting information such as an event that a waiting process is waiting for from the process synchronization control means 14 . The process status display means 24 displays the process information acquired by the process information acquisition means 22 and the waiting information acquired by the waiting process information acquisition means 23 on the CRT 32.
or output to the printer 33.

上記構成のプロセス状態モニタシステム20の動作を、
第2図のフローチャートによって説明する。
The operation of the process state monitoring system 20 having the above configuration is as follows:
This will be explained using the flowchart shown in FIG.

コンソール31からプロセスの状態表示要求のコマンド
が投入されると、コマンド解析手段21は、ステップ4
1において、投入されたコマンドの内容を分析し、プロ
セス情報取得手段22に要求に係わるプロセスの識別コ
ードと制御を渡す。
When a command for requesting process status display is input from the console 31, the command analysis means 21 performs step 4.
1, the contents of the input command are analyzed and the identification code and control of the process related to the request are passed to the process information acquisition means 22.

プロセス情報取得手段22は、ステップ42と43にお
いて、指定されたプロセスの情報がプロセス制御表13
内に登録さているか否かを判定する。プロセス情報取得
手段22は、ステップ43において、指定されたプロセ
スの情報が登録されていることを確認すると、次のステ
ップ44に進み、そのプロセスが実行中であるか否かを
判定する。
In steps 42 and 43, the process information acquisition means 22 acquires information about the specified process from the process control table 13.
Determine whether it is registered in the file. When the process information acquisition means 22 confirms in step 43 that the information on the designated process is registered, it proceeds to the next step 44 and determines whether or not the process is being executed.

そのプロセスが実行中であれば、プロセス情報取得手段
22は、そのプロセスの実行中命令のアドレスとプロセ
スの状態を含むプロセス情報をプロセス制御表13から
取得し、取得したプロセス情報と制御をプロセス状態表
示手段24に渡す。
If the process is being executed, the process information acquisition means 22 acquires the process information including the address of the executing instruction of the process and the process state from the process control table 13, and transfers the acquired process information and control to the process state. It is passed to the display means 24.

プロセス状態表示手段24は、ステップ46において、
取得されたプロセス情報をCRT32に表示する。
In step 46, the process status display means 24:
The acquired process information is displayed on the CRT 32.

プロセス情報取得手段22は、指定されたプロセスが待
機中であれば、待機中プロセス情報取得手段23にその
プロセスの識別コードと制御を渡す。待機中プロセス情
報取得手段23は、ステップ48においてプロセス同期
制御手段14の管理するイベント等の待機中情報を取得
し、この待機中情報と制御をプロセス情報取得手段22
に返す。
If the specified process is on standby, the process information acquisition means 22 passes the identification code and control of the process to the waiting process information acquisition means 23. The waiting process information acquisition means 23 acquires waiting information such as events managed by the process synchronization control means 14 in step 48, and transfers this waiting information and control to the process information acquisition means 22.
Return to.

プロセス情報取得手段22は、ステップ49において、
プロセス制御表13から退避中のプログラム・カウンタ
の内容を含むプロセス情報を取得し、待機中プロセス情
報と共に、プロセス状態表示手段24に渡す。
In step 49, the process information acquisition means 22
Process information including the contents of the program counter being saved is acquired from the process control table 13 and is passed to the process status display means 24 together with the waiting process information.

プロセス情報取得手段22は、指定されたプロセスが実
行中でも待機中でもない場合、すなわち動作可の状態に
ある場合には、ステップ49において、退避中のプログ
ラム・カウンタの内容を含むプロセス情報をプロセス制
御表13から取得して、こ、れをプロセス状態表示手段
24に渡す。
If the specified process is neither in execution nor on standby, that is, in an operable state, the process information acquisition means 22 stores the process information including the contents of the program counter being saved in the process control table in step 49. 13 and passes this to the process status display means 24.

プロセス情報取得手段22は、ステップ43において、
モニタ対象のプログラムが未起動であったり、コマンド
の誤入力などにより指定のプロセスがプロセス制御表1
3に登録されていないと判定した場合には、未登録を通
知するメツセージをプロセス状態表示手段24に渡す。
In step 43, the process information acquisition means 22
If the program to be monitored is not started or if a command is input incorrectly, the specified process may be disabled in Process Control Table 1.
If it is determined that the process status display unit 24 is not registered, a message notifying that the process status display unit 24 is not registered is passed to the process status display unit 24.

プロセス状態表示手段24は、ステップ50において、
未登録のメツセージをCRT32に表示する。
In step 50, the process status display means 24:
Display unregistered messages on CRT32.

発明の効果 以上詳細に説明したように、本発明に係わるプロセス状
態のモニタシステムは、電子計算機システムの運転中に
外部から発せらるプロセス処理状態のモニタ要求を受け
付ける手段と、モニタ要求に係わるプロセスが実行状態
、待機状態又は動作可状態のいずれであるかに応じて、
対応のプロセス情報や待っているイベントなどを外部に
出力する手段を備えているので、システムの運転を停止
させることなく任意のプロセスの処理状態を任意の時点
でモニタできるという効果が奏される。
Effects of the Invention As explained in detail above, the process status monitoring system according to the present invention includes a means for accepting a process status monitoring request issued from the outside during operation of a computer system, and a process status monitoring system related to the monitoring request. depending on whether it is in a running state, a standby state, or a ready state,
Since it is equipped with a means for outputting corresponding process information, waiting events, etc. to the outside, the processing state of any process can be monitored at any time without stopping the operation of the system.

特に、プロセスが待機中の場合には、待機しているプロ
グラム上の位置を退避されているプログラム・カウンタ
の内容で表示すると共に、待機中イベントをも表示する
ことによって、待機中プロセスが正常に待機しているの
か、誤って待機状態となっているのかを迅速・確実に判
定することができる。
In particular, when a process is on standby, the position in the waiting program is displayed using the contents of the saved program counter, and the waiting event is also displayed, so that the waiting process can be correctly executed. It is possible to quickly and reliably determine whether the device is on standby or whether the device is in a standby state by mistake.

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

第1図は本発明の一実施例に係わるプロセス状態のモニ
タシステムの構成を電子計算機システムの関連部分と共
に示す機能ブロック図、第2図は第1図のプロセス状態
モニタシステム20の動作の一例を説明するためのフロ
ーチャートである。 10・・電子計算機システム、11・・処理部。 12・・主記憶、13・・プロセス制御表、14・・プ
ロセス同期制御手段、20・・プロセス状態モニタシス
テム、11・・コマンド解析手段。 22・・プロセス情報取得手段、23・・待機中プロセ
ス情報取得手段、24・・プロセス状態表示手段。
FIG. 1 is a functional block diagram showing the configuration of a process state monitoring system according to an embodiment of the present invention together with related parts of a computer system, and FIG. 2 shows an example of the operation of the process state monitoring system 20 shown in FIG. It is a flow chart for explanation. 10...Electronic computer system, 11...Processing unit. 12... Main memory, 13... Process control table, 14... Process synchronization control means, 20... Process status monitoring system, 11... Command analysis means. 22: Process information acquisition means, 23: Waiting process information acquisition means, 24: Process status display means.

Claims (1)

【特許請求の範囲】 並行処理される複数のプロセスの制御情報を管理するプ
ロセス制御表と、プロセス相互の同期的処理を制御する
プロセス同期制御手段とを備えた電子計算機システムの
プロセス状態をモニタするシステムであって、 この電子計算機システムの運転中に外部から発せらるプ
ロセス処理状態のモニタ要求を受け付ける手段と、 前記プロセス制御表を参照し、モニタ要求に係わるプロ
セスが実行状態であれば実行中の命令のアドレスを含む
対応のプロセス情報を外部に出力し、モニタ要求に係わ
るプロセスが待機状態であれば退避中のプログラム・カ
ウンタの内容を含む対応のプロセス情報と前記プロセス
同期制御手段が管理しているイベントを含む待機中情報
を外部に出力し、かつ、モニタ要求に係わるプロセスが
動作可状態であれば退避中のプログラム・カウンタの内
容を含む対応のプロセス情報を外部に出力する手段とを
備えたことを特徴とするプロセス状態のモニタシステム
[Claims] Monitoring the process status of a computer system that includes a process control table that manages control information for a plurality of processes that are processed in parallel, and process synchronization control means that controls mutual synchronous processing of the processes. A system, comprising means for accepting a process processing state monitor request issued from the outside while the computer system is in operation; The corresponding process information including the address of the instruction is outputted to the outside, and if the process related to the monitor request is in a standby state, the process synchronization control means manages the corresponding process information including the contents of the program counter being saved. means for outputting to the outside waiting information including the event that is being processed, and outputting to the outside corresponding process information including the contents of the program counter being saved if the process related to the monitor request is in an operational state. A process status monitoring system characterized by:
JP60169414A 1985-07-30 1985-07-30 Monitoring system for state of process Pending JPS6228847A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60169414A JPS6228847A (en) 1985-07-30 1985-07-30 Monitoring system for state of process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60169414A JPS6228847A (en) 1985-07-30 1985-07-30 Monitoring system for state of process

Publications (1)

Publication Number Publication Date
JPS6228847A true JPS6228847A (en) 1987-02-06

Family

ID=15886155

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60169414A Pending JPS6228847A (en) 1985-07-30 1985-07-30 Monitoring system for state of process

Country Status (1)

Country Link
JP (1) JPS6228847A (en)

Similar Documents

Publication Publication Date Title
US4589068A (en) Segmented debugger
JPH04245751A (en) Event processing distributing type network monitoring system
EP1640865A2 (en) Process management system
JP2723068B2 (en) Job re-execution method
JPS6228847A (en) Monitoring system for state of process
JPH04195436A (en) Automatic test system for computer system
JPS63163932A (en) System monitoring system for control computer
JPH0962626A (en) On-line testing method of decentralized processing system
EP0385404A2 (en) Clock failure recovery system
JP7034975B2 (en) Monitoring control system and monitoring control device
JPH036748A (en) On-line terminal equipment
JPH0877119A (en) Method for service processing function monitor and device therefor
JP2842748B2 (en) Monitoring and control method for information processing equipment
JPH0334037A (en) Processing system for detection of system abnormality
JP2770832B2 (en) Operation history management device
JPH0329857A (en) Automatic analytical network apparatus
JPH01187644A (en) Maintenance system for information processor
JPH07248810A (en) Numerical controller
JP2936170B2 (en) Failure handling method
JPH07253912A (en) Process monitor device
JPH01256896A (en) Process state display device
JP2902769B2 (en) Robot sequence control method
JPH09297733A (en) System for automatic operation by monitoring console message
JPH04282723A (en) Console operation system for computer system
JPS6359647A (en) Display system for exceptional event information