JPH0462640A - Data processor - Google Patents

Data processor

Info

Publication number
JPH0462640A
JPH0462640A JP17370590A JP17370590A JPH0462640A JP H0462640 A JPH0462640 A JP H0462640A JP 17370590 A JP17370590 A JP 17370590A JP 17370590 A JP17370590 A JP 17370590A JP H0462640 A JPH0462640 A JP H0462640A
Authority
JP
Japan
Prior art keywords
processing program
processing
group
execution
exclusive
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
JP17370590A
Other languages
Japanese (ja)
Inventor
Minoru Hoshina
保科 稔
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP17370590A priority Critical patent/JPH0462640A/en
Publication of JPH0462640A publication Critical patent/JPH0462640A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily attain the desired exclusive control by using the information on the propriety for simultaneous execution of plural programs set optionally to execute the exclusive control. CONSTITUTION:The exclusive table memory 4 is the memory to store the exclusive table. The information on the propriety for simultaneous execution of a processing program related to an executing request and a processing program under execution is registered into an exclusive table memory when an executing request is received for a certain processing program belonging to a certain group in a state where the processing programs included in a processing program file group 2 are divided into groups. In regard of the exclusive tables, the execution is inhibited for the entry processing related to an executing request since the propriety information shows 'impossible' at a position where the groups A and B cross each other if the executing request is executed with operation of a terminal equipment Tn for the entry processing belonging to the group B for updating files in the midst of a state where the input processing is executed by a terminal equipment T1 for the sale slips belonging to the group A for input of data.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、複数の処理プログラムを同時に実行可能な
オフィスコンピュータ等のデータ処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data processing device such as an office computer that can simultaneously execute a plurality of processing programs.

[発明の概要] この発明は、上記のようなデータ処理装置において、処
理システムと1対1に対応する排他制御プログラムに拠
らずに、任意に設定された各処理プログラム間における
同時実行の可否に関する情報に基づいて、排他制御関係
にある処理プログラム同士の同時実行を禁止することに
より、プログラムの知識のないユーザーでも簡単に所望
の排他制御を行えるようにしたものである。
[Summary of the Invention] In the data processing device as described above, the present invention is directed to determining whether simultaneous execution of arbitrarily set processing programs is possible without relying on an exclusive control program that corresponds one-to-one with the processing system. By prohibiting simultaneous execution of processing programs that are in an exclusive control relationship based on information about the program, even a user with no knowledge of programming can easily perform the desired exclusive control.

[従来の技術] 従来、複数の処理プログラムを同時に実行可能な処理シ
ステムを備えたデータ処理装置において、例えば、ファ
イル処理プログラムとファイル内容を印刷するための印
刷処理プロクラムのように、同時実行が禁止されるべき
排他制御の関係にあるプロクラム同士が処理システム内
に並存する場合は、それら排他制御の関係にあるプログ
ラム同士の同時実行を禁止する機能か設けられている。
[Prior Art] Conventionally, in a data processing apparatus equipped with a processing system that can execute multiple processing programs simultaneously, simultaneous execution of a file processing program and a print processing program for printing file contents is prohibited. When programs that have an exclusive control relationship that should be controlled coexist in a processing system, a function is provided to prohibit simultaneous execution of these programs that have an exclusive control relationship.

この場合、禁止機能は、処理システム内の処理プログラ
ム間における排他制御関係を考慮して作成された排他制
御プログラムにより実現していた。
In this case, the prohibited function was realized by an exclusive control program that was created taking into consideration the exclusive control relationship between the processing programs in the processing system.

[発明が解決しようとする課題] しかし、排他制御プログラムの作成には多大な労力と時
間を要していた。
[Problems to be Solved by the Invention] However, creating an exclusive control program requires a great deal of effort and time.

さらに、排他制御プログラムは汎用性がないなめ、処理
システムに新たなアプリケーション処理プログラムを追
加するような場合は排他制御プログラムを修正する必要
かあるが、その修正には高度なプログラムの知識が要求
されるので、−iのユーザーにとっては、実質上、アプ
リケーション処理プログラムを追加できなくなってしま
うことがあった。
Furthermore, exclusive control programs are not versatile, so when adding a new application processing program to a processing system, it is necessary to modify the exclusive control program, but this modification requires advanced program knowledge. Therefore, for -i users, there were cases in which it became virtually impossible to add application processing programs.

