JP2887488B2 - Multi-process processing equipment - Google Patents

Multi-process processing equipment

Info

Publication number
JP2887488B2
JP2887488B2 JP1250734A JP25073489A JP2887488B2 JP 2887488 B2 JP2887488 B2 JP 2887488B2 JP 1250734 A JP1250734 A JP 1250734A JP 25073489 A JP25073489 A JP 25073489A JP 2887488 B2 JP2887488 B2 JP 2887488B2
Authority
JP
Japan
Prior art keywords
file
change
processing
executed
update
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.)
Expired - Lifetime
Application number
JP1250734A
Other languages
Japanese (ja)
Other versions
JPH03113540A (en
Inventor
健一 日比野
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.)
KASHIO KEISANKI KK
Original Assignee
KASHIO KEISANKI KK
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 KASHIO KEISANKI KK filed Critical KASHIO KEISANKI KK
Priority to JP1250734A priority Critical patent/JP2887488B2/en
Publication of JPH03113540A publication Critical patent/JPH03113540A/en
Application granted granted Critical
Publication of JP2887488B2 publication Critical patent/JP2887488B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、ファイルに対する各種プロセスをを同時
並行的に実行するマルチプロセス処理装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multi-processing apparatus that executes various processes on a file simultaneously and in parallel.

[概 要] この発明は、上記のようなマルチプロセス処理装置に
おいて、或るファイルに対して或るプロセスが実行され
ている最中に、当該プロセス実行中のファイルに対して
他のプロセスによる書替等の変更があった場合、この事
実を元のプロセスに通知し、ファイル変更に対処する所
定の処理を実行させることにより、プロセス実行中のフ
ァイルに対して随時別のプロセスにより書替等の変更処
理を行えるようにしたものである。
[Summary] The present invention provides a multi-process processing apparatus as described above, in which a certain file is being executed by another process while a certain process is being executed on the file. When there is a change, such as file change, the fact is notified to the original process, and by executing a predetermined process corresponding to the file change, the file being processed is rewritten by another process at any time. The change processing can be performed.

[従来の技術] 従来、ファイルに対する各種プロセスを同時並行的に
実行するマルチプロセス処理装置が実現されている。
2. Description of the Related Art Conventionally, a multi-process processing device that executes various processes on a file simultaneously and in parallel has been realized.

この装置では、或るプロセスが実行されている最中の
ファイルに対し、順次切替えられて同時並行的に実行し
ている別のプロセスが変更処理を行うと、該ファイル変
更前のファイル内容に基づいて処理実行を行ったプロセ
スによる処理結果に矛盾を来す等の弊害が生ずるため、
プロセス実行中のファイルの全て、或いはそのファイル
の一部に対する別のプロセスによる変更処理は禁止され
ていた。
In this apparatus, when a process in which a certain process is being executed is changed by another process which is sequentially switched and concurrently executed, the file is updated based on the file contents before the file change. Adverse effects such as inconsistency in the processing results of the process that performed the processing
Alteration of all or part of the file during the execution of the process by another process has been prohibited.

[発明が解決しようとする課題] 従って、処理の迅速化が図れるというマルチプロセス
処理装置の長所が十分には生かされていなかった。
[Problems to be Solved by the Invention] Therefore, the advantage of the multi-process processing apparatus that the processing can be speeded up has not been fully utilized.

これは、実行中の各プロセスは、互いに独自に自己の
プロセスを実行するだけで、同一ファイルに対する他の
プロセスによる変更処理を互いに知ることができず、そ
の変更に対処する処理を実行できないことに起因する。
This is because each running process can only execute its own process independently of each other, cannot know each other's process of changing the same file by another process, and cannot execute the process corresponding to the change. to cause.

してみれば、プロセス実行中のファイルに対して変更
処理を実行したときは、その旨を同時実行中の他のプロ
セスに通知して変更処理に対処する処理を実行させるこ
とが出来れば、プロセス実行中のファイルに対する別の
プロセスによる変更処理も同時並行的に実行できること
は明らかである。
Then, if a change process is performed on a file that is executing a process, if the process can be notified to other processes that are simultaneously executing and the process that handles the change process can be executed, Obviously, the modification of the running file by another process can be performed concurrently.

