JPH0553779A - Distribution system for automatic program generation - Google Patents

Distribution system for automatic program generation

Info

Publication number
JPH0553779A
JPH0553779A JP23878191A JP23878191A JPH0553779A JP H0553779 A JPH0553779 A JP H0553779A JP 23878191 A JP23878191 A JP 23878191A JP 23878191 A JP23878191 A JP 23878191A JP H0553779 A JPH0553779 A JP H0553779A
Authority
JP
Japan
Prior art keywords
program
generation
automatic generation
automatic
request data
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
JP23878191A
Other languages
Japanese (ja)
Inventor
Hiroshi Takeuchi
寛 竹内
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 JP23878191A priority Critical patent/JPH0553779A/en
Publication of JPH0553779A publication Critical patent/JPH0553779A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Multi Processors (AREA)

Abstract

PURPOSE:To enable the distribusion of a load on automatic program generation to be executed in a computer network which adds plural computers providing automatic program generating mechanism. CONSTITUTION:A queue 102 preserves automatic program generation processing request data from own computer or another computer and a generation counter 103 indicates the number of process for automatic program generation which is under generation by an automatic generating means 106. A processing reception judging means 105 judges that data taken-out from the queue 102 is reception possible when the identifier of automatic own program generating mechanism is added to a client list being added to data even if the value of the generation counter 103 is under the specified value or over it so that the automatic generating means 106 automatically generates the program through the use of the data. It is judged to be reception impossible at the time of other cases and a processing request means 107 transmits automatic program generation processing request data adding the identifier of automatic own program generating mechanism in the client list to another computers so as to require a processing.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はプログラム自動生成処理
依頼データに基づきプログラムを自動生成するプログラ
ム自動生成機構を備えた計算機およびそのような計算機
が通信媒体を介して複数接続された計算機ネットワーク
に関し、特にプログラム自動生成処理の分散方式に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer having an automatic program generation mechanism for automatically generating a program based on program automatic generation processing request data, and a computer network in which a plurality of such computers are connected via a communication medium. In particular, it relates to a distributed method of automatic program generation processing.

【0002】[0002]

【従来の技術】プログラム自動生成処理依頼データを受
け取ることにより、そのデータに基づきプログラムを自
動生成するプログラム自動生成機構を備えた計算機が報
告されている。
2. Description of the Related Art A computer equipped with an automatic program generation mechanism for automatically generating a program based on the received data for automatic program generation processing has been reported.

【0003】そして、従来のこの種のプログラム自動生
成機構は、受け取ったプログラム自動生成処理依頼デー
タを保存するキューと、このキューからプログラム自動
生成処理依頼データを取り出す処理待ち合わせ手段と、
この処理待ち合わせ手段でプログラム自動生成処理依頼
データが取り出される毎にプログラム自動生成のための
新たなプロセスを生成しプログラム自動生成を行う自動
生成手段とから構成されている。
The conventional automatic program generation mechanism of this kind has a queue for storing the received program automatic generation processing request data, and a processing queuing means for taking out the program automatic generation processing request data from the queue.
This processing waiting means is composed of automatic generation means for generating a new process for automatic program generation every time the program automatic generation processing request data is taken out, and performing automatic program generation.

【0004】[0004]

【発明が解決しようとする課題】上述したようなプログ
ラム自動生成機構を備える計算機を使用すれば、プログ
ラムの自動生成が可能となり、プログラムの生産効率を
高めることができる。
If a computer having the above-mentioned automatic program generation mechanism is used, the program can be automatically generated, and the program production efficiency can be improved.

【0005】そして、このような計算機を多数設置すれ
ば、より一層プログラムの生産効率が向上するであろう
が、従来のプログラム自動生成機構を備える計算機で
は、自計算機が受け取ったプログラム自動生成処理依頼
データを必ず自計算機のプログラム自動生成機構で受け
付けて処理するようにしているため、特定の計算機に対
してのみ集中的にプログラム自動生成処理依頼データが
与えられると、その計算機の負荷が他の計算機に比べ異
常に高まり、複数の計算機資源の有効利用が図れないと
いう問題点がある。
If a large number of such computers are installed, the production efficiency of programs will be further improved. However, in the case of the conventional computer having the automatic program generation mechanism, the automatic program generation processing request received by the self computer is requested. Since data is always received and processed by the program automatic generation mechanism of its own computer, if the program automatic generation processing request data is given to only a specific computer intensively, the load of that computer will be increased by other computers. Compared with the above, there is a problem in that it cannot be effectively used with a plurality of computer resources.

【0006】本発明はこのような事情に鑑みて為された
ものであり、プログラム自動生成にかかる負荷を自動的
に分散することができるようにすることを目的としてい
る。
The present invention has been made in view of such circumstances, and an object of the present invention is to enable automatic distribution of the load involved in automatic program generation.

【0007】[0007]

【課題を解決するための手段】本発明は上記の目的を達
成するために、以下の(A),(B)のような構成を採
用している。
In order to achieve the above object, the present invention adopts the following configurations (A) and (B).

