JP2843748B2 - Exclusive control method - Google Patents

Exclusive control method

Info

Publication number
JP2843748B2
JP2843748B2 JP5291549A JP29154993A JP2843748B2 JP 2843748 B2 JP2843748 B2 JP 2843748B2 JP 5291549 A JP5291549 A JP 5291549A JP 29154993 A JP29154993 A JP 29154993A JP 2843748 B2 JP2843748 B2 JP 2843748B2
Authority
JP
Japan
Prior art keywords
program
priority
information
update
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.)
Expired - Fee Related
Application number
JP5291549A
Other languages
Japanese (ja)
Other versions
JPH07129452A (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.)
NEC Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP5291549A priority Critical patent/JP2843748B2/en
Publication of JPH07129452A publication Critical patent/JPH07129452A/en
Application granted granted Critical
Publication of JP2843748B2 publication Critical patent/JP2843748B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、データファイル(例え
ば、データベースファイル)内のデータレコードを複数
のプログラムが同時に検索/更新しようとする場合の排
他制御をデータレコードの集合であるブロック単位で行
う排他制御方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention performs exclusive control in the case where a plurality of programs simultaneously search / update a data record in a data file (for example, a database file) in units of blocks, which are a set of data records. Related to the exclusive control method.

【0002】[0002]

【従来の技術】従来、この種の排他制御方式では、図3
に示すような構成要素によって次のような排他制御が行
われていた。
2. Description of the Related Art Conventionally, in this kind of exclusive control system, FIG.
The following exclusive control has been performed by the components shown in FIG.

【0003】あるプログラム(業務アプリケーションプ
ログラム等)内のデータレコード検索/更新手段32
は、利用者指定情報31(処理対象のデータレコードを
特定する情報と処理内容(「検索」または「更新」)を
示す情報とからなる情報)に基づき、排他制御の対象で
あるデータファイル(データベースファイル35)内の
データレコードに対する検索/更新処理(検索処理また
は更新処理)を行う。
[0003] Data record search / update means 32 in a certain program (such as a business application program)
Is a data file (database) to be subjected to exclusive control based on user-specified information 31 (information including information specifying a data record to be processed and information indicating processing content ("search" or "update")). A search / update process (search process or update process) is performed on the data records in the file 35).

【0004】ここで、このような検索/更新処理が行わ
れる際に、データレコード検索/更新手段32はオペレ
ーティングシステムの管理下にある排他制御手段33を
呼び出す。
Here, when such a search / update process is performed, the data record search / update unit 32 calls the exclusive control unit 33 under the control of the operating system.

【0005】排他制御手段33は、排他情報記憶手段3
4に記憶されているブロック毎の排他情報(そのブロッ
クの排他状態(ロックされているか否か等)を示す情報
等)に基づき、処理対象のデータレコードが含まれるブ
ロック(以下、「処理対象ブロック」という)が他のプ
ログラム(データレコード検索/更新手段32を有する
プログラム以外のプログラム)によりロックされている
か否か(排他状態であるか否か)を判定する。
[0005] The exclusive control means 33 includes the exclusive information storage means 3
4 includes a data record to be processed (hereinafter referred to as a “processing target block”) based on the exclusion information for each block (such as information indicating the exclusion status of the block (whether or not locked) or the like). ) Is locked by another program (a program other than the program having the data record search / update means 32) (whether or not it is in an exclusive state).

【0006】排他制御手段33は、「処理対象ブロック
が他のプログラムによりロックされていない」と判定し
た場合には、データレコード検索/更新手段32に検索
/更新処理を行わせる。
When the exclusive control unit 33 determines that "the block to be processed is not locked by another program", the exclusive control unit 33 causes the data record search / update unit 32 to perform a search / update process.

【0007】また、排他制御手段33は、「処理対象ブ
ロックが他のプログラムによりロックされている」と判
定した場合には、当該他のプログラムのロックの解除後
にデータレコード検索/更新手段32に検索/更新処理
を行わせる。
If the exclusive control means 33 determines that the block to be processed is locked by another program, the exclusive control means 33 searches the data record search / update means 32 after unlocking the other program. / Update processing is performed.

