JP2001134480A - System and method for file exclusive control and recording medium - Google Patents

System and method for file exclusive control and recording medium

Info

Publication number
JP2001134480A
JP2001134480A JP31128799A JP31128799A JP2001134480A JP 2001134480 A JP2001134480 A JP 2001134480A JP 31128799 A JP31128799 A JP 31128799A JP 31128799 A JP31128799 A JP 31128799A JP 2001134480 A JP2001134480 A JP 2001134480A
Authority
JP
Japan
Prior art keywords
file
record
exclusive
counter value
counter
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
JP31128799A
Other languages
Japanese (ja)
Inventor
Yoshikazu Okada
好和 岡田
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.)
OKAYAMA NIPPON DENKI SOFTWARE KK
NEC Software Okayama Ltd
Original Assignee
OKAYAMA NIPPON DENKI SOFTWARE KK
NEC Software Okayama 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 OKAYAMA NIPPON DENKI SOFTWARE KK, NEC Software Okayama Ltd filed Critical OKAYAMA NIPPON DENKI SOFTWARE KK
Priority to JP31128799A priority Critical patent/JP2001134480A/en
Publication of JP2001134480A publication Critical patent/JP2001134480A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To prevent the mismatching of file update in a file sharing. SOLUTION: A file reading part 21 reads records from a file, and exclusive counter reading part 22 reads the value of an exclusive counter from the read records. A previous counter storing part 31 stores the value of the exclusive counter transferred from the exclusive counter value transferred from the exclusive counter reading part 22 as the previous counter value. An exclusive counter reading part 41 reads the records read by the file reading part 21 from the file again, and reads the value of the exclusive counter of the read records. A counter reading and comparing part 42 reads the previous counter value through a counter reading part 32, and compares the counter value with the value of the exclusive counter read by the exclusive counter reading part 41. When the both counter values are matched with each other, a data updating part 51 updates the data, and a counter adding part 53 adds 1 to the value of the exclusive counter, and a file writing part 53 writes the records back in the file.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ファイルの排他制
御方式に関し、特にクライアント/サーバシステムにお
けるシステム共有ファイルの排他制御方式,方法および
記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an exclusive control method for a file, and more particularly to an exclusive control method, a method, and a recording medium for a system shared file in a client / server system.

【0002】[0002]

【従来の技術】クライアント/サーバシステムにおい
て、索引順編成ファイルや順編成ファイルなどのマスタ
ファイル等のシステムの共有資産を共有する場合、シス
テムの共有資産はサーバのみに格納している。サーバに
繋がっているクライアント端末では、必要なときにサー
バの共有資産から必要なデータを取り込み、加工して書
き込むことが出来る。
2. Description of the Related Art In a client / server system, when a system common asset such as a master file such as an index sequential file or a sequential file is shared, the system common asset is stored only in the server. The client terminal connected to the server can fetch, process, and write necessary data from the shared assets of the server when necessary.

【0003】一方、システムの共有資産を共有しない場
合は、各クライアント端末がシステムの共有資産を個別
に持つことになり、マスタファイル等のための磁気ディ
スク装置等を保持する必要がある。
[0005] On the other hand, when the shared assets of the system are not shared, each client terminal individually has the shared assets of the system, and it is necessary to hold a magnetic disk device for a master file and the like.

【0004】このように、システムの共有資産の共有を
行うと、システム全体にかかるコストを低く押さえるこ
とができ、利点が多い。
[0004] As described above, sharing the common assets of the system can reduce the cost of the entire system and has many advantages.

【0005】しかし、システムの共有ファイルを共有す
るということは、あるクライアント端末がシステムの共
有ファイルを処理しているときに、他のクライアント端
末から同一のファイルが処理される可能性があることを
意味している。
However, sharing a system shared file means that when one client terminal is processing a system shared file, another client terminal may process the same file. Means.

【0006】このため、ファイルがオープンされたと
き、そのファイルがクローズされるまでの間、他からそ
のファイルにアクセスできないように制御する排他制御
方式が知られている。この方式では、後からファイルを
オープンする方がファイルの参照だけを行う場合でも拒
否される。
For this reason, there is known an exclusive control system for controlling a file to be inaccessible from another until the file is closed until the file is closed. In this method, opening the file later is rejected even if only the file is referenced.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上述の
従来の技術では、以下のような問題点があった。
However, the above-mentioned prior art has the following problems.