これは、処理システムと1対1に対応する排他制御プロ
クラムにより排他制御を行わざるを得ないことに起因す
る。
This is due to the fact that exclusive control must be performed by an exclusive control program that corresponds one-to-one with the processing system.

してみれは、処理システムと1対1に対応する排他制御
プログラムに拠らず、各処理プロクラム間における同時
実行の可否に関する情報を任意に設定するだけて排他制
御を行方れは、上記問題を解決できることは明らかであ
る。
However, if exclusive control is achieved by arbitrarily setting information regarding whether or not each processing program can be executed simultaneously, instead of relying on an exclusive control program that corresponds one-to-one with the processing system, the above problem can be solved. It is clear that it can be solved.

この発明の課題は、任意に設定された各処理プログラム
間における同時実行の可否に関する情報に基づいて、排
他制御を行えるようにすることである。
An object of the present invention is to enable exclusive control based on information regarding whether or not simultaneous execution is possible between arbitrarily set processing programs.

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

この発明は、複数の処理プログラムを同時に実行可能な
データ処理装置であり、設定手段a(第1図の機能ブロ
ック図を参照、以下間し)は、各処理プログラム間にお
ける同時実行の可否に関する情報を任意に設定する。
The present invention is a data processing device capable of simultaneously executing a plurality of processing programs, and the setting means a (see the functional block diagram in FIG. 1, hereinafter) includes information regarding whether simultaneous execution is possible between the processing programs. Set arbitrarily.

記憶手段すは、現在の処理プログラムの実行状態を記憶
する。
The storage means stores the current execution state of the processing program.

判別手段Cは、処理プログラムの実行が要求された際、
設定手段aと記憶手段すに基づいて実行要求に係る処理
プログラムと現在実行中の処理プログラムとの同時実行
の可否を判別する。
The determining means C determines when execution of the processing program is requested.
Based on the setting means a and the storage means A, it is determined whether or not the processing program related to the execution request and the processing program currently being executed can be executed simultaneously.

禁止手段dは、判別手段Cにより同時実行が不可である
と判別されたとき、実行要求に係る処理プログラムと現
在実行中の処理プログラムとの同時実行を禁止する。
The prohibiting means d prohibits simultaneous execution of the processing program related to the execution request and the currently executing processing program when the determining means C determines that simultaneous execution is not possible.

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

今、設定手段aには、ファイル処理プログラムのプログ
ラム名と対応して、そのファイル処理プログラムとの同
時実行が禁止されるべき処理プログラムとして、ファイ
ル内容を印刷するための印刷処理プログラムのプログラ
ム名が設定されており、記憶手段すには、ファイル処理
プログラムのプログラム名と対応して、そのプログラム
か現在実行中である旨を示す実行中フラグがセットされ
ているものとする。
Now, in the setting means a, in correspondence with the program name of the file processing program, the program name of the print processing program for printing the file contents is stored as a processing program whose simultaneous execution with the file processing program should be prohibited. It is assumed that the execution flag is set in the storage means and corresponds to the program name of the file processing program and indicates that the program is currently being executed.

この状態で、上記印刷処理ブロクラムの実行か要求さる
と、判別手段Cは、例えは次のようにして同時実行の可
否を判別する。
In this state, when a request is made to execute the print processing blocks, the determining means C determines whether simultaneous execution is possible, for example, as follows.

すなわち、実行要求に係る印刷処理プログラムとの同時
実行が禁止される処理プログラムが、設定手段aに設定
されているか否かをサーチする。
That is, it is searched whether or not a processing program that is prohibited from being executed simultaneously with the print processing program related to the execution request is set in the setting means a.

その結果、同時実行が禁止される処理プログラムとして
ファイル処理プログラムが設定されているので、そのフ
ァイル処理プログラム対応の実行中フラグを記憶手段す
から読出す。この場合、実行中フラグかセットされ、フ
ァイル処理プログラムが現在実行中であることを示して
いるので、実行要求に係る印刷処理プログラムと現在実
行中のファイル処理プログラムとの同時実行が不可であ
ると判別する。
As a result, since the file processing program is set as a processing program whose simultaneous execution is prohibited, the execution flag corresponding to the file processing program is read from the storage means. In this case, the running flag is set, indicating that the file processing program is currently being executed, so the print processing program related to the execution request and the file processing program currently being executed cannot be executed simultaneously. Discern.