【0008】(A)プログラム自動生成処理依頼データ
に基づきプログラムを自動生成するプログラム自動生成
機構を備えた計算機において、受け取ったプログラム自
動生成処理依頼データを保存するキューからプログラム
自動生成処理依頼データを取り出す処理待ち合わせ手段
と、この処理待ち合わせ手段からプログラム自動生成処
理依頼データを受け取り、生成カウンタを参照してその
プログラム自動生成処理依頼データによるプログラム自
動生成処理依頼を受け付けるか否かを判定する処理受け
付け判定手段と、この処理受け付け判定手段により処理
を受け付けると判定されることにより、前記生成カウン
タをインクリメントし、前記処理を受け付けられたプロ
グラム自動生成処理依頼データを用いてプログラムを自
動生成し、自動生成終了時に前記生成カウンタをデクリ
メントする自動生成手段と、前記処理受け付け判定手段
により処理を受け付けないと判定されることにより、プ
ログラム自動生成機構を備える他の計算機に対し前記処
理を受け付けられなかったプログラム自動生成処理依頼
データを送ってプログラム自動生成処理を依頼する処理
依頼手段とを備える構成。
(A) In a computer equipped with a program automatic generation mechanism for automatically generating a program based on program automatic generation processing request data, the program automatic generation processing request data is taken out from a queue storing the received program automatic generation processing request data. A process queuing unit and a process acceptance determining unit that receives program automatic generation process request data from the process queuing unit and refers to a generation counter to determine whether to accept the program automatic generation process request based on the program automatic generation process request data. When the process acceptance determining unit determines that the process is accepted, the generation counter is incremented, and a program is automatically generated using the program automatic generation process request data for which the process is accepted, and the automatic generation is performed. An automatic generation unit that decrements the generation counter at the time of termination, and a program automatic that cannot accept the process to another computer having a program automatic generation mechanism because the process acceptance determination unit determines that the process is not accepted. And a processing request unit that sends generation processing request data and requests automatic program generation processing.

【0009】(B)プログラム自動生成処理依頼データ
に基づきプログラムを自動生成するプログラム自動生成
機構を備えた計算機が通信媒体を介して複数接続された
計算機ネットワークにおいて、各計算機のプログラム自
動生成機構に、受け取ったプログラム自動生成処理依頼
データを保存するキューからプログラム自動生成処理依
頼データを取り出す処理待ち合わせ手段と、この処理待
ち合わせ手段からプログラム自動生成処理依頼データを
受け取り、そのプログラム自動生成処理依頼データに付
加された依頼者リストおよび生成カウンタを参照して、
そのプログラム自動生成処理依頼データによるプログラ
ム自動生成処理依頼を受け付けるか否かを判定する処理
受け付け判定手段と、この処理受け付け判定手段により
処理を受け付けると判定されることにより、前記生成カ
ウンタをインクリメントし、前記処理を受け付けられた
プログラム自動生成処理依頼データを用いてプログラム
を自動生成し、自動生成終了時に前記生成カウンタをデ
クリメントする自動生成手段と、前記処理受け付け判定
手段により処理を受け付けないと判定されることによ
り、プログラム自動生成機構を備える他の計算機に対し
前記処理を受け付けられなかったプログラム自動生成処
理依頼データを、その依頼者リストに自プログラム自動
生成機構の識別子を付加して送信し、プログラム自動生
成処理を依頼する処理依頼手段とを備える構成。
(B) In a computer network in which a plurality of computers having an automatic program generation mechanism for automatically generating a program based on request data for automatic program generation processing are connected through a communication medium, the automatic program generation mechanism of each computer is Processing waiting means for extracting the program automatic generation processing request data from the queue for storing the received program automatic generation processing request data, and program automatic generation processing request data received from this processing waiting means and added to the program automatic generation processing request data. Refer to the requester list and generation counter
A process acceptance determination unit that determines whether to accept a program automatic generation process request based on the program automatic generation process request data, and by incrementing the generation counter by determining that the process is accepted by the process acceptance determination unit, An automatic generation unit that automatically generates a program using the program automatic generation process request data that has received the process, and decrements the generation counter when the automatic generation ends, and the process acceptance determination unit determines that the process is not accepted. As a result, the program automatic generation processing request data that could not be processed by another computer equipped with the program automatic generation mechanism is sent by adding the identifier of the self-program automatic generation mechanism to the requester list. Place to request generation processing Configuration and a request means.

【0010】[0010]

【作用】構成(A)においては、プログラム自動生成機
構を備えた計算機にプログラム自動生成処理依頼データ
が与えられキューに保存されると、処理待ち合わせ手段
がキューからプログラム自動生成処理依頼データを取り
出し、処理受け付け判定手段がその取り出されたプログ
ラム自動生成処理依頼データによるプログラム自動生成
処理依頼を受け付けるか否かを、生成カウンタの値に基
づいて判定する。
In the configuration (A), when the computer having the program automatic generation mechanism is given the program automatic generation processing request data and stored in the queue, the processing waiting means takes out the program automatic generation processing request data from the queue, Based on the value of the generation counter, the processing acceptance determination means determines whether to accept the program automatic generation processing request by the extracted program automatic generation processing request data.

【0011】生成カウンタの値が予め定められた値以下
である場合、当該計算機におけるプログラム自動生成処
理の負荷は小さいので、処理受け付け判定手段は処理を
受け付けると判定し、その値より大きい場合は当該計算
機におけるプログラム自動生成処理の負荷が大きいの
で、処理を受け付けないと判定する。
When the value of the generation counter is less than or equal to a predetermined value, the load of the program automatic generation processing in the computer is small, and therefore the processing acceptance determining means determines to accept the processing. Since the load of the program automatic generation processing in the computer is large, it is determined that the processing is not accepted.

【0012】処理受け付け判定手段が処理を受け付ける
と判定すると、自動生成手段が、生成カウンタをインク
リメントし、前記処理を受け付けられたプログラム自動
生成処理依頼データを用いてプログラムを自動生成し、
自動生成終了時に生成カウンタをデクリメントする。
When the processing acceptance determining means determines that the processing is accepted, the automatic generation means increments the generation counter and automatically generates a program using the program automatic generation processing request data for which the processing is accepted,
Decrement the generation counter at the end of automatic generation.