【0008】第1の問題点は、排他制御方式を採用しな
い場合に、例えばAクライアント端末で共有ファイルの
レコードの更新処理を行っているときに、Bクライアン
ト端末から同一レコードに対して更新処理を行うと、A
クライアント端末の更新処理の結果が引き継がれずに、
Bクライアント端末は旧いレコード内容に更新処理を行
いファイルに書き戻し、結果的にAクライアント端末の
更新処理の結果が失われることである。
The first problem is that when the exclusive control method is not adopted, for example, when the update processing of the record of the shared file is performed at the client terminal A, the update processing is performed on the same record from the client B terminal. If you do, A
The result of the client terminal update process is not inherited,
The B client terminal updates the old record contents and writes it back to the file. As a result, the result of the A client terminal update process is lost.

【0009】第2の問題点は、排他制御方式を採用した
場合に、例えばAクライアント端末で共有ファイルのレ
コードの更新処理を行っているときに、Bクライアント
端末から同一ファイルに対して参照処理ができないこと
である。
A second problem is that when the exclusive control method is adopted, for example, when the update processing of the record of the shared file is performed on the A client terminal, the reference processing for the same file is performed from the B client terminal. That is not possible.

【0010】本発明の目的は、共有ファイルの排他制御
の問題点を解決するカウンタ方式によるファイル排他制
御方式を提供することにある。
An object of the present invention is to provide a file exclusion control method using a counter method which solves the problem of exclusive control of a shared file.

【0011】[0011]

【課題を解決するための手段】本願第1の発明のファイ
ル排他制御方式は、ファイルのレコード排他制御を行う
ための排他カウンタ値を保管する排他カウンタと、ファ
イルからレコードを読み込んだときの排他カウンタ値と
前記レコードのデータを更新するときの排他カウンタ値
とが等しい場合にデータを更新した前記レコードを前記
ファイルに書き戻す手段と、を備えることを特徴とす
る。
According to a first aspect of the present invention, there is provided a file exclusion control method for storing an exclusion counter value for performing a record exclusion control of a file, and an exclusion counter for reading a record from a file. Means for writing back the record whose data has been updated to the file when the value is equal to the exclusive counter value used when updating the data of the record.

【0012】本願第2の発明のファイル排他制御方式
は、ファイルからレコードを読み込み前記レコードに対
する排他カウンタ値を読み取るファイル読込処理手段
と、前記ファイル読込処理手段が読み取った前記排他カ
ウンタ値を前回カウンタ値として記憶する記憶手段と、
前記レコードに対する排他カウンタ値を再度読み取り前
記記憶手段に記憶されている前記前回カウンタ値と比較
して一致した場合にファイル書込処理手段に制御を移す
排他制御手段と、前記レコードのデータ内容の更新を行
い前記レコードに対する排他カウンタ値に1を加算して
前記レコードをファイルに書き戻すファイル書込処理手
段と、を備える。
A file exclusion control method according to a second aspect of the present invention is a file exclusion control method for reading a record from a file and reading an exclusion counter value for the record, and using the exclusion counter value read by the file read processing means as a previous counter value. Storage means for storing as
Exclusive control means for re-reading the exclusive counter value for the record, comparing it with the previous counter value stored in the storage means, and transferring control to the file writing processing means when the values match, updating the data content of the record File write processing means for adding 1 to the exclusive counter value for the record and writing the record back to the file.

【0013】本願第3の発明のファイル排他制御方式
は、第2の発明において前記排他カウンタは、前記ファ
イルの前記レコード内に存在することを特徴とする。
[0013] In a file exclusion control method according to a third invention of the present application, in the second invention, the exclusion counter exists in the record of the file.

【0014】本願第4の発明のファイル排他制御方法
は、ファイルのレコード排他制御を行うための排他カウ
ンタ値を保管し、ファイルからレコードを読み込み前記
レコードに対する排他カウンタ値を読み取り、読み取っ
た前記排他カウンタ値を前回カウンタ値として記憶し、
前記レコードに対する排他カウンタ値を再度読み取り記
憶されている前記前回カウンタ値と比較し、前記比較が
一致した場合に前記レコードのデータ内容の更新を行い
前記レコードに対する排他カウンタ値に1を加算して前
記レコードをファイルに書き戻す、ことを特徴とする。
According to a fourth aspect of the present invention, there is provided a file exclusive control method for storing an exclusive counter value for performing a record exclusive control of a file, reading a record from a file, reading an exclusive counter value for the record, and reading the exclusive counter value. Store the value as the previous counter value,
The exclusive counter value for the record is read again and compared with the previous counter value stored, and when the comparison is made, the data content of the record is updated, and 1 is added to the exclusive counter value for the record, and Write the record back to the file.