【0008】[0008]

【発明が解決しようとする課題】上述した従来の排他制
御方式では、複数のプログラムによる同一のブロックに
対するデータレコードの検索/更新処理が競合する場合
に、そのブロック内のデータレコードを先にアクセスし
たプログラムに係る処理が優先的に行われるので、後続
のプログラムに係る処理の方が緊急性を有する(優先す
べきである)場合でも、先行のプログラムに係る処理が
開始された後には先行のプログラムがロックを解除する
まで後続のプログラムに係る処理は待たされることにな
るという欠点があった。すなわち、緊急性を有するプロ
グラムの性能が劣化することになるという欠点があっ
た。
In the above-described conventional exclusive control system, when the search / update processing of the data record for the same block by a plurality of programs conflicts, the data record in the block is accessed first. Since the processing relating to the program is performed with priority, even if the processing relating to the following program has urgency (should be given priority), the processing of the preceding program is started after the processing relating to the preceding program is started. However, there is a drawback that the processing related to the subsequent program is kept waiting until the lock is released. That is, there is a disadvantage that the performance of the urgent program is deteriorated.

【0009】本発明の目的は、上述の点に鑑み、同一の
ブロック内のデータレコードを検索/更新する複数のプ
ログラムの各々のプライオリティ(排他制御に関する処
理の優先度)の判断を行い、プライオリティの高いプロ
グラム(緊急性を有するプログラム)が後続のプログラ
ムであっても優先的にそのプログラムの処理を行わせる
ことにより、緊急性を有するプログラムの性能を劣化さ
せない排他制御を実現する排他制御方式を提供すること
にある。
In view of the above, it is an object of the present invention to determine the priority of each of a plurality of programs for searching / updating data records in the same block (priority of processing related to exclusive control), and to determine the priority. Even if a high-level program (a program with urgency) is a succeeding program, an exclusive control method is provided that realizes exclusive control without deteriorating the performance of the urgent program by giving priority to processing of the program. Is to do.

【0010】なお、競合資源のスケジューリングについ
ての排他制御に関する従来技術としては、「特開平3−
288235号(計算機資源の排他制御方式)」が公表
されている。しかし、この従来技術は、待ち状態にある
プログラムやタスク間の競合資源のスケジューリングに
関する排他制御であり、すでに処理が開始されているプ
ログラム(先行のプログラム)と待ち状態にあるプログ
ラム(後続のプログラム)との間の排他制御に関する技
術である本発明とはその構成および着眼点等を異にする
ものである。
As a prior art relating to exclusive control on scheduling of competing resources, Japanese Patent Laid-Open Publication No.
No. 288235 (exclusive control method for computer resources). However, this prior art is an exclusive control relating to scheduling of a conflicting resource between a program or a task in a waiting state, and a program in which processing is already started (preceding program) and a program in a waiting state (successive program). The present invention, which is a technique relating to exclusive control between the present invention and the present invention, is different from the present invention in its configuration, viewpoint, and the like.

【0011】[0011]