【0013】他方、処理受け付け判定手段が処理を受け
付けないと判定すると、処理依頼手段が、プログラム自
動生成機構を備える他の計算機に対し前記処理を受け付
けられなかったプログラム自動生成処理依頼データを送
ってプログラム自動生成処理を依頼する。
On the other hand, when the processing acceptance determining means determines that the processing is not accepted, the processing requesting means sends the program automatic generation processing request data which cannot be accepted to the other computer having the automatic program generation mechanism. Request automatic program generation processing.

【0014】構成(B)においては、プログラム自動生
成機構を備えた計算機に例えばその計算機自体や他の計
算機からプログラム自動生成処理依頼データが与えられ
キューに保存されると、処理待ち合わせ手段がキューか
らプログラム自動生成処理依頼データを取り出し、処理
受け付け判定手段がその取り出されたプログラム自動生
成処理依頼データによるプログラム自動生成処理依頼を
受け付けるか否かを、そのプログラム自動生成処理依頼
データに付加された依頼者リストおよび生成カウンタを
参照して判定する。
In the configuration (B), when the computer having the program automatic generation mechanism is given the program automatic generation processing request data from the computer itself or another computer and stored in the queue, the processing waiting means moves from the queue. Requester added to the program automatic generation processing request data whether the program automatic generation processing request data is taken out and whether or not the processing acceptance judging means accepts the program automatic generation processing request by the taken program automatic generation processing request data Determine by referring to the list and generation counter.

【0015】生成カウンタの値が予め定められた値以下
である場合、当該計算機におけるプログラム自動生成処
理の負荷は小さいので、処理受け付け判定手段は処理を
受け付けると判定する。また、その値より大きい場合は
当該計算機におけるプログラム自動生成処理の負荷が大
きいので、原則として処理を受け付けないと判定する
が、依頼者リストに自プログラム自動生成機構の識別子
が含まれていた場合には当該プログラム自動生成処理依
頼データは以前に自計算機が受け取り負荷が高いために
他の計算機に依頼したものが再び自計算機に戻ってきた
データであるので、処理を受け付けると判定する。
When the value of the generation counter is less than or equal to a predetermined value, the load of the program automatic generation process in the computer is small, and the process acceptance determination means determines to accept the process. If the value is larger than that value, the load of the program automatic generation processing on the computer is large, so it is determined in principle that the processing is not accepted, but if the requester list includes the identifier of the self-program automatic generation mechanism. Since the program automatic generation processing request data is the data which the previous computer requested to another computer due to the heavy load, the data is returned to the own computer again, so it is determined to accept the process.

【0016】処理受け付け判定手段が処理を受け付ける
と判定すると、自動生成手段が、生成カウンタをインク
リメントし、前記処理を受け付けられたプログラム自動
生成処理依頼データを用いてプログラムを自動生成し、
自動生成終了時に生成カウンタをデクリメントする。
When the processing acceptance determination means determines that the processing is accepted, the automatic generation means increments the generation counter and automatically generates the program using the program automatic generation processing request data for which the processing is accepted,
Decrement the generation counter at the end of automatic generation.

【0017】他方、処理受け付け判定手段が処理を受け
付けないと判定すると、処理依頼手段が、プログラム自
動生成機構を備える他の計算機に対し前記処理を受け付
けられなかったプログラム自動生成処理依頼データを、
その依頼者リストに自プログラム自動生成機構の識別子
を付加して送信し、プログラム自動生成処理を依頼す
る。
On the other hand, when the process acceptance determining unit determines that the process is not accepted, the process requesting unit sends the program automatic generation process request data which cannot be accepted to the other computer having the program automatic generation mechanism,
The requester list is added with the identifier of the self-program automatic generation mechanism and transmitted to request the program automatic generation processing.

【0018】[0018]

【実施例】次に本発明の実施例について図面を参照して
詳細に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0019】図1を参照すると、本発明のプログラム自
動生成分散方式の一実施例を適用した計算機100は、
キュー102および生成カウンタ103を有する記憶手
段101と、処理待ち合わせ手段104と、処理受け付
け判定手段105と、自動生成手段106と、処理依頼
手段107とから構成されるプログラム自動生成機構を
備えている。
Referring to FIG. 1, a computer 100 to which an embodiment of the automatic program generation and distribution system of the present invention is applied is
The program automatic generation mechanism includes a storage unit 101 having a queue 102 and a generation counter 103, a process waiting unit 104, a process acceptance determination unit 105, an automatic generation unit 106, and a process request unit 107.

【0020】図1の計算機100において、例えばプロ
グラム自動生成を依頼する図示しないプロセス等からプ
ログラム自動生成処理依頼データが与えられると、その
プログラム自動生成処理依頼データは記憶手段101の
キュー102に保存される。
In the computer 100 of FIG. 1, when program automatic generation processing request data is given from, for example, a process (not shown) requesting automatic program generation, the program automatic generation processing request data is stored in the queue 102 of the storage means 101. It

【0021】処理待ち合わせ手段104は、キュー10
2からプログラム自動生成処理依頼データを取り出し、
処理受け付け判定手段105はその取り出されたプログ
ラム自動生成処理依頼データにかかるプログラム自動生
成処理依頼を自計算機100で受け付けるか否かを記憶
手段101の生成カウンタ103の値等に基づいて判定
する。
The process queuing means 104 is the queue 10
Take out the program automatic generation processing request data from 2,
The processing acceptance determination means 105 determines whether or not the program automatic generation processing request relating to the extracted program automatic generation processing request data is accepted by the own computer 100 based on the value of the generation counter 103 of the storage means 101 and the like.

【0022】処理受け付け判定手段105により処理を
受け付けると判定された場合、自動生成手段106は、
生成カウンタ103をインクリメントした後、上記受け
付けられたプログラム自動生成処理依頼データを用いて
プログラムを自動生成し、自動生成の終了時に生成カウ
ンタ103をデクリメントする。
When the processing acceptance determining means 105 determines that the processing is accepted, the automatic generation means 106
After incrementing the generation counter 103, a program is automatically generated using the received program automatic generation processing request data, and the generation counter 103 is decremented at the end of the automatic generation.