【0015】本願第5の発明のファイル排他制御方法
は、第4の発明において前記排他カウンタ値は、前記フ
ァイルの前記レコード内に保管することを特徴とする。
[0015] In a file exclusion control method according to a fifth invention of the present application, in the fourth invention, the exclusion counter value is stored in the record of the file.

【0016】本願第6の発明の記録媒体は、ファイルの
レコード排他制御を行うための排他カウンタ値を保管す
る保管処理と、ファイルからレコードを読み込み前記レ
コードに対する排他カウンタ値を読み取るファイル読込
処理処理と、読み取った前記排他カウンタ値を前回カウ
ンタ値として記憶する記憶処理と、前記レコードに対す
る排他カウンタ値を再度読み取り記憶されている前記前
回カウンタ値と比較する排他制御処理と、前記比較が一
致した場合に前記レコードのデータ内容の更新を行い前
記レコードに対する排他カウンタ値に1を加算して前記
レコードをファイルに書き戻すファイル書込処理処理
と、をコンピュータに実行させるためのプログラムを記
録したことを特徴とする。
According to a sixth aspect of the present invention, there is provided a storage medium for storing an exclusive counter value for performing a record exclusive control of a file, a file reading process for reading a record from a file and reading an exclusive counter value for the record. A storage process for storing the read exclusive counter value as a previous counter value, an exclusive control process for reading the exclusive counter value for the record again and comparing the read exclusive counter value with the previously stored counter value, and A program for updating a data content of the record, adding 1 to an exclusive counter value for the record and writing the record back to a file, and causing a computer to execute the file writing process. I do.

【0017】本願第7の発明の記録媒体は、第6の発明
において前記排他カウンタ値を前記ファイルの前記レコ
ード内に保管する排他カウンタ値保管処理をコンピュー
タに実行させるためのプログラムを記録したことを特徴
とする。
According to a seventh aspect of the present invention, in the recording medium according to the sixth aspect, a program for causing a computer to execute an exclusive counter value storing process of storing the exclusive counter value in the record of the file is recorded. Features.

【0018】[0018]

【発明の実施の形態】クライアント/サーバシステムに
おいて、あるクライアントの処理対象ファイルがシステ
ムの共有ファイルである場合、他のクライアントから同
一ファイルが処理される可能性がある。
DESCRIPTION OF THE PREFERRED EMBODIMENTS In a client / server system, if a file to be processed by a certain client is a shared file of the system, there is a possibility that another client will process the same file.

【0019】本発明によるファイル排他制御方式の特徴
は、システム共有ファイルの更新処理中に他のクライア
ントからの当該ファイルの内容更新が発生しているかい
ないかを判断できる手段を設け、当該ファイルの内容更
新が発生していない場合にだけその後のファイル書き戻
し処理を行う手段を有することである。
A feature of the file exclusion control method according to the present invention is that a means for determining whether or not the content of the file has been updated from another client during the update processing of the system shared file is provided. This is to have means for performing a subsequent file write-back process only when no update has occurred.

【0020】このことにより、他のクライアントからの
当該ファイルの内容更新が発生して参照内容が変わった
にもかかわらず、その後のファイル書き戻し処理が行わ
れるといった処理の不整合が防止できる。
As a result, even if the contents of the file are updated from another client and the reference contents are changed, inconsistency in processing such that subsequent file write-back processing is performed can be prevented.

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

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

【0023】図1を参照すると、本発明の実施の形態
は、入力装置1と、ファイル読込処理装置2と、記憶装
置3と、排他制御装置4と、ファイル書込処理装置5
と、出力装置6と、を含む。
Referring to FIG. 1, according to the embodiment of the present invention, an input device 1, a file read processing device 2, a storage device 3, an exclusive control device 4, and a file write processing device 5
And an output device 6.

【0024】入力装置1は、ファイル読込処理装置2に
対するファイル読み込み命令および読み込んだファイル
の設定値に対する更新命令を入力する装置であり、キー
ボード等である。
The input device 1 is a device for inputting a file reading command to the file reading processing device 2 and a command for updating the set value of the read file, such as a keyboard.