このようにして、同時実行か不可であると判別されると
、禁止手段dは、例えば、実行要求に係る印刷処理プロ
グラムの実行を禁止して、現在実行中のファイル処理プ
ログラムの実行を継続させる、或いは、実行要求に係る
印刷処理プログラムの優先度が高ければ、現在実行中の
ファイル処理プロクラムの実行を中断させて、実行要求
に係る印刷処理プロクラムを実行させる等して、実行要
求に係る印刷処理プログラムと現在実行中のファイル処
理プログラムとの同時実行を禁止する。
In this way, when it is determined that simultaneous execution is not possible, the prohibiting means d prohibits the execution of the print processing program related to the execution request, and continues the execution of the file processing program currently being executed. Alternatively, if the priority of the print processing program related to the execution request is high, the execution of the file processing program currently being executed is interrupted and the print processing program related to the execution request is executed, and the print processing program related to the execution request is executed. Prohibits simultaneous execution of the processing program and the currently running file processing program.

従って、任意に設定された各処理プログラム間における
同時実行の可否に関する情報に基づいて排他制御を行え
る。
Therefore, exclusive control can be performed based on information regarding the possibility of simultaneous execution between arbitrarily set processing programs.

[実施例] 以下、実施例を第2図ないし第9図を参照しながら説明
する。
[Example] Hereinafter, an example will be described with reference to FIGS. 2 to 9.

第2図は、データ処理装置のブロック構成図であり、C
PUI、処理プログラムファイル群2、データファイル
群3、排他テーブルメモリ4、メニューチーフルメモリ
5、状態カウンタテープ°ルメモリ6からなる1台の装
置本体Hと、複数の端末機T1〜Tnと、複数のプリン
タP1〜Pnとが、インラインLを介して接続されてい
る。
FIG. 2 is a block diagram of the data processing device, and C
One device main body H consisting of a PUI, a processing program file group 2, a data file group 3, an exclusive table memory 4, a menu full memory 5, a status counter tape memory 6, a plurality of terminals T1 to Tn, and a plurality of terminals T1 to Tn. printers P1 to Pn are connected via an inline L.

このデータ処理装置は、端末機T1等から入力されたデ
ータを、装置本体Hにより各種処理し、プリンタP1〜
Pnにて印刷するものである。
This data processing device processes data input from a terminal device T1, etc. in various ways using the device main body H, and
It is printed in Pn.

装置本体H0″)CPU1は、処理プログラムファイル
群2内の処理プログラムを実行することにより、端末機
T1〜Tnからの入力データの正当性をチエツクし、正
当なデータをデータファイル群3内のファイルに格納す
る、この入力データに基づいてデータファイル群3内の
ファイルを更新する、データファイル群3内のファイル
内容を帳票出力用パターンに変換してプリンタP1〜P
nに転送する等の各種処理を行う。
The device main body H0'') CPU1 checks the validity of the input data from the terminals T1 to Tn by executing the processing program in the processing program file group 2, and saves valid data to the file in the data file group 3. , update the files in data file group 3 based on this input data, convert the file contents in data file group 3 into a form output pattern, and output the data to printers P1 to P.
performs various processing such as forwarding to n.

この際、CPU1は、処理プログラムファイル群2内の
複数の処理プログラムを時分割により同時に実行するこ
と、すなわちマルチ処理が可能であるが、処理プログラ
ムファイル群2には、互いに同時実行を禁止すべき排他
制御の関係にある処理ブロクラムが混在しており、これ
ら排他制御の関係にある処理プログラム同士の同時実行
を禁止する機能を有している。この排他制御は、排他テ
ーブルメモリ4、メニューテーブルメモリ5、及び状態
カウンタテーブルメモリ6を活用してグループ単位で行
われる。
At this time, the CPU 1 is capable of simultaneously executing multiple processing programs in the processing program file group 2 by time sharing, that is, multi-processing, but there are some settings in the processing program file group 2 that should prohibit simultaneous execution of each other. Processing programs that are in an exclusive control relationship coexist, and have a function of prohibiting simultaneous execution of these processing programs that are in an exclusive control relationship. This exclusive control is performed in groups by utilizing the exclusive table memory 4, menu table memory 5, and status counter table memory 6.