【0023】他方、処理受け付け判定手段105により
処理を受け付けないと判定された場合、処理依頼手段1
07は、同種のプログラム自動生成機構を備える他の計
算機の同機構に対し上記受け付けられなかったプログラ
ム自動生成処理依頼データを送ってプログラム自動生成
処理を依頼する。
On the other hand, when the process acceptance determining unit 105 determines that the process is not accepted, the process requesting unit 1
Reference numeral 07 sends the unacceptable program automatic generation processing request data to the same mechanism of another computer having the same type of automatic program generation mechanism to request the program automatic generation processing.

【0024】次に図2乃至図5を参照して、図1の処理
待ち合わせ手段104,処理受け付け判定手段105,
自動生成手段106および処理依頼手段107のより具
体的な動作を説明する。
Next, with reference to FIGS. 2 to 5, the process waiting means 104, the process acceptance determining means 105,
More specific operations of the automatic generation means 106 and the processing request means 107 will be described.

【0025】図2は処理待ち合わせ手段104の動作を
説明するフローチャートである。
FIG. 2 is a flow chart for explaining the operation of the processing waiting means 104.

【0026】処理待ち合わせ手段104は、処理の待ち
合わせと当該プログラム自動生成機構全体の動作を制御
している。
The process queuing means 104 controls the process queuing and the operation of the entire program automatic generation mechanism.

【0027】即ち、処理待ち合わせ手段104は、先
ず、ステップ201でキュー102にプログラム自動生
成処理依頼データが登録されることを待ち合わせる。
That is, the processing waiting means 104 first waits for the program automatic generation processing request data to be registered in the queue 102 in step 201.

【0028】キュー102にプログラム自動生成処理依
頼データが登録されたならば、ステップ202でその登
録されたプログラム自動生成処理依頼データを取り出
し、ステップ203において、この取り出したプログラ
ム自動生成処理依頼データを処理受け付け判定手段10
5に渡して処理を受け付けるか否かの判定を行わせる。
When the program automatic generation processing request data is registered in the queue 102, the registered program automatic generation processing request data is taken out at step 202, and the taken program automatic generation processing request data is processed at step 203. Acceptance determination means 10
It is passed to step 5 to determine whether to accept the process.

【0029】次に、ステップ204で、処理受け付け判
定手段105の判定結果を評価し、処理を受け付けると
いう判定結果であれば自計算機100のプログラム自動
生成機構でプログラム自動生成を行うためにステップ2
05で自動生成手段106を起動する。他方、処理を受
け付けないという判定結果であれば他の計算機上のプロ
グラム自動生成機構にプログラム自動生成を依頼するた
めにステップ206で処理依頼手段107を起動する。
Next, in step 204, the determination result of the processing acceptance determining means 105 is evaluated, and if the determination result is acceptance of processing, the automatic program generation mechanism of the own computer 100 automatically generates the program in step 2
At 05, the automatic generation means 106 is activated. On the other hand, if it is determined that the process is not accepted, the process requesting unit 107 is activated in step 206 to request the program automatic generation mechanism on another computer to automatically generate the program.

【0030】なお、処理待ち合わせ手段104は、ステ
ップ205,206を実行すると、ステップ201の処
理に戻る。
The process queuing means 104 returns to the process of step 201 after executing steps 205 and 206.

【0031】図3は処理受け付け判定手段105の動作
を説明するフローチャートである。
FIG. 3 is a flow chart for explaining the operation of the process acceptance judgment means 105.

【0032】処理受け付け判定手段105は、処理待ち
合わせ手段104から判定を要求されると、先ず、ステ
ップ301で生成カウンタ103の値が予め定められた
値n以下か否かを判定する。ここで、生成カウンタ10
3は当該プログラム自動生成機構のもとでプログラム自
動生成中のプロセスの数を表している。従って、生成カ
ウンタ103の値がn以下のときは、プログラム自動生
成中のプロセスが少なく負荷が小さいので、このときは
ステップ304で、判定結果としてプログラム自動生成
処理依頼を受け付ける旨を処理待ち合わせ手段104に
返却する。
When the processing acceptance determination means 105 is requested by the processing waiting means 104, first, at step 301, it is determined whether or not the value of the generation counter 103 is equal to or less than a predetermined value n. Here, the generation counter 10
3 represents the number of processes under the automatic program generation under the automatic program generation mechanism. Therefore, when the value of the generation counter 103 is n or less, the number of processes during the automatic program generation is small and the load is small. In this case, in step 304, the processing queuing means 104 indicates that the automatic program generation processing request is accepted as the determination result. To return.

【0033】他方、生成カウンタ103の値がnを超え
るときは、プログラム自動生成中のプロセスが多く負荷
が大きいので、ステップ302に進む。
On the other hand, when the value of the generation counter 103 exceeds n, the number of processes in the automatic generation of the program is large and the load is large, so that the process proceeds to step 302.