【0025】ファイル読込処理装置2は、入力装置1で
指示されたファイルからレコードを読み込んで排他カウ
ンタの値を読み取り、読み込んだレコードの内容を出力
装置6に引き渡す。ファイル読込処理装置2は、ファイ
ル読込部21と排他カウンタ読取部22とを備えてい
る。
The file reading processing device 2 reads a record from the file specified by the input device 1, reads the value of the exclusive counter, and transfers the contents of the read record to the output device 6. The file reading processing device 2 includes a file reading unit 21 and an exclusive counter reading unit 22.

【0026】ファイル読込部21は、ファイルからレコ
ードを読み込む。レコードの形式を図2に示す。図2を
参照すると、レコードはレコードのデータを格納するデ
ータフィールドと排他カウンタの値を格納する排他カウ
ンタフィールドとから構成されている。図2の例では、
排他カウンタフィールドはレコードの末尾に存在する
が、レコードの先頭に存在してもよい。
The file reading section 21 reads a record from a file. FIG. 2 shows the format of the record. Referring to FIG. 2, the record is composed of a data field for storing data of the record and an exclusive counter field for storing the value of the exclusive counter. In the example of FIG.
The exclusive counter field is at the end of the record, but may be at the beginning of the record.

【0027】排他カウンタ読取部22は、ファイル読込
部21が読み込んだレコードから排他カウンタの値を読
み取る。
The exclusive counter reading unit 22 reads the value of the exclusive counter from the record read by the file reading unit 21.

【0028】記憶装置3は、排他カウンタの値を前回カ
ウンタ値として記憶し、また記憶している前回カウンタ
の値を読み出す。記憶装置3は、前回カウンタ記憶部3
1とカウンタ読出部32とを備えている。
The storage device 3 stores the value of the exclusive counter as the previous counter value, and reads out the stored value of the previous counter. The storage device 3 includes a previous counter storage unit 3
1 and a counter reading unit 32.

【0029】前回カウンタ記憶部31は、排他カウンタ
読取部22から渡された排他カウンタの値を前回カウン
タ値として記憶する。
The previous counter storage unit 31 stores the value of the exclusive counter passed from the exclusive counter reading unit 22 as the previous counter value.

【0030】カウンタ読出部32は、前回カウンタ記憶
部31が記憶している前回カウンタの値を読み出す。
The counter reading section 32 reads the value of the previous counter stored in the previous counter storage section 31.

【0031】排他制御装置4は、再度レコードの排他カ
ウンタの値を読み取り、記憶装置3に記憶されている前
回カウンタ値を読み出し、両カウンタ値を比較し合致し
た場合はファイル書込処理装置5に制御を移す。排他制
御装置4は、排他カウンタ読取部41とカウンタ取出比
較部42とを備えている。
The exclusive control device 4 reads the exclusive counter value of the record again, reads the previous counter value stored in the storage device 3, compares the two counter values, and if they match, sends the file write processing device 5. Transfer control. The exclusive control device 4 includes an exclusive counter reading unit 41 and a counter extraction comparing unit 42.

【0032】排他カウンタ読取部41は、ファイル読込
部21が読み込んだレコードを再度ファイルから読み込
み読み込んだレコードの排他カウンタの値を読み取る。
The exclusive counter reading unit 41 reads the record read by the file reading unit 21 again from the file and reads the value of the exclusive counter of the record read.

【0033】カウンタ取出比較部42は、カウンタ読出
部32を介して前回カウンタ記憶部31から前回カウン
タ値を読み出し、排他カウンタ読取部41が読み取った
排他カウンタの値と比較し、両カウンタ値が合致した場
合はファイル書込処理装置5に制御を移す。
The counter extracting / comparing unit 42 reads the previous counter value from the previous counter storage unit 31 via the counter reading unit 32 and compares the read value with the value of the exclusive counter read by the exclusive counter reading unit 41. If so, the control is transferred to the file writing processor 5.

【0034】ファイル書込処理装置5は、レコードのデ
ータの更新を行い、排他カウンタの値に1を加算し、レ
コードをファイルに書き戻す。ファイル書込処理装置5
は、データ更新部51とカウンタ加算部52とファイル
書込部53とを備えている。
The file writing processor 5 updates the data of the record, adds 1 to the value of the exclusive counter, and writes the record back to the file. File writing processor 5
Includes a data updating unit 51, a counter adding unit 52, and a file writing unit 53.

【0035】データ更新部51は、レコードのデータフ
ィールドに対してデータの更新を行う。
The data updating section 51 updates data in a data field of a record.