【課題を解決するための手段】 本発明の排他制御方式
は、データファイルに格納されたデータレコードが複数
のプログラムによって検索/更新される情報処理システ
ムにおける排他制御方式において、利用者指定情報中の
プライオリティ更新情報を反映して各プログラムのプラ
イオリティを記憶するプライオリティ記憶手段と、前記
データファイルにおけるブロック毎の排他情報を記憶す
る排他情報記憶手段と、利用者指定情報に基づいて前記
データファイル内のデータレコードの検索/更新処理を
行い、データレコードの更新処理を行った場合に更新前
レコードイメージをジャーナルファイルに格納するデー
タレコード検索/更新手段と、利用者指定情報中の判定
時点情報によって示されるデータレコード件数分の処理
が終了した時点において解除待ちプログラムが存在する
か否かを判定する排他解除待ち判定手段と、この排他解
除待ち判定手段により「解除待ちプログラムが存在す
る」と判定された場合に、解除待ちプログラムと制御対
象プログラムとのどちらを優先させるべきであるかを前
記プライオリティ記憶手段に記憶されているプライオリ
ティに基づいて判定するプライオリティ判定手段と、こ
のプライオリティ判定手段により「解除待ちプログラム
を優先させるべきである」と判定された場合に、制御対
象プログラムにより更新されたデータレコードの更新前
レコードイメージを前記ジャーナルファイルから前記デ
ータファイルに戻すトランザクションバックアウト手段
と、前記データレコード検索/更新手段から呼び出さ
れ、前記排他情報記憶手段に記憶されている排他情報お
よび前記プライオリティ判定手段の判定結果を使用して
前記データファイルに対する排他制御をブロック単位で
行う排他制御手段とを有する。
An exclusive control method according to the present invention is an exclusive control method in an information processing system in which a data record stored in a data file is searched / updated by a plurality of programs. Priority storage means for storing the priority of each program reflecting the priority update information; exclusive information storage means for storing exclusive information for each block in the data file; and data in the data file based on user-specified information. Data record search / update means for performing record search / update processing and storing the pre-update record image in the journal file when the data record update processing is performed, and data indicated by the judgment point information in the user specification information When processing for the number of records is completed, And an exclusive release wait determining means for determining whether or not there is a release waiting program.If the exclusive release waiting determining means determines that a release waiting program exists, the exclusive release waiting program and the control target program Priority determination means for determining which one should be given priority based on the priority stored in the priority storage means, and the priority determination means has determined that "priority should be given to the release waiting program". In the case, the transaction backout means for returning the pre-update record image of the data record updated by the control target program from the journal file to the data file, and the data record retrieval / update means are called by the exclusive information storage means. Remembered Using the determination result of the exclusive information and said priority determining means and an exclusive control means for performing exclusive control of the data file in blocks.

【0012】[0012]

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

【0013】図1は、本発明の排他制御方式の一実施例
の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of an exclusive control system according to the present invention.

【0014】本実施例の排他制御方式は、利用者指定情
報1と、データレコード検索/更新手段2と、プライオ
リティ記憶手段3と、排他制御手段4と、排他情報記憶
手段5と、排他解除待ち判定手段6と、プライオリティ
判定手段7と、トランザクションバックアウト手段8
と、ジャーナルファイル9と、データベースファイル1
0(排他制御の対象であるデータファイル)とを含んで
構成されている。ここで、データレコード検索/更新手
段2は、データベースファイル10に対する検索/更新
処理を行う複数のプログラムの各々に存在する手段であ
る。また、3〜9の符号で示される手段等は、データベ
ースファイル10に関する情報処理システムのオペレー
ティングシステムの管理下にある手段等である。なお、
利用者指定情報1は、プログラムの利用者等によって指
定される情報である。
The exclusive control method according to the present embodiment includes a user specification information 1, a data record search / update means 2, a priority storage means 3, an exclusive control means 4, an exclusive information storage means 5, an exclusive release wait state, Determination means 6, priority determination means 7, transaction backout means 8
, Journal file 9 and database file 1
0 (data file subject to exclusive control). Here, the data record search / update means 2 is a means present in each of a plurality of programs for performing search / update processing on the database file 10. Means indicated by reference numerals 3 to 9 are means under the control of the operating system of the information processing system regarding the database file 10. In addition,
The user designation information 1 is information designated by a user of the program or the like.

【0015】図2は、本実施例の排他制御方式の処理を
示す流れ図である。この処理は、利用者指定情報入力ス
テップ201と、プライオリティ更新ステップ202
と、排他状態問い合わせステップ203と、排他状態判
定ステップ204と、データレコード検索/更新処理ス
テップ205と、判定時点当否判定ステップ206と、
解除待ちプログラム有無判定ステップ207と、プライ
オリティ比較ステップ208と、更新前レコードイメー
ジ書戻しステップ209と、解除待ちプログラムロック
ステップ210と、制御対象プログラムロックステップ
211とからなる。
FIG. 2 is a flowchart showing the processing of the exclusive control system according to the present embodiment. This processing includes a user designation information input step 201 and a priority update step 202
An exclusive state inquiry step 203, an exclusive state determination step 204, a data record search / update processing step 205, a determination time hit / fail determination step 206,
It includes a release waiting program presence / absence determination step 207, a priority comparison step 208, a pre-update record image write back step 209, a release waiting program lock step 210, and a control target program lock step 211.