この発明の課題は、或るプロセスが実行されている最
中のファイルに対し、そのプロセスと同時並行的に実行
している別のプロセスによりファイル変更がなされた
際、その変更に対処する処理を該変更処理前のファイル
内容に基づいて処理実行を行ったプロセスが行えるよう
にすることである。
An object of the present invention is to provide a process for coping with a change in a file in which a certain process is being executed by another process executing concurrently with the process when the file is changed. The object of the present invention is to enable a process that has performed processing based on the file contents before the change processing.

[課題を解決するための手段] この発明の手段は次の通りである。[Means for Solving the Problems] The means of the present invention are as follows.

この装置は、複数のプロセスを順次切替えて同時並行
的に処理するものであり、 第1の記憶手段a(第1図の機能ブロック図を参照、
以下同じ)は、複数のファイルを記憶する。
This apparatus switches a plurality of processes sequentially and processes them concurrently in parallel. The first storage means a (see the functional block diagram of FIG. 1,
Hereinafter the same) stores a plurality of files.

第2の記憶手段bは、第1の記憶手段a内のファイル
が更新されたされた際に、ファイル更新前に行った処理
に対してファイル更新内容を基にした再実行を要求する
プロセス情報をファイル夫々に対応付けて記憶する。
The second storage means b includes, when a file in the first storage means a is updated, process information for requesting re-execution based on the file update content for processing performed before the file update. Is stored in association with each file.

検索手段cは、実行中のプロセスが処理対象ファイル
に対してファイル更新を行った際、該プロセスの実行を
中断させ、第2の記憶手段b上で当該更新に係わるファ
イルに対応するプロセス情報を検索する。
When the executing process updates the file to be processed by the executing process, the searching unit c suspends the execution of the process, and stores the process information corresponding to the file related to the update on the second storage unit b. Search for.

プロセス切替手段dは、検索手段cによりプロセス情
報が検索された場合には、検索された全てのプロセス情
報に対応するプロセスに順次切替えて、上記ファイル更
新内容を基にした処理を実行させ、全ての更新対処対象
プロセスの処理終了によりファイル更新を行ったプロセ
スの実行を再開させる。
When the process information is retrieved by the retrieval device c, the process switching device d sequentially switches to a process corresponding to all the retrieved process information, and executes a process based on the file update content. When the process of the process to be updated is completed, the process of updating the file is restarted.

[作用] この発明の手段の作用は次の通りである。[Operation] The operation of the means of the present invention is as follows.

今、第1の記憶手段aは、ファイルFAを含む複数のフ
ァイルを記憶しており、第2の記憶手段bは、第1の記
憶手段a内のファイルFAについて、そのファイルAFの変
更の際にその変更に対処する処理を要求するプロセスと
して、検索プロセスPAを記憶している状態で、検索プロ
セスPAによるファイルFAの検索処理と、書替プロセスPB
による任意ファイルに対する書替処理が所定タイミング
で交互に実行されているものとする。
Now, the first storage means a stores a plurality of files including the file FA, and the second storage means b stores the file FA in the first storage means a when the file AF is changed. In the state where the search process PA is stored, the search process of the file FA by the search process PA and the rewriting process PB
Is performed alternately at a predetermined timing.

このような状況の下で、書替プロセスPBによりファイ
ルFAの書替えが実行されたとすると、検索手段cは、書
替えに係るファイルFAに対応するプロセスを第2の記憶
手段b上で検索する。この例では、上記のように、ファ
イルFAに対応するプロセスとして検索プロセスPAが記憶
されているので、この検索プロセスPAが検索される。
In such a situation, if the rewriting of the file FA is executed by the rewriting process PB, the search means c searches the second storage means b for a process corresponding to the file FA to be rewritten. In this example, as described above, since the search process PA is stored as a process corresponding to the file FA, the search process PA is searched.

そこで、プロセス切替手段dは、検索された検索プロ
セスPAに切替えて上記ファイル変更に対応する例えば検
索のやり直し等のファイル変更に対処するための所定の
処理を実行させる。
Therefore, the process switching unit d switches to the searched search process PA and executes a predetermined process for coping with the file change corresponding to the file change, for example, retrying the search.