【0034】ステップ302では、今回の判定対象とな
るプログラム自動生成処理依頼データ中から依頼者リス
トを取り出す。そして、ステップ303で、その依頼者
リスト中に当該プログラム自動生成機構の識別コード
(自id)が含まれているか否かを判定し、含まれてい
るときは、当該プログラム自動生成処理依頼データは以
前に処理依頼手段107を用いて他の計算機のプログラ
ム自動生成機構に処理を依頼したものが戻ってきたもの
であるので、ステップ304で判定結果としてプログラ
ム自動生成処理依頼を受け付ける旨を処理待ち合わせ手
段104に返却する。自idが含まれていなければ、ス
テップ305で判定結果としてプログラム自動生成処理
依頼を受け付けない旨を処理待ち合わせ手段104に返
却する。
In step 302, the requester list is extracted from the program automatic generation processing request data which is the subject of this determination. Then, in step 303, it is determined whether or not the identification code (self id) of the program automatic generation mechanism is included in the requester list. If it is included, the program automatic generation processing request data is Since the request for processing to the program automatic generation mechanism of another computer by using the processing requesting means 107 has been returned, the processing waiting means for accepting the automatic program generation processing request as the determination result at step 304. Return to 104. If the self-id is not included, it is returned to the processing waiting means 104 that the automatic program generation processing request is not accepted as a determination result in step 305.

【0035】図4は自動生成手段106の動作を説明す
るフローチャートである。
FIG. 4 is a flow chart for explaining the operation of the automatic generation means 106.

【0036】自動生成手段106は、処理待ち合わせ手
段104から起動されると、先ず、ステップ401でプ
ログラム自動生成を行う子プロセスを生成する。次にス
テップ402で親プロセスと子プロセスの処理を分岐さ
せ、親プロセスならばこのまま自動生成手段の起動元へ
戻る。
When activated by the process waiting means 104, the automatic generation means 106 first generates a child process for automatically generating a program in step 401. Next, in step 402, the processes of the parent process and the child process are branched, and if it is the parent process, the process directly returns to the activation source of the automatic generation means.

【0037】他方、子プロセスならば、ステップ403
で生成カウンタ103をインクリメントし、ステップ4
04で処理待ち合わせ手段104から渡されたプログラ
ム自動生成処理依頼データを用いて実際にプログラムの
自動生成を行う。そして、自動生成を終了すると、ステ
ップ405で生成カウンタ103をデクリメントする。
On the other hand, if it is a child process, step 403.
The generation counter 103 is incremented by, and step 4
At 04, the automatic program generation is actually performed using the program automatic generation processing request data passed from the processing queuing means 104. When the automatic generation is completed, the generation counter 103 is decremented in step 405.

【0038】図5は処理依頼手段107の動作を説明す
るフローチャートである。
FIG. 5 is a flow chart for explaining the operation of the processing requesting means 107.

【0039】処理依頼手段107は、処理待ち合わせ手
段104から起動されると、ステップ501において、
処理待ち合わせ手段104から渡されたプログラム自動
生成処理依頼データの依頼者リストに自プログラム自動
生成機構の識別コード(自id)を追加する。これは、
このプログラム自動生成処理依頼データが再び自プログ
ラム自動生成機構に戻ってきたことを検出できるように
するためである。
When the processing requesting means 107 is activated by the processing waiting means 104, in step 501,
The identification code (self id) of the self program automatic generation mechanism is added to the requester list of the program automatic generation processing request data passed from the process queuing means 104. this is,
This is so that it can be detected that the program automatic generation processing request data has returned to the automatic program automatic generation mechanism again.

【0040】次に、ステップ502において、同種のプ
ログラム自動生成機構を備える他の計算機の同機構に対
し、上記のプログラム自動生成処理依頼データを送って
プログラム自動生成処理を依頼する。
Next, at step 502, the program automatic generation processing request data is sent to the same mechanism of another computer having the same type of program automatic generation mechanism to request the program automatic generation processing.

【0041】図6は本発明のプログラム自動生成分散方
式を適用した計算機ネットワークの一例を示すブロック
図である。同図に示すように、この例の計算機ネットワ
ークは、4つのホストコンピュータ(以下、ホストと略
す)H1,H2,H3,H4を含み、各々のホストH
1,H2,H3,H4には図1で説明したようなプログ
ラム自動生成機構601,602,603,604が備
わっている。
FIG. 6 is a block diagram showing an example of a computer network to which the automatic program generation / distribution method of the present invention is applied. As shown in the figure, the computer network of this example includes four host computers (hereinafter abbreviated as hosts) H1, H2, H3, H4, and each host H
1, H2, H3, H4 are provided with automatic program generation mechanisms 601, 602, 603, 604 as described in FIG.

【0042】ここで、ホストH1のプログラム自動生成
機構601における処理依頼手段107は図5のステッ
プ502における処理の依頼先をホストH2のプログラ
ム自動生成機構602と定め、このプログラム自動生成
機構602における処理依頼手段107は図5のステッ
プ502における処理の依頼先をホストH3のプログラ
ム自動生成機構603と定め、このプログラム自動生成
機構603における処理依頼手段107は図5のステッ
プ502における処理の依頼先をホストH4のプログラ
ム自動生成機構604と定め、このプログラム自動生成
機構604における処理依頼手段107は図5のステッ
プ502における処理の依頼先をホストH1のプログラ
ム自動生成機構601と定めている。
Here, the processing requesting means 107 in the automatic program generation mechanism 601 of the host H1 determines the request destination of the processing in step 502 of FIG. 5 to be the automatic program generation mechanism 602 of the host H2, and the processing in this automatic program generation mechanism 602. The request unit 107 defines the request destination of the process in step 502 of FIG. 5 as the program automatic generation mechanism 603 of the host H3, and the process request unit 107 in this program automatic generation mechanism 603 sets the request destination of the process in step 502 of FIG. The program automatic generation mechanism 604 of H4 is defined, and the processing requesting unit 107 in this program automatic generation mechanism 604 defines the request destination of the process in step 502 of FIG. 5 as the program automatic generation mechanism 601 of the host H1.