【0036】カウンタ加算部52は、データ更新部51
でデータの更新を行ったレコードの排他カウンタフィー
ルドの値に1を加算する。
The counter adding section 52 includes a data updating section 51
Adds 1 to the value of the exclusive counter field of the record whose data has been updated.

【0037】ファイル書込部53は、データ更新部51
およびカウンタ加算部52で処理したレコードをファイ
ルに書き戻す。
The file writing unit 53 includes a data updating unit 51
Then, the record processed by the counter adding unit 52 is written back to the file.

【0038】出力装置6は、ファイル読込部21がファ
イルから読み込んだレコードの内容を出力する装置であ
り、ディスプレイ装置や印刷装置等である。
The output device 6 is a device for outputting the contents of the record read from the file by the file reading section 21, and is a display device, a printing device, or the like.

【0039】本発明の実施の形態の動作について、図
1,図2および図3を参照して詳細に説明する。
The operation of the embodiment of the present invention will be described in detail with reference to FIGS. 1, 2 and 3.

【0040】図3は、本発明の実施の形態の動作の流れ
を示す図である。
FIG. 3 is a diagram showing a flow of the operation of the embodiment of the present invention.

【0041】図3を参照すると、入力装置1から入力さ
れた命令により、ファイル読込処理装置2のファイル読
込部21は処理対象のファイルのレコードを読み込む
(ステップA1)。
Referring to FIG. 3, according to a command input from the input device 1, the file reading unit 21 of the file reading processing device 2 reads a record of a file to be processed (step A1).

【0042】その際、排他カウンタ読取部22は、レコ
ードの排他カウンタの値を読み取り(ステップA2)、
記憶装置3の前回カウンタ記憶部31に格納する(ステ
ップA3)。
At this time, the exclusive counter reading section 22 reads the value of the exclusive counter of the record (step A2),
The data is stored in the previous counter storage unit 31 of the storage device 3 (step A3).

【0043】その後、読み込んだレコードの内容を基
に、CRT画面等の出力装置6に出力を行う(ステップ
A4)。
Thereafter, based on the contents of the read record, an output is made to the output device 6 such as a CRT screen (step A4).

【0044】CRT画面等に表示された内容に、入力装
置1からの入力を加工し再び同じファイルに書き込む処
理を行う場合は、排他制御装置4の排他カウンタ読取部
41によりレコードの排他カウンタ値を再度読み取る
(ステップA5〜A6)。
In the case where the input from the input device 1 is processed into the contents displayed on the CRT screen or the like and is written into the same file again, the exclusive counter reading unit 41 of the exclusive control device 4 reads the exclusive counter value of the record. Read again (steps A5 to A6).

【0045】その後、カウンタ取出比較部42が記憶装
置3に命令し、カウンタ読出部32が前回カウンタ記憶
部31から前回カウンタ数値を読み出しカウンタ取出比
較部42に渡す(ステップA7)。
Thereafter, the counter extracting / comparing section 42 instructs the storage device 3, and the counter reading section 32 reads the previous counter value from the previous counter storing section 31 and passes it to the counter extracting / comparing section 42 (step A7).

【0046】カウンタ取出比較部42では読み込んだ排
他カウンタ値と渡された排他カウンタ値を比較する(ス
テップA8)。
The counter extracting / comparing section 42 compares the read exclusive counter value with the passed exclusive counter value (step A8).

【0047】比較した結果、排他カウンタ値が合致した
場合、排他制御装置4はファイル書込処理装置5にファ
イルの書き込みの命令を行う。ファイル書込処理装置5
のデータ更新部51はレコードのデータの更新を行う
(ステップA9)。
When the exclusive counter values match as a result of the comparison, the exclusive control unit 4 instructs the file writing processing unit 5 to write the file. File writing processor 5
The data updating unit 51 updates the data of the record (step A9).

【0048】更新後、カウンタ加算部52により排他カ
ウンタに1を加算する(ステップA10)。
After the updating, the counter adding section 52 adds 1 to the exclusive counter (step A10).

【0049】ファイル書込部53は、更新したレコード
の書き戻しを行う(ステップA11)。
The file writing section 53 writes back the updated record (step A11).

【0050】比較した結果、排他カウンタ値が合致しな
い場合、出力装置6に更新できない旨の通知を行い、画
面表示等の処理を行う(ステップA12)。
If the exclusive counter values do not match as a result of the comparison, the output device 6 is notified that updating is not possible, and processing such as screen display is performed (step A12).