【0016】次に、このように構成された本実施例の排
他制御方式の動作について説明する。
Next, the operation of the exclusive control system of the present embodiment configured as described above will be described.

【0017】データレコード検索/更新手段2を有する
プログラム(以下、制御対象プログラムという)の処理
の過程で、データベースファイル10内のデータレコー
ドの検索/更新処理が必要になると、制御対象プログラ
ムの利用者等によって利用者指定情報1が指定される
(利用者指定情報1は、データレコード検索/更新手段
2,プライオリティ記憶手段3および排他解除待ち判定
手段6によって入力される)(ステップ201)。
In the course of processing a program having the data record search / update means 2 (hereinafter referred to as a control target program), when a search / update process of a data record in the database file 10 becomes necessary, a user of the control target program is required. The user designation information 1 is designated by such as (the user designation information 1 is inputted by the data record search / update means 2, the priority storage means 3, and the exclusion release wait determination means 6) (step 201).

【0018】利用者指定情報1は、処理対象のデータレ
コードを指定する情報と、処理内容(「検索」または
「更新」)を示す情報と、プライオリティ更新情報と、
判定時点情報とを含んでいる。なお、本実施例は請求項
2記載の発明に対応するものであり、利用者指定情報1
中の判定時点情報はデータレコード件数であるものとす
る(このデータレコード件数分の処理が終了した時点で
排他解除待ち判定手段6による判定が行われる)。ちな
みに、請求項1記載の発明における判定時点情報は、経
過時間等のデータレコード件数以外の情報であってもか
まわない。
The user specification information 1 includes information for specifying a data record to be processed, information indicating the processing content ("search" or "update"), priority update information,
And judgment point information. This embodiment corresponds to the second aspect of the present invention, and the user-designated information 1
It is assumed that the judgment time information in the middle is the number of data records (when the processing for the number of data records is completed, the judgment is made by the exclusion release wait judgment means 6). Incidentally, the determination time information in the invention described in claim 1 may be information other than the number of data records such as elapsed time.

【0019】プライオリティ記憶手段3は、あらかじめ
各プログラムのプライオリティ(排他制御に関する処理
の優先度)を記憶しているが、利用者指定情報1中のプ
ライオリティ更新情報に基づいて制御対象プログラムの
プライオリティを更新する(ステップ202)。なお、
プライオリティ更新情報が「更新不要」を示している場
合には、ステップ202の処理は行われない。
The priority storage means 3 stores in advance the priority of each program (priority of processing relating to exclusive control), but updates the priority of the program to be controlled based on the priority update information in the user designation information 1. (Step 202). In addition,
If the priority update information indicates “update unnecessary”, the process of step 202 is not performed.

【0020】データレコード検索/更新手段2は、利用
者指定情報1に基づき、データベースファイル10内の
あるブロック中の複数のデータレコードの検索/更新処
理を行う(1件のデータレコードずつ逐次に当該処理を
繰り返す)。その際に、データレコード検索/更新手段
2は、排他制御手段4を呼び出し、処理対象のデータレ
コード群を含むブロック(以下、「処理対象ブロック」
という)が他のプログラム(制御対象プログラム以外の
プログラム)によってロックされているか否かという排
他状態を排他制御手段4に問い合わせる(ステップ20
3)。
The data record search / update means 2 searches / updates a plurality of data records in a certain block in the database file 10 based on the user designation information 1 (one data record at a time). Repeat the process). At this time, the data record searching / updating unit 2 calls the exclusive control unit 4 and executes a block including a data record group to be processed (hereinafter, “block to be processed”).
Is inquired of the exclusive control means 4 as to whether or not the program is locked by another program (a program other than the program to be controlled) (step 20).
3).