【0043】従って、これらプログラム自動生成機構6
01〜604間にはネットワーク上仮想的に、プログラ
ム自動生成機構601→プログラム自動生成機構602
→プログラム自動生成機構603→プログラム自動生成
機構604→プログラム自動生成機構601と渡るルー
プが構成されていることになる。
Therefore, these program automatic generation mechanism 6
Between 01 and 604, the program automatic generation mechanism 601 and the program automatic generation mechanism 602 are virtually on the network.
A loop including the automatic program generation mechanism 603, the automatic program generation mechanism 604, and the automatic program generation mechanism 601 is configured.

【0044】次に、プログラム自動生成機構601〜6
04の処理受け付け判定手段105の図3のステップ3
01で用いる、生成カウンタ103と比較するnの値を
0として、図6に示す計算機ネットワーク上におけるプ
ログラム自動生成分散方式の動作を説明する。
Next, automatic program generation mechanisms 601-6
04 of the process acceptance determination means 105 of FIG.
The operation of the automatic program generation / distributed method on the computer network shown in FIG. 6 will be described assuming that the value of n to be compared with the generation counter 103 used in 01 is 0.

【0045】例えばプログラム自動生成にかかるクライ
アント605が、ホストH1のプログラム自動生成機構
601に対しプログラム自動生成処理依頼データを渡し
てプログラム自動生成処理を依頼した場合、プログラム
自動生成機構601の生成カウンタ103の値が0であ
るときは、図3のステップ301によってステップ30
4に移行し、このプログラム自動生成処理依頼はプログ
ラム自動生成機構601によって受け付けられる。
For example, when the client 605 for automatic program generation passes the program automatic generation processing request data to the program automatic generation mechanism 601 of the host H1 and requests the program automatic generation processing, the generation counter 103 of the automatic program generation mechanism 601. If the value of is 0, then step 301 of FIG.
4, the program automatic generation processing request is accepted by the program automatic generation mechanism 601.

【0046】しかし、プログラム自動生成機構601の
生成カウンタ103の値が0より大きいときは、図3の
ステップ301によってステップ302に移行する。そ
して、クライアント605から渡された時点のプログラ
ム自動生成処理依頼データの依頼者リストにはプログラ
ム自動生成機構601のidは含まれていないので(な
お、クライアント605のidは含まれている)、ステ
ップ303からステップ305へ移行し、プログラム自
動生成処理依頼は受け付けられないと判定される。この
結果、図2のステップ204からステップ206へ移行
し、プログラム自動生成機構601の処理依頼手段10
7によってホストH2のプログラム自動生成機構602
に処理が依頼される。なお、このとき、ホストH2のプ
ログラム自動生成機構602に送信されるプログラム自
動生成処理依頼データの依頼者リストにプログラム自動
生成機構601のidが含められる。
However, when the value of the generation counter 103 of the automatic program generation mechanism 601 is larger than 0, the process shifts to step 302 by step 301 in FIG. Since the id of the program automatic generation mechanism 601 is not included in the requester list of the program automatic generation processing request data when it is passed from the client 605 (note that the id of the client 605 is included), step The process proceeds from step 303 to step 305, and it is determined that the program automatic generation processing request cannot be accepted. As a result, the process proceeds from step 204 to step 206 in FIG. 2, and the process requesting means 10 of the automatic program generation mechanism 601.
7 to automatically generate program 602 of host H2
Is requested to process. At this time, the id of the program automatic generation mechanism 601 is included in the requester list of the program automatic generation processing request data transmitted to the program automatic generation mechanism 602 of the host H2.

【0047】ホストH2のプログラム自動生成機構60
2においては、ホストH1から受信したプログラム自動
生成処理依頼データはキュー102に保存され、以下、
プログラム自動生成機構601と同様の動作が行われ
る。従って、プログラム自動生成機構602の生成カウ
ンタ103の値が0より大きいとすると、ホストH2で
も受け付けられないことになり、そのプログラム自動生
成処理依頼データは次のホストH3のプログラム自動生
成機構603に送信される。以下、このプログラム自動
生成機構603でも受け付けられず、更に次のホストH
4のプログラム自動生成機構604でも受け付けられな
い場合、上記のプログラム自動生成処理依頼データは最
初のホストH1のプログラム自動生成機構601に戻っ
てくることになる。
Automatic program generation mechanism 60 of host H2
2, the program automatic generation processing request data received from the host H1 is stored in the queue 102.
The same operation as the automatic program generation mechanism 601 is performed. Therefore, if the value of the generation counter 103 of the automatic program generation mechanism 602 is greater than 0, it will not be accepted even by the host H2, and the program automatic generation processing request data will be sent to the automatic program generation mechanism 603 of the next host H3. To be done. Thereafter, the program automatic generation mechanism 603 does not accept the program, and the next host H
If the automatic program generation mechanism 604 of No. 4 does not accept it, the program automatic generation processing request data described above returns to the automatic program generation mechanism 601 of the first host H1.

【0048】上記のプログラム自動生成処理依頼データ
がホストH1のプログラム自動生成機構601に戻って
きた時点で、プログラム自動生成機構601の生成カウ
ンタ103の値が0であれば当然受け付けられるが、い
まだ0より大きくても受け付けられる。即ち、そのプロ
グラム自動生成処理依頼データの依頼者リストには自プ
ログラム自動生成機構601のidが含まれているの
で、図3のステップ303からステップ304へ移行
し、そのプログラム自動生成処理依頼データを受け付け
るものである。従って、クライアント605のプログラ
ム自動生成処理依頼は結局プログラム自動生成機構60
1で処理されるが、他ホストH2〜H4のプログラム自
動生成機構602〜604がアイドル状態(生成カウン
タ103の値がn以下の状態)であれば、そのアイドル
状態の自動生成機構に処理を依頼することができ、負荷
の分散が可能になる。
If the value of the generation counter 103 of the program automatic generation mechanism 601 is 0 at the time when the above-mentioned program automatic generation processing request data is returned to the program automatic generation mechanism 601 of the host H1, it is naturally accepted, but it is still 0. It is accepted even if it is larger. That is, since the requester list of the program automatic generation processing request data includes the id of the self-program automatic generation mechanism 601, the process moves from step 303 to step 304 in FIG. It is something to accept. Therefore, the program automatic generation processing request of the client 605 is eventually the program automatic generation mechanism 60.
If the automatic program generation mechanisms 602-604 of the other hosts H2-H4 are in the idle state (the value of the generation counter 103 is n or less), the automatic generation mechanism in the idle state is requested to perform the processing. Can be done, and the load can be distributed.