【0051】このようにして、クライアント/サーバシ
ステムにおいてシステム共有のファイルの更新処理中に
他からの当該ファイルの内容更新が発生して参照内容が
変わったにもかかわらず、その後のファイル書込処理が
行われるといった処理の不整合が防止できる。
In this way, despite the fact that the content of the file has been updated from another during the process of updating the file shared by the system in the client / server system and the reference content has changed, the subsequent file writing process Process can be prevented.

【0052】上述した実施の形態では、レコードに対す
る排他カウンタをレコード内に設けた形態で説明した
が、排他カウンタをレコード外に設けてもよい。例え
ば、排他制御ファイルを設け、この中に排他カウンタを
格納してもよい。この場合、ファイルにおけるレコード
の格納順に合わせて排他制御ファイルに排他カウンタを
格納していけば、レコードとそれに対する排他カウンタ
との対応づけがとれる。
In the above embodiment, the exclusive counter for the record is provided in the record. However, the exclusive counter may be provided outside the record. For example, an exclusive control file may be provided, and an exclusive counter may be stored therein. In this case, if the exclusion counter is stored in the exclusion control file according to the storage order of the records in the file, it is possible to associate the record with the exclusion counter corresponding thereto.

【0053】本発明による上述した実施の形態におい
て、ファイル排他制御方式の処理動作を実行するための
プログラム等を、データとして磁気ディスクや光ディス
クなどの記録媒体(図示せず)に記録するようにし、記
録されたデータを読み出してファイル排他制御方式を動
作させるために用いる。このように、本発明によるファ
イル排他制御方式を動作させるデータを記録媒体に記録
させ、この記録媒体をインストールすることによりファ
イル排他制御方式の機能が実現できるようになる。
In the above-described embodiment of the present invention, a program or the like for executing a processing operation of the file exclusion control method is recorded as data on a recording medium (not shown) such as a magnetic disk or an optical disk. It is used to read the recorded data and operate the file exclusion control method. As described above, the data for operating the file exclusion control method according to the present invention is recorded on a recording medium, and the function of the file exclusion control method can be realized by installing the recording medium.

【0054】[0054]

【発明の効果】本発明の第1の効果は、クライアント/
サーバシステムにおける共有ファイルの排他が行える点
にある。この結果、あるクライアント端末にて更新処理
中の共有ファイルに他のクライアント端末から修正が加
えられ、その後にファイル書き戻し処理が行われるとい
った処理の不整合を防止できる。
The first effect of the present invention is as follows.
The exclusion of a shared file in a server system can be performed. As a result, it is possible to prevent inconsistency in processing in which a shared file being updated in one client terminal is modified by another client terminal, and then a file write-back process is performed.

【0055】その理由は、システム共有ファイルの更新
処理中に他のクライアント端末からの当該ファイルの内
容更新が発生しているかいないかを判断できる手段を設
け、当該ファイルの内容更新が発生していない場合にだ
けその後のファイル書き戻し処理を行う手段を設けたか
らである。
The reason is that a means is provided for determining whether or not the content of the file has been updated from another client terminal during the process of updating the system shared file, and the content of the file has not been updated. This is because a means for performing the subsequent file write-back processing is provided only in the case.

【0056】本発明の第2の効果は、クライアント/サ
ーバシステムにおける共有ファイルに対する更新処理中
でも、当該ファイルに対して他からの参照処理が行える
ことにある。
A second effect of the present invention resides in that even during an update process on a shared file in the client / server system, a reference process from another can be performed on the file.

【0057】その理由は、システム共有ファイルの処理
中に他のクライアント端末からの当該ファイルの内容更
新が発生しているかいないかを判断できる手段を設け、
他のクライアント端末からの当該ファイルに対する処理
が参照の場合には、その後のファイル書き戻し処理を行
う手段を設けたからである。
The reason is that a means for determining whether or not the content of the file has been updated from another client terminal during the processing of the system shared file is provided.
This is because, when a process for the file from another client terminal is referred to, a means for performing a subsequent file write-back process is provided.

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

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

【図2】レコードの形式を示す図FIG. 2 is a diagram showing a record format.

【図3】本発明の実施の形態の動作の流れを示す図FIG. 3 is a diagram showing a flow of operation according to the embodiment of the present invention;

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