【0021】排他制御手段4は、排他情報記憶手段5に
記憶されているブロック毎の排他情報(「そのブロック
の排他状態を示す情報」および「そのブロックに対する
ロックが解除されるのを待っているプログラムを特定す
る情報」を有する情報)に基づき、処理対象ブロックが
他のプログラムによってロックされているか否かを判定
する(ステップ204)。
The exclusion control means 4 controls the exclusion information for each block stored in the exclusion information storage means 5 ("information indicating the exclusion state of the block" and "waiting for the lock on the block to be released". It is determined whether or not the processing target block is locked by another program on the basis of information having "information specifying a program" (step 204).

【0022】排他制御手段4は、ステップ204で「処
理対象ブロックが他のプログラムによってロックされて
いる」と判定した場合には、処理対象ブロックのロック
が解除されるまで待ち合わせる(一定の時隔でステップ
204の判定を繰り返す)。
If the exclusive control means 4 determines in step 204 that the block to be processed is locked by another program, it waits until the lock on the block to be processed is released (at a fixed time interval). The determination in step 204 is repeated).

【0023】また、排他制御手段4は、ステップ204
で「他のプログラムによりロックされていない」と判定
した場合には、制御対象プログラムのために処理対象ブ
ロックをロックする制御を行い、データレコード検索/
更新手段2に1件のデータレコードの検索/更新処理を
行わせる(ステップ205)。なお、データレコード検
索/更新手段2は、データレコードの更新処理を行った
場合には、更新前レコードイメージ(処理対象のデータ
レコードの更新前の内容)をジャーナルファイル9に格
納しておく。
Further, the exclusive control means 4 executes step 204
If it is determined that "the lock is not locked by another program", the control to lock the processing target block for the control target program is performed, and the data record search /
The updating means 2 performs a search / update process of one data record (step 205). Note that the data record search / update means 2 stores the pre-update record image (contents of the data record to be processed before the update) in the journal file 9 when the data record is updated.

【0024】排他解除待ち判定手段6は、データレコー
ド検索/更新手段2による1件のデータレコードの検索
/更新処理が終了すると、利用者指定情報1中の判定時
点情報によって指定されたデータレコード件数分の処理
が終了したか否か(ステップ207の判定を行う時点で
あるか否か)を判定する(ステップ206)。
When the search / update processing of one data record by the data record search / update means 2 is completed, the exclusion release wait judging means 6 counts the number of data records designated by the judgment time information in the user designation information 1. It is determined whether or not the minute processing has been completed (whether or not it is time to make the determination in step 207) (step 206).

【0025】排他解除待ち判定手段6は、ステップ20
6で「指定されたデータレコード件数分の処理が終了し
ていない」と判定した場合には、ステップ207の判定
を行う時点に至っていないことを認識し、ステップ20
5に制御を戻す(データレコード検索/更新手段2は次
の1件のデータレコードの検索/更新処理を行う)。
The exclusion release wait determination means 6 determines in step 20
If it is determined in step 6 that "the processing for the specified number of data records has not been completed", it is recognized that the point in time at which the determination in step 207 has not been reached is reached, and step 20
5 (the data record search / update means 2 performs search / update processing of the next one data record).

【0026】排他解除待ち判定手段6は、ステップ20
6で「指定されたデータレコード件数分の処理が終了し
た」と判定した場合には、排他情報記憶手段5内の排他
情報に基づいて処理対象ブロックに対するロックの解除
待ち状態にある他のプログラム(以下、「解除待ちプロ
グラム」という)が存在するか否かを判定する(ステッ
プ207)。なお、請求項1記載の発明におけるこの判
定(解除待ちプログラムが存在するか否かの判定)は、
判定時点情報の内容に応じた所定の時点において行われ
る。
The exclusion release wait determination means 6 determines in step 20
If it is determined in step 6 that "the processing for the specified number of data records has been completed", the other programs (in the waiting state for the lock on the processing target block based on the exclusive information in the exclusive information storage means 5) are released. Hereafter, it is determined whether or not a “release waiting program” exists (step 207). This determination (determination as to whether or not a release waiting program exists) in the first aspect of the invention is
The determination is performed at a predetermined time according to the content of the determination time information.