【0049】[0049]

【発明の効果】以上説明したように、本発明によれば、
プログラム自動生成機構を備える計算機において、自計
算機のプログラム自動生成処理にかかる負荷が高いとき
には与えられたプログラム自動生成処理依頼データを自
計算機で処理せず同種のプログラム自動生成機構を備え
る他の計算機に送信して処理を依頼することができるの
で、プログラム自動生成機構を備えた複数の計算機が存
在する計算機ネットワークにおいて、プログラム自動生
成処理にかかる負荷を自動的に分散することができる効
果がある。
As described above, according to the present invention,
In a computer with an automatic program generation mechanism, when the load on the automatic program generation processing of the own computer is high, the given program automatic generation processing request data is not processed by the own computer Since the processing can be transmitted and the processing can be requested, there is an effect that in a computer network including a plurality of computers having an automatic program generation mechanism, the load applied to the automatic program generation processing can be automatically distributed.

【0050】また、他の計算機に処理を依頼する際にプ
ログラム自動生成処理依頼データの依頼者リストに自プ
ログラム生成機構の識別子を付加し、処理を受け付ける
か否かを判定する際に依頼者リストを参照し、若しその
中に自プログラム生成機構の識別子が含まれていれば、
自計算機のプログラム自動生成処理にかかる負荷が小さ
くない場合であってもそのプログラム自動生成処理依頼
データを受け付けるようにしたので、負荷が大きかった
ことから他の計算機に処理を依頼したが他の計算機の負
荷も大きいことからまわりまわって自計算機に戻ってき
たようなプログラム自動生成処理依頼データについての
受け付けが可能となり、プログラム自動生成処理依頼デ
ータが計算機ネットワーク上をたらいまわしにされるこ
とを防止できる。
Further, when requesting a process to another computer, the identifier of the own program generating mechanism is added to the requester list of the program automatic generation process request data, and the requester list is used when it is judged whether or not to accept the process. , And if it contains the identifier of the self-program generation mechanism,
Even if the load on the program automatic generation processing of the own computer is not small, the program automatic generation processing request data is accepted, so the processing was requested to another computer because the load was large, but the other computer It is possible to accept the program automatic generation processing request data that has come around to the own computer due to the large load of, and it is possible to prevent the program automatic generation processing request data from being scattered around the computer network. ..

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

【図1】本発明のプログラム自動生成分散方式の一実施
例を適用した計算機のブロック図である。
FIG. 1 is a block diagram of a computer to which an embodiment of a program automatic generation and distribution system of the present invention is applied.

【図2】処理待ち合わせ手段の動作を説明するフローチ
ャートである。
FIG. 2 is a flowchart illustrating an operation of a process waiting unit.

【図3】処理受け付け判定手段の動作を説明するフロー
チャートである。
FIG. 3 is a flowchart illustrating an operation of a process acceptance determination unit.

【図4】自動生成手段の動作を説明するフローチャート
である。
FIG. 4 is a flowchart illustrating an operation of automatic generation means.

【図5】処理依頼手段の動作を説明するフローチャート
である。
FIG. 5 is a flowchart illustrating an operation of a processing requesting unit.

【図6】本発明のプログラム自動生成分散方式を適用し
た計算機ネットワークの一例を示すブロック図である。
FIG. 6 is a block diagram showing an example of a computer network to which the automatic program generation / distribution method of the present invention is applied.

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