すなわち、排他テーブルメモリ4は、第3図に示したよ
うな排他テーブルを記憶するメモリである。この排他テ
ーブルには、処理プログラムファイル群2内の各処理プ
ログラムをグループに分けて考えた場合に、それらグル
ープに属する処理プログラムを実行中に、あるグループ
に属する処理プログラムの実行要求があったとき、その
実行要求に係る処理プログラムを現在実行中の処理プロ
グラムと同時に実行するか否かの可否情報(図中の“可
″、“不可”)が登録されている。第3図の排他テーブ
ルは、例えば、データ入力のグループ°゛A°゛に属す
る売上伝票の入力処理を端末機T1により実行している
最中に、ファイル更新のグループ゛B″に属する記帳処
理の実行要求が端末機Tnの操作によりなされた場合、
グループ゛A”とグループ°“B”が交差する位置の可
否情報は゛不可°′となっているので、実行要求に係る
記帳処理の実行が禁止されることを示している。この排
他テーブルメモリ4への排他テーブルの設定は、ユーザ
ーにより任意に行われる。
That is, the exclusive table memory 4 is a memory that stores an exclusive table as shown in FIG. In this exclusive table, if each processing program in processing program file group 2 is divided into groups, and when a request to execute a processing program belonging to a certain group is made while the processing programs belonging to those groups are being executed, , information regarding whether or not the processing program related to the execution request is to be executed at the same time as the processing program currently being executed ("possible" or "impossible" in the figure) is registered. The exclusive table in FIG. 3 shows, for example, that while the terminal T1 is executing the input process of a sales slip belonging to the data input group 'A', the bookkeeping process belonging to the file update group 'B' is executed. When the execution request is made by operating the terminal Tn,
Since the permission information at the intersection of group "A" and group "B" is "not allowed", this indicates that execution of the bookkeeping process related to the execution request is prohibited.This exclusive table memory 4 The exclusive table can be set arbitrarily by the user.

メニューテーブルメモリ5は、第4図に示したようなメ
ニューテーブルを記憶するメモリである。
The menu table memory 5 is a memory that stores a menu table as shown in FIG.

このメニューテーブルには、メニューNOと対応して、
売上伝票入力等の“メニュー名°°、”AOI°′等の
処理プログラム名、” A ”、” B ”、“C“。
In this menu table, corresponding to the menu number,
"Menu name°°" for inputting sales slips, processing program names such as "AOI°',""A","B","C".

等のグループコードが登録される。このメニューテーブ
ルメモリ5へのメニューテーブルの設定もユーザーによ
り任意に行われる。なお、第4図における°′月報印刷
°゛のように、グループコードが登録されていない処理
のプログラムは、いかなる処理プログラムとでも同時実
行が可能であることを示している。
etc. group codes are registered. Setting of the menu table in the menu table memory 5 is also performed arbitrarily by the user. It should be noted that a processing program for which no group code is registered, such as ``monthly report print'' in FIG. 4, can be executed simultaneously with any processing program.

状態カウンタテーブルメモリ6は、第5図に示したよう
な状態カウンタテーブルを記憶するメモリである。この
状態カウンタテーブルでは、各処理プログラムが実行中
であるか否かを上記グループを単位として示すと共に、
同一グループに属する複数の処理プログラムが同時に何
個実行されているかも示している(この同一グループ内
の同時実行個数のことを状態カウント値と呼ぶ)。すな
わち、第5図(a)は、ファイル更新のグループ“Bo
oの状態カウント値のみが“1゛′となっており、その
他のグループの状態カウント値は“′0″となっている
ので、成る1つのファイル更新処理プログラムだけが実
行されている状態を示し、第5図(b)は、データ入力
のグループ゛′A″の状態カウント値は1°°、ファイ
ル更新のグループ”B“°の状態カウント値は“’o”
、帳票印刷のグループ゛C°゛の状態カウント値は2”
となっているので、成る1つのデータ入力処理プログラ
ムと、成る2つの帳票印刷処理プログラムとが同時に実
行されている状態を示している。
The state counter table memory 6 is a memory that stores a state counter table as shown in FIG. This status counter table indicates whether or not each processing program is being executed in units of the above groups, and
It also shows how many processing programs belonging to the same group are being executed simultaneously (this number of concurrently executing programs within the same group is called the state count value). That is, FIG. 5(a) shows the file update group "Bo
Only the state count value of o is "1", and the state count values of the other groups are "0", indicating that only one file update processing program is being executed. , FIG. 5(b) shows that the state count value of the data input group "'A" is 1°°, and the state count value of the file update group "B"° is "'o".
, the state count value of group ゛C°゛ for form printing is 2”
This indicates that one data input processing program and two form printing processing programs are being executed simultaneously.