1 入力装置 2 ファイル読込処理装置 3 記憶装置 4 排他制御装置 5 ファイル書込処理装置 6 出力装置 21 ファイル読込部 22 排他カウンタ読取部 31 前回カウンタ記憶部 32 カウンタ読出部 41 排他カウンタ読取部 42 カウンタ取出比較部 51 データ更新部 52 カウンタ加算部 53 ファイル書込部 REFERENCE SIGNS LIST 1 input device 2 file reading processing device 3 storage device 4 exclusive control device 5 file writing processing device 6 output device 21 file reading unit 22 exclusive counter reading unit 31 previous counter storage unit 32 counter reading unit 41 exclusive counter reading unit 42 counter extraction Comparison unit 51 Data update unit 52 Counter addition unit 53 File writing unit

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 ファイルのレコード排他制御を行うため
の排他カウンタ値を保管する排他カウンタと、ファイル
からレコードを読み込んだときの排他カウンタ値と前記
レコードのデータを更新するときの排他カウンタ値とが
等しい場合にデータを更新した前記レコードを前記ファ
イルに書き戻す手段と、を備えることを特徴とするファ
イル排他制御方式。
An exclusive counter for storing an exclusive counter value for performing record exclusive control of a file, an exclusive counter value for reading a record from a file, and an exclusive counter value for updating data of the record. Means for writing back the record whose data has been updated in the case of being equal to the file, to the file.
【請求項2】 ファイルのレコード排他制御を行うため
の排他カウンタ値を保管する排他カウンタと、ファイル
からレコードを読み込み前記レコードに対する排他カウ
ンタ値を読み取るファイル読込処理手段と、前記ファイ
ル読込処理手段が読み取った前記排他カウンタ値を前回
カウンタ値として記憶する記憶手段と、前記レコードに
対する排他カウンタ値を再度読み取り前記記憶手段に記
憶されている前記前回カウンタ値と比較して一致した場
合にファイル書込処理手段に制御を移す排他制御手段
と、前記レコードのデータ内容の更新を行い前記レコー
ドに対する排他カウンタ値に1を加算して前記レコード
をファイルに書き戻すファイル書込処理手段と、を備え
るファイル排他制御方式。
2. An exclusive counter for storing an exclusive counter value for performing a record exclusive control of a file, a file read processing means for reading a record from a file and reading an exclusive counter value for the record, and a file read processing means for reading the exclusive counter value for the record. Storage means for storing the exclusive counter value as a previous counter value, and file read processing means for reading the exclusive counter value for the record again, comparing with the previous counter value stored in the storage means, and matching the file. A file exclusion control method for updating the data content of the record, adding 1 to an exclusion counter value for the record, and writing the record back to a file. .
【請求項3】 前記排他カウンタは、前記ファイルの前
記レコード内に存在することを特徴とする請求項2記載
のファイル排他制御方式。
3. The file exclusion control method according to claim 2, wherein the exclusion counter exists in the record of the file.
【請求項4】 ファイルのレコード排他制御を行うため
の排他カウンタ値を保管し、ファイルからレコードを読
み込み前記レコードに対する排他カウンタ値を読み取
り、読み取った前記排他カウンタ値を前回カウンタ値と
して記憶し、前記レコードに対する排他カウンタ値を再
度読み取り記憶されている前記前回カウンタ値と比較
し、前記比較が一致した場合に前記レコードのデータ内
容の更新を行い前記レコードに対する排他カウンタ値に
1を加算して前記レコードをファイルに書き戻す、こと
を特徴とするファイル排他制御方法。
4. An exclusive counter value for performing record exclusive control of a file is stored, a record is read from a file, an exclusive counter value for the record is read, and the read exclusive counter value is stored as a previous counter value. The exclusive counter value for the record is read again and compared with the previously stored counter value, and when the comparison is made, the data content of the record is updated, and 1 is added to the exclusive counter value for the record to obtain the record. File exclusive control method, wherein the file is written back to a file.
【請求項5】 前記排他カウンタ値は、前記ファイルの
前記レコード内に保管することを特徴とする請求項4記
載のファイル排他制御方法。
5. The method according to claim 4, wherein the exclusive counter value is stored in the record of the file.
【請求項6】 ファイルのレコード排他制御を行うため
の排他カウンタ値を保管する保管処理と、ファイルから
レコードを読み込み前記レコードに対する排他カウンタ
値を読み取るファイル読込処理処理と、読み取った前記
排他カウンタ値を前回カウンタ値として記憶する記憶処
理と、前記レコードに対する排他カウンタ値を再度読み
取り記憶されている前記前回カウンタ値と比較する排他
制御処理と、前記比較が一致した場合に前記レコードの
データ内容の更新を行い前記レコードに対する排他カウ
ンタ値に1を加算して前記レコードをファイルに書き戻
すファイル書込処理処理と、をコンピュータに実行させ
るためのプログラムを記録したことを特徴とする記録媒
体。
6. A storage process for storing an exclusive counter value for performing record exclusive control of a file, a file reading process for reading a record from a file and reading an exclusive counter value for the record, and a process for storing the read exclusive counter value. A storage process for storing the previous counter value as a previous value, an exclusive control process for reading the exclusive counter value for the record again and comparing the value with the stored previous counter value, and updating the data content of the record when the comparison is made A recording medium on which a program for causing a computer to execute a file writing process of adding 1 to an exclusive counter value for the record and writing the record back to a file is recorded.
【請求項7】 前記排他カウンタ値を前記ファイルの前
記レコード内に保管する排他カウンタ値保管処理をコン
ピュータに実行させるためのプログラムを記録したこと
を特徴とする請求項6記載の記録媒体。
7. The recording medium according to claim 6, wherein a program for causing a computer to execute an exclusive counter value storage process for storing the exclusive counter value in the record of the file is recorded.
JP31128799A 1999-11-01 1999-11-01 System and method for file exclusive control and recording medium Pending JP2001134480A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31128799A JP2001134480A (en) 1999-11-01 1999-11-01 System and method for file exclusive control and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31128799A JP2001134480A (en) 1999-11-01 1999-11-01 System and method for file exclusive control and recording medium