【0027】排他解除待ち判定手段6は、ステップ20
7で「解除待ちプログラムが存在しない」と判定した場
合には、ステップ205に制御を戻す。
The exclusion release wait judging means 6 executes Step 20
If it is determined in step 7 that "there is no release waiting program", the control returns to step 205.

【0028】一方、排他解除待ち判定手段6は、ステッ
プ207で「解除待ちプログラムが存在する」と判定し
た場合には、プライオリティ判定手段7に制御を渡す。
On the other hand, if it is determined in step 207 that "there is a release waiting program", the exclusion release wait determination means 6 passes control to the priority determination means 7.

【0029】プライオリティ判定手段7は、プライオリ
ティ記憶手段3に記憶されている解除待ちプログラムの
プライオリティと制御対象プログラムのプライオリティ
とを比較し、どちらのプログラムに係る処理を優先させ
るべきであるかを判定する(ステップ208)。
The priority determination means 7 compares the priority of the release waiting program stored in the priority storage means 3 with the priority of the program to be controlled, and determines which program should be given priority. (Step 208).

【0030】プライオリティ判定手段7は、ステップ2
08で「解除待ちプログラムのプライオリティよりも制
御対象プログラムのプライオリティの方が高い(制御対
象プログラムを優先させるべきである)」と判定した場
合には、ステップ205に制御を戻す。
The priority judging means 7 determines in step 2
If it is determined in 08 that “the priority of the control target program is higher than the priority of the release waiting program (the control target program should be given priority)”, the control is returned to step 205.

【0031】プライオリティ判定手段7は、ステップ2
08で「解除待ちプログラムのプライオリティの方が制
御対象プログラムのプライオリティよりも高い(解除待
ちプログラムを優先させるべきである)」と判定した場
合には、トランザクションバックアウト手段8および排
他制御手段4に制御を渡す。
The priority judging means 7 determines in step 2
If it is determined in step 08 that the priority of the release waiting program is higher than the priority of the control target program (the release waiting program should be given priority), the transaction backout means 8 and the exclusive control means 4 give.

【0032】トランザクションバックアウト手段8は、
データレコード検索/更新手段2によってジャーナルフ
ァイル9に出力されている更新前レコードイメージをデ
ータベースファイル10に書き戻す(ステップ20
9)。また、排他制御手段4は、解除待ちプログラムの
処理対象ブロックに係る待ち状態を解除し、解除待ちプ
ログラムのために処理対象ブロックをロックする制御を
行う(ステップ210)。これにより、緊急性を有する
解除待ちプログラムに係る処理を制御対象プログラムに
係る処理よりも優先させることができる。
The transaction backout means 8
The pre-update record image output to the journal file 9 by the data record search / update means 2 is written back to the database file 10 (step 20).
9). In addition, the exclusive control unit 4 releases the waiting state of the processing target block of the release waiting program and performs control to lock the processing target block for the release waiting program (step 210). As a result, the processing related to the urgent release waiting program can be prioritized over the processing related to the control target program.

【0033】排他制御手段4は、解除待ちプログラムに
よる処理対象ブロックに対する処理が完了した時点で、
制御対象プログラムのために処理対象ブロックをロック
する制御を行い(ステップ211)、データレコード検
索/更新手段2にあらためて処理対象ブロック内のデー
タレコードの検索/更新処理を行わせる(ステップ20
5)。
When the exclusive control means 4 completes the processing for the processing target block by the release waiting program,
Control is performed to lock the processing target block for the control target program (step 211), and the data record searching / updating means 2 performs the search / update processing of the data record in the processing target block again (step 20).
5).

【0034】なお、図2には示していないが、行うべき
「データレコードの検索/更新処理」の全てが終了した
場合には、データレコード検索/更新手段2は図2に示
す処理を終了させる。
Although not shown in FIG. 2, when all the "data record search / update processing" to be performed is completed, the data record search / update means 2 ends the processing shown in FIG. .