なお、排他チーフルは、−旦設定した後は、例え処理プ
ログラムの追加、削除が行われたとじても修正等を行う
必要はなく、メニューテーブルに対する修正等のみで済
む。
Note that once the exclusive title is set, there is no need to modify it even if a processing program is added or deleted, and only the menu table needs to be modified.

次に、排他制御動作を第6図および第7図を参照しなが
ら説明する。
Next, the exclusive control operation will be explained with reference to FIGS. 6 and 7.

まず、オペレータは、任意の端末機T1〜Tnを操作す
ることにより、排他テーブルメモリ4への排他テーブル
の設定を行う(第6図ステップS1)。次に、ステップ
82〜S5にて、メニューテーブルメモリ5へのメニュ
ーテーブルの設定を行う。すなわち、1つの処理につい
てのメニュー名、処理プロクラム名、グループコートを
順次登録する(ステップ82〜S4)。そして、まだ登
録すべき処理が残っておれは濾ステップS5)、ステッ
プS2に戻って、残りの処理に対応する上記登録操作を
継続し、登録すべき処理が残っていなければ、ステップ
S6にてシステムを起動する9すると、CPUIは、メ
ニューテーブルメモリ5に設定されたメニューチーフル
の内容を表示する(ステップS7)。そこで、オペレー
タは、今から実行したい処理のメニューNαを入力する
(ステップS8)。
First, the operator sets an exclusive table in the exclusive table memory 4 by operating any of the terminals T1 to Tn (step S1 in FIG. 6). Next, in steps 82 to S5, the menu table is set in the menu table memory 5. That is, the menu name, processing program name, and group code for one process are sequentially registered (steps 82 to S4). If there are still processes left to be registered (step S5), the process returns to step S2 and the above registration operation corresponding to the remaining processes is continued. If there are no processes remaining to be registered, step S6 is performed When the system is started 9, the CPUI displays the contents of the menu table set in the menu table memory 5 (step S7). Then, the operator inputs the menu Nα of the process that he wants to execute now (step S8).

すると、CPUIは、メニューテーブル上で、入力に係
るメニューNoの処理に対応するグループコートの登録
状態をサーチしくステップS9)、グループコードか登
録されているか否かを判断する(ステップ510)。そ
の結果、登録されておれば、そのグループコートで示さ
れるグループ、すなわち実行要求グループに対応する排
他テーブル上の欄を検索しくステップ511)、当該実
行要求グループと排他制御関係にあるグループが存在す
るか否かを判断する(ステップ512)。その結果、排
他制御関係にあるグループが存在すれば、そのグループ
と実行要求グループとが交差する位置の状態カウント値
を状態カウンタテーブルから読出しくステップ513)
−状態カウント値が“0゛′であるか否かを判断する(
ステップ514)。その結果、状態カウント値が°゛0
°゛でなければ、実行要求に係る処理プログラムと排他
制御関係にある処理プログラムが実行中であることを意
味するので、実行要求に係る処理プログラムの実行を禁
止すべく実行要求をエラー処理し、エラーメツセージを
実行要求がなされた端末機の表示部に表示する(ステッ
プ515)。そこて、オペレータは、エラーメツセージ
に応答してエラー解除指定を行う(ステップ816)。
Then, the CPU searches the menu table for the registration status of the group code corresponding to the process of the input menu number (step S9), and determines whether the group code is registered (step 510). As a result, if it is registered, the column on the exclusive table corresponding to the group indicated by the group code, that is, the execution request group, is searched (step 511), and there is a group that has an exclusive control relationship with the execution request group. It is determined whether or not (step 512). As a result, if there is a group in an exclusive control relationship, the state count value at the intersection of that group and the execution request group is read from the state counter table (step 513).
- Determine whether the state count value is “0゛′” (
Step 514). As a result, the state count value is °゛0
If not, it means that a processing program that has an exclusive control relationship with the processing program related to the execution request is being executed, so the execution request is handled as an error in order to prohibit execution of the processing program related to the execution request, The error message is displayed on the display section of the terminal device for which the execution request was made (step 515). The operator then specifies error cancellation in response to the error message (step 816).

