JPS5827255A - Controlling system of file used for plural electronic computers in common - Google Patents
Controlling system of file used for plural electronic computers in commonInfo
- Publication number
- JPS5827255A JPS5827255A JP56125178A JP12517881A JPS5827255A JP S5827255 A JPS5827255 A JP S5827255A JP 56125178 A JP56125178 A JP 56125178A JP 12517881 A JP12517881 A JP 12517881A JP S5827255 A JPS5827255 A JP S5827255A
- Authority
- JP
- Japan
- Prior art keywords
- file
- volume
- control
- control memory
- files
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/52—Program synchronisation; Mutual exclusion, e.g. by means of semaphores
Abstract
Description
【発明の詳細な説明】
本発明は複数台の電子計算機から接続されている磁気デ
ィスク装置上の共用ファイルの排他制御方式に関するも
のである。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an exclusive control method for shared files on a magnetic disk device connected to a plurality of computers.
2以上の電子計算機によって磁気ディスク装置が共用さ
れる場合には従来、スイッチにより排他的に一方の電子
計算機に接続したり、切り離したりを行なっていた。こ
几らの制御はデバイスリザーブ(Dgwiea Rat
ar、) /デバイスリリース(Device Ral
gapa )コマンドにより行なわれている。Conventionally, when a magnetic disk device is shared by two or more computers, a switch is used to exclusively connect or disconnect one computer. These controls are controlled by device reserve (Dgwiea Rat).
ar,) /Device Release (Device Ral)
gapa) command.
上記のような従来の方式でけDavityg Raza
rvaコマンドが排他する単位は一台の装置(1ボリユ
ーム)である。ところが、一般にボリューム上にはy数
ファイルが存在するためり、viceRazerv−コ
マンドは、ボリューム上の全ファイルを排他してしまう
ことになる。このことは。With the conventional method as mentioned above, Davityg Raza
The unit that the rva command excludes is one device (one volume). However, since there are generally y number of files on a volume, the viceRazerv-command ends up excluding all files on the volume. About this.
目的外の不要な排他とS複数ファイル処理におけるデッ
ドロックを招くという問題をもっていることを示す。This shows that there is a problem of unnecessary exclusion for unintended purposes and deadlock in S multiple file processing.
またDoliog Razorシーを行ってファイル処
理中のシステムがダウンした場合、該当装置は自系がロ
ックしたままとなり、他系から−切処理できなくなる。Furthermore, if a system that is processing a file goes down due to Doliog Razorcy, the relevant device remains locked by its own system, and cannot be disconnected from other systems.
この発明の目的とするところは、ボリュームVC含まれ
る個々のファイルを単位とした排他制御手段の提供によ
る複数システム間ファイル共用の実現である。このこと
は、さらにファイル共用を前提としたLCMPCLoo
xely Coaplggd MultiPrecep
tor )システム構成の実現となる。An object of the present invention is to realize file sharing among multiple systems by providing exclusive control means for individual files included in a volume VC. This also applies to LCMPCLoo, which assumes file sharing.
xely Coaplggd MultiPrecep
tor) will realize the system configuration.
本発明の要旨とするところは磁気ディスク制御装置に、
その制御装置の制御下にある2以上の処理装置に共用さ
れる磁気ディスク装置について、各ファイル毎に使用中
か開用中でないか使用中ならどの処理装置によって使用
されているかを示す情報を格納する制御メモリを設け。The gist of the present invention is to provide a magnetic disk control device with:
Regarding the magnetic disk device shared by two or more processing units under the control of the control unit, information indicating for each file whether it is in use or not open, and if in use, which processing unit is using it. A control memory is provided to
こγ■、によってファイル単位に切接/切り靜しの刺網
1を行なうことにある。The purpose of this method is to perform cutting/cutting gill net 1 on a file-by-file basis.
以下図面を参照し、実施例について詳細に説明する。Examples will be described in detail below with reference to the drawings.
砿気ディスク装M(ボリューム)の部分的ロックを管理
するため、磁気ディスク制御装置1に制御メモリ2を付
加する。制御メモリ20大きさけロック個数によるが、
約30個(ロック#1〜ロック#30)を格納できるも
のとする。A control memory 2 is added to a magnetic disk control device 1 in order to manage partial locking of a magnetic disk device M (volume). It depends on the size of the control memory 20 and the number of locks,
It is assumed that approximately 30 locks (lock #1 to lock #30) can be stored.
制御メモリ2上ではロック#毎に次の情報を管理する。The following information is managed on the control memory 2 for each lock #.
、使用中、使用中カウンタ、使用元CP(1番号、非使
用
ソフトウェア側においては、ロック#とファイルを対比
:して設定しておき、該当ファイルの処理プログラムに
おいてけ(1) fii制御メモリの尚該ファイルに対
応する部分VC使用中の上記の情報を書き込む。(2)
入出力処理。(3)非使用に戻す。, in use, in-use counter, using source CP (1 number, on the unused software side, compare the lock # and file: and set it, and in the processing program of the file (1) fii control memory In addition, write the above information of the partial VC in use corresponding to the file. (2)
Input/output processing. (3) Return to non-use.
のシーケンスでファイル処理に行5゜
今、システム1側でファイルAを処理中に別システムか
らのファイル処理要求がきた場合。Process the file using the following sequence: Line 5: Now, while file A is being processed on the system 1 side, a file processing request comes from another system.
対応する制御メモリの領域を読み出して使用状況を調べ
る。従ってファイルA(同一ファイル)を使用しようと
するとシステム1i111のファイルA処理終了時まで
待たされ、ファイルB(異なるファイル)を使用しよう
とするとシステム1側の7アイ/L−A処理と関係なく
同時処W恣れることとなる。Read the corresponding control memory area and check the usage status. Therefore, if you try to use file A (the same file), you will be forced to wait until system 1i111 finishes processing file A, and if you try to use file B (a different file), it will be processed at the same time regardless of the 7eye/L-A processing on system 1. The punishment will be arbitrary.
ロック番号(ロック#)はある磁気ディスク装置に格納
されたファイル(IC順に対応し、ファイルをある処理
装置のためにロックするだめの情報の番号の意である。The lock number (lock #) corresponds to the file (IC order) stored in a certain magnetic disk device and means the number of information for locking a file for a certain processing device.
ファイルが作りかえられたときけ一旦、情報はクリアさ
れ、新しくファイルに順次ロック番号を割り当てる。When a file is regenerated, the information is cleared and a new lock number is assigned to the file in sequence.
制御情報を記憶する制御メモリ領域は詳しくは第3図に
示すように使用している処理装置対応の番号を記憶する
領域4とカウンタ5に分かれる。カウンタ5は例えばシ
ステム1であるファイルをロックしていくつかのジョブ
を実行する場合にキューの数をお;1えておき、すべて
のシ造ブが実行されてから、そのファイルをフリーにす
るため制御Vこ用いられる。More specifically, as shown in FIG. 3, the control memory area for storing control information is divided into an area 4 for storing numbers corresponding to the processing devices in use and a counter 5. For example, when system 1 locks a file and executes several jobs, counter 5 keeps track of the number of queues by 1, and then frees the file after all jobs have been executed. Control V is used.
第2図は制御メモリ上に置かれる制御70グラムの処理
フローである。FIG. 2 is a processing flow of the control 70 grams placed on the control memory.
第2図1け自装置のためにファイルをロックするための
処理を示す。あるジョブの実行に伴゛ なってロックの
要求があると、そのファイルのロック番号が使用中かど
うか即ち第3図の4が“0“かどうかを調べ、“0“の
とき自処理装置番号をそこに書き込む。セしてカウンタ
を+1する。FIG. 2 shows the process for locking files for the own device. When a lock is requested due to the execution of a certain job, it is checked whether the lock number of the file is in use, that is, whether 4 in Figure 3 is "0", and if it is "0", the own processing device number is set. write there. Set and increment the counter by 1.
他のシステムが使用中なら待ち状態に入る。If another system is in use, it enters a wait state.
、前2図Bはあるジョブがファイルの使用を終了したと
きの処理を示し、上記終了によって、アンロック要求が
出されるとカウンタを−1し、カウンタが0″であれば
第5 i>44の当該ロック番号の部分を“0″にする
。カウンタが“O“でなければそのシステムでま、そそ
のファイル全1′!!用しているジープがありことを示
してい乙から、装置番号の領域4ば“0”としな贋。, Figure B in the previous two shows the process when a certain job finishes using a file. When an unlock request is issued due to the above completion, the counter is decremented by 1, and if the counter is 0'', the 5th i>44 Set the corresponding lock number part to "0".If the counter is "O", that system indicates that there is a jeep using that file. Area 4 is “0” and is a fake.
第5図はシステム1.システム2(それぞれ処理装置を
含む)により磁気ディスク装置が共用されている場合を
示している。システム1で7アイセIVこよる処理をす
るとき、第2図イの処理により、ロック#1の1青報は
“11″とされ入出力処理が行なわれる。その間システ
ム2でファイルE (/Cよる処理要求が、ちると同じ
くロック#2が“21″(2はシステム2が険用中を示
す)がセットされる。そしてその処理が終ると第2図H
の処理により#2は°゛00′にされる。その後ファイ
ルAの使用が要求されると、#1の装置番号が“1“で
あるから使用は許されず待ち状態トなる。システム1で
アンロックを行なうとシステム2による#1のロックが
成功し入出力処理が行なわれる。Figure 5 shows system 1. A case is shown in which a magnetic disk device is shared by systems 2 (each including a processing unit). When the system 1 performs the 7-ice IV processing, the 1 signal of lock #1 is set to "11" by the processing shown in FIG. 2A, and input/output processing is performed. In the meantime, when a processing request is made by file E (/C) on system 2, lock #2 is set to "21" (2 indicates that system 2 is busy).When the processing is completed, as shown in Figure 2. H
#2 is set to °'00' by the process. Thereafter, when the use of file A is requested, since the device number of #1 is "1", the use is not allowed and the file is placed in a waiting state. When system 1 performs unlocking, system 2 successfully locks #1 and input/output processing is performed.
以上述べた如き構成であるから本発明にあっては次の如
き効果を得ることができる。With the configuration as described above, the following effects can be obtained in the present invention.
(1) ファイルを単位とした排他制御による実質的
なファイル共用の実現
(II) tcxpシステム構成下におけるファイル
共用の実現
(ill) 従来より排他する単位を小さくした〔ボ
リューム→ファイルへ変えた)ことによる複数ファイル
の同時処理の実現とファイル処理の大幅な性能向上(1) Realization of file sharing through exclusive control on a file-by-file basis (II) Realization of file sharing under the tcxp system configuration (ill) Reducing the unit of exclusive use from before (changed from volume to file) Achieves simultaneous processing of multiple files and significantly improves file processing performance.
第1図は本発明による構成図であり、第2図Aは制御メ
モリに格納されたロック処理の制御プログラム70−を
、第2図Bは同じくアンロック処理の制御プログラムフ
ローを示し、第3図は本発明における制御例を示す図で
ある。
1・・磁気ディスク制御装置
2・・制御メモリ
4・・装置番号シリア
5・・カウンタ
オ IFI
;+ 2 図FIG. 1 is a configuration diagram according to the present invention, FIG. 2A shows a lock processing control program 70- stored in the control memory, FIG. 2B similarly shows the unlock processing control program flow, and FIG. The figure is a diagram showing an example of control in the present invention. 1...Magnetic disk control unit 2...Control memory 4...Device number serial 5...Counter IFI ;+ 2 Figure
Claims (1)
記憶装置を共用するシステムにおいて、前記ファイル対
応に当該ファイルが使用中であるかどうかおよびどの電
子計算機によって使用されているかを示す情報を格納す
る記憶手段を設け、ある電子計算機があるファイルを使
用しようとするとき、前記記憶手段を調べ、そのファイ
ルが他の電子計算機pcよって使用されているときけ待
ち状態に入り、空き状態のときは前記記憶装置に自軍子
計算機を表わす情報を書き込み、当該ファイルを使用す
ることを特数とする複数電子第1算機間共用ファイルの
制御方式。In a system in which an auxiliary storage device for storing a plurality of files is shared by a plurality of computers, a storage means is provided for storing information indicating whether the file is in use and which computer is using it for each file. When a certain computer tries to use a certain file, it checks the storage means, and if the file is being used by another computer, it enters a waiting state, and if it is in an empty state, it stores it in the storage device. A control method for a file shared between multiple electronic first computers, in which information representing own child computers is written and the file is used.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP56125178A JPS5827255A (en) | 1981-08-12 | 1981-08-12 | Controlling system of file used for plural electronic computers in common |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP56125178A JPS5827255A (en) | 1981-08-12 | 1981-08-12 | Controlling system of file used for plural electronic computers in common |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS5827255A true JPS5827255A (en) | 1983-02-17 |
JPH0115899B2 JPH0115899B2 (en) | 1989-03-22 |
Family
ID=14903820
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP56125178A Granted JPS5827255A (en) | 1981-08-12 | 1981-08-12 | Controlling system of file used for plural electronic computers in common |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS5827255A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6044042A (en) * | 1983-08-23 | 1985-03-08 | Ube Ind Ltd | Preparation of catalyst for preparing methacrylic acid |
EP0212425A2 (en) * | 1985-08-21 | 1987-03-04 | Hitachi, Ltd. | Method of common resource status management for a complex computer system |
JPS63315148A (en) * | 1987-06-18 | 1988-12-22 | Nippon Shokubai Kagaku Kogyo Co Ltd | Catalyst of synthesis of methacrylic acid and preparation thereof showing excellent reproducibility |
JPH02108149A (en) * | 1988-10-18 | 1990-04-20 | Oki Electric Ind Co Ltd | Exclusive control mechanism for multiprocessor |
US5694619A (en) * | 1993-09-20 | 1997-12-02 | Fujitsu Limited | System for exclusively controlling access of a semiconductor memory module using a backup memory and compression and decompression techniques |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS51116631A (en) * | 1975-04-07 | 1976-10-14 | Hitachi Ltd | Multiple application control system for memory device |
JPS52155022A (en) * | 1976-06-18 | 1977-12-23 | Hitachi Ltd | Magnetic disc memory control unit |
JPS5627461A (en) * | 1979-08-13 | 1981-03-17 | Hitachi Ltd | File share control system |
-
1981
- 1981-08-12 JP JP56125178A patent/JPS5827255A/en active Granted
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS51116631A (en) * | 1975-04-07 | 1976-10-14 | Hitachi Ltd | Multiple application control system for memory device |
JPS52155022A (en) * | 1976-06-18 | 1977-12-23 | Hitachi Ltd | Magnetic disc memory control unit |
JPS5627461A (en) * | 1979-08-13 | 1981-03-17 | Hitachi Ltd | File share control system |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6044042A (en) * | 1983-08-23 | 1985-03-08 | Ube Ind Ltd | Preparation of catalyst for preparing methacrylic acid |
JPH052374B2 (en) * | 1983-08-23 | 1993-01-12 | Ube Industries | |
EP0212425A2 (en) * | 1985-08-21 | 1987-03-04 | Hitachi, Ltd. | Method of common resource status management for a complex computer system |
JPS63315148A (en) * | 1987-06-18 | 1988-12-22 | Nippon Shokubai Kagaku Kogyo Co Ltd | Catalyst of synthesis of methacrylic acid and preparation thereof showing excellent reproducibility |
JPH0679666B2 (en) * | 1987-06-18 | 1994-10-12 | 株式会社日本触媒 | Catalyst for methacrylic acid synthesis and its production method with excellent reproducibility |
JPH02108149A (en) * | 1988-10-18 | 1990-04-20 | Oki Electric Ind Co Ltd | Exclusive control mechanism for multiprocessor |
US5694619A (en) * | 1993-09-20 | 1997-12-02 | Fujitsu Limited | System for exclusively controlling access of a semiconductor memory module using a backup memory and compression and decompression techniques |
US5925111A (en) * | 1993-09-20 | 1999-07-20 | Fujitsu, Limited | System for alotting logical path number to logical interfaces and permitting logical interface to access selected I/O using logical path number when selected I/O is not in use |
US6338101B1 (en) | 1993-09-20 | 2002-01-08 | Fujitsu Limited | Memory initialization method for volatile memory |
Also Published As
Publication number | Publication date |
---|---|
JPH0115899B2 (en) | 1989-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2561696B2 (en) | Shared area management method in network system | |
JP2574991B2 (en) | Method for locking shared resources in a process in a computer system and computer system | |
US5956712A (en) | Byte range locking in a distributed environment | |
US5845147A (en) | Single lock command for an I/O storage system that performs both locking and I/O data operation | |
US5987550A (en) | Lock mechanism for shared resources in a data processing system | |
US7529902B2 (en) | Methods and systems for locking in storage controllers | |
JPH06119232A (en) | Shared-data-memory control system, setting method for master processing device and data-copy method | |
US5432929A (en) | Storage subsystem having a modifiable key-lock | |
JP3609841B2 (en) | File management device | |
JPS5827255A (en) | Controlling system of file used for plural electronic computers in common | |
JPH0559463B2 (en) | ||
EP0216170A2 (en) | Storage management method and system in a multiprocessor environment | |
JP3342597B2 (en) | Exclusive control method for disk subsystem and shared resources | |
JP2523628B2 (en) | Resource management control method | |
JPH01126738A (en) | System for control data set competition in execution of multiple job | |
JP2615046B2 (en) | Record addition processing method | |
JPS62209635A (en) | Access system for system control file of asynchronous communication | |
JPH01300365A (en) | Exclusive control system for multi-processor system | |
JPS6327936A (en) | File management method | |
JPH01263761A (en) | Loose coupling multiprocessor system | |
JPS61194546A (en) | Shared file control system | |
KR0171771B1 (en) | Address bus lock control apparatus of computer system | |
JPS61267862A (en) | File processing system | |
JPH03166629A (en) | Multi-tasking system | |
JPS60100239A (en) | Shared file control system |