Publications (1)

Publication Number Publication Date
JP2001134480A true JP2001134480A (en) 2001-05-18

Family

ID=18015328

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31128799A Pending JP2001134480A (en) 1999-11-01 1999-11-01 System and method for file exclusive control and recording medium

Country Status (1)

Country Link
JP (1) JP2001134480A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007063945A1 (en) * 2005-12-02 2007-06-07 International Business Machines Corporation System for enhancing access efficiency to data base and its method
JP2010257027A (en) * 2009-04-22 2010-11-11 Nec Corp Information processing apparatus, information updating method, program, and information processing system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007063945A1 (en) * 2005-12-02 2007-06-07 International Business Machines Corporation System for enhancing access efficiency to data base and its method
JP4794571B2 (en) * 2005-12-02 2011-10-19 インターナショナル・ビジネス・マシーンズ・コーポレーション System and method for efficient access to database
US8417680B2 (en) 2005-12-02 2013-04-09 International Business Machines Corporation System for improving access efficiency in database and method thereof
JP2010257027A (en) * 2009-04-22 2010-11-11 Nec Corp Information processing apparatus, information updating method, program, and information processing system

Similar Documents

Publication Publication Date Title
US8112464B2 (en) On-demand access to container file directories
US8595202B2 (en) Method and system for intra-document object locking in collaborative authoring
US7831578B2 (en) Apparatus for file system management with virtual file name
JP2005055972A (en) Snapshot quickening method
CN107423095B (en) Data processing method and device adaptive to hardware, storage medium and computer equipment
US20050108277A1 (en) Persistent state database for operating system services
CN114461691A (en) Control method and device of state machine, electronic equipment and storage medium
JP2001134480A (en) System and method for file exclusive control and recording medium
US20070079109A1 (en) Simulation apparatus and simulation method
US20040267784A1 (en) Data access and communication system
JPH09115246A (en) Method and device for recording information, and recording medium
CN108776578B (en) Method and system for rapidly merging objects
JP5240086B2 (en) Data management program
JP2822869B2 (en) Library file management device
JP2004341840A (en) Backup method, system therefor, and restoration method
JP3772105B2 (en) Database management apparatus, method, program, and recording medium
US20210194501A1 (en) Method for compressing behavior event in computer and computer device therefor
JP3022011B2 (en) Data backup system
JP6674067B1 (en) File association processing device, file association method, and file association program
JP2658265B2 (en) Disaster recovery method
JPH11212845A (en) Device and method for backup data management and recording medium
JP2024072938A (en) Verification support device and verification support method
JP3278637B2 (en) Log file maintenance device and method
JPS63220391A (en) Transaction processor
JPH10143406A (en) File managing device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041005

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041012

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050222