すると、cpUlは、ステップS7に戻ってメニュー表
示を行う。従って、オペレータは、別の処理を行うべく
メニューNαの入力を行うことが可能となる。
Then, cpUl returns to step S7 and displays a menu. Therefore, the operator can input menu Nα to perform another process.

ステップS12にて、実行要求に係るクループと排他制
御関係にあるグループか存在しないと判断されたときは
、更に、現在実行中の処理プログラムは、所定数以下で
あるか否かを判断する(ステップ517)、その結果4
所定数より多ければ、例え、排他制御関係になくても、
実行要求に係る処理プログラムの同時実行を現時点で容
認すると、現在実行中の各処理プログラムに基づく処理
のスピードの低減が許容範囲を越えてしまうので、ステ
ップS15に進んでエラー処理する。一方、所定数以下
であれば、上記のような問題は生じないので、実行要求
グループと同一のグループの状態カウント値をプラス1
しくステップ518)、実行要求に係る処理プログラム
を起動して(ステップ519)、ステップS7に戻る。
When it is determined in step S12 that there is no group that has an exclusive control relationship with the group related to the execution request, it is further determined whether the number of processing programs currently being executed is less than or equal to a predetermined number (step 517), resulting in 4
If there are more than a predetermined number, even if there is no exclusive control relationship,
If concurrent execution of the processing programs related to the execution request is allowed at this point, the reduction in processing speed based on each processing program currently being executed will exceed the allowable range, so the process advances to step S15 and error processing is performed. On the other hand, if the number is less than the predetermined number, the above problem will not occur, so add 1 to the status count value of the same group as the execution request group.
Then, the processing program related to the execution request is started (step 519), and the process returns to step S7.

この起動により、もし、現在実行中の処理プログラムが
存在するときは、その処理プログラムと実行要求に係る
処理プログラムとはマルチ処理されることとなる。
By this activation, if there is a processing program currently being executed, that processing program and the processing program related to the execution request will be multi-processed.

また、ステップS14にて0゛′であると判断されたと
きは、実行要求に係るグループと排他制御関係にあるク
ループは存在するか、その排他制御関係にあるグループ
は現在実行中でないことを意味し、その限りでは同時実
行を許可しても良いが、さらに、上記の条件を検証する
なめ、ステップS17に進む。また、ステップS10に
て、実行要求に係る処理プログラムに対してグループコ
ートが登録されていないと判断されたときは、実行要求
に係る処理プログラムは、対グループとの関係では同時
実行を許可しても良いことを意味するが、さらに、上記
の条件を検証するため、ステップS20に進む。
Further, when it is determined that the value is 0' in step S14, it means that there is a group that has an exclusive control relationship with the group related to the execution request, or that the group that has the exclusive control relationship is not currently being executed. However, to that extent, simultaneous execution may be permitted, but the process proceeds to step S17 to further verify the above conditions. Further, when it is determined in step S10 that no group code is registered for the processing program related to the execution request, the processing program related to the execution request is not allowed to be executed simultaneously in relation to the paired group. This also means that the above conditions are acceptable, but in order to further verify the above conditions, the process proceeds to step S20.

次に、実行中の処理プログラムによる一連の処理が終了
した場合の後処理を第7図により説明する。
Next, the post-processing when the series of processing by the processing program being executed is completed will be explained with reference to FIG.

この後処理では、一連の処理を為し終えた上記処理プロ
グラムに対するクループコートの欄をメニューテーブル
上でサーチしくステップ571)、グループコートが登
録されているか否かを判断する(ステップ572)。そ
の結果、グループコートが登録されておれば、対応する
グループの状態カウント値をマイナス1する(ステップ
873)。
In this post-processing, the menu table is searched for the group coat column for the processing program that has completed a series of processes (step 571), and it is determined whether a group coat is registered (step 572). As a result, if the group coat is registered, the state count value of the corresponding group is subtracted by 1 (step 873).

一方、グループコートが登録されていなければ、ノツプ
処理となる9 このように、排他制御プログラムに拠らず、任意に設定
された排他テーブル、メニューテーブル等に基づいて、
グループ単位で排他制御を行っている9グル一プ単位で
排他制御を行うメリットは次のような点である。すなわ
ち、個々の処理プログラム毎に排他制御関係にある処理
プログラムを登録するのに比べ、登録内容が大巾に減少
するので排他テーブルの設定が非常に楽になる。
On the other hand, if the group code is not registered, a nop process will be performed.9 In this way, based on the arbitrarily set exclusive table, menu table, etc., without depending on the exclusive control program,
Exclusive control is performed on a group-by-group basis.The advantages of performing exclusive control on a group-by-group basis are as follows. That is, compared to registering processing programs that are in an exclusive control relationship for each individual processing program, the registration contents are greatly reduced, making the setting of the exclusive table much easier.

[応用変形例] 排他チーフルには、第8図に示したように、実行要求、
或いは実行中のグループに対して排他制御関係にあるグ
ループのみを登録することも可能である。また、実行状
態は、第9図に示したように、単にグループ別に状態カ
ウント値を記憶するたけても良い。さらに、同時実行禁
止の形態としては、常に、実行要求に係る処理プログラ
ムの方の実行を禁止するのではなく、処理時間の長短、
システムの流れ等に基づく優先度に従って、実行要求に
係る処理プログラム、現在実行中の処理プログラムのう
ち、優先度の低い方の実行を禁止し、優先度の高い方を
実行するようにしても良い。なお、同時処理し得る処理
プログラムの数を制限しない場合には、状態カウント値
をセットすることなく、単に実行中か否かを“1°′、
0”で示すフラグを設けても良い。
[Application modification example] As shown in Fig. 8, the exclusive chifur includes an execution request,
Alternatively, it is also possible to register only groups that have an exclusive control relationship with the group that is currently being executed. Furthermore, the execution state may simply be stored as a state count value for each group, as shown in FIG. Furthermore, the form of simultaneous execution prohibition does not always prohibit the execution of the processing program related to the execution request, but rather
Depending on the priority based on the system flow, etc., the execution of the processing program related to the execution request and the processing program currently being executed may be prohibited, with a lower priority, and the one with a higher priority may be executed. . Note that if you do not limit the number of processing programs that can be processed simultaneously, you can simply check whether they are being executed or not without setting the status count value.
A flag indicated by 0" may be provided.

[発明の効果] この発明によれば、任意に設定された各処理プログラム
間における同時実行の可否に関する情報に基づいて排他
制御を行うことができ、プログラムの知識がない者であ
っても簡単に所望の排他制御を実現させることが可能と
なる。
[Effects of the Invention] According to the present invention, exclusive control can be performed based on information regarding the possibility of simultaneous execution between arbitrarily set processing programs, and even a person without knowledge of programming can easily perform the control. It becomes possible to realize desired exclusive control.

【図面の簡単な説明】 第1図はこの発明の機能ブロック図、第2図は実施例の
ブロック構成図、第3図は排他テーブルの内容を例示し
た図、第4図はメニューテーブルの内容を例示した図、
第5図は状態カウンタテーブルの内容を例示した図、第
6図は排他制御動作を示すフローチャート、第7図はマ
ルチ処理に係る処理プログラムによる処理か終了した際
の後処理を示すフローチャート、第8図は排他テーブル
の変形例を示す図、第9図は実行状態の記憶方式の変形
例を示す図である。 1−・・CPU、4・・・排他テーブルメモリ、6・・
・状態カウンタテーブル、T1〜Tn・・・端末機。 (a) 第 図 ■)
[Brief Description of the Drawings] Figure 1 is a functional block diagram of the present invention, Figure 2 is a block configuration diagram of an embodiment, Figure 3 is a diagram illustrating the contents of an exclusive table, and Figure 4 is the contents of a menu table. A diagram illustrating,
FIG. 5 is a diagram illustrating the contents of the status counter table, FIG. 6 is a flowchart showing exclusive control operation, FIG. 7 is a flowchart showing post-processing when processing by a processing program related to multi-processing is completed, and FIG. This figure shows a modification of the exclusive table, and FIG. 9 shows a modification of the execution state storage method. 1-...CPU, 4...Exclusive table memory, 6...
- Status counter table, T1 to Tn...Terminal. (a) Figure ■)

Claims (1)