従って、或るプロセスが実行されている最中のファイ
ルに対し、そのプロセスと同時並行的に実行している別
のプロセスによりファイル変更がなされた際、その変更
内容に対処する処理を変更前のファイル内容に基づいて
実行を行ったプロセスが行える。
Therefore, when a file is changed during execution of a certain process by another process that is executing concurrently with the process, a process for coping with the change is performed before the change. You can execute the process based on the file contents.

[実施例] 以下、一実施例を第2図ないし第5図を参照しながら
説明する。
Embodiment An embodiment will be described below with reference to FIGS. 2 to 5.

第2図は、マルチプロセス処理装置のブロック構成図
であり、CPU1、キー入力部2、RAM3、ハードディスク
4、ディスクコントローラ5、表示バッファ6、及び表
示部7を有している。
FIG. 2 is a block diagram of the multi-process processing apparatus, which includes a CPU 1, a key input unit 2, a RAM 3, a hard disk 4, a disk controller 5, a display buffer 6, and a display unit 7.

CPU1は、ハードディスク4からRAM3上にロードしたプ
ログラムに従って、キー入力部2からのデータをファイ
ル処理し、その処理結果等を表示バッファ6に転送して
表示部7に表示させ、ディスクコントローラ5を介して
ハードディスク4に保存させる等の各種処理を制御す
る。
The CPU 1 performs file processing on the data from the key input unit 2 according to the program loaded from the hard disk 4 onto the RAM 3, transfers the processing result and the like to the display buffer 6 and causes the display unit 7 to display the processing result and the like. To control various processes such as storing the data in the hard disk 4.

また、CPU1は、レコード更新、レコード追加、レコー
ド削除等のファイル変更やファイル検索など、ファイル
処理における各種プロセスを、同一ファイル或いは別フ
ァイルに対して同時並行的に実行する。すなわち、マル
チプロセス処理を行う。
Further, the CPU 1 executes various processes in file processing, such as file change such as record update, record addition, and record deletion, and file search, on the same file or another file simultaneously and in parallel. That is, multi-process processing is performed.

RAM3は、第3図に示したように、CPUが活用するCPUワ
ークエリアEa、プロセスNo.1用のプログラムが格納され
たプロセスNo.1エリアEb、プロセス1を実行する際に活
用されるプロセスNo.1ワークエリアEc、プロセスNo.2用
のプログラムが格納されたプロセスNo.2エリアEd、プロ
セスNo.2を実行する際に活用されるプロセスNo.2ワーク
エリアEe等のエリアが形成されている。
As shown in FIG. 3, the RAM 3 includes a CPU work area Ea used by the CPU, a process No. 1 area Eb in which a program for the process No. 1 is stored, and a process used when executing the process 1. Areas such as No.1 work area Ec, process No.2 area Ed where the program for process No.2 is stored, and process No.2 work area Ee used when executing process No.2 are formed. ing.

すなわち、複数のプロセス用のプログラムのエリア
と、これらプロセスに対応するワークエリアとが組みと
なって形成されている。
In other words, a program area for a plurality of processes and work areas corresponding to these processes are formed as a set.

なお、プロセス用のプログラムのうちの幾つかには、
そのプロセスの処理を実行中のファイルに対して別のプ
ロセスによりファイル変更処理がなされた場合に、その
対処処理を行うための変更対処処理サブルーチンが含ま
れている。なお、この変更対処処理サブルーチンの最後
には、当該変更対処処理からの復帰命令を有している。
Some of the process programs include:
A change handling subroutine for performing a handling process when another process performs a file changing process on a file in which the process of the process is being executed is included. At the end of the change handling process subroutine, a return instruction from the change handling process is provided.