100…計算機 101…記憶手段 102…キュー 103…生成カウンタ 104…処理待ち合わせ手段 105…処理受け付け判定手段 106…自動生成手段 107…処理依頼手段 H1〜H4…ホストコンピュータ 601〜604…プログラム自動生成機構 605…クライアント 100 ... Calculator 101 ... Storage Means 102 ... Queue 103 ... Generation Counter 104 ... Processing Waiting Means 105 ... Processing Acceptance Judging Means 106 ... Automatic Generation Means 107 ... Processing Request Means H1 to H4 ... Host Computers 601 to 604 ... Automatic Program Generation Mechanism 605 …client

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 プログラム自動生成処理依頼データに基
づきプログラムを自動生成するプログラム自動生成機構
を備えた計算機において、 受け取ったプログラム自動生成処理依頼データを保存す
るキューからプログラム自動生成処理依頼データを取り
出す処理待ち合わせ手段と、 該処理待ち合わせ手段からプログラム自動生成処理依頼
データを受け取り、生成カウンタを参照してそのプログ
ラム自動生成処理依頼データによるプログラム自動生成
処理依頼を受け付けるか否かを判定する処理受け付け判
定手段と、 該処理受け付け判定手段により処理を受け付けると判定
されることにより、前記生成カウンタをインクリメント
し、前記処理を受け付けられたプログラム自動生成処理
依頼データを用いてプログラムを自動生成し、自動生成
終了時に前記生成カウンタをデクリメントする自動生成
手段と、 前記処理受け付け判定手段により処理を受け付けないと
判定されることにより、プログラム自動生成機構を備え
る他の計算機に対し前記処理を受け付けられなかったプ
ログラム自動生成処理依頼データを送ってプログラム自
動生成処理を依頼する処理依頼手段とを有することを特
徴とするプログラム自動生成分散方式。
1. A process for extracting program automatic generation processing request data from a queue for storing received program automatic generation processing request data in a computer equipped with a program automatic generation mechanism for automatically generating a program based on program automatic generation processing request data. Queuing means, processing acceptance determining means for receiving the program automatic generation processing request data from the processing queuing means, and determining whether or not to accept the program automatic generation processing request by the program automatic generation processing request data by referring to the generation counter When the process acceptance determining unit determines that the process is accepted, the generation counter is incremented, and the program is automatically generated using the program automatic generation process request data for which the process is accepted, and when the automatic generation ends. An automatic generation unit that decrements the generation counter, and a program automatic generation that cannot accept the process to another computer having a program automatic generation mechanism because the process acceptance determination unit determines that the process is not accepted. An automatic program generation and distribution method, comprising: a processing request unit that sends processing request data and requests automatic program generation processing.
【請求項2】 プログラム自動生成処理依頼データに基
づきプログラムを自動生成するプログラム自動生成機構
を備えた計算機が通信媒体を介して複数接続された計算
機ネットワークにおいて、 各計算機のプログラム自動生成機構に、 受け取ったプログラム自動生成処理依頼データを保存す
るキューからプログラム自動生成処理依頼データを取り
出す処理待ち合わせ手段と、 該処理待ち合わせ手段からプログラム自動生成処理依頼
データを受け取り、そのプログラム自動生成処理依頼デ
ータに付加された依頼者リストおよび生成カウンタを参
照して、そのプログラム自動生成処理依頼データによる
プログラム自動生成処理依頼を受け付けるか否かを判定
する処理受け付け判定手段と、 該処理受け付け判定手段により処理を受け付けると判定
されることにより、前記生成カウンタをインクリメント
し、前記処理を受け付けられたプログラム自動生成処理
依頼データを用いてプログラムを自動生成し、自動生成
終了時に前記生成カウンタをデクリメントする自動生成
手段と、 前記処理受け付け判定手段により処理を受け付けないと
判定されることにより、プログラム自動生成機構を備え
る他の計算機に対し前記処理を受け付けられなかったプ
ログラム自動生成処理依頼データを、その依頼者リスト
に自プログラム自動生成機構の識別子を付加して送信
し、プログラム自動生成処理を依頼する処理依頼手段と
を備えることを特徴とするプログラム自動生成分散方
式。
2. In a computer network in which a plurality of computers having an automatic program generation mechanism for automatically generating a program based on program automatic generation processing request data are connected via a communication medium, the automatic program generation mechanism of each computer receives The processing queuing means for taking out the program automatic generation processing request data from the queue for storing the program automatic generation processing request data and the program automatic generation processing request data received from the processing queuing means, and added to the program automatic generation processing request data A process acceptance determination unit that determines whether or not to accept a program automatic generation process request based on the program automatic generation process request data by referring to the requester list and the generation counter, and a process acceptance determination unit that determines that the process is accepted The generation counter is incremented to automatically generate a program using the program automatic generation processing request data for which the processing is accepted, and the generation counter is decremented when the automatic generation ends, and the processing acceptance When the determination unit determines that the process is not accepted, the program automatic generation process request data for which the process is not accepted to another computer having the program automatic generation mechanism is added to the requester list in its own program automatic generation mechanism. And a process requesting means for requesting the program automatic generation process.
JP23878191A 1991-08-26 1991-08-26 Distribution system for automatic program generation Pending JPH0553779A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23878191A JPH0553779A (en) 1991-08-26 1991-08-26 Distribution system for automatic program generation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23878191A JPH0553779A (en) 1991-08-26 1991-08-26 Distribution system for automatic program generation

Publications (1)

Publication Number Publication Date
JPH0553779A true JPH0553779A (en) 1993-03-05

Family

ID=17035186

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23878191A Pending JPH0553779A (en) 1991-08-26 1991-08-26 Distribution system for automatic program generation

Country Status (1)

Country Link
JP (1) JPH0553779A (en)

Similar Documents

Publication Publication Date Title
US7076781B2 (en) Resource reservation for large-scale job scheduling
US5987502A (en) Workload management in an asynchronous client/server computer system
US8621031B2 (en) Method and apparatus using connection pools in communication networks
US7272834B2 (en) Method for continuous I/O request processing in an asynchronous environment
JPH10500509A (en) Event distribution apparatus and method in operating system
JP2004038758A (en) Storage control device, control method for storage control device, and program
US6038664A (en) Method for selecting communication access method for local area networks
US7467387B2 (en) Method for off-loading user queries to a task manager
EP1450256B1 (en) Inter-task communications method, program, recording medium, and electronic device
US20030229725A1 (en) System and method for triggering message queue applications
JP2008544371A (en) How to handle lock-related inconsistencies
WO2010104911A1 (en) Synchronized relay messaging and coordinated network processing using snmp
JPH076110A (en) Communication overhead reduction method for distributed processing system
JP2829908B2 (en) Server program execution control method
JP3266641B2 (en) Control device and mail server
JPH09274583A (en) Managing information storage device
JPH06266643A (en) Server program management method
US20060190639A1 (en) Automatic adjustment of time a consumer waits to access data from a queue during a waiting phase and transmission phase at the queue
JP3544140B2 (en) Exclusive control method in distributed object environment
CN119276807B (en) A network detection system and method
CN115712507B (en) Method for calculating task priority of ship gateway
JPH1165912A (en) Parallel processing database system
JP2000148639A (en) Data transmission control method and recording medium recording data transmission control program
US8392546B2 (en) Distributed managed system, system components, and methods of communicating commands
JP2877028B2 (en) Print job control method