【特許請求の範囲】 複数の処理プログラムを同時に実行可能なデータ処理装
置において、 各処理プログラム間における同時実行の可否に関する情
報を任意に設定する設定手段と、 現在の処理プログラムの実行状態を記憶する記憶手段と
、 処理プログラムの実行が要求された際、上記設定手段と
記憶手段に基づいて実行要求に係る処理プログラムと現
在実行中の処理プログラムとの同時実行の可否を判別す
る判別手段と、 この判別手段により同時実行が不可であると判別された
とき、実行要求に係る処理プログラムと現在実行中の処
理プログラムとの同時実行を禁止する禁止手段と、 を備えたことを特徴とするデータ処理装置。
[Claims] In a data processing device capable of simultaneously executing a plurality of processing programs, there is provided a setting means for arbitrarily setting information regarding whether simultaneous execution is possible between each processing program, and storing the current execution state of the processing programs. storage means; and determination means for determining whether or not the processing program related to the execution request and the processing program currently being executed can be executed simultaneously based on the setting means and storage means when execution of the processing program is requested; A data processing device comprising: prohibition means for prohibiting simultaneous execution of a processing program related to an execution request and a processing program currently being executed when the determination means determines that simultaneous execution is not possible. .
JP17370590A 1990-06-29 1990-06-29 Data processor Pending JPH0462640A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17370590A JPH0462640A (en) 1990-06-29 1990-06-29 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17370590A JPH0462640A (en) 1990-06-29 1990-06-29 Data processor

Publications (1)

Publication Number Publication Date
JPH0462640A true JPH0462640A (en) 1992-02-27

Family

ID=15965604

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17370590A Pending JPH0462640A (en) 1990-06-29 1990-06-29 Data processor

Country Status (1)

Country Link
JP (1) JPH0462640A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006011343A1 (en) * 2004-07-28 2006-02-02 Matsushita Electric Industrial Co., Ltd. Competition solving device
JP2008222270A (en) * 2007-03-12 2008-09-25 Shionogi & Co Ltd Over-cap and container equipped with over-cap
JP2009093452A (en) * 2007-10-10 2009-04-30 Obic Business Consultants Ltd Information processor, information processing method, and program
JP2011107921A (en) * 2009-11-17 2011-06-02 Hitachi Ltd Method and system for managing software execution control
WO2015097772A1 (en) * 2013-12-25 2015-07-02 株式会社日立製作所 Monitoring method and monitoring system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006011343A1 (en) * 2004-07-28 2006-02-02 Matsushita Electric Industrial Co., Ltd. Competition solving device
JPWO2006011343A1 (en) * 2004-07-28 2008-05-01 松下電器産業株式会社 Conflict resolution device
JP2008222270A (en) * 2007-03-12 2008-09-25 Shionogi & Co Ltd Over-cap and container equipped with over-cap
JP2009093452A (en) * 2007-10-10 2009-04-30 Obic Business Consultants Ltd Information processor, information processing method, and program
JP2011107921A (en) * 2009-11-17 2011-06-02 Hitachi Ltd Method and system for managing software execution control
WO2015097772A1 (en) * 2013-12-25 2015-07-02 株式会社日立製作所 Monitoring method and monitoring system

Similar Documents

Publication Publication Date Title
US8825615B2 (en) Simplifying implementation of custom atomic transactions in a programming environment
JPH0462640A (en) Data processor
JP3002242B2 (en) CAD system
JPH0973407A (en) Data management device
JPH09160822A (en) Hyper text with access right function
JPH02156348A (en) Overflow area control method for plural hash tables
JPH03188550A (en) Process screen control system for business work processing system
JPH03100761A (en) User operation circumstance setting processing method
JP2568722B2 (en) Addressing mode determining method and device
CN114218585A (en) Authority management method and device and computer readable medium
JPH0887548A (en) Information management device/method
JPS63201723A (en) Automatic addition processing system for password at the time of generating job
JPH0594358A (en) Data management system
JPS6155754A (en) Memory protection system
JPH04247563A (en) Document preparing device
JPH0416368A (en) Controlling method for external character printing
JPH086956A (en) Electronic filing device
JPH01140237A (en) Task operating system
JPS62204954A (en) Image forming device
JPH04123226A (en) Method for exchanging data
JPH06124311A (en) Method for processing relational data base
JPH0256669A (en) Document preparing device
JPH03296828A (en) Task starting system
JPS63198129A (en) Input data processing system in procedure
JPS5911450A (en) Program processing system