【0035】[0035]

【発明の効果】以上説明したように本発明は、プライオ
リティに基づいて制御対象プログラムと解除待ちプログ
ラムとの間の排他制御を行うこと等により、緊急性を有
するプログラムに係る処理を優先的に稼働することがで
き、緊急性を有するプログラムの処理性能を劣化させる
ことがなくなるという効果がある。
As described above, according to the present invention, the exclusive control between the control target program and the release waiting program is performed based on the priority, etc., so that the processing related to the urgent program is preferentially operated. This has the effect that the processing performance of the urgent program is not deteriorated.

【0036】具体的には、例えば、同一のデータベース
ファイルをアクセスするオンライン業務アプリケーショ
ンプログラムとバッチジョブプログラムとが起動されて
いる場合に、オンライン業務アプリケーションプログラ
ムのプライオリティをバッチジョブプログラムのプライ
オリティよりも高く設定しておけばオンライン業務アプ
リケーションプログラムが優先的に稼働するので、オン
ライン業務アプリケーションプログラムの性能を劣化さ
せることがなくなるという効果がある。
Specifically, for example, when an online business application program and a batch job program that access the same database file are running, the priority of the online business application program is set higher than the priority of the batch job program. If this is done, the online business application program runs preferentially, so that there is an effect that the performance of the online business application program does not deteriorate.

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

【図1】本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】図1に示す排他制御方式の処理を示す流れ図で
ある。
FIG. 2 is a flowchart showing processing of the exclusive control method shown in FIG.

【図3】従来の排他制御方式の一例の構成を示すブロッ
ク図である。
FIG. 3 is a block diagram showing a configuration of an example of a conventional exclusive control method.

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

1 利用者指定情報 2 データレコード検索/更新手段 3 プライオリティ記憶手段 4 排他制御手段 5 排他情報記憶手段 6 排他解除待ち判定手段 7 プライオリティ判定手段 8 トランザクションバックアウト手段 9 ジャーナルファイル 10 データベースファイル DESCRIPTION OF SYMBOLS 1 User specification information 2 Data record search / update means 3 Priority storage means 4 Exclusive control means 5 Exclusive information storage means 6 Exclusion release waiting judgment means 7 Priority judgment means 8 Transaction backout means 9 Journal file 10 Database file

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 データファイルに格納されたデータレコ
ードが複数のプログラムによって検索/更新される情報
処理システムにおける排他制御方式において、 利用者指定情報中のプライオリティ更新情報を反映して
各プログラムのプライオリティを記憶するプライオリテ
ィ記憶手段と、 前記データファイルにおけるブロック毎の排他情報を記
憶する排他情報記憶手段と、 利用者指定情報に基づいて前記データファイル内のデー
タレコードの検索/更新処理を行い、データレコードの
更新処理を行った場合に更新前レコードイメージをジャ
ーナルファイルに格納するデータレコード検索/更新手
段と、 利用者指定情報中の判定時点情報によって示されるデー
タレコード件数分の処理が終了した時点において解除待
ちプログラムが存在するか否かを判定する排他解除待ち
判定手段と、 この排他解除待ち判定手段により「解除待ちプログラム
が存在する」と判定された場合に、解除待ちプログラム
と制御対象プログラムとのどちらを優先させるべきであ
るかを前記プライオリティ記憶手段に記憶されているプ
ライオリティに基づいて判定するプライオリティ判定手
段と、 このプライオリティ判定手段により「解除待ちプログラ
ムを優先させるべきである」と判定された場合に、制御
対象プログラムにより更新されたデータレコードの更新
前レコードイメージを前記ジャーナルファイルから前記
データファイルに戻すトランザクションバックアウト手
段と、 前記データレコード検索/更新手段から呼び出され、前
記排他情報記憶手段に記憶されている排他情報および前
記プライオリティ判定手段の判定結果を使用して前記デ
ータファイルに対する排他制御をブロック単位で行う排
他制御手段とを有することを特徴とする排他制御方式。
1. An exclusive control method in an information processing system in which a data record stored in a data file is searched / updated by a plurality of programs, wherein priority of each program is reflected by reflecting priority update information in user-specified information. Priority storing means for storing; exclusive information storing means for storing exclusive information for each block in the data file; searching / updating data records in the data file based on user-specified information; A data record search / update means for storing a pre-update record image in a journal file when an update process is performed, and a release wait when the processing for the number of data records indicated by the judgment time information in the user specification information is completed. Whether the program exists Exclusion release wait determining means for determining whether the elimination wait waiting program or the control target program should be prioritized when the exclusion release wait determining means determines that "there is a release waiting program". The priority determination means for determining based on the priority stored in the priority storage means, and when the priority determination means determines that "the program waiting for release should be given priority", the priority is updated by the program to be controlled. A transaction backout unit for returning a pre-update record image of the data record from the journal file to the data file; an exclusive information and a priority determination which are called from the data record search / update unit and stored in the exclusive information storage unit. An exclusive control means for performing exclusive control on the data file in units of blocks using the determination result of the setting means.
JP5291549A 1993-10-28 1993-10-28 Exclusive control method Expired - Fee Related JP2843748B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5291549A JP2843748B2 (en) 1993-10-28 1993-10-28 Exclusive control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5291549A JP2843748B2 (en) 1993-10-28 1993-10-28 Exclusive control method