また、CPUワークエリアEaには、変更通知要求テーブ
ルTが設定される。この変更通知要求テーブルTは、第
4図に示したように、ファイルNo.と、プロセスNo.と、
変更対処理サブルーチンの先頭アドレスとを対応して登
録するものであり、この登録処理はプロセス用のプログ
ラムにより自動的に実行される。ここで、ファイルNo.
とプロセスNo.と変更対処理サブルーチンとの関係は、
当該プロセスNo.のプロセスが当該ファイルNo.のファイ
ルに対して実行されている最中に、別のプロセスにより
ファイル変更がされた際、当該プロセスNo.のプロセス
は、自己の持つ変更対処理サブルーチンに基づいて、変
更対処処理を割込み処理により実行する関係にある。
Further, a change notification request table T is set in the CPU work area Ea. As shown in FIG. 4, the change notification request table T includes a file number, a process number,
The start address of the change pair processing subroutine is registered correspondingly, and this registration processing is automatically executed by a process program. Here, file No.
The relationship between the process No. and the change versus processing subroutine is
When a file is changed by another process while the process of the process No. is being executed on the file of the file No., the process of the process No. , The change handling process is executed by an interrupt process.

なお、変更通知要求テーブルTには、1つのファイル
No.と対応して複数のプロセスNo.及び変更対処理サブル
ーチンが登録される場合もある。
The change notification request table T has one file.
In some cases, a plurality of process numbers and change pair processing subroutines are registered in correspondence with the number.

ハードディスク4には、各種プロセス用のプログラム
や、複数のファイルが格納されており、このハードディ
スク4に対する直接の入出力は、ディスクコントローラ
5の制御の下に実行される。
The hard disk 4 stores programs for various processes and a plurality of files. Direct input / output to / from the hard disk 4 is executed under the control of the disk controller 5.

なお、プロセスは、実行対象のファイルを対応のワー
クエリアにロードしてファイル処理を実行するプロセス
と、ハードディスク4上でファイル処理を実行するプロ
セスとがある。また、CPU1は、マルチプロセス処理を実
行する際、プロセスNo.レジスタPN、プログラムカウン
タPC、ステータスレジスタST、ファイルNo.レジスタFN
等を活用する 次に、第5図を参照しながら実施例のマルチプロセス
処理を説明するが、第5図のフローチャートでは、前の
ステップの意義は、後のステップを説明した後でないと
理解し難いので、各ステップを先頭から順に説明した後
に、実際の処理の流れに添った説明を行う。
The processes include a process of loading a file to be executed into a corresponding work area and executing a file process, and a process of executing a file process on the hard disk 4. When executing the multi-process, the CPU 1 executes the process number register PN, the program counter PC, the status register ST, and the file number register FN.
Next, the multi-process processing of the embodiment will be described with reference to FIG. 5, but in the flowchart of FIG. 5, it is understood that the meaning of the previous step is not after the latter step is described. Since it is difficult, each step will be described in order from the top, and then a description will be given along with the flow of actual processing.

CPU1は、まず、プロセスNo.1レジスタPNに“1"、プロ
グラムカウンタPCにプロセスNo.1の先頭アドレス、ステ
ータレジスタSTに“通常”を夫々初期設定する(ステッ
プS1)。
First, the CPU 1 initializes the process No. 1 register PN to "1", the program counter PC to the start address of the process No. 1, and the status register ST to "normal" (step S1).

次に、プログラムカウンタPCのお示すアドレスから命
令をフェッチし、プログラムカウンタPC内のアドレスを
プラス1する(ステップS2)。そして、フェッチした命
令が、レコード更新、レコード追加、レコード削除等の
ファイル変更命令であるか否かを判断する(ステップS
3)。その結果、ファイル変更命令でないときは、フェ
ッチした命令が、変更通知要求テーブルTへの登録命令
であるか否かを判断する(ステップS4)。その結果、登
録命令でないときは、さらに、フェッチした命令が、変
更対処処理サブルーチンからの復帰命令であるか否かを
判断する(ステップS5)。その結果、復帰命令でないと
きは、フェッチした命令を実行する(ステップS6)。す
なわち、ファイル変更命令、変更通知要求テーブルTへ
の登録命令、復帰命令以外の命令は、全てステップS6に
て実行される。
Next, an instruction is fetched from the address indicated by the program counter PC, and the address in the program counter PC is incremented by one (step S2). Then, it is determined whether or not the fetched instruction is a file change instruction such as a record update, a record addition, and a record deletion (step S).
3). As a result, if it is not a file change instruction, it is determined whether or not the fetched instruction is an instruction to be registered in the change notification request table T (step S4). If the instruction is not a registered instruction, it is further determined whether the fetched instruction is a return instruction from the change handling subroutine (step S5). As a result, if it is not a return instruction, the fetched instruction is executed (step S6). That is, all commands other than the file change command, the command to register in the change notification request table T, and the return command are executed in step S6.

次に、ステータスレジスタSTの内容が“通常”であ
り、かつ、前回のプロセス切替えから所定時間以上経過
した等のプロセス切替えの要因が有るか否かを判断し
(ステップS7)、プロセス切替えの要因が無ければ、そ
のままステップS2に戻る。一方、プロセス切替えの要因
が有れば、現在のプログラムNo.レジスタPN、プログラ
ムカウンタPC等の各種レジスタの内容をCPUワークエリ
アEaに退避し、切替えに係るプロセスのプロセスNo.を
プロセスNo.レジスタPNに新たにセットし、その切替え
に係るプロセスにて次に実行すべき命令のアドレス(こ
のアドレスは先頭アドレス、または、退避されていたア
ドレスである)をプログラムカウンタPCにセット、又は
復帰する、各種レジスタ類を復帰する等のプロセス切替
前処理を行って(ステップS8)、ステップS2に戻る。
Next, it is determined whether or not the content of the status register ST is "normal" and there is a process switching factor such as a lapse of a predetermined time or more from the previous process switching (step S7). If not, the process returns to step S2. On the other hand, if there is a process switching factor, the contents of various registers such as the current program number register PN and the program counter PC are saved in the CPU work area Ea, and the process number of the process related to the switching is set in the process number register. PN is newly set, and the address of the next instruction to be executed in the process related to the switching (this address is the start address or the saved address) is set or restored in the program counter PC. Pre-process switching processing such as restoring various registers is performed (step S8), and the process returns to step S2.

ステップS3にて、ファイル変更命令だと判断されたと
きは、ステップS9に進み、ステータスレジスタSTの内容
が“変更対処”であるか否かを判断する。その結果、
“変更対処”ではなく“通常”であれば、ファイルNo.
レジスタFNに、命令に係る変更対象ファイルのファイル
No.をセットして、そのファイルに対する変更処理を実
行する(ステップS10)。
If it is determined in step S3 that the instruction is a file change instruction, the flow advances to step S9 to determine whether or not the contents of the status register ST are "change handling". as a result,
If it is “Normal” instead of “Troubleshooting”, file number
In the register FN, the file of the file to be changed related to the instruction
No. is set, and a change process is executed for the file (step S10).

そして、変更通知要求テーブルTにファイルNo.レジ
スタFN内のファイルNo.が登録されているか否かを判断
し(ステップS11)、登録されていなければ、そのまま
ステップS2に戻る。
Then, it is determined whether or not the file number in the file number register FN is registered in the change notification request table T (step S11). If not, the process returns to step S2.

一方、登録されているときは、ステップS10でのファ
イル変更処理に対処するための対処処理を、後述のプロ
セスに割込みで実行させるための前処理として、先ず、
現在のプログラムNo.レジスタPN、プログラムカウンタP
C等の各種レジスタを退避する(ステップS12)。
On the other hand, when it is registered, first, as a pre-process for causing a process to be described below to be executed by interruption, a coping process for coping with the file change process in step S10 is firstly performed.
Current program number register PN, program counter P
Save various registers such as C (step S12).

そして、変更通知要求テーブルT内の上記ファイルN
o.に対応するプロセスNo.をプロセスNo.レジスタPNにセ
ットし、対応の変更対処処理ルーチンの先頭アドレスを
プログラムカウンタPCにセットすると共に、ステータス
レジスタSTに“変更対処”をセットし(ステップS1
3)、ステップS2に戻る。
Then, the file N in the change notification request table T
The process No. corresponding to o. is set in the process No. register PN, the start address of the corresponding change handling routine is set in the program counter PC, and "change handling" is set in the status register ST (step S1).
3) Return to step S2.

なお、ステップS9にて、ステータスレジスタSTの内容
が“変更対処”であると判断されたときは、エラーとな
る。
Note that if it is determined in step S9 that the content of the status register ST is “change handling”, an error occurs.

ステップS4にて、変更通知要求の登録命令であると判
断されたときは、ステータスレジスタSTの内容が“通
常”であるか否かを判断する(ステップS14)。その結
果、“通常”であれば、登録命令に従って変更通知要求
テーブルTへの登録処理を実行して(ステップS15)、
ステップS2に戻る。“通常”でなければ、エラー処理を
行う。
When it is determined in step S4 that the instruction is a change notification request registration instruction, it is determined whether or not the content of the status register ST is "normal" (step S14). As a result, if it is “normal”, a registration process to the change notification request table T is executed according to the registration command (step S15),
It returns to step S2. If not "normal", error processing is performed.

ステップS5にて、変更対処処理ルーチンからの復帰命
令であると判断されたときは、ステータスレジスタSTの
内容が“変更対処”であるか否かを判断する(ステップ
S16)。その結果、“更時対処”であれば、変更通知要
求テーブルTに、変更に係るファイルのファイルNo.と
対応する別のプロセスNo.がまだ存在するか否かを判断
する(ステップS17)。その結果、まだ存在するとき
は、ステップS13に戻って、そのプロセスNo.をプロセス
No.レジスタPNに新たにセットし、対応のルーチンの先
頭アドレスをプログラムカウンタPCに新たにセットす
る。なお、このときは、ステータスレジスタST内の内容
である“変更対処”は、そのまま保持する。
If it is determined in step S5 that the instruction is a return instruction from the change handling processing routine, it is determined whether or not the contents of the status register ST are “change handling” (step S5).
S16). As a result, if the response is “late-time response”, it is determined whether or not another process number corresponding to the file number of the file related to the change still exists in the change notification request table T (step S17). As a result, if it still exists, the process returns to step S13, and the process No.
No. Register PN is newly set, and the start address of the corresponding routine is newly set in the program counter PC. At this time, the content in the status register ST, that is, "change handling" is held as it is.

一方、別のプロセスNo.が存在しないときは、退避し
たプログラムNo.レジスタPN、プログラムカウンタPC等
の各種レジスタを復帰させ、ステータスレジスタSTに
“通常”をセットして(ステップS18)、ステップS2に
戻る。なお、ステップS16にて、“通常”であると判断
されたときは、エラー処理を行う。
On the other hand, if there is no other process No., the various registers such as the saved program No. register PN and program counter PC are restored, and “normal” is set in the status register ST (step S18), and step S2 Return to When it is determined in step S16 that the status is "normal", an error process is performed.

次に、実際の処理の流れに添って説明する。 Next, a description will be given along an actual processing flow.

変更通知要求テーブルTへの登録を欲する各プロセス
は、電源投入、或いは1組のマルチプロセス処理の起動
がかけられる毎に、その都度、変更通知要求テーブルT
への登録を行うが、この登録命令は、各プロセスの先頭
アドレスに位置付けられており、登録を欲する各プロセ
スは、この登録を最初に行う。すなわち、最初は、ステ
ップS1→S2→S3→S4→S14→S15のルートにより、テーブ
ル登録が行われる。
Each process that wants to be registered in the change notification request table T, every time the power is turned on or the start of a set of multi-process processing is performed, every time the process is changed.
The registration instruction is positioned at the start address of each process, and each process that wants to register performs this registration first. That is, first, table registration is performed through the route of steps S1, S2, S3, S4, S14, and S15.

そして、一定時間以上経過等のプロセス切替え要因が
発生するまで、ステップS2→S3→S4→S5→S6→S7→S2…
のサイクルにより、同一の或るプロセスが継続的に実行
され、プロセス切替え要因が発生したときには、ステッ
プS8にてプロセス切替前処理を実行してステップS2に戻
ることにより、そのプロセスが、次の切替え要因発生ま
で継続的に実行される。
Steps S2 → S3 → S4 → S5 → S6 → S7 → S2 ...
When the same certain process is continuously executed by the cycle described above and a process switching factor occurs, the process is switched to the next switching process by executing the process switching pre-processing in step S8 and returning to step S2. It is continuously executed until a factor occurs.

この際、或るプロセスでファイル変更が行われる場合
には、ステップS3を経由して、ステップS9以降に進む。
すなわち、ステップS10にて命令に基づくファイル変更
を実行し、その変更に係るファイルのファイルNo.がテ
ーブルTに登録されているときは、ステップS11→S12→
S13のルートを通ってステップS2に戻ることにより、変
更ファイルと対応して登録されているプロセスは、当該
ファイル変更に対処するための所定の対処処理を、変更
対処処理サブルーチンに基づいて実行する。この対処処
理は、割込み処理により行われる。
At this time, if the file is changed in a certain process, the process proceeds to step S9 and subsequent steps via step S3.
That is, in step S10, a file change based on the command is executed, and when the file number of the file related to the change is registered in the table T, the steps S11 → S12 →
By returning to step S2 through the route of S13, the process registered corresponding to the changed file executes a predetermined countermeasure process for coping with the file change based on a change coping process subroutine. This coping process is performed by an interrupt process.

このとき、上記ファイルNo.と対応して複数のプロセ
スNo.が登録されておれば、ステップS5→S16→S17→S13
のルートを通ってステップS2に戻ることにより、これら
のプロセスも同様に、ステップS10でのファイル変更に
対処するための対処処理を割込みにより実行する。
At this time, if a plurality of process numbers are registered corresponding to the above file numbers, steps S5 → S16 → S17 → S13
By returning to step S2 through the route of the above, these processes similarly execute the processing for coping with the file change in step S10 by interruption.

このように、プロセス実行中のファイルに対して、同
時並行的に実行中の他のプロセスによる変更があった場
合には、変更処理前のファイル内容に基づいて実行を行
ったプロセス等は、そのファイル変更に対処する所定の
処理を割込みにより実行している。
As described above, when a file being executed is changed by another process being executed concurrently and concurrently, the process that has executed based on the contents of the file before the change processing is executed. A predetermined process corresponding to a file change is executed by interruption.

[発明の効果] この発明によれば、或るプロセスが実行されている最
中のファイルに対し、そのプロセスと同時並行的に実行
している別のプロセスによりファイル変更がなされた
際、その変更に対処する処理を変更処理前のファイル内
容に基づいて実行を行ったプロセスが行えるようにな
り、プロセス実行中のファイルに対する別のプロセスに
よる変更処理も同時並行的に実行できるので、処理の迅
速化を図ることが可能となる。
[Effects of the Invention] According to the present invention, when a file is changed during execution of a certain process by another process executing concurrently with the process, the change is performed. The process that executed the process based on the contents of the file before the change process can be performed, and the change process of the file being executed by another process can be executed simultaneously and in parallel, so that the process is speeded up Can be achieved.

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

第1図はこの発明の機能ブロック図、第2図は実施例の
ブロック構成図、第3図はRAMのデータ内容を示す図、
第4図は変更通知要求テーブルのデータ内容を示す図、
第5図は実施例のマルチプロセス処理を示すフローチャ
ートである。 1……CPU、3……RAM、4……ハードディスク、T……
変更要求通知テーブル。
1 is a functional block diagram of the present invention, FIG. 2 is a block diagram of an embodiment, FIG. 3 is a diagram showing data contents of a RAM,
FIG. 4 is a diagram showing data contents of a change notification request table;
FIG. 5 is a flowchart showing the multi-process processing of the embodiment. 1 ... CPU, 3 ... RAM, 4 ... Hard disk, T ...
Change request notification table.

フロントページの続き (56)参考文献 特開 昭63−289657(JP,A) 特開 平1−166124(JP,A) 特開 昭61−95450(JP,A) 特開 平2−202674(JP,A) 特開 昭63−146134(JP,A) JEFFREY D.ULLMAN. 著,国井利泰,大保信夫・共訳,「デー タベース・システムの原理」,日本コン ピュータ協会・発行(昭和60年・初 版),P.486〜492 (58)調査した分野(Int.Cl.6,DB名) G06F 9/46,11/14,12/00 G06F 15/00,17/30 Continuation of front page (56) References JP-A-63-289657 (JP, A) JP-A-1-166124 (JP, A) JP-A-61-95450 (JP, A) JP-A-2-2022674 (JP, A) , A) JP-A-63-146134 (JP, A) JEFFREY D .; ULMAN., Toshiyasu Kunii, Nobuo Ohbo, co-translation, "Database System Principles", Japan Computer Association, published (1985, first edition), p. 486-492 (58) Field surveyed (Int.Cl. 6 , DB name) G06F 9 / 46,11 / 14,12 / 00 G06F 15 / 00,17 / 30

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数のプロセスを順次切替えて同時並行的
に処理するマルチプロセス処理装置において、 複数のファイルを記憶する第1の記憶手段と、 この第1の記憶手段内のファイルが更新された際に、フ
ァイル更新前に実行を行った処理に対してファイル更新
内容を基にした再実行を要求するプロセス情報をファイ
ル夫々に対応付けて記憶する第2の記憶手段と、 実行中プロセスが処理対象ファイルに対してファイル更
新を行った際、該プロセスの実行を中断させ、上記第2
の記憶手段上で当該更新に係わるファイルに対応するプ
ロセス情報を検索する検索手段と、 この検索手段により対応するプロセス情報が検索された
場合には、検索された全てのプロセス情報に対応するプ
ロセスに順次切替えて、上記ファイル更新内容を基にし
た処理を実行させ、全ての更新対処対象プロセスの処理
終了によりファイル更新を行ったプロセスの実行を再開
させるプロセス切替手段と、 を備えることを特徴とするマルチプロセス処理装置。
1. A multi-process processing apparatus for sequentially switching a plurality of processes and processing them concurrently in parallel, a first storage means for storing a plurality of files, and a file in the first storage means is updated. At this time, a second storage means for storing, in association with each file, process information for requesting re-execution based on the file update content for a process executed before the file update, When the file is updated for the target file, the execution of the process is interrupted, and the second
Searching means for searching the process information corresponding to the file related to the update on the storage means, and, when the corresponding process information is searched by the searching means, the process corresponding to all the searched process information is performed. And a process switching means for sequentially switching and executing a process based on the contents of the file update, and resuming execution of the process that has performed the file update upon completion of the processes of all the update handling processes. Multi-process processing equipment.
JP1250734A 1989-09-28 1989-09-28 Multi-process processing equipment Expired - Lifetime JP2887488B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1250734A JP2887488B2 (en) 1989-09-28 1989-09-28 Multi-process processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1250734A JP2887488B2 (en) 1989-09-28 1989-09-28 Multi-process processing equipment

Publications (2)

Publication Number Publication Date
JPH03113540A JPH03113540A (en) 1991-05-14
JP2887488B2 true JP2887488B2 (en) 1999-04-26

Family

ID=17212246

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1250734A Expired - Lifetime JP2887488B2 (en) 1989-09-28 1989-09-28 Multi-process processing equipment

Country Status (1)

Country Link
JP (1) JP2887488B2 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JEFFREY D.ULLMAN.著,国井利泰,大保信夫・共訳,「データベース・システムの原理」,日本コンピュータ協会・発行(昭和60年・初版),P.486〜492

Also Published As

Publication number Publication date
JPH03113540A (en) 1991-05-14

Similar Documents

Publication Publication Date Title
JP2887488B2 (en) Multi-process processing equipment
JPH0410081B2 (en)
JP2977951B2 (en) Arithmetic unit
KR960014825B1 (en) Information processing system
JP2000076095A (en) Device and method for tracing program and storage medium storing program therefor
JP2552738B2 (en) Data processing device
JP2937636B2 (en) Logic simulator method
JP2727023B2 (en) Information processing device
JPS5835648A (en) Program execution controlling system
JP3260788B2 (en) Robot control device and method
JPH02214946A (en) Debugging system
JPH06202892A (en) Program restart system
JPH04361328A (en) Processing mode switching system
JPS6019240A (en) Loading system
JPH02226350A (en) Data control method for computer system
JPH08263296A (en) System for preserving and restoring program execution environment
JPH05143422A (en) Updated journal managing system
JPH0233630A (en) Control method for environment constant of virtual image
JPH03246643A (en) Processing for editing dump summary
JPS61210440A (en) Level tracing device
JPS61253526A (en) Automatic executing processor for interactive program
JPH0399322A (en) Instruction prefetching system at the time of processing interruption
JPH03233634A (en) Job reprocessing system
JPH0340866B2 (en)
JPH0215340A (en) Control system for state history memory device