JPH0621995B2 - File simultaneous access control system - Google Patents

File simultaneous access control system

Info

Publication number
JPH0621995B2
JPH0621995B2 JP60178903A JP17890385A JPH0621995B2 JP H0621995 B2 JPH0621995 B2 JP H0621995B2 JP 60178903 A JP60178903 A JP 60178903A JP 17890385 A JP17890385 A JP 17890385A JP H0621995 B2 JPH0621995 B2 JP H0621995B2
Authority
JP
Japan
Prior art keywords
file
update
temporary
simultaneous
access
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP60178903A
Other languages
Japanese (ja)
Other versions
JPS6238952A (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 JP60178903A priority Critical patent/JPH0621995B2/en
Publication of JPS6238952A publication Critical patent/JPS6238952A/en
Publication of JPH0621995B2 publication Critical patent/JPH0621995B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は計算機処理システムにおけるファイル資源の同
時利用に関し、特にファイル仮更新機能を用いたプロセ
スからのファイル内ブロックレベルでの排他制御による
ファイル同時アクセス制御方式に関する。
Description: TECHNICAL FIELD The present invention relates to the simultaneous use of file resources in a computer processing system, and in particular, the simultaneous use of files by block-level exclusive control from a process using a temporary file update function. Regarding access control method.

〔従来の技術〕[Conventional technology]

従来、この種のファイル内ブロックレベルでのファイル
同時アクセス制御方式は、ファイル同時更新制御属性を
もつファイルに対しそのファイルを同時アクセスする全
プロセス群がアクセス結果として入手するデータ内容に
同時アクセスから起こる不整合が発生しないことを保証
するために、ファイルアクセスに付随してファイル同時
アクセス制御装置に対し関連ブロックのロック要求を行
い、ロック済みのもとでのみファイルのアクセスを実行
するという方式が一般的であり、少なくともファイルの
参照のみを行うのではなく更新をも行うプロセス同士の
ファイル同時アクセス制御方式としてはこのような方式
が利用されている。
Conventionally, this kind of simultaneous file access control method at the block level in the file occurs from the simultaneous access to the data content obtained as the access result by all the process groups that simultaneously access the file having the simultaneous file update control attribute. In order to guarantee that inconsistency does not occur, a method is generally used in which a file block access request is issued to the simultaneous file access control device to lock the related block, and the file is accessed only when it is already locked. Such a method is used as a file simultaneous access control method between processes that at least update files, not only refer to them.

また、ファイル仮更新機能を用いてファイルの更新をテ
ストするプロセスとファイル仮更新機能を用いないプロ
セスとによるファイル同時アクセスにおいても、このよ
うなファイル同時アクセス制御方式が利用されている。
Such a simultaneous file access control method is also used in simultaneous file access by a process that tests a file update using the temporary file update function and a process that does not use the temporary file update function.

ファイル仮更新機能とは、ファイル更新を行うプログラ
ムを支援するためのものであって、実ファイル本体を壊
すことなくプログラムに対して実ファイルをアクセスし
ているのと同じ効果を与える機能であり、第2図に示す
ような方式により実現される。すなのち、ファイル仮更
新機能使用プロセス1Aからのファイルの更新は、ファ
イル仮更新機能用ファイルI/O制御装置2を介して仮
更新ファイル5に対してなされる(経路a参照)。ま
た、プロセス1Aへの更新されていないブロックの読込
みは実ファイル4からなされ(経路b参照)、プロセス
1Aへの更新がなされたブロックの読込みは仮更新ファ
イル5からなされる(経路b′参照)。
The file temporary update function is for supporting a program that updates a file, and is a function that gives the same effect as accessing the real file to the program without destroying the real file body. It is realized by the method as shown in FIG. After that, the file is updated from the file temporary update function using process 1A to the temporary update file 5 via the file temporary update function file I / O control device 2 (see path a). Further, reading of an unupdated block into the process 1A is performed from the real file 4 (see path b), and reading of an updated block into the process 1A is performed from the temporary update file 5 (see path b '). .

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上述した従来のファイル同時アクセス制御方式は、ファ
イルのアクセスを行う全てのプロセスがファイルのアク
セスに付随してファイル同時アクセス制御装置に対しロ
ック要求をする方式であり、プロセス間のロック競合が
起こると、プロセス同士の待ちやデッドロックが発生す
る形態となっている。このため、ファイル仮更新機能を
用いるプロセスとファイル仮更新機能を用いないプロセ
スとが混在している場合、ファイル仮更新機能を用いる
プロセスがファイル仮更新機能を用いないプロセスを待
たせてしまう可能性があるという欠点がある。これは、
別の言葉で言うならば、テスト系のプロセスが本番系の
プロセスを待たせてしまうということに他ならない。
The above-described conventional simultaneous file access control method is a method in which all processes that access a file make a lock request to the simultaneous file access control device in association with the access of the file, and if there is a lock conflict between the processes, The process is such that waiting between processes and deadlock occur. For this reason, if processes that use the temporary file update function and processes that do not use the temporary file update function coexist, a process that uses the temporary file update function may cause a process that does not use the temporary file update function to wait. There is a drawback that there is. this is,
In other words, the test process is waiting for the production process.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のファイル同時アクセス制御システムは、プロセ
スからのファイル更新要求に対しては、仮更新ファイル
へ更新ブロックイメージを書き出し、ファイル参照要求
に対しては、該当ブロックが仮更新ファイルに書き出さ
れている場合は仮更新ファイルから読み込み、該当ブロ
ックが仮更新ファイルに書き出されていない場合は実フ
ァイルから読み込みを行う、ファイル仮更新機能を使用
するプロセスとファイル仮更新機能を使用しないプロセ
スとがファイルに同時にアクセスすることのあるファイ
ル管理システムのファイル同時アクセス制御システムに
おいて、同時アクセス制御を必要とする同時更新制御属
性付き実ファイル、または仮更新ファイルのいずれか一
方に対するアクセス要求が、前記ファイル仮更新機能を
使用するプロセスからのものであると判別されたときに
前記アクセス要求に付随したファイル同時アクセスにお
けるロック処理をバイパスするバイパス手段と、前記ア
クセス要求が前記ファイル仮更新機能を使用するプロセ
スからのものか否かを判別する判別手段とを有する。
The simultaneous file access control system of the present invention writes an updated block image to a temporary update file in response to a file update request from a process, and writes the corresponding block to a temporary update file in response to a file reference request. File is read from the temporary update file, and if the corresponding block is not written to the temporary update file, it is read from the actual file.The process that uses the file temporary update function and the process that does not use the file temporary update function are files. In a file simultaneous access control system of a file management system that may simultaneously access files, an access request for either a real file with a simultaneous update control attribute that requires simultaneous access control or a temporary update file is Process that uses the feature A bypass means for bypassing the lock processing in the file simultaneous access accompanying the access request when it is determined that the access request is from the process using the file temporary update function. And a determining means for determining.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be described with reference to the drawings.

第1図は本発明の一実施例を示すファイル同時アクセス
制御システムの構成図である。本実施例のファイル同時
アクセス制御システムは、2つのファイル更新プロセス
1Aおよび1Bと、ファイルI/O制御装置2と、ファ
イル同時アクセス制御装置3と、同時更新制御属性付き
実ファイル4と、仮更新ファイル5とを有している。
FIG. 1 is a block diagram of a simultaneous file access control system showing an embodiment of the present invention. The file simultaneous access control system of the present embodiment has two file update processes 1A and 1B, a file I / O control device 2, a file simultaneous access control device 3, a real file 4 with a simultaneous update control attribute, and a temporary update. File 5 and.

ファイル更新プロセス1Aはファイル仮更新機能を使用
しており、ファイル更新プロセス1Bはファイル仮更新
機能を使用していない。これらプロセス1Aおよび1B
は、ファイルI/O制御装置2に実ファイルへのアクセ
ス要求を出すようになっており、ファイルI/O制御装
置2はファイル更新プロセス1Aおよび1Bからのファ
イルアクセス要求に対して各種制御を行う。図中には、
特にファイル同時アクセス制御機能の判断処理とファイ
ル仮更新機能の判断処理とのようすを流れ図で示してあ
る。すなわちステップ21で同時更新制御属性付き実ファ
イル4への入出力か否かを判定し、イエス(YES)の
場合にはステップ22でファイル同時アクセス制御装置3
のブロックのロック要求処理を行い、ノー(NO)の場
合には同時更新制御、つまりロック処理が不要な実ファ
イルへのアクセス要求であるとしても何も行わずステッ
プ23に至る。また、ステップ23でファイル仮更新機能
使用プロセス1Aからの更新か否かを判定し、イエスの
場合にはステップ24で仮更新ファイル5の仮更新処理を
行い、ノーの場合にはステップ25で実ファイル4の更新
処理を行う。
The file update process 1A uses the file temporary update function, and the file update process 1B does not use the file temporary update function. These processes 1A and 1B
Issues an access request to an actual file to the file I / O control device 2, and the file I / O control device 2 performs various controls for file access requests from the file update processes 1A and 1B. . In the figure,
In particular, the flow chart shows the determination process of the simultaneous file access control function and the determination process of the temporary file update function. That is, in step 21, it is determined whether the input / output is to the real file 4 with the simultaneous update control attribute. If yes (YES), in step 22 the file simultaneous access control device 3
Block lock request processing is performed, and if no (NO), simultaneous update control, that is, even if the request is an access request to an actual file that does not require lock processing, nothing is performed and the process proceeds to step 23. In step 23, it is determined whether the update is from the file temporary update function using process 1A. If yes, the temporary update file 5 is temporarily updated in step 24. If no, the step 25 is executed. File 4 is updated.

ファイル同時アクセス制御装置3は、ファイルのブロッ
クレベルでの資源管理を行う。特に、流れ図で示すよう
に、ステップ31でファイル仮更新機能使用プロセス1A
からの入出力か否かを判定し、ノーであればステップ32
でブロックのロック処理を行い、イエスであれば行わな
い。
The file simultaneous access control device 3 manages resource at the block level of the file. In particular, as shown in the flowchart, in step 31, the process 1A using the temporary file update function is performed.
It is judged whether it is input / output from or not, and if it is NO, step 32
Lock the block with, and if yes, do not.

同時更新制御属性付き実ファイル4は、ファイル更新プ
ロセス1Aと1Bとから同時アクセスしようとしている
ファイルであり、仮更新ファイル5は実ファイル4に対
する仮更新ファイルであってファイル仮更新機能を使用
するプロセス1Aからのファイル4に対する更新イメー
ジを蓄える。
The real file 4 with the simultaneous update control attribute is a file that the file update processes 1A and 1B are trying to access simultaneously, and the temporary update file 5 is a temporary update file for the real file 4 and uses the file temporary update function. Store the updated image for file 4 from 1A.

次に、ファイル更新プロセス1Aと1Bとが同時更新制
御属性付き実ファイル4に対し同時アクセスを行った場
合の動作について説明する。
Next, the operation when the file update processes 1A and 1B simultaneously access the real file 4 with the simultaneous update control attribute will be described.

プロセス1Aがファイル4に対し更新要求を行うと、ス
テップ31の判定をイエスで抜けステップ32がバイパスさ
れるので関連ブロックのロックはなされず、また、ステ
ップ23の判定をイエスで抜けステップ24で更新イメージ
が仮更新ファイル5に蓄えられる。したがって、ファイ
ル4の対応ブロック部分がプロセス1Bによりロックさ
れていても待ちは発生せず、さらに、プロセス1Bの更
新イメージを壊すこともない。
When the process 1A makes an update request to the file 4, the determination in step 31 is exited with YES and step 32 is bypassed, so the related block is not locked, and the determination in step 23 is released with YES and updated in step 24. The image is stored in the temporary update file 5. Therefore, even if the corresponding block portion of the file 4 is locked by the process 1B, waiting does not occur, and the update image of the process 1B is not destroyed.

また、プロセス1Aがファイル4に対して読込み要求を
行うと、やはり関連ブロックのロックはなされず、もし
そのブロックイメージが仮更新ファイル5内にあるなら
ば、読込みの結果として入手されるデータイメージには
同時更新から発生し得る不整合は起こっていない。
Also, when the process 1A makes a read request to the file 4, the related block is not locked, and if the block image is in the temporary update file 5, the data image obtained as a result of the read is added. Has no inconsistencies that can arise from simultaneous updates.

しかし、もし読込み対象ブロックイメージがファイル5
に存在せず、実ファイル4の対応ブロック部分を読む場
合には、その部分がプロセス1Bによりロックされてい
るときは待ちは発生しないが、プロセス1Aは不整合状
態のブロックイメージを読み込むことがあり得る。つま
り、ファイル仮更新機能を使用するプロセス1Aは、特
殊な場合においてファイルの同時更新から発生する不整
合なデータイメージを利用することが有り得るが、ファ
イル仮更新機能を使用しないプロセス1Bはそのような
ことは有り得ないだけでなく、プロセス1Aによって待
たされることも有り得ない。
However, if the block image to be read is file 5
If the corresponding block portion of the real file 4 is not present in the file, the wait does not occur when that portion is locked by the process 1B, but the process 1A may read the block image in the inconsistent state. obtain. That is, the process 1A that uses the temporary file update function may use an inconsistent data image that arises from the simultaneous update of files in a special case, but the process 1B that does not use the temporary file update function does not. Not only is this impossible, but it is also unlikely that the process 1A will have to wait.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は、仮更新機能を使用するプ
ロセスとファイル仮更新機能を使用しないプロセスとが
ファイルを同時にアクセスする場合のファイル同時アク
セス制御方式において、ファイル仮更新機能を使用する
プロセスからのファイル内ブロックのロック要求を無視
(素通り)させることにより、ファイル仮更新機能を使
用しないプロセスに対しファイル仮更新機能を使用する
プロセスからのファイルの同時アクセス制御から起こる
待ちを発生させず、しかも同時アクセスから起こる入力
データの無矛盾性をファイル仮更新機能を使用しないプ
ロセスに対して保証できる。したがって、同一計算機シ
ステム内でテスト系業務を本番系業務と同時に実行する
ような環境下にあっては、テスト系業務からの本番系業
務への影響を与えない環境を実現できるという効果があ
る。
As described above, according to the present invention, in the file simultaneous access control method in the case where a process that uses the temporary update function and a process that does not use the file temporary update function access the file at the same time, By ignoring (passing) the lock request of the block in the file of, the process that does not use the temporary file update function does not cause the waiting that occurs from the simultaneous access control of the file from the process that uses the temporary file update function, and Consistency of input data resulting from simultaneous access can be guaranteed for processes that do not use the temporary file update function. Therefore, under the environment in which the test-related work is executed simultaneously with the production-related work in the same computer system, it is possible to realize an environment in which the test-related work does not affect the production-related work.

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

第1図は本発明の一実施例を示すファイル同時アクセス
制御システムの構成図、 第2図はファイル仮更新機能を説明するための概要図で
ある。 図において、 1A……ファイル仮更新機能使用プロセス、 1B……ファイル仮更新機能未使用プロセス、 2……ファイルI/O制御装置、 3……ファイル同時アクセス制御装置、 4……同時更新制御属性付き実ファイル、 5……仮更新ファイルである。
FIG. 1 is a block diagram of a simultaneous file access control system showing an embodiment of the present invention, and FIG. 2 is a schematic diagram for explaining a temporary file updating function. In the figure, 1A ... Process using temporary file update function, 1B ... Process not using temporary file update function, 2 ... File I / O control device, 3 ... Simultaneous file access control device, 4 ... Simultaneous update control attribute Attached real file, 5 ... Temporary update file.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】プロセスからのファイル更新要求に対して
は、仮更新ファイルへ更新ブロックイメージを書き出
し、ファイル参照要求に対しては、該当ブロックが仮更
新ファイルに書き出されている場合は仮更新ファイルか
ら読み込み、該当ブロックが仮更新ファイルに書き出さ
れていない場合は実ファイルから読み込みを行う、ファ
イル仮更新機能を使用するプロセスとファイル仮更新機
能を使用しないプロセスとが同時にアクセスすることの
あるファイル管理システムのファイル同時アクセス制御
システムにおいて、 同時アクセス制御を必要とする同時更新制御属性付き実
ファイル、または仮更新ファイルのいずれか一方に対す
るアクセス要求が、前記ファイル仮更新機能を使用する
プロセスからのものであると判別されたときに前記アク
セス要求に付随したファイル同時アクセスにおけるロッ
ク処理をバイパスするバイパス手段と、 前記アクセス要求が前記ファイル仮更新機能を使用する
プロセスからのものか否かを判別する判別手段と、 を有することを特徴とするファイル同時アクセス制御シ
ステム。
1. When a file update request from a process is issued, an update block image is written to a temporary update file, and when a file reference request is made, a temporary update is performed when the corresponding block is written to the temporary update file. A process that uses the file temporary update function and a process that does not use the file temporary update function may access at the same time by reading from a file and reading the actual file if the block is not written to the temporary update file. In the file simultaneous access control system of the file management system, the access request to either the real file with the simultaneous update control attribute that requires the simultaneous access control or the temporary update file is issued from the process using the file temporary update function. When it is determined that the A bypass means for bypassing the lock processing in the simultaneous file access associated with the access request, and a determining means for determining whether or not the access request is from a process using the temporary file update function. File simultaneous access control system.
JP60178903A 1985-08-13 1985-08-13 File simultaneous access control system Expired - Lifetime JPH0621995B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60178903A JPH0621995B2 (en) 1985-08-13 1985-08-13 File simultaneous access control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60178903A JPH0621995B2 (en) 1985-08-13 1985-08-13 File simultaneous access control system

Publications (2)

Publication Number Publication Date
JPS6238952A JPS6238952A (en) 1987-02-19
JPH0621995B2 true JPH0621995B2 (en) 1994-03-23

Family

ID=16056700

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60178903A Expired - Lifetime JPH0621995B2 (en) 1985-08-13 1985-08-13 File simultaneous access control system

Country Status (1)

Country Link
JP (1) JPH0621995B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0820987B2 (en) * 1988-02-26 1996-03-04 日本電気株式会社 Simultaneous file update avoidance method

Also Published As

Publication number Publication date
JPS6238952A (en) 1987-02-19

Similar Documents

Publication Publication Date Title
US6526441B2 (en) Input/output device information management system for multi-computer system
JP3270216B2 (en) File name detection method
JPH04229355A (en) Data access method and data processing system
JPH03160534A (en) Access control system for shared file
JPH07200390A (en) Data access method
US20090307442A1 (en) Memory Access Control
JPH0621995B2 (en) File simultaneous access control system
Diel et al. Data management facilities of an operating system kernel
JPH0895835A (en) Method for reserving file space
JPH04260141A (en) Data shared processor
JPS5947341B2 (en) Dynamic exclusive control method for index sequential files
KR20230032654A (en) Interated management method of runtime backup information and system therof
JPH031268A (en) Computer control method
JPH01255028A (en) Method for making access to external storage device
JPH03232051A (en) Semaphore access control method
KR101058059B1 (en) Mounting device of embedded file system and its method
JPH01116851A (en) Program load control system
JPH0652028A (en) Film managing device
JPH10143412A (en) Data base managing system
JPS6180336A (en) Testing method of program
JPH036644A (en) Storage protection system
JPH01189741A (en) Journal output system
JPS63298535A (en) Logical lock system by key value
JPH069042B2 (en) Sequential access control device for shared storage medium
JPH02138646A (en) Processing system for addition of record