Publications (2)

Publication Number Publication Date
JPH07129452A JPH07129452A (en) 1995-05-19
JP2843748B2 true JP2843748B2 (en) 1999-01-06

Family

ID=17770357

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5291549A Expired - Fee Related JP2843748B2 (en) 1993-10-28 1993-10-28 Exclusive control method

Country Status (1)

Country Link
JP (1) JP2843748B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3864250B2 (en) 2002-10-31 2006-12-27 インターナショナル・ビジネス・マシーンズ・コーポレーション Exclusive control device, exclusive control method, program, and recording medium
US7529827B2 (en) 2006-06-29 2009-05-05 Stratavia Corporation Standard operating procedure automation in database administration
US7571225B2 (en) * 2006-06-29 2009-08-04 Stratavia Corporation Standard operating procedure automation in database administration

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63292456A (en) * 1987-05-26 1988-11-29 Nec Corp Control system for medium assignment of plural medium containing type data recorder
JPH03235130A (en) * 1990-02-13 1991-10-21 Hitachi Ltd Exclusive priority control system
JPH0485632A (en) * 1990-07-30 1992-03-18 Nec Corp Deadlock avoiding system

Also Published As

Publication number Publication date
JPH07129452A (en) 1995-05-19

Similar Documents

Publication Publication Date Title
US5327557A (en) Single-keyed indexed file for TP queue repository
JPH04229355A (en) Data access method and data processing system
US20040236743A1 (en) Database reorganization technique
JP3510042B2 (en) Database management method and system
JPH08328933A (en) File access control system for parallel processing system
EP1850250A1 (en) Method and system for renewing an index
JP2843748B2 (en) Exclusive control method
CN115629822A (en) Concurrent transaction processing method and system based on multi-core processor
JPH04139545A (en) Data base updating processing system
JP3093714B2 (en) Multitasking execution priority determination system
JP2787107B2 (en) Buffer control system and device
JPH0728836A (en) Data base retrieving method and data base system using this method
JP3460265B2 (en) Data transfer method between computers
JPH0456344B2 (en)
JPH05143422A (en) Updated journal managing system
JPH05313963A (en) Deciding system for storing block to data file
JPH05210562A (en) Network file system
JPH08235044A (en) Journal retrieval systm
JPH05298269A (en) Booking data processing system for loose-coupled multiprocessor system
JP2000122878A (en) Method and system for starting and managing job
JPH021056A (en) Data base processing system
JPH04222035A (en) Method for evading dead lock in computer system
JPH0553886A (en) Table access managing system
JPH03116252A (en) Generation control system for source program
JPH04213128A (en) Data processor

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19961015

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980922

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071023

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081023

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091023

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees