JPH0198051A - Program control system for expert system - Google Patents

Program control system for expert system

Info

Publication number
JPH0198051A
JPH0198051A JP25526587A JP25526587A JPH0198051A JP H0198051 A JPH0198051 A JP H0198051A JP 25526587 A JP25526587 A JP 25526587A JP 25526587 A JP25526587 A JP 25526587A JP H0198051 A JPH0198051 A JP H0198051A
Authority
JP
Japan
Prior art keywords
main processing
program
main
processing program
terminal
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
JP25526587A
Other languages
Japanese (ja)
Inventor
Mitsuo Yoshikawa
吉川 光雄
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 JP25526587A priority Critical patent/JPH0198051A/en
Publication of JPH0198051A publication Critical patent/JPH0198051A/en
Pending legal-status Critical Current

Links

Landscapes

  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To surely prevent such a case where a system stops suddenly with an error due to the shortage of memory capacity and performing reloading/ restarting actions after the end of a main processing program by carrying out the reloading/restarting actions of a main program when the system inquiring frequency reaches a prescribed level. CONSTITUTION:A main processing part 1 of a computer 3 receives an inquiry from a terminal 6 and carries out a main program to infer various rules and knowledge. The results of these inferences are outputted to the terminal 6 as answers to the inquiries. A processing frequency calculation means 1a of the part 1 calculates and holds the inquiring frequency covering the start time point through the present time point. Then a program end means 1b refers to the calculated value of the means 1a and ends a program when said value reaches a prescribed level. At the same time, the main processing program is reloaded on the part 1 from a storing means 4 for main processing program and restarted after the means 1b ends the main program at a main process starting part 2.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はエキスパートシステムにおけるプログラム制御
方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a program control method in an expert system.

〔従来の技術〕[Conventional technology]

端末から問合わせを受けることにより、主処理プログラ
ムを実行して各種のルール、知識を用いた推論を行ない
、その推論結果を問合わせに対する応答として端末へ出
力するエキスパートシステムにおいては、問合わせ処理
を何回も実行しているうちに、使用不可能なメモリ領域
が各所に点在して必要なサイズのメモリ領域を主記憶装
置上で獲得できなくなり、メモリ容量不足を理由にエラ
ー停止する場合が、通常のシステムより起こり易いこと
が知られている。このようなメモリ容量不足によるエラ
ー停止は、ガーベージコレクション(garbage 
collection)を行なっても全てのガーベージ
を取り去ることが困難なため、避けられないものである
。このため、従来のエキスパートシステムでは、かなり
余裕を持ってメモリ容量を確保することにより、運用中
にメモリ容量不足が生じてシステムが突然にエラー停止
しないようにしていた。
In an expert system that receives an inquiry from a terminal, executes the main processing program, performs inference using various rules and knowledge, and outputs the inference result to the terminal as a response to the inquiry, the inquiry processing is As the program is executed many times, unusable memory areas may become scattered throughout the program, making it impossible to acquire the required size of memory area on the main storage, and the program may stop due to an error due to insufficient memory capacity. , is known to be more likely to occur than in normal systems. Garbage collection (garbage collection) is used to stop errors due to insufficient memory capacity.
This is unavoidable because it is difficult to remove all garbage even if garbage collection is performed. For this reason, in conventional expert systems, memory capacity is secured with a considerable margin to prevent the system from suddenly stopping due to an error due to insufficient memory capacity during operation.

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

しかしながら、メモリ容量を大きくするのにも限度があ
り、また幾ら大きくしても問合わせ処理を実行するごと
に使用不可能のメモリ領域が累積して何れはメモリ容量
不足となるため、従来システムにおいては、メモリ不足
によるシステムの突然のエラー停止を確実に防止するこ
とは困難であった。
However, there is a limit to increasing the memory capacity, and no matter how large the memory capacity is, the unusable memory area accumulates every time an inquiry is executed, and eventually the memory capacity becomes insufficient. However, it is difficult to reliably prevent the system from suddenly stopping due to a memory shortage.

本発明の目的は、メモリ容量不足によってエキスパート
システムが突然にエラー停止することを確実に防止する
方式を提供することにある。
An object of the present invention is to provide a method for reliably preventing an expert system from suddenly stopping due to an error due to insufficient memory capacity.

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

本発明は上記目的を達成するために、 端末から問合わせを受けると、主処理プログラムの実行
により各種のルール、知識を用いた推論を行ない、該推
論結果を前記問合わせに対する応答として前記端末へ出
力するエキスパートシステムにおいて、 問合わせ処理件数を計数する計数手段と、該計数手段で
計数された問合わせ処理件数が予めシステムで定められ
た件数に達した場合、前記主処理プログラムの動作を終
了させるプログラム終了手段と、 前記主処理プログラムの動作終了後、主処理プログラム
格納手段から主記憶装置へ前記主処理プログラムを再ロ
ードして再スタートさせる主処理起動部とを備えている
In order to achieve the above object, the present invention, upon receiving an inquiry from a terminal, performs inference using various rules and knowledge by executing a main processing program, and sends the inference result to the terminal as a response to the inquiry. In the outputting expert system, a counting means for counting the number of processed inquiries, and when the number of processed inquiries counted by the counting means reaches a number predetermined by the system, the operation of the main processing program is terminated. The main processing program includes a program termination unit, and a main processing starting unit that reloads the main processing program from the main processing program storage unit to the main storage device and restarts the main processing program after the operation of the main processing program ends.

〔作用〕[Effect]

端末からの問合わせに応した問合わせ処理が何回も実行
されると、使用不可能なメモリ領域が主記憶装置上に累
積していくが、問合わせ処理件数を計数する計数手段の
計数値が予めシステムで定められた値に達すると、プロ
グラム終了手段により主処理プログラムの動作が終了せ
しめられ、主処理起動部によって、主処理プログラム格
納手段から主記憶装置へ主処理プログラムが再ロードさ
れて再スタートさせられる。このようにシステムが初期
の状態から再スタートされるので、使用不可能なメモリ
領域の累積値がエラー停止を招くほどにはならない、従
って、メモリ容量不足によってシステムが突然にエラー
停止することを防止することができる。
When inquiry processing in response to inquiries from a terminal is executed many times, unusable memory area accumulates on the main storage device, but the count value of the counting means that counts the number of inquiries processed When the value reaches a value predetermined by the system, the program termination means terminates the operation of the main processing program, and the main processing starting section reloads the main processing program from the main processing program storage means to the main storage device. be restarted. Since the system is restarted from the initial state in this way, the cumulative value of unusable memory area will not be large enough to cause an error stop, thus preventing the system from suddenly stopping due to an error due to lack of memory capacity. can do.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第1図を参照すると、本発明の一実施例は、主処理部1
および主処理起動部2を有する計算機3と、主処理プロ
グラムを格納する格納手段4と、各種のルールや知識を
格納する知識ベース5と、計算機3に接続された端末6
とで構成されている。
Referring to FIG. 1, one embodiment of the present invention includes a main processing section 1
and a computer 3 having a main processing starting section 2, a storage means 4 for storing the main processing program, a knowledge base 5 for storing various rules and knowledge, and a terminal 6 connected to the computer 3.
It is made up of.

主処理部1は、端末6から問合わせを受けると、主処理
プログラムを実行することにより各種のルール、知識を
用いた推論を行ない、その推論結果を前記問合わせに対
する応答として端末6へ出力する従来と同様な機能に加
え、スタート時点から現在までの問合わせ処理件数を計
数して保持する処理件数計数手段1a、および例えば問
合わせ処理終了毎に処理件数計数手段1aの計数値を参
照し、その計数値が予め定められた件数TLに達してい
れば主処理プログラムを終了させるプログラム終了手段
1bとを存している。また、主処理起動部2は、プログ
ラム終了手段1bによって主処理プログラムの動作が終
了された後、格納手段4から主処理部1へ主処理プログ
ラムを再ロードし、これを再スタートさせる手段である
0以上のような構成を有するため、端末6からの問合わ
せに応じた問合わせ処理の件数が予め定められた値に達
する毎に、主処理部1の主処理プログラムの終了。
When the main processing unit 1 receives an inquiry from the terminal 6, it performs inference using various rules and knowledge by executing a main processing program, and outputs the inference result to the terminal 6 as a response to the inquiry. In addition to the same functions as conventional ones, there is a processing number counting means 1a that counts and holds the number of inquiries processed from the start time to the present, and for example, the counted value of the processing number counting means 1a is referred to every time the inquiry processing is completed. A program termination means 1b is provided for terminating the main processing program if the counted value reaches a predetermined number TL. Further, the main processing starting unit 2 is a means for reloading the main processing program from the storage unit 4 to the main processing unit 1 and restarting the main processing program after the operation of the main processing program is terminated by the program terminating unit 1b. 0 or more, the main processing program of the main processing unit 1 is terminated every time the number of inquiries processed in response to inquiries from the terminal 6 reaches a predetermined value.

主処理プログラムの再ロード、再スタートが繰返される
ことになり、前記プログラム終了手段1bにおける判定
基準となる件数TLを適切に定めておくことによって、
計算機3がメモリ容量不足により突然にエラー停止する
ことがなくなる。
Since the main processing program will be repeatedly reloaded and restarted, by appropriately determining the number TL that serves as a criterion for the program termination means 1b,
The computer 3 will not suddenly stop due to an error due to insufficient memory capacity.

第2図は本発明を実施するシステムのハードウェア構成
例を示すブロック図であり、中央処理袋rIL10.主
記憶装置11.人出力制御装置12.補助記憶装置13
.端末制御装置14および端末6で構成されている。第
1図の主処理部1は、中央処理装置10上で実行される
主処理プログラム16で実現され、主処理起動部2も中
央処理装置10上で実行される主処理起動プログラム1
7で実現され、これらプログラムは主記憶装置11上に
置かれる。また、主処理部1が動的データ等を格納する
為に使用するメモリ領域も主記憶装置ll上に確保され
る。前述したように主処理部1における問合わせ処理件
数が増加すると、主記憶装置ll上における使用不可能
なメモリ領域が増大していくが、本実施例では、処理件
数がある件数に達すると、主処理プログラム16を終了
させた後再ロード、再スタートさせているので、主記憶
装置ll上のメモリ領域は再び最初の状態即ち使用不可
能なメモリ領域がない状態となり、この状態からシステ
ムが再び動作を開始することになる。
FIG. 2 is a block diagram showing an example of the hardware configuration of a system implementing the present invention, in which the central processing bag rIL10. Main storage device 11. Human output control device 12. Auxiliary storage device 13
.. It is composed of a terminal control device 14 and a terminal 6. The main processing unit 1 in FIG. 1 is realized by a main processing program 16 executed on the central processing unit 10, and the main processing starting unit 2 is also realized by the main processing starting program 1 executed on the central processing unit 10.
7, and these programs are placed on the main storage device 11. Furthermore, a memory area used by the main processing unit 1 to store dynamic data and the like is also secured on the main storage device 11. As described above, as the number of inquiries processed by the main processing unit 1 increases, the unusable memory area on the main storage device 11 increases, but in this embodiment, when the number of inquiries processed reaches a certain number, After the main processing program 16 is terminated, it is reloaded and restarted, so the memory area on the main storage device 11 returns to its initial state, that is, a state in which there is no unusable memory area, and from this state the system restarts. It will start working.

第3図は主処理プログラム16が端末6からの問合わせ
に応じた問合わせ処理を行なった後に実行する処理例を
示す、先ず、内部の処理件数総数TNを+IL (Sl
) 、TNと予め設定された値TLとを比較しく32)
 、TN≧TLならば自分自身でプログラムを終了させ
る(S3)、また、TN<TLならばステップS3をス
キップして処理を終了する。主処理起動プログラム17
は、主処理プログラム16が終了することにより、第4
図に示す処理を開始し、補助記憶装置13から主処理プ
ログラム16を主記憶装置11ヘロードしく5IO) 
、主処理プログラム16をスタートさせる(Sll)。
FIG. 3 shows an example of processing executed after the main processing program 16 performs inquiry processing in response to an inquiry from the terminal 6. First, the total number of internal processes TN is +IL (Sl
), TN and the preset value TL are compared32)
, if TN≧TL, the program is ended by itself (S3), and if TN<TL, step S3 is skipped and the process is ended. Main processing startup program 17
When the main processing program 16 ends, the fourth
Start the process shown in the figure and load the main processing program 16 from the auxiliary storage device 13 to the main storage device 11 (5IO)
, starts the main processing program 16 (Sll).

以上本発明の実施例について説明したが、本発明は以上
の実施例にのみ限定されず、その他各種の付加変更が可
能である0例えば、問合わせ処理件数が予めシステムで
定められた件数に達した場合、無条件で直ちに主処理プ
ログラムの動作を終了させるのではなく、その後、問合
わせがないときか或いはその頻度が小さいときを狙って
行なうようにしても良い。
Although the embodiments of the present invention have been described above, the present invention is not limited to the above embodiments, and various other additions and changes are possible.For example, the number of inquiries processed reaches a number predetermined by the system. In this case, instead of immediately terminating the operation of the main processing program unconditionally, it may be possible to terminate the operation of the main processing program after that when there are no inquiries or when the frequency of such inquiries is low.

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

以上説明したように、本発明は、問合わせ処理件数が予
め設定された件数に達すると、主処理プログラムの再ロ
ード、再スタートを行なうようにしたので、メモリ容量
不足でシステムが突然にエラー停止することを確実に防
止することができる。
As explained above, in the present invention, when the number of inquiries processed reaches a preset number, the main processing program is reloaded and restarted, so that the system suddenly stops due to an error due to insufficient memory capacity. This can be reliably prevented.

また、主処理プログラムを終了させたのち、直ちに再ロ
ード、再スタートさせるので、エキスパートシステムの
動作をw1続することができる効果がある。
In addition, since the main processing program is immediately reloaded and restarted after it is terminated, there is an advantage that the operation of the expert system can be continued for the first time.

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

第1図は本発明の一実施例の機能ブロック図、第2図は
本発明を実施するシステムのハードウェアの構成例を示
す図、 第3図は主処理プログラム16の処理例の流れ図および
、 第4図は主処理起動プログラム17の処理例の流れ図で
ある。 図において、 l・・・主処理部 la・・・処理件数計数手段 1b・・・プログラム終了手段 2・・・主処理起動部 3・・・計算機 4・・・主処理プログラムの格納手段 5・・・知識ベース 6・・・端末 16・・・主処理プログラム 17・・・主処理起動プログラム
FIG. 1 is a functional block diagram of an embodiment of the present invention, FIG. 2 is a diagram showing an example of the hardware configuration of a system implementing the present invention, and FIG. 3 is a flowchart of an example of processing of the main processing program 16, and FIG. 4 is a flow chart of a processing example of the main processing startup program 17. In the figure, l...Main processing unit la...Process number counting means 1b...Program termination means 2...Main processing starting part 3...Computer 4...Main processing program storage means 5. ...Knowledge base 6...Terminal 16...Main processing program 17...Main processing startup program

Claims (1)

【特許請求の範囲】 端末から問合わせを受けると、主処理プログラムの実行
により各種のルール、知識を用いた推論を行ない、該推
論結果を前記問合わせに対する応答として前記端末へ出
力するエキスパートシステムにおいて、 問合わせ処理件数を計数する計数手段と、 該計数手段で計数された問合わせ処理件数が予めシステ
ムで定められた件数に達した場合、前記主処理プログラ
ムの動作を終了させるプログラム終了手段と、 前記主処理プログラムの動作終了後、主処理プログラム
格納手段から主記憶装置へ前記主処理プログラムを再ロ
ードして再スタートさせる主処理起動部とを具備したこ
とを特徴とするエキスパートシステムにおけるプログラ
ム制御方式。
[Scope of Claims] An expert system that, upon receiving an inquiry from a terminal, performs inference using various rules and knowledge by executing a main processing program, and outputs the inference result to the terminal as a response to the inquiry. , a counting means for counting the number of inquiries processed; and a program termination means for terminating the operation of the main processing program when the number of inquiries processed by the counting means reaches a number predetermined by the system; A program control method in an expert system, comprising: a main processing starting unit that reloads the main processing program from a main processing program storage unit to a main storage device and restarts the main processing program after the operation of the main processing program ends. .
JP25526587A 1987-10-09 1987-10-09 Program control system for expert system Pending JPH0198051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25526587A JPH0198051A (en) 1987-10-09 1987-10-09 Program control system for expert system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25526587A JPH0198051A (en) 1987-10-09 1987-10-09 Program control system for expert system

Publications (1)

Publication Number Publication Date
JPH0198051A true JPH0198051A (en) 1989-04-17

Family

ID=17276347

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25526587A Pending JPH0198051A (en) 1987-10-09 1987-10-09 Program control system for expert system

Country Status (1)

Country Link
JP (1) JPH0198051A (en)

Similar Documents

Publication Publication Date Title
US20220083375A1 (en) Method and apparatus for scheduling task processing entity
RU2134446C1 (en) Method for controlling primitive program overflow by messages in multiprocessor control system (versions)
RU2603497C2 (en) Method of controlling execution of tasks in computer system
CN108874375B (en) Timer implementation method and device
CN112416534A (en) Agent-based task management method and device
JPH0198051A (en) Program control system for expert system
EP0239054A1 (en) Process control system and method
CN116361114A (en) AI board monitoring keep-alive method, device, equipment and medium
CN113342512B (en) IO task silencing and driving method and device and related equipment
JPS58169219A (en) Memory contents holding system of microcomputer
CN113778824A (en) Method and device for detecting real-time performance of operating system, computer equipment and storage medium
CN112199228A (en) Request timeout processing method, device, terminal and storage medium
JP2783529B2 (en) Periodic polling management device for monitoring information processing resources in a network and method implemented by the device
JPH02201552A (en) Transaction trace information picking system
CN113760632A (en) Thread pool performance monitoring method, device, equipment and storage medium
GB2030331A (en) Real-time Data Processing System for Processing Time Period Commands
JPH01307833A (en) Processing system for inference based on preload of knowledge
JPS6194297A (en) Refresh device of dynamic memory
JPH05289917A (en) Transaction data output system
JPH09284815A (en) Resource assignment and release method
JPS6017123B2 (en) Unmanned operation device for data processing equipment
EP0381140A2 (en) Data processing apparatus
CN112783563A (en) Mobile terminal sensor working method, system, terminal and storage medium
JP2683274B2 (en) Function trace output method
JPS5835651A (en) Stack preventing circuit for programmable device