JPH09293055A - System and method for exclusive control over shared file in loosely coupled multiple computer system, and medium for storing exclusive control program - Google Patents

System and method for exclusive control over shared file in loosely coupled multiple computer system, and medium for storing exclusive control program

Info

Publication number
JPH09293055A
JPH09293055A JP10678096A JP10678096A JPH09293055A JP H09293055 A JPH09293055 A JP H09293055A JP 10678096 A JP10678096 A JP 10678096A JP 10678096 A JP10678096 A JP 10678096A JP H09293055 A JPH09293055 A JP H09293055A
Authority
JP
Japan
Prior art keywords
data
shared memory
control block
control
stored
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
Application number
JP10678096A
Other languages
Japanese (ja)
Other versions
JP2924786B2 (en
Inventor
Toshiyuki Otsu
敏行 大津
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
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP10678096A priority Critical patent/JP2924786B2/en
Publication of JPH09293055A publication Critical patent/JPH09293055A/en
Application granted granted Critical
Publication of JP2924786B2 publication Critical patent/JP2924786B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To enable respective hosts, constituting the loosely coupled multiple computer system, to efficiently and accurately use the shared file. SOLUTION: A shared memory access control means 108 when requested by an application 109 to access the shared memory file 104 performs retrieval from a hash table 107 according to a key specified to make object data to be accessed unique among the hosts, and specifies a data storage block in the shared memory file 104 and a lock area in an inter-host lock area 103. The shared memory access control means 108 after acquiring the lock of the inter- host lock area 103 accesses the corresponding data storage block in the shared memory file 104 and performing unlocking when the access is completed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【発明の属する技術分野】本発明は、疎結合多重計算機
システムを構成するホスト間で共有する共有ファイルの
排他制御システム、排他制御方法、および排他制御プロ
グラムを記憶する媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an exclusive control system for a shared file shared by hosts constituting a loosely coupled multiple computer system, an exclusive control method, and a medium for storing an exclusive control program.

【0001】[0001]

【従来の技術】特開平2−201665号公報には、共
有サブカタログファイルが存在する共有ボリュームの媒
体名を使用して排他制御キーを生成し、多重システム制
御装置に登録して共有サブカタログファイル上のカタロ
グ情報の登録、更新、参照、削除処理の排他制御を行う
技術が記載されている。
In Japanese Patent Laid-Open No. 2-201665, an exclusive control key is generated by using a medium name of a shared volume in which a shared sub-catalog file exists and is registered in a multi-system control unit to be shared sub-catalog file. A technique for performing exclusive control of registration, update, reference, and deletion processing of the above catalog information is described.

【0002】[0002]

【発明が解決しようとする課題】しかし、この従来の技
術においては、排他制御キーを登録するためだけに用い
られる多重システム制御装置という特別な装置を備えな
ければ、排他制御を行うことができないという問題点が
ある。
However, in this conventional technique, exclusive control cannot be performed unless a special device called a multiple system control device used only for registering an exclusive control key is provided. There is a problem.

【0003】また、この多重システム制御装置内の排他
制御キーを登録する領域がオーバーフローした場合に
は、排他制御を行えなくなってしまうという問題点があ
る。
Further, when the area for registering the exclusive control key in the multiple system controller overflows, the exclusive control cannot be performed.

【0004】本発明の目的は、疎結合多重計算機システ
ムを構成する各ホストが、効率良くかつ正確に共有ファ
イルを共有使用することができるようにすることにあ
る。
An object of the present invention is to enable each host constituting a loosely coupled multiple computer system to share a shared file efficiently and accurately.

【0005】本発明の他の目的は、疎結合多重計算機シ
ステムを構成する各ホストが、特別な装置を備えること
なく、共有ファイルを排他制御して共有使用することが
できるようにすることにある。
Another object of the present invention is to enable each host constituting the loosely coupled multiple computer system to exclusively control a shared file for shared use without providing a special device. .

【0006】[0006]

【課題を解決するための手段】本発明の第1の疎結合多
重計算機システムにおける共有ファイルの排他制御シス
テムは、複数のホスト計算機と、該複数のホスト計算機
のそれぞれにおいて実行されるアプリケーションプログ
ラムがアクセスするデータを格納する共有メモリファイ
ルを有する外部記憶装置とを含み、前記複数のホスト計
算機のそれぞれは、前記アプリケーションプログラムか
らのデータの書き込み要求に応じて、前記共有メモリフ
ァイルを排他制御し、該共有メモリファイルに該データ
を書き込み、該共有メモリファイルの排他制御を解除す
る共有メモリアクセス制御手段とを含むことを特徴とす
る。
According to a first aspect of the present invention, there is provided an exclusive control system for shared files in a loosely coupled multiple computer system in which a plurality of host computers and an application program executed in each of the plurality of host computers access. An external storage device having a shared memory file storing data to be stored, each of the plurality of host computers exclusively controls the shared memory file in response to a data write request from the application program, Shared memory access control means for writing the data to the memory file and canceling the exclusive control of the shared memory file.

【0007】本発明の第2の疎結合多重計算機システム
における共有ファイルの排他制御システムは、複数のホ
スト計算機と、該複数のホスト計算機のそれぞれにおい
て実行されるアプリケーションプログラムがアクセスす
るデータを格納する共有メモリファイルを有する外部記
憶装置とを含み、前記複数のホスト計算機のそれぞれ
は、前記アプリケーションプログラムからのデータの読
み出し要求に応じて、前記共有メモリファイルを排他制
御し、該共有メモリファイルから要求されたデータを読
み出し、該共有メモリファイルの排他制御を解除する共
有メモリアクセス制御手段とを含むことを特徴とする。
The shared file exclusive control system in the second loosely coupled multiple computer system of the present invention is a shared file storing data accessed by a plurality of host computers and application programs executed in each of the plurality of host computers. An external storage device having a memory file, each of the plurality of host computers exclusively controls the shared memory file in response to a data read request from the application program, and is requested from the shared memory file. Shared memory access control means for reading data and canceling exclusive control of the shared memory file.

【0008】本発明の第3の疎結合多重計算機システム
における共有ファイルの排他制御システムは、第1の疎
結合多重計算機システムにおける共有ファイルの排他制
御システムにおいて、前記外部記憶装置は、さらに、前
記共有メモリファイルを排他制御している旨の情報を格
納するホスト間ロック領域を含み、前記共有メモリアク
セス制御手段は、前記アプリケーションプログラムから
のデータの書き込み要求に応じて、前記ホスト間ロック
領域に該共有メモリファイルを排他制御する旨の情報を
格納し、該共有メモリファイルに該データを書き込み、
該ホスト間ロック領域に格納した該共有メモリファイル
を排他制御する旨の情報を削除することを特徴とする。
A third aspect of the present invention is the shared file exclusive control system in the loosely coupled multiple computer system, wherein the external storage device is the shared file exclusive control system in the first loosely coupled multiple computer system. The shared memory access control means includes an inter-host lock area that stores information indicating that memory files are exclusively controlled, and the shared memory access control means stores the shared information in the inter-host lock area in response to a data write request from the application program. Stores information indicating exclusive control of the memory file, writes the data in the shared memory file,
It is characterized in that information for exclusive control of the shared memory file stored in the inter-host lock area is deleted.

【0009】本発明の第4の疎結合多重計算機システム
における共有ファイルの排他制御システムは、第2の疎
結合多重計算機システムにおける共有ファイルの排他制
御システムにおいて、前記外部記憶装置は、さらに、前
記共有メモリファイルを排他制御している旨の情報を格
納するホスト間ロック領域を含み、前記共有メモリアク
セス制御手段は、前記アプリケーションプログラムから
のデータの読み出し要求に応じて、前記ホスト間ロック
領域に該共有メモリファイルを排他制御する旨の情報を
格納し、該共有メモリファイルから要求されたデータを
読み出し、該ホスト間ロック領域に格納した該共有メモ
リファイルを排他制御する旨の情報を削除することを特
徴とする。
According to a fourth aspect of the present invention, there is provided a shared file exclusive control system for a loosely coupled multiple computer system according to the second aspect of the present invention, in the shared file exclusive control system for a loosely coupled multiple computer system. The shared memory access control means includes an inter-host lock area that stores information indicating that memory files are exclusively controlled, and the shared memory access control means stores the shared information in the inter-host lock area in response to a data read request from the application program. Characteristic of storing information for exclusive control of a memory file, reading requested data from the shared memory file, and deleting information for exclusive control of the shared memory file stored in the inter-host lock area And

【0010】本発明の第5の疎結合多重計算機システム
における共有ファイルの排他制御システムは、第3の疎
結合多重計算機システムにおける共有ファイルの排他制
御システムにおいて、前記共有メモリファイルは、デー
タと該データの識別子の組を少なくとも一つ格納する複
数の制御ブロックを含み、前記ホスト間ロック領域は、
前記制御ブロックに一意に対応して該制御ブロックをロ
ックしている旨の情報を格納する複数のロック領域を含
み、前記アプリケーションプログラムは、前記共有メモ
リファイルに書き込むデータと該データの識別子とを指
定するデータ書き込み要求を前記共有メモリアクセス制
御手段へ送り、前記共有メモリアクセス制御手段は、前
記アプリケーションプログラムからのデータの書き込み
要求を受け、該書き込み要求に指定されたデータの識別
子を格納する前記共有メモリファイル内の前記制御ブロ
ックを特定し、該制御ブロックに対応する前記ホスト間
ロック領域内の前記ロック領域に該制御ブロックをロッ
クする旨の情報を格納し、該制御ファイルに該書き込み
要求に指定されたデータを書き込み、該ロック領域に格
納した該制御ブロックをロックする旨の情報を削除する
ことを特徴とする。
According to a fifth aspect of the present invention, there is provided a shared file exclusive control system for a shared file in a loosely coupled multiple computer system. In the third shared file exclusive control system for a loosely coupled multiple computer system, the shared memory file is data and the data. A plurality of control blocks that store at least one set of identifiers of
The application program includes a plurality of lock areas for storing information indicating that the control block is locked so as to uniquely correspond to the control block, and the application program specifies data to be written in the shared memory file and an identifier of the data. To the shared memory access control means, the shared memory access control means receives a data write request from the application program, and stores the data identifier specified in the write request. The control block in the file is specified, information indicating that the control block is locked is stored in the lock area in the inter-host lock area corresponding to the control block, and the control file specifies the write request. The control block stored in the lock area. And deletes the information to the effect that locks the click.

【0011】本発明の第6の疎結合多重計算機システム
における共有ファイルの排他制御システムは、第4の疎
結合多重計算機システムにおける共有ファイルの排他制
御システムにおいて、前記共有メモリファイルは、デー
タと該データの識別子の組を少なくとも一つ格納する複
数の制御ブロックを含み、前記ホスト間ロック領域は、
前記制御ブロックに一意に対応して該制御ブロックをロ
ックしている旨の情報を格納する複数のロック領域を含
み、前記アプリケーションプログラムは、前記共有メモ
リファイルに書き込むデータと該データの識別子とを指
定するデータ読み出し要求を前記共有メモリアクセス制
御手段へ送り、前記共有メモリアクセス制御手段は、前
記アプリケーションプログラムからのデータの読み出し
要求を受け、該読み出し要求に指定されたデータの識別
子を格納する前記共有メモリファイル内の前記制御ブロ
ックを特定し、該制御ブロックに対応する前記ホスト間
ロック領域内の前記ロック領域に該制御ブロックをロッ
クする旨の情報を格納し、該制御ファイルから該読み出
し要求に指定されたデータを読み出し、該ロック領域に
格納した該制御ブロックをロックする旨の情報を削除す
ることを特徴とする。
According to a sixth aspect of the present invention, there is provided an exclusive control system for shared files in a loosely coupled multiple computer system according to a fourth aspect of the exclusive control system for shared files in a loosely coupled multiple computer system, wherein the shared memory file is data and the data. A plurality of control blocks that store at least one set of identifiers of
The application program includes a plurality of lock areas for storing information indicating that the control block is locked so as to uniquely correspond to the control block, and the application program specifies data to be written in the shared memory file and an identifier of the data. To the shared memory access control means, and the shared memory access control means receives the data read request from the application program, and stores the data identifier specified in the read request. The control block in the file is specified, information for locking the control block in the lock area in the inter-host lock area corresponding to the control block is stored, and the control file specifies the read request. The control data stored in the lock area. And deletes the information to the effect that locks the click.

【0012】本発明の第7の疎結合多重計算機システム
における共有ファイルの排他制御システムは、第5の疎
結合多重計算機システムにおける共有ファイルの排他制
御システムにおいて、前記複数のホスト計算機のそれぞ
れは、さらに、前記共有メモリファイル内の前記制御ブ
ロックの数と各制御ブロックのアドレスである複数の制
御ブロックアドレスとを含むハッシュテーブルを含み、
前記共有メモリアクセス制御手段は、前記アプリケーシ
ョンプログラムからのデータの書き込み要求を受け、該
書き込み要求に指定されたデータの識別子をハッシュし
た結果を前記ハッシュテーブルに格納されている前記制
御ブロックの数で除算した残余を求め、前記ホスト間ロ
ック領域内の該残余の数番目の前記ロック領域に前記制
御ブロックをロックする旨の情報を格納し、前記ハッシ
ュテーブルに格納されている該残余の数番目の前記制御
ブロックアドレスが指す前記制御ブロックを読み出し、
該制御ブロック内に書き込み要求に指定されたデータの
識別子に一致する識別子があれば、該識別子に対応する
データを書き込み要求に指定されたデータで更新し、一
致する識別子がなければ、書き込み要求に指定されたデ
ータと該データの識別子との組とを該制御ブロックへ格
納し、前記ロック領域に格納した該制御ブロックをロッ
クする旨の情報を削除することを特徴とする。
According to a seventh aspect of the present invention, there is provided an exclusive control system for shared files in a loosely coupled multiple computer system according to the fifth aspect, in the shared file exclusive control system for loosely coupled multiple computer systems, wherein each of the plurality of host computers further comprises: A hash table containing the number of control blocks in the shared memory file and a plurality of control block addresses which are addresses of each control block,
The shared memory access control means receives a data write request from the application program, and divides the result of hashing the identifier of the data specified in the write request by the number of the control blocks stored in the hash table. The information indicating that the control block is to be locked is stored in the remaining lock area in the inter-host lock area, and the residual number stored in the hash table is stored in the hash table. Reading the control block pointed to by the control block address,
If there is an identifier in the control block that matches the identifier of the data specified in the write request, the data corresponding to the identifier is updated with the data specified in the write request. A set of designated data and an identifier of the data is stored in the control block, and information for locking the control block stored in the lock area is deleted.

【0013】本発明の第8の疎結合多重計算機システム
における共有ファイルの排他制御システムは、第6の疎
結合多重計算機システムにおける共有ファイルの排他制
御システムにおいて、前記複数のホスト計算機のそれぞ
れは、さらに、前記共有メモリファイル内の前記制御ブ
ロックの数と各制御ブロックのアドレスである複数の制
御ブロックアドレスとを含むハッシュテーブルを含み、
前記共有メモリアクセス制御手段は、前記アプリケーシ
ョンプログラムからのデータの読み出し要求を受け、該
読み出し要求に指定されたデータの識別子をハッシュし
た結果を前記ハッシュテーブルに格納されている前記制
御ブロックの数で除算した残余を求め、前記ホスト間ロ
ック領域内の該残余の数番目の前記ロック領域に前記制
御ブロックをロックする旨の情報を格納し、前記ハッシ
ュテーブルに格納されている該残余の数番目の前記制御
ブロックアドレスが指す前記制御ブロックを読み出し、
該制御ブロック内に読み出し要求に指定されたデータの
識別子に一致する識別子があれば、該識別子に対応する
データを読み出し、一致する識別子がなければ、エラー
表示し、前記ロック領域に格納した該制御ブロックをロ
ックする旨の情報を削除することを特徴とする。
According to an eighth aspect of the present invention, there is provided an exclusive control system for shared files in a loosely coupled multiple computer system according to the sixth aspect of the shared file exclusive control system in loosely coupled multiple computer systems, wherein each of the plurality of host computers further comprises: A hash table containing the number of control blocks in the shared memory file and a plurality of control block addresses which are addresses of each control block,
The shared memory access control means receives a data read request from the application program, and divides the result of hashing the identifier of the data specified in the read request by the number of the control blocks stored in the hash table. The information indicating that the control block is to be locked is stored in the remaining lock area in the inter-host lock area, and the residual number stored in the hash table is stored in the hash table. Reading the control block pointed to by the control block address,
If there is an identifier in the control block that matches the identifier of the data specified in the read request, the data corresponding to the identifier is read. If there is no matching identifier, an error is displayed and the control stored in the lock area is read. The feature is that the information to lock the block is deleted.

【0014】本発明の第9の疎結合多重計算機システム
における共有ファイルの排他制御システムは、第7の疎
結合多重計算機システムにおける共有ファイルの排他制
御システムにおいて、前記疎結合多重計算機システム
は、さらに、前記複数の計算機間の通信を制御する通信
装置を含み、前記共有メモリアクセス制御手段は、さら
に、前記ロック領域に他のホスト計算機により前記制御
ブロックをロックする旨の情報が格納されている場合に
は、該情報が削除されるのを待ち合わせ、削除後に該制
御ブロックをロックする旨の情報を格納するとともに、
前記ロック領域に格納した前記制御ブロックをロックす
る旨の情報を削除する際に、該情報が削除されるのを待
ち合わせている他の計算機が存在する場合には、該他の
計算機に対して前記通信装置により該情報を削除した旨
通知することを特徴とする。
According to a ninth aspect of the present invention, there is provided an exclusive control system for shared files in a loosely coupled multiple computer system, which is the same as the shared file exclusive control system in a seventh loosely coupled multiple computer system. The shared memory access control means further includes a communication device for controlling communication between the plurality of computers, and when the shared memory access control means stores information indicating that the control block is locked by another host computer in the lock area. Waits for the information to be deleted, stores the information indicating that the control block is locked after the deletion, and
When deleting the information for locking the control block stored in the lock area, if there is another computer waiting for the information to be deleted, the The communication device notifies that the information has been deleted.

【0015】本発明の第10の疎結合多重計算機システ
ムにおける共有ファイルの排他制御システムは、第8の
疎結合多重計算機システムにおける共有ファイルの排他
制御システムにおいて、前記疎結合多重計算機システム
は、さらに、前記複数の計算機間の通信を制御する通信
装置を含み、前記共有メモリアクセス制御手段は、さら
に、前記ロック領域に他のホスト計算機により前記制御
ブロックをロックする旨の情報が格納されている場合に
は、該情報が削除されるのを待ち合わせ、削除後に該制
御ブロックをロックする旨の情報を格納するとともに、
前記ロック領域に格納した前記制御ブロックをロックす
る旨の情報を削除する際に、該情報が削除されるのを待
ち合わせている他の計算機が存在する場合には、該他の
計算機に対して前記通信装置により該情報を削除した旨
通知することを特徴とする。
According to a tenth aspect of the present invention, there is provided a shared file exclusive control system for a shared file in the loosely coupled multiple computer system according to the eighth aspect of the present invention, which is the shared file exclusive control system for a loosely coupled multiple computer system. The shared memory access control means further includes a communication device for controlling communication between the plurality of computers, and when the shared memory access control means stores information indicating that the control block is locked by another host computer in the lock area. Waits for the information to be deleted, stores the information indicating that the control block is locked after the deletion, and
When deleting the information for locking the control block stored in the lock area, if there is another computer waiting for the information to be deleted, the The communication device notifies that the information has been deleted.

【0016】本発明の第1の疎結合多重計算機システム
における共有ファイルの排他制御方法は、複数のホスト
計算機と、該複数のホスト計算機のそれぞれにおいて実
行されるアプリケーションプログラムがアクセスするデ
ータを格納する共有メモリファイルを含む外部記憶装置
とを備えた疎結合多重計算機システムにおいて、前記複
数のホスト計算機のそれぞれが、前記アプリケーション
プログラムからのデータの書き込み要求に応じて、前記
共有メモリファイルを排他制御し、該共有メモリファイ
ルに該データを書き込み、該共有メモリファイルの排他
制御を解除することを特徴とする。
A first method of exclusive control of a shared file in a loosely coupled multiple computer system according to the present invention is a shared storage for storing data accessed by a plurality of host computers and an application program executed in each of the plurality of host computers. In a loosely coupled multiple computer system including an external storage device including a memory file, each of the plurality of host computers exclusively controls the shared memory file in response to a data write request from the application program, The data is written in the shared memory file, and the exclusive control of the shared memory file is released.

【0017】本発明の第2の疎結合多重計算機システム
における共有ファイルの排他制御方法は、複数のホスト
計算機と、該複数のホスト計算機のそれぞれにおいて実
行されるアプリケーションプログラムがアクセスするデ
ータを格納する共有メモリファイルを含む外部記憶装置
とを備えた疎結合多重計算機システムにおいて、前記複
数のホスト計算機のそれぞれが、前記アプリケーション
プログラムからのデータの読み出し要求に応じて、前記
共有メモリファイルを排他制御し、該共有メモリファイ
ルから要求されたデータを読み出し、該共有メモリファ
イルの排他制御を解除することを特徴とする。
The shared file exclusive control method in the second loosely coupled multiple computer system of the present invention is a shared file storing data accessed by a plurality of host computers and an application program executed in each of the plurality of host computers. In a loosely coupled multiple computer system including an external storage device including a memory file, each of the plurality of host computers exclusively controls the shared memory file in response to a data read request from the application program, It is characterized in that the requested data is read from the shared memory file and the exclusive control of the shared memory file is released.

【0018】本発明の第3の疎結合多重計算機システム
における共有ファイルの排他制御方法は、第1の疎結合
多重計算機システムにおける共有ファイルの排他制御方
法において、前記外部記憶装置は、さらに、前記共有メ
モリファイルを排他制御している旨の情報を格納するホ
スト間ロック領域を含み、前記複数のホスト計算機のそ
れぞれが、前記アプリケーションプログラムからのデー
タの書き込み要求に応じて、前記ホスト間ロック領域に
該共有メモリファイルを排他制御する旨の情報を格納
し、該共有メモリファイルに該データを書き込み、該ホ
スト間ロック領域に格納した該共有メモリファイルを排
他制御する旨の情報を削除することを特徴とする。
According to a third aspect of the present invention, there is provided an exclusive control method for shared files in a loosely coupled multiple computer system, wherein the external storage device further comprises the shared file exclusive control method in the first loosely coupled multiple computer system. An inter-host lock area that stores information indicating that memory files are exclusively controlled is stored, and each of the plurality of host computers stores in the inter-host lock area in response to a data write request from the application program. Information storing exclusive control of a shared memory file is stored, the data is written to the shared memory file, and information storing exclusive control of the shared memory file stored in the inter-host lock area is deleted. To do.

【0019】本発明の第4の疎結合多重計算機システム
における共有ファイルの排他制御方法は、第2の疎結合
多重計算機システムにおける共有ファイルの排他制御方
法において、前記外部記憶装置は、さらに、前記共有メ
モリファイルを排他制御している旨の情報を格納するホ
スト間ロック領域を含み、前記複数のホスト計算機のそ
れぞれが、前記アプリケーションプログラムからのデー
タの読み出し要求に応じて、前記ホスト間ロック領域に
該共有メモリファイルを排他制御する旨の情報を格納
し、該共有メモリファイルから要求されたデータを読み
出し、該ホスト間ロック領域に格納した該共有メモリフ
ァイルを排他制御する旨の情報を削除することを特徴と
する。
According to a fourth aspect of the present invention, there is provided an exclusive control method for a shared file in a loosely coupled multiple computer system according to the second method for exclusive control of a shared file in a loosely coupled multiple computer system, wherein the external storage device further comprises: The host computer includes an inter-host lock area that stores information indicating that memory files are exclusively controlled, and each of the plurality of host computers stores in the inter-host lock area in response to a data read request from the application program. Information for exclusive control of a shared memory file is stored, requested data is read from the shared memory file, and information for exclusive control of the shared memory file stored in the inter-host lock area is deleted. Characterize.

【0020】本発明の第5の疎結合多重計算機システム
における共有ファイルの排他制御方法は、第3の疎結合
多重計算機システムにおける共有ファイルの排他制御方
法において、前記共有メモリファイルは、データと該デ
ータの識別子の組を少なくとも一つ格納する複数の制御
ブロックを含み、前記ホスト間ロック領域は、前記制御
ブロックに一意に対応して該制御ブロックをロックして
いる旨の情報を格納する複数のロック領域を含み、前記
複数のホスト計算機のそれぞれが、前記アプリケーショ
ンプログラムからのデータの書き込み要求を受け、該書
き込み要求に指定されたデータの識別子を格納する前記
共有メモリファイル内の前記制御ブロックを特定し、該
制御ブロックに対応する前記ホスト間ロック領域内の前
記ロック領域に該制御ブロックをロックする旨の情報を
格納し、該制御ファイルに該書き込み要求に指定された
データを書き込み、該ロック領域に格納した該制御ブロ
ックをロックする旨の情報を削除することを特徴とす
る。
According to a fifth aspect of the present invention, there is provided an exclusive control method for a shared file in a loosely coupled multiple computer system according to the third method for exclusive control of a shared file in a loosely coupled multiple computer system, wherein the shared memory file is data and the data. A plurality of control blocks that store at least one set of identifiers, and the inter-host lock area stores a plurality of locks that store information indicating that the control blocks are locked in a unique correspondence with the control blocks. Each of the plurality of host computers, including an area, receives a data write request from the application program, and specifies the control block in the shared memory file that stores the identifier of the data specified in the write request. , In the lock area in the inter-host lock area corresponding to the control block, Control information is stored in the control file, the data specified in the write request is written to the control file, and the control block information stored in the lock area is deleted. .

【0021】本発明の第6の疎結合多重計算機システム
における共有ファイルの排他制御方法は、第4の疎結合
多重計算機システムにおける共有ファイルの排他制御方
法において、前記共有メモリファイルは、データと該デ
ータの識別子の組を少なくとも一つ格納する複数の制御
ブロックを含み、前記ホスト間ロック領域は、前記制御
ブロックに一意に対応して該制御ブロックをロックして
いる旨の情報を格納する複数のロック領域を含み、前記
複数のホスト計算機のそれぞれが、前記アプリケーショ
ンプログラムからのデータの読み出し要求を受け、該読
み出し要求に指定されたデータの識別子を格納する前記
共有メモリファイル内の前記制御ブロックを特定し、該
制御ブロックに対応する前記ホスト間ロック領域内の前
記ロック領域に該制御ブロックをロックする旨の情報を
格納し、該制御ファイルから該読み出し要求に指定され
たデータを読み出し、該ロック領域に格納した該制御ブ
ロックをロックする旨の情報を削除することを特徴とす
る。
According to a sixth aspect of the present invention, there is provided a shared file exclusive control method for a shared file in a loosely coupled multiple computer system, wherein the shared memory file is data and the data. A plurality of control blocks that store at least one set of identifiers, and the inter-host lock area stores a plurality of locks that store information indicating that the control blocks are locked in a unique correspondence with the control blocks. Each of the plurality of host computers, including an area, receives a data read request from the application program, and specifies the control block in the shared memory file that stores the identifier of the data specified in the read request. , In the lock area in the inter-host lock area corresponding to the control block, It is characterized in that information for locking the control block is stored, the data specified in the read request is read from the control file, and the information for locking the control block stored in the lock area is deleted. .

【0022】本発明の第7の疎結合多重計算機システム
における共有ファイルの排他制御方法は、第5の疎結合
多重計算機システムにおける共有ファイルの排他制御方
法において、前記複数のホスト計算機のそれぞれが、さ
らに、前記共有メモリファイル内の前記制御ブロックの
数と各制御ブロックのアドレスである複数の制御ブロッ
クアドレスとを含むハッシュテーブルを含み、前記アプ
リケーションプログラムからのデータの書き込み要求を
受け、該書き込み要求に指定されたデータの識別子をハ
ッシュした結果を前記ハッシュテーブルに格納されてい
る前記制御ブロックの数で除算した残余を求め、前記ホ
スト間ロック領域内の該残余の数番目の前記ロック領域
に前記制御ブロックをロックする旨の情報を格納し、前
記ハッシュテーブルに格納されている該残余の数番目の
前記制御ブロックアドレスが指す前記制御ブロックを読
み出し、該制御ブロック内に書き込み要求に指定された
データの識別子に一致する識別子があれば、該識別子に
対応するデータを書き込み要求に指定されたデータで更
新し、一致する識別子がなければ、書き込み要求に指定
されたデータと該データの識別子との組とを該制御ブロ
ックへ格納し、前記ロック領域に格納した該制御ブロッ
クをロックする旨の情報を削除することを特徴とする。
A seventh aspect of the present invention is a shared file exclusive control method in a loosely coupled multiple computer system, wherein the plurality of host computers further comprises: Including a hash table including the number of the control blocks in the shared memory file and a plurality of control block addresses which are addresses of the control blocks, receiving a data write request from the application program and designating the write request The result obtained by hashing the identifier of the generated data is divided by the number of the control blocks stored in the hash table to obtain a residual, and the control block is stored in the lock area of the residual number in the inter-host lock area. Stores information that locks the The control block indicated by the remaining number of the control block addresses stored in the control block is read, and if there is an identifier in the control block that matches the identifier of the data specified in the write request, the identifier corresponds to the identifier. The data is updated with the data specified in the write request, and if there is no matching identifier, the set of the data specified in the write request and the identifier of the data is stored in the control block and stored in the lock area. It is characterized in that the information indicating that the control block is locked is deleted.

【0023】本発明の第8の疎結合多重計算機システム
における共有ファイルの排他制御方法は、第6の疎結合
多重計算機システムにおける共有ファイルの排他制御方
法において、前記複数のホスト計算機のそれぞれが、さ
らに、前記共有メモリファイル内の前記制御ブロックの
数と各制御ブロックのアドレスである複数の制御ブロッ
クアドレスとを含むハッシュテーブルを含み、前記アプ
リケーションプログラムからのデータの読み出し要求を
受け、該読み出し要求に指定されたデータの識別子をハ
ッシュした結果を前記ハッシュテーブルに格納されてい
る前記制御ブロックの数で除算した残余を求め、前記ホ
スト間ロック領域内の該残余の数番目の前記ロック領域
に前記制御ブロックをロックする旨の情報を格納し、前
記ハッシュテーブルに格納されている該残余の数番目の
前記制御ブロックアドレスが指す前記制御ブロックを読
み出し、該制御ブロック内に読み出し要求に指定された
データの識別子に一致する識別子があれば、該識別子に
対応するデータを読み出し、一致する識別子がなけれ
ば、エラー表示し、前記ロック領域に格納した該制御ブ
ロックをロックする旨の情報を削除することを特徴とす
る。
An eighth embodiment of the shared file exclusive control method in the loosely coupled multiple computer system according to the present invention is the shared file exclusive control method in the sixth loosely coupled multiple computer system, wherein each of the plurality of host computers further comprises Including a hash table including the number of the control blocks in the shared memory file and a plurality of control block addresses which are addresses of the control blocks, receiving a data read request from the application program and designating the read request The result obtained by hashing the identifier of the generated data is divided by the number of the control blocks stored in the hash table to obtain a residual, and the control block is stored in the lock area of the residual number in the inter-host lock area. Stores information that locks the The control block indicated by the remaining number of control block addresses stored in the control block is read, and if there is an identifier in the control block that matches the identifier of the data specified in the read request, it corresponds to the identifier. It is characterized in that the data is read, and if there is no matching identifier, an error is displayed and the information for locking the control block stored in the lock area is deleted.

【0024】本発明の第9の疎結合多重計算機システム
における共有ファイルの排他制御方法は、第7の疎結合
多重計算機システムにおける共有ファイルの排他制御方
法において、前記疎結合多重計算機システムは、さら
に、前記複数の計算機間の通信を制御する通信装置を含
み、前記複数のホスト計算機のそれぞれが、さらに、前
記ロック領域に他のホスト計算機により前記制御ブロッ
クをロックする旨の情報が格納されている場合には、該
情報が削除されるのを待ち合わせ、削除後に該制御ブロ
ックをロックする旨の情報を格納するとともに、前記ロ
ック領域に格納した前記制御ブロックをロックする旨の
情報を削除する際に、該情報が削除されるのを待ち合わ
せている他の計算機が存在する場合には、該他の計算機
に対して前記通信装置により該情報を削除した旨通知す
ることを特徴とする。
A ninth aspect of the present invention is a shared file exclusive control method for a loosely coupled multiple computer system according to the seventh aspect of the present invention, which is the same as the shared file exclusive control method for a loosely coupled multiple computer system. A case in which a communication device that controls communication between the plurality of computers is included, and each of the plurality of host computers further stores information indicating that the control block is locked by another host computer in the lock area. In the case of waiting for the information to be deleted, storing information indicating that the control block is locked after the deletion, and deleting the information indicating that the control block stored in the lock area is locked, If there is another computer waiting for the information to be deleted, the communication device is sent to the other computer. By and notifies that to remove the information.

【0025】本発明の第10の疎結合多重計算機システ
ムにおける共有ファイルの排他制御方法は、第8の疎結
合多重計算機システムにおける共有ファイルの排他制御
方法において、前記疎結合多重計算機システムは、さら
に、前記複数の計算機間の通信を制御する通信装置を含
み、前記複数のホスト計算機のそれぞれが、さらに、前
記ロック領域に他のホスト計算機により前記制御ブロッ
クをロックする旨の情報が格納されている場合には、該
情報が削除されるのを待ち合わせ、削除後に該制御ブロ
ックをロックする旨の情報を格納するとともに、前記ロ
ック領域に格納した前記制御ブロックをロックする旨の
情報を削除する際に、該情報が削除されるのを待ち合わ
せている他の計算機が存在する場合には、該他の計算機
に対して前記通信装置により該情報を削除した旨通知す
ることを特徴とする。
According to a tenth aspect of the present invention, there is provided an exclusive control method for shared files in a loosely coupled multiple computer system according to the eighth method for exclusive control of shared files in a loosely coupled multiple computer system. A case in which a communication device that controls communication between the plurality of computers is included, and each of the plurality of host computers further stores information indicating that the control block is locked by another host computer in the lock area. In the case of waiting for the information to be deleted, storing information indicating that the control block is locked after the deletion, and deleting the information indicating that the control block stored in the lock area is locked, If there is another computer waiting for the information to be deleted, the communication with the other computer is performed. And notifies that to remove the information by location.

【0026】本発明の第1の記憶媒体は、複数のホスト
計算機と、該複数のホスト計算機のそれぞれにおいて実
行されるアプリケーションプログラムがアクセスするデ
ータを格納する共有メモリファイルを含む外部記憶装置
とを備えた疎結合多重計算機システムにおいて、前記ア
プリケーションプログラムからのデータの書き込み要求
に応じて、前記共有メモリファイルを排他制御し、該共
有メモリファイルに該データを書き込み、該共有メモリ
ファイルの排他制御を解除することを前記複数のホスト
計算機のそれぞれに行わせるプログラムを含むことを特
徴とする。
The first storage medium of the present invention comprises a plurality of host computers and an external storage device including a shared memory file for storing data accessed by an application program executed in each of the plurality of host computers. In the loosely coupled multi-computer system, the shared memory file is exclusively controlled in response to a data write request from the application program, the data is written to the shared memory file, and the exclusive control of the shared memory file is released. And a program for causing each of the plurality of host computers to perform the above.

【0027】本発明の第2の記憶媒体は、複数のホスト
計算機と、該複数のホスト計算機のそれぞれにおいて実
行されるアプリケーションプログラムがアクセスするデ
ータを格納する共有メモリファイルを含む外部記憶装置
とを備えた疎結合多重計算機システムにおいて、前記ア
プリケーションプログラムからのデータの読み出し要求
に応じて、前記共有メモリファイルを排他制御し、該共
有メモリファイルから要求されたデータを読み出し、該
共有メモリファイルの排他制御を解除することを前記複
数のホスト計算機のそれぞれに行わせるプログラムを含
むことを特徴とする。
The second storage medium of the present invention comprises a plurality of host computers and an external storage device including a shared memory file for storing data accessed by an application program executed in each of the plurality of host computers. In the loosely coupled multi-computer system, the shared memory file is exclusively controlled in response to a data read request from the application program, the requested data is read from the shared memory file, and the shared memory file is exclusively controlled. It is characterized by including a program for causing each of the plurality of host computers to perform the cancellation.

【0028】本発明の第3の記憶媒体は、第1の記憶媒
体において、前記外部記憶装置は、さらに、前記共有メ
モリファイルを排他制御している旨の情報を格納するホ
スト間ロック領域を含み、前記アプリケーションプログ
ラムからのデータの書き込み要求に応じて、前記ホスト
間ロック領域に該共有メモリファイルを排他制御する旨
の情報を格納し、該共有メモリファイルに該データを書
き込み、該ホスト間ロック領域に格納した該共有メモリ
ファイルを排他制御する旨の情報を削除することを前記
複数のホスト計算機のそれぞれに行わせるプログラムを
含むことを特徴とする。
According to a third storage medium of the present invention, in the first storage medium, the external storage device further includes an inter-host lock area for storing information indicating that the shared memory file is exclusively controlled. In response to a data write request from the application program, information for exclusive control of the shared memory file is stored in the inter-host lock area, the data is written in the shared memory file, and the inter-host lock area is stored. And a program for causing each of the plurality of host computers to delete the information for exclusive control of the shared memory file stored in.

【0029】本発明の第4の記憶媒体は、第2の記憶媒
体において、前記外部記憶装置は、さらに、前記共有メ
モリファイルを排他制御している旨の情報を格納するホ
スト間ロック領域を含み、前記アプリケーションプログ
ラムからのデータの読み出し要求に応じて、前記ホスト
間ロック領域に該共有メモリファイルを排他制御する旨
の情報を格納し、該共有メモリファイルから要求された
データを読み出し、該ホスト間ロック領域に格納した該
共有メモリファイルを排他制御する旨の情報を削除する
ことを前記複数のホスト計算機のそれぞれに行わせるプ
ログラムを含むことを特徴とする。
According to a fourth storage medium of the present invention, in the second storage medium, the external storage device further includes an inter-host lock area for storing information indicating that the shared memory file is exclusively controlled. In response to a data read request from the application program, information about exclusive control of the shared memory file is stored in the inter-host lock area, the requested data is read from the shared memory file, and It is characterized by including a program for causing each of the plurality of host computers to delete the information indicating the exclusive control of the shared memory file stored in the lock area.

【0030】本発明の第5の記憶媒体は、第3の記憶媒
体において、前記共有メモリファイルは、データと該デ
ータの識別子の組を少なくとも一つ格納する複数の制御
ブロックを含み、前記ホスト間ロック領域は、前記制御
ブロックに一意に対応して該制御ブロックをロックして
いる旨の情報を格納する複数のロック領域を含み、前記
アプリケーションプログラムからのデータの書き込み要
求を受け、該書き込み要求に指定されたデータの識別子
を格納する前記共有メモリファイル内の前記制御ブロッ
クを特定し、該制御ブロックに対応する前記ホスト間ロ
ック領域内の前記ロック領域に該制御ブロックをロック
する旨の情報を格納し、該制御ファイルに該書き込み要
求に指定されたデータを書き込み、該ロック領域に格納
した該制御ブロックをロックする旨の情報を削除するこ
とを前記複数のホスト計算機のそれぞれに行わせるプロ
グラムを含むことを特徴とする。
A fifth storage medium of the present invention is the third storage medium according to the third storage medium, wherein the shared memory file includes a plurality of control blocks for storing at least one set of data and an identifier of the data. The lock area includes a plurality of lock areas that store information indicating that the control block is locked so as to uniquely correspond to the control block, receives a data write request from the application program, and receives the write request. The control block in the shared memory file that stores the identifier of the designated data is specified, and the information indicating that the control block is locked in the lock area in the inter-host lock area corresponding to the control block is stored. Then, the data specified by the write request is written to the control file, and the control block stored in the lock area is written. Characterized in that it comprises a program for causing each of said plurality of host computers to delete the information that locks the.

【0031】本発明の第6の記憶媒体は、第4の記憶媒
体において、前記共有メモリファイルは、データと該デ
ータの識別子の組を少なくとも一つ格納する複数の制御
ブロックを含み、前記ホスト間ロック領域は、前記制御
ブロックに一意に対応して該制御ブロックをロックして
いる旨の情報を格納する複数のロック領域を含み、前記
アプリケーションプログラムからのデータの読み出し要
求を受け、該読み出し要求に指定されたデータの識別子
を格納する前記共有メモリファイル内の前記制御ブロッ
クを特定し、該制御ブロックに対応する前記ホスト間ロ
ック領域内の前記ロック領域に該制御ブロックをロック
する旨の情報を格納し、該制御ファイルから該読み出し
要求に指定されたデータを読み出し、該ロック領域に格
納した該制御ブロックをロックする旨の情報を削除する
ことを前記複数のホスト計算機のそれぞれに行わせるプ
ログラムを含むことを特徴とする。
According to a sixth storage medium of the present invention, in the fourth storage medium, the shared memory file includes a plurality of control blocks for storing at least one set of data and an identifier of the data, The lock area includes a plurality of lock areas that store information indicating that the control block is locked so as to uniquely correspond to the control block, receives a data read request from the application program, and receives the read request. The control block in the shared memory file that stores the identifier of the designated data is specified, and the information indicating that the control block is locked in the lock area in the inter-host lock area corresponding to the control block is stored. Then, the data specified in the read request is read from the control file, and the control block stored in the lock area is read. Characterized in that it comprises a program for causing to delete the information that locking the click on each of the plurality of host computers.

【0032】本発明の第7の記憶媒体は、第5の記憶媒
体において、さらに、前記共有メモリファイル内の前記
制御ブロックの数と各制御ブロックのアドレスである複
数の制御ブロックアドレスとを含むハッシュテーブルを
含み、前記アプリケーションプログラムからのデータの
書き込み要求を受け、該書き込み要求に指定されたデー
タの識別子をハッシュした結果を前記ハッシュテーブル
に格納されている前記制御ブロックの数で除算した残余
を求め、前記ホスト間ロック領域内の該残余の数番目の
前記ロック領域に前記制御ブロックをロックする旨の情
報を格納し、前記ハッシュテーブルに格納されている該
残余の数番目の前記制御ブロックアドレスが指す前記制
御ブロックを読み出し、該制御ブロック内に書き込み要
求に指定されたデータの識別子に一致する識別子があれ
ば、該識別子に対応するデータを書き込み要求に指定さ
れたデータで更新し、一致する識別子がなければ、書き
込み要求に指定されたデータと該データの識別子との組
とを該制御ブロックへ格納し、前記ロック領域に格納し
た該制御ブロックをロックする旨の情報を削除すること
を前記複数のホスト計算機のそれぞれに行わせるプログ
ラムを含むことを特徴とする。
According to a seventh storage medium of the present invention, in the fifth storage medium, further, a hash including the number of the control blocks in the shared memory file and a plurality of control block addresses which are addresses of the respective control blocks. Including a table, receiving a data write request from the application program, hashing the data identifier specified in the write request, and dividing the result by the number of the control blocks stored in the hash table to obtain a residue. , Storing information indicating that the control block is locked in the remaining number of the lock areas in the inter-host lock area, and the remaining number of the control block addresses stored in the hash table is The control block pointed to is read and the data specified in the write request is written in the control block. If there is an identifier that matches the identifier of the data, the data corresponding to the identifier is updated with the data specified in the write request. If there is no matching identifier, the data specified in the write request and the identifier of the data And a program for causing each of the plurality of host computers to delete the information for locking the control block stored in the lock area.

【0033】本発明の第8の記憶媒体は、第6の記憶媒
体において、さらに、前記共有メモリファイル内の前記
制御ブロックの数と各制御ブロックのアドレスである複
数の制御ブロックアドレスとを含むハッシュテーブルを
含み、前記アプリケーションプログラムからのデータの
読み出し要求を受け、該読み出し要求に指定されたデー
タの識別子をハッシュした結果を前記ハッシュテーブル
に格納されている前記制御ブロックの数で除算した残余
を求め、前記ホスト間ロック領域内の該残余の数番目の
前記ロック領域に前記制御ブロックをロックする旨の情
報を格納し、前記ハッシュテーブルに格納されている該
残余の数番目の前記制御ブロックアドレスが指す前記制
御ブロックを読み出し、該制御ブロック内に読み出し要
求に指定されたデータの識別子に一致する識別子があれ
ば、該識別子に対応するデータを読み出し、一致する識
別子がなければ、エラー表示し、前記ロック領域に格納
した該制御ブロックをロックする旨の情報を削除するこ
とを前記複数のホスト計算機のそれぞれに行わせるプロ
グラムを含むことを特徴とする。
An eighth storage medium of the present invention is the sixth storage medium, further comprising a hash including the number of the control blocks in the shared memory file and a plurality of control block addresses which are addresses of the control blocks. Including a table, receives a data read request from the application program, obtains a residue obtained by dividing the result of hashing the identifier of the data specified in the read request by the number of the control blocks stored in the hash table. , Storing information indicating that the control block is locked in the remaining number of the lock areas in the inter-host lock area, and the remaining number of the control block addresses stored in the hash table is The control block pointed to is read, and the data specified in the read request is written in the control block. If there is an identifier that matches the identifier of the data, the data corresponding to the identifier is read, and if there is no matching identifier, an error is displayed and the information that locks the control block stored in the lock area is deleted. Is included in each of the plurality of host computers.

【0034】本発明の第9の記憶媒体は、第7の記憶媒
体において、前記疎結合多重計算機システムは、さら
に、前記複数の計算機間の通信を制御する通信装置を含
み、さらに、前記ロック領域に他のホスト計算機により
前記制御ブロックをロックする旨の情報が格納されてい
る場合には、該情報が削除されるのを待ち合わせ、削除
後に該制御ブロックをロックする旨の情報を格納すると
ともに、前記ロック領域に格納した前記制御ブロックを
ロックする旨の情報を削除する際に、該情報が削除され
るのを待ち合わせている他の計算機が存在する場合に
は、該他の計算機に対して前記通信装置により該情報を
削除した旨通知することを前記複数のホスト計算機のそ
れぞれに行わせるプログラムを含むことを特徴とする。
A ninth storage medium of the present invention is the seventh storage medium, wherein the loosely coupled multiple computer system further includes a communication device for controlling communication between the plurality of computers, and further, the lock area. If the information indicating that the control block is locked by another host computer is stored in, wait for the information to be deleted, and store the information indicating that the control block is locked after the deletion, When deleting the information for locking the control block stored in the lock area, if there is another computer waiting for the information to be deleted, the It is characterized by including a program for causing each of the plurality of host computers to notify that the information has been deleted by the communication device.

【0035】本発明の第10の記憶媒体は、第8の記憶
媒体において、前記疎結合多重計算機システムは、さら
に、前記複数の計算機間の通信を制御する通信装置を含
み、さらに、前記ロック領域に他のホスト計算機により
前記制御ブロックをロックする旨の情報が格納されてい
る場合には、該情報が削除されるのを待ち合わせ、削除
後に該制御ブロックをロックする旨の情報を格納すると
ともに、前記ロック領域に格納した前記制御ブロックを
ロックする旨の情報を削除する際に、該情報が削除され
るのを待ち合わせている他の計算機が存在する場合に
は、該他の計算機に対して前記通信装置により該情報を
削除した旨通知することを前記複数のホスト計算機のそ
れぞれに行わせるプログラムを含むことを特徴とする。
According to a tenth storage medium of the present invention, in the eighth storage medium, the loosely coupled multiple computer system further includes a communication device for controlling communication between the plurality of computers, and further, the lock area. If the information indicating that the control block is locked by another host computer is stored in, wait for the information to be deleted, and store the information indicating that the control block is locked after the deletion, When deleting the information for locking the control block stored in the lock area, if there is another computer waiting for the information to be deleted, the It is characterized by including a program for causing each of the plurality of host computers to notify that the information has been deleted by the communication device.

【0036】[0036]

【発明の実施の形態】本発明の発明の実施の形態につい
て、図を参照しながら詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described in detail with reference to the drawings.

【0037】図1を参照すると、本発明は、ホスト1お
よび2(101、102)と、このホスト1および2か
ら共有され、自由に読み書き可能な外部記憶装置である
拡張メモリ100と、このホスト1および2間の通信を
制御する通信装置106とから構成される。
Referring to FIG. 1, according to the present invention, hosts 1 and 2 (101, 102), an extended memory 100 which is a freely readable and writable external storage device shared by the hosts 1 and 2, and the host are provided. The communication device 106 controls the communication between 1 and 2.

【0038】また、拡張メモリ100は、共有メモリフ
ァイル104と、ホスト間ロック領域103を含んでい
る。また、ホスト1、2は、拡張メモリアクセス制御手
段105と、ハッシュテーブル107、共有メモリアク
セス制御手段108、アプリケーション109を含んで
いる。
The extended memory 100 also includes a shared memory file 104 and an inter-host lock area 103. The hosts 1 and 2 also include an extended memory access control unit 105, a hash table 107, a shared memory access control unit 108, and an application 109.

【0039】本実施の形態においては、ホストが2台の
例を説明するが、2台以上のホストが接続されても同様
に実施することができる。
In the present embodiment, an example in which there are two hosts will be described, but the same operation can be performed even when two or more hosts are connected.

【0040】共有メモリファイル104は、ホスト1お
よび2間で排他共有されるデータを格納する拡張メモリ
100上のファイルである。
The shared memory file 104 is a file on the expansion memory 100 which stores data exclusively shared between the hosts 1 and 2.

【0041】ホスト間ロック領域103は、共有メモリ
ファイル104へのデータの読み出し処理および書き込
み処理を排他するためのロック情報を格納する領域であ
る。
The inter-host lock area 103 is an area for storing lock information for exclusive use in data read processing and data write processing to the shared memory file 104.

【0042】拡張メモリアクセス手段105は、拡張メ
モリへのデータの読み出しおよび書き込みを制御する。
The extension memory access means 105 controls reading and writing of data to the extension memory.

【0043】ハッシュテーブル107は、共有メモリフ
ァイル104に登録するデータの識別子と該共有メモリ
ファイル104上の該データの位置およびロック領域の
位置との対応関係を示す表である。
The hash table 107 is a table showing a correspondence relationship between the identifier of data registered in the shared memory file 104 and the position of the data and the position of the lock area on the shared memory file 104.

【0044】共有メモリアクセス制御手段108は、ア
プリケーション109からの要求に基づき、共有メモリ
ファイル104内のデータをホスト間で排他アクセスす
る。
The shared memory access control means 108 exclusively accesses the data in the shared memory file 104 between the hosts based on the request from the application 109.

【0045】アプリケーション109は、ホスト間で共
有するデータをアクセスするユーザプログラムやユーテ
ィリティの総称である。
The application 109 is a general term for user programs and utilities that access data shared between hosts.

【0046】図2は、ハッシュテーブル107、共有メ
モリファイル104、およびホスト間ロック領域103
の関連を示すブロック図である。
FIG. 2 shows the hash table 107, the shared memory file 104, and the inter-host lock area 103.
It is a block diagram which shows the relationship of.

【0047】図1において、アプリケーション109
は、共有メモリファイル104にデータを登録・参照す
る際に、共有メモリアクセス制御手段108に対して、
登録するデータとそのデータを識別するためのデータ識
別子を渡す。図2において、このデータ識別子がデータ
識別子204であり、データがデータ205である。こ
のデータ識別子は何を用いてもかまわないが、共有メモ
リファイル104を共有利用するホスト間で共通の値で
ある必要がある。
In FIG. 1, the application 109
When registering / referring data to the shared memory file 104, the shared memory access control unit 108
Data to be registered and a data identifier for identifying the data are passed. In FIG. 2, this data identifier is the data identifier 204, and the data is the data 205. Any data identifier may be used, but it is necessary that the data identifier be a common value among the hosts that share the shared memory file 104.

【0048】さらに図2において、制御ブロックnとロ
ック領域nは対応している。すなわち、制御ブロックア
ドレス202が特定されると、対応する制御ブロック2
03とロック領域206が一意に決定する。制御ブロッ
クアドレス202の決定方法は、データ識別子をハッシ
ングアルゴリズムによってハッシュした結果を、制御ブ
ロック数201で割った残余nを制御ブロックnアドレ
ス202に対応させている。
Further, in FIG. 2, the control block n and the lock area n correspond to each other. That is, when the control block address 202 is specified, the corresponding control block 2
03 and the lock area 206 are uniquely determined. In the method of determining the control block address 202, the residual n obtained by dividing the result of hashing the data identifier by the hashing algorithm by the number of control blocks 201 is associated with the control block n address 202.

【0049】次に本発明の一実施の形態の動作につい
て、図3を参照して詳細に説明する。
Next, the operation of the embodiment of the present invention will be described in detail with reference to FIG.

【0050】まず、共有メモリアクセス制御手段108
は、アプリケーション109から渡されたデータ識別子
をハッシュし、ハッシュテーブル107の制御ブロック
数201で割り、残余nを計算する(ステップ30
1)。
First, the shared memory access control means 108.
Calculates the residual n by hashing the data identifier passed from the application 109 and dividing by the control block number 201 of the hash table 107 (step 30).
1).

【0051】次に、共有メモリアクセス制御手段108
は、ハッシュテーブル107のn番目の制御ブロックn
アドレス202を取り出す(ステップ302)。
Next, the shared memory access control means 108
Is the nth control block n of the hash table 107
The address 202 is taken out (step 302).

【0052】さらに、共有メモリアクセス制御手段10
8は、拡張メモリアクセス手段105により、ロック領
域n206に対してロックを要求する(ステップ30
3)。
Further, the shared memory access control means 10
The extended memory access unit 105 requests the lock area n206 to lock (step 30).
3).

【0053】共有メモリアクセス制御手段108は、ス
テップ303において、ロック領域n206に対するロ
ックがすでに取得されていた場合は、ロックが解除され
るまで待ち合わせる(ステップ304)。ロック領域n
206に対するロックが成功した場合は、拡張メモリア
クセス手段105により、制御ブロックn203を読み
出す(ステップ305)。
If the lock for the lock area n206 has already been acquired in step 303, the shared memory access control means 108 waits until the lock is released (step 304). Lock area n
When the lock on 206 is successful, the extended memory access unit 105 reads the control block n203 (step 305).

【0054】共有メモリアクセス制御手段108は、ア
プリケーション109からのアクセス要求が、データの
書き込みであった場合は、読み出した制御ブロックn2
03のデータ識別子204を順にサーチし(ステップ3
07)、アプリケーション109が指定したデータ識別
子と同一のものがない場合は、制御ブロックn203に
新たに領域を確保する(ステップ308)。同一のデー
タ識別子が見つかった場合は、その領域に対して指定さ
れたデータを移送し、さらに拡張メモリアクセス手段1
05により共有メモリファイル104上の該当個所へ制
御ブロックn203を書き戻す(ステップ309)。
When the access request from the application 109 is data writing, the shared memory access control means 108 reads the control block n2.
03 data identifier 204 is searched in sequence (step 3
07), if there is no identical data identifier designated by the application 109, a new area is secured in the control block n203 (step 308). If the same data identifier is found, the specified data is transferred to the area, and the extended memory access means 1 is also transferred.
The control block n203 is written back to the corresponding location on the shared memory file 104 by 05 (step 309).

【0055】共有メモリアクセス制御手段108は、ア
プリケーション109からのアクセス要求が、データの
読み出しであった場合は、書き込みの場合と同様に制御
ブロックn203のデータ識別子204を順にサーチし
(ステップ310)、サーチに失敗した場合は、アプリ
ケーション109に対してエラーリターンをする(ステ
ップ311)。サーチに成功した場合は、制御ブロック
n203上の該当データをアプリケーション109に返
却する(ステップ312)。
If the access request from the application 109 is data read, the shared memory access control means 108 sequentially searches the data identifier 204 of the control block n203 in the same manner as in the case of writing (step 310). If the search fails, an error is returned to the application 109 (step 311). If the search is successful, the corresponding data on the control block n203 is returned to the application 109 (step 312).

【0056】その後、共有メモリアクセス制御手段10
8は、アクセス要求の種類、アクセスの正否にかかわら
ず、ロック領域n206に対するロックを解除する(ス
テップ313)。この際、ロック取得失敗でロックが解
除されるのを待ち合わせているホストがいる場合(ステ
ップ314)には、通信装置106を用いて、該当ホス
トの共有メモリアクセス制御手段108にロック解除を
通知し(ステップ315)、処理を完了する。
After that, the shared memory access control means 10
8 releases the lock on the lock area n206 regardless of the type of access request and whether the access is correct or not (step 313). At this time, when there is a host waiting for the lock to be released due to the lock acquisition failure (step 314), the shared memory access control unit 108 of the host is notified of the lock release using the communication device 106. (Step 315), the process is completed.

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

【0057】図4を参照すると、本発明の一実施例は、
図1と同様の構成を備えており、共有メモリファイル1
04に対応するデータベース404と、アプリケーショ
ン109に対応するデータベース登録・検索プログラム
409とを含んでいる。
Referring to FIG. 4, one embodiment of the present invention is
The shared memory file 1 has the same configuration as that of FIG.
A database 404 corresponding to 04 and a database registration / search program 409 corresponding to the application 109 are included.

【0058】次に、本発明の一実施例の動作について、
図4を参照して詳細に説明する。
Next, regarding the operation of one embodiment of the present invention,
This will be described in detail with reference to FIG.

【0059】データベース登録・検索プログラム409
は、ホスト間でデータベース404を共有利用する。デ
ータベース404のデータは、複数のホストから同時に
更新すると、内容が破壊される可能性があり、また、更
新と参照の要求が同時にあると、更新中のデータを参照
してしまう可能性がある。したがって、論理的なデータ
の単位ごとに登録・参照の排他制御が必要である。
Database registration / search program 409
Shares the database 404 between hosts. The data of the database 404 may be destroyed if it is updated from a plurality of hosts at the same time, and the data being updated may be referred to if the update and reference requests are made at the same time. Therefore, exclusive control of registration and reference is required for each logical data unit.

【0060】以下に、データベース登録・検索プログラ
ム409がデータベース404に対するデータの登録を
要求した場合の共有メモリアクセス制御手段108の動
作を説明する。
The operation of the shared memory access control means 108 when the database registration / retrieval program 409 requests registration of data in the database 404 will be described below.

【0061】共有メモリアクセス制御手段108は、デ
ータベース登録・検索プログラムから登録すべきデータ
と、該データの登録キーを受け取る。
The shared memory access control means 108 receives the data to be registered and the registration key of the data from the database registration / retrieval program.

【0062】次に、共有メモリアクセス制御手段108
は、登録キーをハッシュし、その結果をハッシュテーブ
ル107上の制御ブロック数で割り、残余nを得る。そ
して、ハッシュテーブル107上のn番目の制御ブロッ
クアドレスから、データを登録する制御ブロックnと、
ロック領域nを特定する。
Next, the shared memory access control means 108
Hash the registration key and divide the result by the number of control blocks on the hash table 107 to obtain the residual n. Then, from the nth control block address on the hash table 107, a control block n for registering data,
The lock area n is specified.

【0063】次に、共有メモリアクセス制御手段108
は、ロック領域nに対するロック情報の書き込みを、拡
張メモリアクセス手段105により要求する。このと
き、ロック領域nに別のロック情報がすでに書き込まれ
ていた場合は、ロックが解除されるまで待ち合わせる。
この待ち合わせは、現在ロックを取得している他ホスト
の該当制御ブロックへのアクセスが完了しロックを解除
した時点で、通信装置106を介して通知されるロック
解除通知に応じて、再度ロック取得を試みることとな
る。
Next, the shared memory access control means 108
Requests the extended memory access unit 105 to write the lock information to the lock area n. At this time, if another piece of lock information is already written in the lock area n, it waits until the lock is released.
This waiting is such that when the access to the corresponding control block of the other host currently acquiring the lock is completed and the lock is released, the lock is acquired again according to the lock release notification notified via the communication device 106. Will try.

【0064】共有メモリアクセス制御手段108は、ロ
ック取得に成功した場合には、該当制御ブロックnを読
み出し、データベース登録・検索プログラム409が指
定した登録キーに対応するエントリを該当制御ブロック
n内でサーチする。共有メモリアクセス制御手段108
は、サーチに成功すると、該エントリのデータ部に、登
録すべきデータを格納し、制御ブロックnをデータベー
ス404上の元の位置に書き戻す。その後、ロック領域
に登録したロック情報を削除し、ロック待ち合わせ中の
他ホストに対して、ロック解除の通知を行い、データベ
ース登録・検索プログラム409へ処理完了を報告し、
処理を完了する。
When the lock acquisition is successful, the shared memory access control means 108 reads the control block n, and searches the control block n for the entry corresponding to the registration key designated by the database registration / search program 409. To do. Shared memory access control means 108
If the search is successful, the data to be registered is stored in the data part of the entry, and the control block n is written back to the original position on the database 404. After that, the lock information registered in the lock area is deleted, the lock release is notified to the other host waiting for the lock, and the processing completion is reported to the database registration / search program 409.
Complete the process.

【0065】以下に、データベース登録・検索プログラ
ム409が、データの参照を要求した場合の動作を説明
する。
The operation when the database registration / retrieval program 409 requests data reference will be described below.

【0066】共有メモリアクセス制御手段108は、デ
ータベース登録・検索プログラム409より、登録キー
を指定されてデータの参照を要求されると、登録時と同
様の手順で、制御ブロックnとロック領域nとを特定す
る。
When the shared memory access control means 108 is requested by the database registration / retrieval program 409 to specify a registration key and refer to data, the shared memory access control means 108 sets the control block n and the lock area n in the same procedure as at the time of registration. Specify.

【0067】さらに共有メモリアクセス制御手段108
は、登録時と同様の手順で、ロックを取得し、該当制御
ブロックnを読み出す。
Further, the shared memory access control means 108
Acquires the lock and reads the corresponding control block n in the same procedure as at the time of registration.

【0068】共有メモリアクセス制御手段108は、読
み出した制御ブロックn上をサーチし、要求された登録
キーと一致するキーをもったエントリを見つけ出す。も
し、キーが見つけられなかった場合は、データが存在し
ない旨をデータベース登録・検索プログラム409へ返
却し、ロック解除の手続きを行う。一致するキーが見つ
かった場合は、該当エントリのデータをデータベース登
録・検索プログラム409に返却し、ロック解除の手続
きを行う。
The shared memory access control means 108 searches on the read control block n and finds an entry having a key matching the requested registration key. If the key cannot be found, the fact that the data does not exist is returned to the database registration / search program 409, and the lock release procedure is performed. If a matching key is found, the data of the corresponding entry is returned to the database registration / search program 409, and the lock release procedure is performed.

【0069】以上により、本発明の一実施例である疎結
合多重計算機システムにおける共有ファイルの排他制御
システムの処理が終了する。
As described above, the processing of the exclusive control system for the shared file in the loosely coupled multiple computer system according to the embodiment of the present invention is completed.

【0070】本発明の一実施例である疎結合多重計算機
システムにおける共有ファイルの排他制御システムは、
ホスト1および2上のデータベース登録・検索プログラ
ム409が、データベース404がホスト間で共有され
ていることを認識することなく、正確にアクセスするこ
とができる効果を有している。
An exclusive control system for shared files in a loosely coupled multiple computer system according to an embodiment of the present invention is
The database registration / search program 409 on the hosts 1 and 2 has the effect of being able to access the database 404 accurately without recognizing that the database 404 is shared between the hosts.

【0071】また、本発明の他の実施例である疎結合多
重計算機システムにおける共有ファイルの排他制御プロ
グラムは、上述した共有ファイルの排他制御システムと
同等の処理を行うことができ、さらに該プログラムは、
メモリ、ディスク、フロッピーディスク、およびCD−
ROM等の記憶媒体に記憶することができる。
The shared file exclusive control program in the loosely coupled multiple computer system according to another embodiment of the present invention can perform the same processing as the shared file exclusive control system described above. ,
Memory, disk, floppy disk, and CD-
It can be stored in a storage medium such as a ROM.

【0072】[0072]

【発明の効果】以上説明したように、本発明の疎結合多
重計算機システムにおける共有ファイルの排他制御シス
テム、排他制御方法、および排他制御プログラムを記憶
する媒体は、疎結合多重計算機システムを構成する各ホ
ストが、特別な装置を備えることなく、共有ファイルを
排他制御して共有使用することができる効果を有してい
る。このため、さらに疎結合多重計算機システムを構成
する各ホストが、効率良くかつ正確に共有ファイルを共
有使用することができる効果を有している。
As described above, the shared file exclusive control system, the exclusive control method, and the medium for storing the exclusive control program in the loosely coupled multiple computer system according to the present invention constitute the loosely coupled multiple computer system. The host has an effect that the shared file can be exclusively controlled and shared without having a special device. Therefore, each host that constitutes the loosely coupled multi-computer system has the effect of sharing the shared file efficiently and accurately.

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

【図1】図1は、本発明の疎結合多重計算機システムに
おける疎結合多重計算機システムにおける共有ファイル
の排他制御システムの実施の形態を示すブロック図であ
る。
FIG. 1 is a block diagram showing an embodiment of a shared file exclusive control system in a loosely coupled multiple computer system in the loosely coupled multiple computer system according to the present invention.

【図2】図2は、図1におけるハッシュテーブル10
7、共有メモリファイル104、およびホスト間ロック
領域103の関連を示すブロック図である。
FIG. 2 is a hash table 10 shown in FIG.
7 is a block diagram showing the relationship among the shared memory file 104, the shared memory file 104, and the inter-host lock area 103. FIG.

【図3】図3は、本発明の実施の形態における共有メモ
リアクセス制御手段108の処理を示す流れ図である。
FIG. 3 is a flowchart showing a process of a shared memory access control unit 108 according to the embodiment of the present invention.

【図4】図4は、本発明の一実施例である疎結合多重計
算機システムにおける疎結合多重計算機システムにおけ
る共有ファイルの排他制御システムの構成を示すブロッ
ク図である。
FIG. 4 is a block diagram showing a configuration of a shared file exclusive control system in the loosely coupled multiple computer system in the loosely coupled multiple computer system according to an embodiment of the present invention.

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

100 共有メモリ 101 ホストコンピュータ1 102 ホストコンピュータ2 103 ホスト間ロック領域 104 共有メモリファイル 105 拡張メモリアクセス手段 106 通信装置 107 ハッシュテーブル 108 共有メモリアクセス制御手段 109 アプリケーション 201 制御ブロック数 202 制御ブロック1〜nアドレス 203 制御ブロック1〜n 204 データ識別子 205 データ 206 ロック領域1〜n 404 データベース 409 データベース登録・検索プログラム 100 shared memory 101 host computer 1 102 host computer 2 103 inter-host lock area 104 shared memory file 105 extended memory access means 106 communication device 107 hash table 108 shared memory access control means 109 application 201 control block number 202 control block 1 to n address 203 control block 1-n 204 data identifier 205 data 206 lock area 1-n 404 database 409 database registration / search program

Claims (30)

【特許請求の範囲】[Claims] 【請求項1】 複数のホスト計算機と、該複数のホスト
計算機のそれぞれにおいて実行されるアプリケーション
プログラムがアクセスするデータを格納する共有メモリ
ファイルを有する外部記憶装置とを含み、 前記複数のホスト計算機のそれぞれは、 前記アプリケーションプログラムからのデータの書き込
み要求に応じて、前記共有メモリファイルを排他制御
し、該共有メモリファイルに該データを書き込み、該共
有メモリファイルの排他制御を解除する共有メモリアク
セス制御手段とを含むことを特徴とする疎結合多重計算
機システムにおける共有ファイルの排他制御システム。
1. A host computer, comprising: a plurality of host computers; and an external storage device having a shared memory file for storing data accessed by an application program executed in each of the plurality of host computers, each of the plurality of host computers. A shared memory access control unit for exclusively controlling the shared memory file, writing the data to the shared memory file, and canceling the exclusive control of the shared memory file in response to a data write request from the application program. An exclusive control system for shared files in a loosely coupled multi-computer system characterized by including the following.
【請求項2】 複数のホスト計算機と、該複数のホスト
計算機のそれぞれにおいて実行されるアプリケーション
プログラムがアクセスするデータを格納する共有メモリ
ファイルを有する外部記憶装置とを含み、 前記複数のホスト計算機のそれぞれは、 前記アプリケーションプログラムからのデータの読み出
し要求に応じて、前記共有メモリファイルを排他制御
し、該共有メモリファイルから要求されたデータを読み
出し、該共有メモリファイルの排他制御を解除する共有
メモリアクセス制御手段とを含むことを特徴とする疎結
合多重計算機システムにおける共有ファイルの排他制御
システム。
2. A host computer, comprising: a plurality of host computers; and an external storage device having a shared memory file storing data accessed by an application program executed in each of the plurality of host computers, each of the plurality of host computers. Shared memory access control for exclusive control of the shared memory file in response to a data read request from the application program, reading requested data from the shared memory file, and canceling exclusive control of the shared memory file. An exclusive control system for shared files in a loosely coupled multiple computer system characterized by including means.
【請求項3】 請求項1記載の疎結合多重計算機システ
ムにおける共有ファイルの排他制御システムにおいて、 前記外部記憶装置は、さらに、前記共有メモリファイル
を排他制御している旨の情報を格納するホスト間ロック
領域を含み、 前記共有メモリアクセス制御手段は、前記アプリケーシ
ョンプログラムからのデータの書き込み要求に応じて、
前記ホスト間ロック領域に該共有メモリファイルを排他
制御する旨の情報を格納し、該共有メモリファイルに該
データを書き込み、該ホスト間ロック領域に格納した該
共有メモリファイルを排他制御する旨の情報を削除する
ことを特徴とする疎結合多重計算機システムにおける共
有ファイルの排他制御システム。
3. An exclusive control system for shared files in a loosely coupled multiple computer system according to claim 1, wherein the external storage device further stores information indicating that exclusive control of the shared memory files is performed. Including a lock area, the shared memory access control means, in response to a data write request from the application program,
Information indicating that the shared memory file is exclusively controlled in the inter-host lock area, the data is written in the shared memory file, and the shared memory file stored in the inter-host lock area is exclusively controlled. An exclusive control system for shared files in a loosely coupled multi-computer system, which is characterized by deleting files.
【請求項4】 請求項2記載の疎結合多重計算機システ
ムにおける共有ファイルの排他制御システムにおいて、 前記外部記憶装置は、さらに、前記共有メモリファイル
を排他制御している旨の情報を格納するホスト間ロック
領域を含み、 前記共有メモリアクセス制御手段は、前記アプリケーシ
ョンプログラムからのデータの読み出し要求に応じて、
前記ホスト間ロック領域に該共有メモリファイルを排他
制御する旨の情報を格納し、該共有メモリファイルから
要求されたデータを読み出し、該ホスト間ロック領域に
格納した該共有メモリファイルを排他制御する旨の情報
を削除することを特徴とする疎結合多重計算機システム
における共有ファイルの排他制御システム。
4. The exclusive control system for shared files in a loosely coupled multiple computer system according to claim 2, wherein the external storage device further stores information indicating that exclusive control is performed on the shared memory files. Including a lock area, the shared memory access control means, in response to a data read request from the application program,
Information for exclusive control of the shared memory file is stored in the inter-host lock area, requested data is read from the shared memory file, and the shared memory file stored in the inter-host lock area is exclusively controlled. An exclusive control system for shared files in a loosely coupled multi-computer system characterized by deleting the information of
【請求項5】 請求項3記載の疎結合多重計算機システ
ムにおける共有ファイルの排他制御システムにおいて、 前記共有メモリファイルは、データと該データの識別子
の組を少なくとも一つ格納する複数の制御ブロックを含
み、 前記ホスト間ロック領域は、前記制御ブロックに一意に
対応して該制御ブロックをロックしている旨の情報を格
納する複数のロック領域を含み、 前記アプリケーションプログラムは、前記共有メモリフ
ァイルに書き込むデータと該データの識別子とを指定す
るデータ書き込み要求を前記共有メモリアクセス制御手
段へ送り、 前記共有メモリアクセス制御手段は、前記アプリケーシ
ョンプログラムからのデータの書き込み要求を受け、該
書き込み要求に指定されたデータの識別子を格納する前
記共有メモリファイル内の前記制御ブロックを特定し、
該制御ブロックに対応する前記ホスト間ロック領域内の
前記ロック領域に該制御ブロックをロックする旨の情報
を格納し、該制御ファイルに該書き込み要求に指定され
たデータを書き込み、該ロック領域に格納した該制御ブ
ロックをロックする旨の情報を削除することを特徴とす
る疎結合多重計算機システムにおける共有ファイルの排
他制御システム。
5. The exclusive control system for a shared file in a loosely coupled multiple computer system according to claim 3, wherein the shared memory file includes a plurality of control blocks that store at least one set of data and an identifier of the data. The inter-host lock area includes a plurality of lock areas that store information indicating that the control block is locked so as to uniquely correspond to the control block, and the application program stores data to be written in the shared memory file. And a data write request that specifies the identifier of the data to the shared memory access control unit, and the shared memory access control unit receives the data write request from the application program and receives the data specified in the write request. The shared memory file storing the identifier of It identifies the control block,
Information for locking the control block is stored in the lock area in the inter-host lock area corresponding to the control block, the data specified in the write request is written to the control file, and stored in the lock area. An exclusive control system for a shared file in a loosely coupled multiple computer system, characterized in that the information to lock the control block is deleted.
【請求項6】 請求項4記載の疎結合多重計算機システ
ムにおける共有ファイルの排他制御システムにおいて、 前記共有メモリファイルは、データと該データの識別子
の組を少なくとも一つ格納する複数の制御ブロックを含
み、 前記ホスト間ロック領域は、前記制御ブロックに一意に
対応して該制御ブロックをロックしている旨の情報を格
納する複数のロック領域を含み、 前記アプリケーションプログラムは、前記共有メモリフ
ァイルに書き込むデータと該データの識別子とを指定す
るデータ読み出し要求を前記共有メモリアクセス制御手
段へ送り、 前記共有メモリアクセス制御手段は、前記アプリケーシ
ョンプログラムからのデータの読み出し要求を受け、該
読み出し要求に指定されたデータの識別子を格納する前
記共有メモリファイル内の前記制御ブロックを特定し、
該制御ブロックに対応する前記ホスト間ロック領域内の
前記ロック領域に該制御ブロックをロックする旨の情報
を格納し、該制御ファイルから該読み出し要求に指定さ
れたデータを読み出し、該ロック領域に格納した該制御
ブロックをロックする旨の情報を削除することを特徴と
する疎結合多重計算機システムにおける共有ファイルの
排他制御システム。
6. The exclusive control system for a shared file in a loosely coupled multiple computer system according to claim 4, wherein the shared memory file includes a plurality of control blocks for storing at least one set of data and an identifier of the data. The inter-host lock area includes a plurality of lock areas that store information indicating that the control block is locked so as to uniquely correspond to the control block, and the application program stores data to be written in the shared memory file. And a data read request that specifies the identifier of the data to the shared memory access control unit, and the shared memory access control unit receives the data read request from the application program and receives the data designated in the read request. The shared memory file storing the identifier of It identifies the control block,
Information for locking the control block is stored in the lock area in the inter-host lock area corresponding to the control block, the data specified in the read request is read from the control file, and stored in the lock area. An exclusive control system for a shared file in a loosely coupled multiple computer system, characterized in that the information to lock the control block is deleted.
【請求項7】 請求項5記載の疎結合多重計算機システ
ムにおける共有ファイルの排他制御システムにおいて、 前記複数のホスト計算機のそれぞれは、さらに、 前記共有メモリファイル内の前記制御ブロックの数と各
制御ブロックのアドレスである複数の制御ブロックアド
レスとを含むハッシュテーブルを含み、 前記共有メモリアクセス制御手段は、前記アプリケーシ
ョンプログラムからのデータの書き込み要求を受け、該
書き込み要求に指定されたデータの識別子をハッシュし
た結果を前記ハッシュテーブルに格納されている前記制
御ブロックの数で除算した残余を求め、前記ホスト間ロ
ック領域内の該残余の数番目の前記ロック領域に前記制
御ブロックをロックする旨の情報を格納し、前記ハッシ
ュテーブルに格納されている該残余の数番目の前記制御
ブロックアドレスが指す前記制御ブロックを読み出し、
該制御ブロック内に書き込み要求に指定されたデータの
識別子に一致する識別子があれば、該識別子に対応する
データを書き込み要求に指定されたデータで更新し、一
致する識別子がなければ、書き込み要求に指定されたデ
ータと該データの識別子との組とを該制御ブロックへ格
納し、前記ロック領域に格納した該制御ブロックをロッ
クする旨の情報を削除することを特徴とする疎結合多重
計算機システムにおける共有ファイルの排他制御システ
ム。
7. The shared file exclusive control system in the loosely coupled multiple computer system according to claim 5, wherein each of the plurality of host computers further includes the number of the control blocks and each control block in the shared memory file. And a hash table containing a plurality of control block addresses which are addresses of the shared memory access control means, wherein the shared memory access control means receives a data write request from the application program and hashes the identifier of the data specified in the write request. The result is divided by the number of the control blocks stored in the hash table to obtain a residual, and information indicating that the control block is locked is stored in the remaining number of lock areas in the inter-host lock area. And the number of the residuals stored in the hash table Read the control block pointed to by the th th control block address,
If there is an identifier in the control block that matches the identifier of the data specified in the write request, the data corresponding to the identifier is updated with the data specified in the write request. A loosely coupled multi-computer system characterized in that a set of designated data and an identifier of the data is stored in the control block, and the information for locking the control block stored in the lock area is deleted. Exclusive control system for shared files.
【請求項8】 請求項6記載の疎結合多重計算機システ
ムにおける共有ファイルの排他制御システムにおいて、 前記複数のホスト計算機のそれぞれは、さらに、 前記共有メモリファイル内の前記制御ブロックの数と各
制御ブロックのアドレスである複数の制御ブロックアド
レスとを含むハッシュテーブルを含み、 前記共有メモリアクセス制御手段は、前記アプリケーシ
ョンプログラムからのデータの読み出し要求を受け、該
読み出し要求に指定されたデータの識別子をハッシュし
た結果を前記ハッシュテーブルに格納されている前記制
御ブロックの数で除算した残余を求め、前記ホスト間ロ
ック領域内の該残余の数番目の前記ロック領域に前記制
御ブロックをロックする旨の情報を格納し、前記ハッシ
ュテーブルに格納されている該残余の数番目の前記制御
ブロックアドレスが指す前記制御ブロックを読み出し、
該制御ブロック内に読み出し要求に指定されたデータの
識別子に一致する識別子があれば、該識別子に対応する
データを読み出し、一致する識別子がなければ、エラー
表示し、前記ロック領域に格納した該制御ブロックをロ
ックする旨の情報を削除することを特徴とする疎結合多
重計算機システムにおける共有ファイルの排他制御シス
テム。
8. The exclusive control system for shared files in a loosely coupled multiple computer system according to claim 6, wherein each of the plurality of host computers further includes the number of control blocks and each control block in the shared memory file. The shared memory access control means receives a data read request from the application program and hashes the data identifier specified in the read request. The result is divided by the number of the control blocks stored in the hash table to obtain a residual, and information indicating that the control block is locked is stored in the remaining number of lock areas in the inter-host lock area. And the number of the residuals stored in the hash table Read the control block pointed to by the th th control block address,
If there is an identifier in the control block that matches the identifier of the data specified in the read request, the data corresponding to the identifier is read. If there is no matching identifier, an error is displayed and the control stored in the lock area is read. An exclusive control system for shared files in a loosely coupled multi-computer system characterized by deleting information indicating that a block is locked.
【請求項9】 請求項7記載の疎結合多重計算機システ
ムにおける共有ファイルの排他制御システムにおいて、 前記疎結合多重計算機システムは、さらに、前記複数の
計算機間の通信を制御する通信装置を含み、 前記共有メモリアクセス制御手段は、さらに、前記ロッ
ク領域に他のホスト計算機により前記制御ブロックをロ
ックする旨の情報が格納されている場合には、該情報が
削除されるのを待ち合わせ、削除後に該制御ブロックを
ロックする旨の情報を格納するとともに、前記ロック領
域に格納した前記制御ブロックをロックする旨の情報を
削除する際に、該情報が削除されるのを待ち合わせてい
る他の計算機が存在する場合には、該他の計算機に対し
て前記通信装置により該情報を削除した旨通知すること
を特徴とする疎結合多重計算機システムにおける共有フ
ァイルの排他制御システム。
9. The exclusive control system for shared files in a loosely coupled multiple computer system according to claim 7, wherein the loosely coupled multiple computer system further includes a communication device for controlling communication between the plurality of computers, The shared memory access control means further waits until the information is deleted when the information indicating that the control block is locked by another host computer is stored in the lock area, and then executes the control after the deletion. There is another computer that stores the information to lock the block and waits until the information is deleted when deleting the information to lock the control block stored in the lock area. In this case, the loosely coupled multiple calculation characterized in that the communication device notifies the other computer that the information has been deleted. Exclusive control system of the shared file in the system.
【請求項10】 請求項8記載の疎結合多重計算機シス
テムにおける共有ファイルの排他制御システムにおい
て、 前記疎結合多重計算機システムは、さらに、前記複数の
計算機間の通信を制御する通信装置を含み、 前記共有メモリアクセス制御手段は、さらに、前記ロッ
ク領域に他のホスト計算機により前記制御ブロックをロ
ックする旨の情報が格納されている場合には、該情報が
削除されるのを待ち合わせ、削除後に該制御ブロックを
ロックする旨の情報を格納するとともに、前記ロック領
域に格納した前記制御ブロックをロックする旨の情報を
削除する際に、該情報が削除されるのを待ち合わせてい
る他の計算機が存在する場合には、該他の計算機に対し
て前記通信装置により該情報を削除した旨通知すること
を特徴とする疎結合多重計算機システムにおける共有フ
ァイルの排他制御システム。
10. The exclusive control system for shared files in a loosely coupled multiple computer system according to claim 8, wherein the loosely coupled multiple computer system further includes a communication device for controlling communication between the plurality of computers, The shared memory access control means further waits until the information is deleted when the information indicating that the control block is locked by another host computer is stored in the lock area, and then executes the control after the deletion. There is another computer that stores the information to lock the block and waits until the information is deleted when deleting the information to lock the control block stored in the lock area. In this case, the loosely coupled multiplexer, which notifies the other computer that the information has been deleted by the communication device. Exclusive control system of the shared file in the machine system.
【請求項11】 複数のホスト計算機と、該複数のホス
ト計算機のそれぞれにおいて実行されるアプリケーショ
ンプログラムがアクセスするデータを格納する共有メモ
リファイルを含む外部記憶装置とを備えた疎結合多重計
算機システムにおいて、 前記複数のホスト計算機のそれぞれが、 前記アプリケーションプログラムからのデータの書き込
み要求に応じて、前記共有メモリファイルを排他制御
し、該共有メモリファイルに該データを書き込み、該共
有メモリファイルの排他制御を解除することを特徴とす
る疎結合多重計算機システムにおける共有ファイルの排
他制御方法。
11. A loosely coupled multiple computer system comprising a plurality of host computers and an external storage device including a shared memory file storing data accessed by an application program executed in each of the plurality of host computers, Each of the plurality of host computers exclusively controls the shared memory file in response to a data write request from the application program, writes the data to the shared memory file, and releases the exclusive control of the shared memory file. An exclusive control method for shared files in a loosely coupled multiple computer system.
【請求項12】 複数のホスト計算機と、該複数のホス
ト計算機のそれぞれにおいて実行されるアプリケーショ
ンプログラムがアクセスするデータを格納する共有メモ
リファイルを含む外部記憶装置とを備えた疎結合多重計
算機システムにおいて、 前記複数のホスト計算機のそれぞれが、 前記アプリケーションプログラムからのデータの読み出
し要求に応じて、前記共有メモリファイルを排他制御
し、該共有メモリファイルから要求されたデータを読み
出し、該共有メモリファイルの排他制御を解除すること
を特徴とする疎結合多重計算機システムにおける共有フ
ァイルの排他制御方法。
12. A loosely coupled multi-computer system comprising a plurality of host computers and an external storage device including a shared memory file storing data accessed by an application program executed in each of the plurality of host computers, Each of the plurality of host computers exclusively controls the shared memory file in response to a data read request from the application program, reads the requested data from the shared memory file, and exclusively controls the shared memory file. A method for exclusive control of shared files in a loosely coupled multiple computer system, which is characterized by releasing.
【請求項13】 請求項11記載の疎結合多重計算機シ
ステムにおける共有ファイルの排他制御方法において、 前記外部記憶装置は、さらに、前記共有メモリファイル
を排他制御している旨の情報を格納するホスト間ロック
領域を含み、 前記複数のホスト計算機のそれぞれが、 前記アプリケーションプログラムからのデータの書き込
み要求に応じて、前記ホスト間ロック領域に該共有メモ
リファイルを排他制御する旨の情報を格納し、該共有メ
モリファイルに該データを書き込み、該ホスト間ロック
領域に格納した該共有メモリファイルを排他制御する旨
の情報を削除することを特徴とする疎結合多重計算機シ
ステムにおける共有ファイルの排他制御方法。
13. The exclusive control method for a shared file in a loosely coupled multiple computer system according to claim 11, wherein the external storage device further stores information indicating that the shared memory file is exclusively controlled. Each of the plurality of host computers, including a lock area, stores information indicating that the shared memory file is exclusively controlled in the inter-host lock area in response to a data write request from the application program, and the shared An exclusive control method for a shared file in a loosely coupled multi-computer system, characterized in that the data is written in a memory file and information for exclusive control of the shared memory file stored in the inter-host lock area is deleted.
【請求項14】 請求項12記載の疎結合多重計算機シ
ステムにおける共有ファイルの排他制御方法において、 前記外部記憶装置は、さらに、前記共有メモリファイル
を排他制御している旨の情報を格納するホスト間ロック
領域を含み、 前記複数のホスト計算機のそれぞれが、 前記アプリケーションプログラムからのデータの読み出
し要求に応じて、前記ホスト間ロック領域に該共有メモ
リファイルを排他制御する旨の情報を格納し、該共有メ
モリファイルから要求されたデータを読み出し、該ホス
ト間ロック領域に格納した該共有メモリファイルを排他
制御する旨の情報を削除することを特徴とする疎結合多
重計算機システムにおける共有ファイルの排他制御方
法。
14. The shared file exclusive control method for a loosely coupled multiple computer system according to claim 12, wherein the external storage device further stores information indicating that the shared memory file is exclusively controlled. Each of the plurality of host computers, including a lock area, stores information indicating exclusive control of the shared memory file in the inter-host lock area in response to a data read request from the application program, and the shared A method for exclusive control of a shared file in a loosely coupled multi-computer system, characterized in that requested data is read from a memory file and information for exclusive control of the shared memory file stored in the inter-host lock area is deleted.
【請求項15】 請求項13記載の疎結合多重計算機シ
ステムにおける共有ファイルの排他制御方法において、 前記共有メモリファイルは、データと該データの識別子
の組を少なくとも一つ格納する複数の制御ブロックを含
み、 前記ホスト間ロック領域は、前記制御ブロックに一意に
対応して該制御ブロックをロックしている旨の情報を格
納する複数のロック領域を含み、 前記複数のホスト計算機のそれぞれが、 前記アプリケーションプログラムからのデータの書き込
み要求を受け、該書き込み要求に指定されたデータの識
別子を格納する前記共有メモリファイル内の前記制御ブ
ロックを特定し、該制御ブロックに対応する前記ホスト
間ロック領域内の前記ロック領域に該制御ブロックをロ
ックする旨の情報を格納し、該制御ファイルに該書き込
み要求に指定されたデータを書き込み、該ロック領域に
格納した該制御ブロックをロックする旨の情報を削除す
ることを特徴とする疎結合多重計算機システムにおける
共有ファイルの排他制御方法。
15. The exclusive control method for a shared file in a loosely coupled multiple computer system according to claim 13, wherein the shared memory file includes a plurality of control blocks storing at least one set of data and an identifier of the data. The inter-host lock area includes a plurality of lock areas that store information indicating that the control block is locked so as to uniquely correspond to the control block, and each of the plurality of host computers includes the application program. Receiving a data write request from the shared memory file, storing the identifier of the data specified in the write request, specifying the control block in the shared memory file, and locking the lock in the inter-host lock area corresponding to the control block. The information that locks the control block is stored in the area, and the control file stores the information. Writes the specified in the request write attempts data, exclusive control method for sharing files in a loosely coupled multi-computer system and deletes the information to the effect that locks the control blocks stored in the lock area.
【請求項16】 請求項14記載の疎結合多重計算機シ
ステムにおける共有ファイルの排他制御方法において、 前記共有メモリファイルは、データと該データの識別子
の組を少なくとも一つ格納する複数の制御ブロックを含
み、 前記ホスト間ロック領域は、前記制御ブロックに一意に
対応して該制御ブロックをロックしている旨の情報を格
納する複数のロック領域を含み、 前記複数のホスト計算機のそれぞれが、 前記アプリケーションプログラムからのデータの読み出
し要求を受け、該読み出し要求に指定されたデータの識
別子を格納する前記共有メモリファイル内の前記制御ブ
ロックを特定し、該制御ブロックに対応する前記ホスト
間ロック領域内の前記ロック領域に該制御ブロックをロ
ックする旨の情報を格納し、該制御ファイルから該読み
出し要求に指定されたデータを読み出し、該ロック領域
に格納した該制御ブロックをロックする旨の情報を削除
することを特徴とする疎結合多重計算機システムにおけ
る共有ファイルの排他制御方法。
16. The shared file exclusive control method for a loosely coupled multiple computer system according to claim 14, wherein the shared memory file includes a plurality of control blocks for storing at least one set of data and an identifier of the data. The inter-host lock area includes a plurality of lock areas that store information indicating that the control block is locked so as to uniquely correspond to the control block, and each of the plurality of host computers includes the application program. Receiving a data read request from the shared memory file, storing the identifier of the data specified in the read request, identifying the control block in the shared memory file, and locking the lock in the inter-host lock area corresponding to the control block. The information that locks the control block is stored in the area, and is stored from the control file. Reads the data specified in the read request, the exclusive control method for sharing files in a loosely coupled multi-computer system and deletes the information to the effect that locks the control blocks stored in the lock area.
【請求項17】 請求項15記載の疎結合多重計算機シ
ステムにおける共有ファイルの排他制御方法において、 前記複数のホスト計算機のそれぞれが、さらに、 前記共有メモリファイル内の前記制御ブロックの数と各
制御ブロックのアドレスである複数の制御ブロックアド
レスとを含むハッシュテーブルを含み、 前記アプリケーションプログラムからのデータの書き込
み要求を受け、該書き込み要求に指定されたデータの識
別子をハッシュした結果を前記ハッシュテーブルに格納
されている前記制御ブロックの数で除算した残余を求
め、前記ホスト間ロック領域内の該残余の数番目の前記
ロック領域に前記制御ブロックをロックする旨の情報を
格納し、前記ハッシュテーブルに格納されている該残余
の数番目の前記制御ブロックアドレスが指す前記制御ブ
ロックを読み出し、該制御ブロック内に書き込み要求に
指定されたデータの識別子に一致する識別子があれば、
該識別子に対応するデータを書き込み要求に指定された
データで更新し、一致する識別子がなければ、書き込み
要求に指定されたデータと該データの識別子との組とを
該制御ブロックへ格納し、前記ロック領域に格納した該
制御ブロックをロックする旨の情報を削除することを特
徴とする疎結合多重計算機システムにおける共有ファイ
ルの排他制御方法。
17. The exclusive control method for a shared file in a loosely coupled multiple computer system according to claim 15, wherein each of the plurality of host computers further includes the number of the control blocks and each control block in the shared memory file. A hash table including a plurality of control block addresses, which are addresses of data, and a result of hashing the identifier of the data designated in the write request when the data write request is received from the application program is stored in the hash table. The remainder obtained by dividing by the number of the control blocks is stored, the information indicating that the control block is locked in the lock area of the number of the remainder in the inter-host lock area is stored, and stored in the hash table. The remaining number of the control block addresses Read the control block, and if there is an identifier in the control block that matches the identifier of the data specified in the write request,
The data corresponding to the identifier is updated with the data specified in the write request, and if there is no matching identifier, the set of the data specified in the write request and the identifier of the data is stored in the control block, and An exclusive control method of a shared file in a loosely coupled multi-computer system, characterized in that information indicating that the control block stored in the lock area is locked is deleted.
【請求項18】 請求項16記載の疎結合多重計算機シ
ステムにおける共有ファイルの排他制御方法において、 前記複数のホスト計算機のそれぞれが、さらに、 前記共有メモリファイル内の前記制御ブロックの数と各
制御ブロックのアドレスである複数の制御ブロックアド
レスとを含むハッシュテーブルを含み、 前記アプリケーションプログラムからのデータの読み出
し要求を受け、該読み出し要求に指定されたデータの識
別子をハッシュした結果を前記ハッシュテーブルに格納
されている前記制御ブロックの数で除算した残余を求
め、前記ホスト間ロック領域内の該残余の数番目の前記
ロック領域に前記制御ブロックをロックする旨の情報を
格納し、前記ハッシュテーブルに格納されている該残余
の数番目の前記制御ブロックアドレスが指す前記制御ブ
ロックを読み出し、該制御ブロック内に読み出し要求に
指定されたデータの識別子に一致する識別子があれば、
該識別子に対応するデータを読み出し、一致する識別子
がなければ、エラー表示し、前記ロック領域に格納した
該制御ブロックをロックする旨の情報を削除することを
特徴とする疎結合多重計算機システムにおける共有ファ
イルの排他制御方法。
18. The exclusive control method for a shared file in a loosely coupled multiple computer system according to claim 16, wherein each of the plurality of host computers further includes the number of the control blocks and each control block in the shared memory file. And a hash table including a plurality of control block addresses that are addresses of the control program, the result of hashing the identifier of the data specified in the read request is stored in the hash table. The remainder obtained by dividing by the number of the control blocks is stored, the information indicating that the control block is locked in the lock area of the number of the remainder in the inter-host lock area is stored, and stored in the hash table. The remaining number of the control block addresses Read the control block, and if there is an identifier in the control block that matches the identifier of the data specified in the read request,
Sharing in a loosely coupled multi-computer system characterized in that data corresponding to the identifier is read, and if there is no matching identifier, an error is displayed and the information for locking the control block stored in the lock area is deleted. File exclusive control method.
【請求項19】 請求項17記載の疎結合多重計算機シ
ステムにおける共有ファイルの排他制御方法において、 前記疎結合多重計算機システムは、さらに、前記複数の
計算機間の通信を制御する通信装置を含み、 前記複数のホスト計算機のそれぞれが、 さらに、前記ロック領域に他のホスト計算機により前記
制御ブロックをロックする旨の情報が格納されている場
合には、該情報が削除されるのを待ち合わせ、削除後に
該制御ブロックをロックする旨の情報を格納するととも
に、前記ロック領域に格納した前記制御ブロックをロッ
クする旨の情報を削除する際に、該情報が削除されるの
を待ち合わせている他の計算機が存在する場合には、該
他の計算機に対して前記通信装置により該情報を削除し
た旨通知することを特徴とする疎結合多重計算機システ
ムにおける共有ファイルの排他制御方法。
19. The shared file exclusive control method for a loosely coupled multiple computer system according to claim 17, wherein the loosely coupled multiple computer system further includes a communication device for controlling communication between the plurality of computers, Further, each of the plurality of host computers further waits until the information is deleted when the information indicating that the control block is locked by another host computer is stored in the lock area, and after the deletion, the information is deleted. There is another computer that stores the information indicating that the control block is locked and that waits for the information to be deleted when the information indicating that the control block that is stored in the lock area is deleted. In the case of doing so, the loosely-coupled multiplexer, which notifies the other computer that the information has been deleted by the communication device Exclusive control method for shared files in computer systems.
【請求項20】 請求項18記載の疎結合多重計算機シ
ステムにおける共有ファイルの排他制御方法において、 前記疎結合多重計算機システムは、さらに、前記複数の
計算機間の通信を制御する通信装置を含み、 前記複数のホスト計算機のそれぞれが、 さらに、前記ロック領域に他のホスト計算機により前記
制御ブロックをロックする旨の情報が格納されている場
合には、該情報が削除されるのを待ち合わせ、削除後に
該制御ブロックをロックする旨の情報を格納するととも
に、前記ロック領域に格納した前記制御ブロックをロッ
クする旨の情報を削除する際に、該情報が削除されるの
を待ち合わせている他の計算機が存在する場合には、該
他の計算機に対して前記通信装置により該情報を削除し
た旨通知することを特徴とする疎結合多重計算機システ
ムにおける共有ファイルの排他制御方法。
20. The exclusive control method for shared files in a loosely coupled multiple computer system according to claim 18, wherein the loosely coupled multiple computer system further includes a communication device for controlling communication between the plurality of computers, Further, each of the plurality of host computers further waits until the information is deleted when the information indicating that the control block is locked by another host computer is stored in the lock area, and after the deletion, the information is deleted. There is another computer that stores the information indicating that the control block is locked and that waits for the information to be deleted when the information indicating that the control block that is stored in the lock area is deleted. In the case of doing so, the loosely-coupled multiplexer, which notifies the other computer that the information has been deleted by the communication device Exclusive control method for shared files in computer systems.
【請求項21】 複数のホスト計算機と、該複数のホス
ト計算機のそれぞれにおいて実行されるアプリケーショ
ンプログラムがアクセスするデータを格納する共有メモ
リファイルを含む外部記憶装置とを備えた疎結合多重計
算機システムにおいて、 前記アプリケーションプログラムからのデータの書き込
み要求に応じて、前記共有メモリファイルを排他制御
し、該共有メモリファイルに該データを書き込み、該共
有メモリファイルの排他制御を解除することを前記複数
のホスト計算機のそれぞれに行わせるプログラムを含む
ことを特徴とする記憶媒体。
21. A loosely coupled multiple computer system comprising a plurality of host computers and an external storage device including a shared memory file storing data accessed by an application program executed in each of the plurality of host computers, In response to a data write request from the application program, the shared memory file is exclusively controlled, the data is written to the shared memory file, and the exclusive control of the shared memory file is released. A storage medium including a program to be executed by each.
【請求項22】 複数のホスト計算機と、該複数のホス
ト計算機のそれぞれにおいて実行されるアプリケーショ
ンプログラムがアクセスするデータを格納する共有メモ
リファイルを含む外部記憶装置とを備えた疎結合多重計
算機システムにおいて、 前記アプリケーションプログラムからのデータの読み出
し要求に応じて、前記共有メモリファイルを排他制御
し、該共有メモリファイルから要求されたデータを読み
出し、該共有メモリファイルの排他制御を解除すること
を前記複数のホスト計算機のそれぞれに行わせるプログ
ラムを含むことを特徴とする記憶媒体。
22. A loosely coupled multi-computer system comprising a plurality of host computers and an external storage device including a shared memory file storing data accessed by an application program executed in each of the plurality of host computers, In response to a data read request from the application program, the shared memory file is exclusively controlled, the requested data is read from the shared memory file, and the exclusive control of the shared memory file is released. A storage medium including a program to be executed by each computer.
【請求項23】 請求項21記載の記憶媒体において、 前記外部記憶装置は、さらに、前記共有メモリファイル
を排他制御している旨の情報を格納するホスト間ロック
領域を含み、 前記アプリケーションプログラムからのデータの書き込
み要求に応じて、前記ホスト間ロック領域に該共有メモ
リファイルを排他制御する旨の情報を格納し、該共有メ
モリファイルに該データを書き込み、該ホスト間ロック
領域に格納した該共有メモリファイルを排他制御する旨
の情報を削除することを前記複数のホスト計算機のそれ
ぞれに行わせるプログラムを含むことを特徴とする記憶
媒体。
23. The storage medium according to claim 21, wherein the external storage device further includes an inter-host lock area that stores information indicating that the shared memory file is exclusively controlled, In response to a data write request, information about exclusive control of the shared memory file is stored in the inter-host lock area, the data is written in the shared memory file, and the shared memory stored in the inter-host lock area. A storage medium including a program that causes each of the plurality of host computers to delete information indicating that files are exclusively controlled.
【請求項24】 請求項22記載の記憶媒体において、 前記外部記憶装置は、さらに、前記共有メモリファイル
を排他制御している旨の情報を格納するホスト間ロック
領域を含み、 前記アプリケーションプログラムからのデータの読み出
し要求に応じて、前記ホスト間ロック領域に該共有メモ
リファイルを排他制御する旨の情報を格納し、該共有メ
モリファイルから要求されたデータを読み出し、該ホス
ト間ロック領域に格納した該共有メモリファイルを排他
制御する旨の情報を削除することを前記複数のホスト計
算機のそれぞれに行わせるプログラムを含むことを特徴
とする記憶媒体。
24. The storage medium according to claim 22, wherein the external storage device further includes an inter-host lock area that stores information indicating that the shared memory file is exclusively controlled. In response to a data read request, information about exclusive control of the shared memory file is stored in the inter-host lock area, the requested data is read from the shared memory file, and stored in the inter-host lock area. A storage medium including a program that causes each of the plurality of host computers to delete information indicating that exclusive control of a shared memory file is to be performed.
【請求項25】 請求項23記載の記憶媒体において、 前記共有メモリファイルは、データと該データの識別子
の組を少なくとも一つ格納する複数の制御ブロックを含
み、 前記ホスト間ロック領域は、前記制御ブロックに一意に
対応して該制御ブロックをロックしている旨の情報を格
納する複数のロック領域を含み、 前記アプリケーションプログラムからのデータの書き込
み要求を受け、該書き込み要求に指定されたデータの識
別子を格納する前記共有メモリファイル内の前記制御ブ
ロックを特定し、該制御ブロックに対応する前記ホスト
間ロック領域内の前記ロック領域に該制御ブロックをロ
ックする旨の情報を格納し、該制御ファイルに該書き込
み要求に指定されたデータを書き込み、該ロック領域に
格納した該制御ブロックをロックする旨の情報を削除す
ることを前記複数のホスト計算機のそれぞれに行わせる
プログラムを含むことを特徴とする記憶媒体。
25. The storage medium according to claim 23, wherein the shared memory file includes a plurality of control blocks that store at least one set of data and an identifier of the data, and the inter-host lock area is the control area. An identifier of the data specified in the write request, including a plurality of lock areas that store information indicating that the control block is locked uniquely corresponding to the block, and receiving a data write request from the application program Is specified, the control block in the shared memory file is stored, information that locks the control block in the lock area in the inter-host lock area corresponding to the control block is stored, and the control file is stored in the control file. Write the data specified in the write request and lock the control block stored in the lock area. A storage medium including a program for causing each of the plurality of host computers to delete the information indicating that the storage medium is deleted.
【請求項26】 請求項24記載の記憶媒体において、 前記共有メモリファイルは、データと該データの識別子
の組を少なくとも一つ格納する複数の制御ブロックを含
み、 前記ホスト間ロック領域は、前記制御ブロックに一意に
対応して該制御ブロックをロックしている旨の情報を格
納する複数のロック領域を含み、 前記アプリケーションプログラムからのデータの読み出
し要求を受け、該読み出し要求に指定されたデータの識
別子を格納する前記共有メモリファイル内の前記制御ブ
ロックを特定し、該制御ブロックに対応する前記ホスト
間ロック領域内の前記ロック領域に該制御ブロックをロ
ックする旨の情報を格納し、該制御ファイルから該読み
出し要求に指定されたデータを読み出し、該ロック領域
に格納した該制御ブロックをロックする旨の情報を削除
することを前記複数のホスト計算機のそれぞれに行わせ
るプログラムを含むことを特徴とする記憶媒体。
26. The storage medium according to claim 24, wherein the shared memory file includes a plurality of control blocks that store at least one set of data and an identifier of the data, and the inter-host lock area is the control block. An identifier of the data designated by the read request, including a plurality of lock areas storing information indicating that the control block is locked uniquely corresponding to the block, and receiving a data read request from the application program Is specified, the control block in the shared memory file is stored, and information for locking the control block in the lock area in the inter-host lock area corresponding to the control block is stored, Read the data specified in the read request and lock the control block stored in the lock area A storage medium including a program for causing each of the plurality of host computers to delete the information indicating that the storage medium is deleted.
【請求項27】 請求項25記載の記憶媒体において、 さらに、 前記共有メモリファイル内の前記制御ブロックの数と各
制御ブロックのアドレスである複数の制御ブロックアド
レスとを含むハッシュテーブルを含み、 前記アプリケーションプログラムからのデータの書き込
み要求を受け、該書き込み要求に指定されたデータの識
別子をハッシュした結果を前記ハッシュテーブルに格納
されている前記制御ブロックの数で除算した残余を求
め、前記ホスト間ロック領域内の該残余の数番目の前記
ロック領域に前記制御ブロックをロックする旨の情報を
格納し、前記ハッシュテーブルに格納されている該残余
の数番目の前記制御ブロックアドレスが指す前記制御ブ
ロックを読み出し、該制御ブロック内に書き込み要求に
指定されたデータの識別子に一致する識別子があれば、
該識別子に対応するデータを書き込み要求に指定された
データで更新し、一致する識別子がなければ、書き込み
要求に指定されたデータと該データの識別子との組とを
該制御ブロックへ格納し、前記ロック領域に格納した該
制御ブロックをロックする旨の情報を削除することを前
記複数のホスト計算機のそれぞれに行わせるプログラム
を含むことを特徴とする記憶媒体。
27. The storage medium according to claim 25, further comprising a hash table including the number of the control blocks in the shared memory file and a plurality of control block addresses which are addresses of each control block, Upon receiving a data write request from a program, the result obtained by hashing the identifier of the data specified in the write request is divided by the number of the control blocks stored in the hash table to obtain a residual, and the inter-host lock area is obtained. Storing information indicating that the control block is locked in the remaining number of lock areas in the control block, and reading the control block indicated by the remaining number of control block addresses stored in the hash table. , The identifier of the data specified in the write request in the control block If there is an identifier that matches
The data corresponding to the identifier is updated with the data specified in the write request, and if there is no matching identifier, the set of the data specified in the write request and the identifier of the data is stored in the control block, and A storage medium including a program for causing each of the plurality of host computers to delete the information indicating that the control block is stored and stored in the lock area.
【請求項28】 請求項26記載の記憶媒体において、 さらに、 前記共有メモリファイル内の前記制御ブロックの数と各
制御ブロックのアドレスである複数の制御ブロックアド
レスとを含むハッシュテーブルを含み、 前記アプリケーションプログラムからのデータの読み出
し要求を受け、該読み出し要求に指定されたデータの識
別子をハッシュした結果を前記ハッシュテーブルに格納
されている前記制御ブロックの数で除算した残余を求
め、前記ホスト間ロック領域内の該残余の数番目の前記
ロック領域に前記制御ブロックをロックする旨の情報を
格納し、前記ハッシュテーブルに格納されている該残余
の数番目の前記制御ブロックアドレスが指す前記制御ブ
ロックを読み出し、該制御ブロック内に読み出し要求に
指定されたデータの識別子に一致する識別子があれば、
該識別子に対応するデータを読み出し、一致する識別子
がなければ、エラー表示し、前記ロック領域に格納した
該制御ブロックをロックする旨の情報を削除することを
前記複数のホスト計算機のそれぞれに行わせるプログラ
ムを含むことを特徴とする記憶媒体。
28. The storage medium according to claim 26, further comprising a hash table including the number of the control blocks in the shared memory file and a plurality of control block addresses which are addresses of each control block, Upon receiving a data read request from a program, a result obtained by hashing the identifier of the data designated in the read request is divided by the number of the control blocks stored in the hash table to obtain a residual, and the inter-host lock area is obtained. Storing information indicating that the control block is locked in the remaining number of lock areas in the control block, and reading the control block indicated by the remaining number of control block addresses stored in the hash table. , The identifier of the data specified in the read request in the control block If there is an identifier that matches
The data corresponding to the identifier is read, and if there is no matching identifier, an error is displayed and each of the plurality of host computers is made to delete the information for locking the control block stored in the lock area. A storage medium containing a program.
【請求項29】 請求項27記載の記憶媒体において、 前記疎結合多重計算機システムは、さらに、前記複数の
計算機間の通信を制御する通信装置を含み、 さらに、前記ロック領域に他のホスト計算機により前記
制御ブロックをロックする旨の情報が格納されている場
合には、該情報が削除されるのを待ち合わせ、削除後に
該制御ブロックをロックする旨の情報を格納するととも
に、前記ロック領域に格納した前記制御ブロックをロッ
クする旨の情報を削除する際に、該情報が削除されるの
を待ち合わせている他の計算機が存在する場合には、該
他の計算機に対して前記通信装置により該情報を削除し
た旨通知することを前記複数のホスト計算機のそれぞれ
に行わせるプログラムを含むことを特徴とする記憶媒
体。
29. The storage medium according to claim 27, wherein the loosely-coupled multiple computer system further includes a communication device that controls communication between the plurality of computers, and the lock area is controlled by another host computer. When the information indicating that the control block is locked is stored, the information is waited for to be deleted, the information indicating that the control block is locked after the deletion is stored, and the information is stored in the lock area. When deleting the information for locking the control block, if there is another computer waiting for the information to be deleted, the information is sent to the other computer by the communication device. A storage medium including a program that causes each of the plurality of host computers to notify that the host computer has been deleted.
【請求項30】 請求項28記載の記憶媒体において、 前記疎結合多重計算機システムは、さらに、前記複数の
計算機間の通信を制御する通信装置を含み、 さらに、前記ロック領域に他のホスト計算機により前記
制御ブロックをロックする旨の情報が格納されている場
合には、該情報が削除されるのを待ち合わせ、削除後に
該制御ブロックをロックする旨の情報を格納するととも
に、前記ロック領域に格納した前記制御ブロックをロッ
クする旨の情報を削除する際に、該情報が削除されるの
を待ち合わせている他の計算機が存在する場合には、該
他の計算機に対して前記通信装置により該情報を削除し
た旨通知することを前記複数のホスト計算機のそれぞれ
に行わせるプログラムを含むことを特徴とする記憶媒
体。
30. The storage medium according to claim 28, wherein the loosely-coupled multiple computer system further includes a communication device that controls communication between the plurality of computers, and the lock area is controlled by another host computer. When the information indicating that the control block is locked is stored, the information is waited for to be deleted, the information indicating that the control block is locked after the deletion is stored, and the information is stored in the lock area. When deleting the information for locking the control block, if there is another computer waiting for the information to be deleted, the information is sent to the other computer by the communication device. A storage medium including a program that causes each of the plurality of host computers to notify that the host computer has been deleted.
JP10678096A 1996-04-26 1996-04-26 Exclusive control system, exclusive control method, and medium for storing exclusive control program for shared file in loosely coupled multiple computer system Expired - Fee Related JP2924786B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10678096A JP2924786B2 (en) 1996-04-26 1996-04-26 Exclusive control system, exclusive control method, and medium for storing exclusive control program for shared file in loosely coupled multiple computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10678096A JP2924786B2 (en) 1996-04-26 1996-04-26 Exclusive control system, exclusive control method, and medium for storing exclusive control program for shared file in loosely coupled multiple computer system

Publications (2)

Publication Number Publication Date
JPH09293055A true JPH09293055A (en) 1997-11-11
JP2924786B2 JP2924786B2 (en) 1999-07-26

Family

ID=14442428

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10678096A Expired - Fee Related JP2924786B2 (en) 1996-04-26 1996-04-26 Exclusive control system, exclusive control method, and medium for storing exclusive control program for shared file in loosely coupled multiple computer system

Country Status (1)

Country Link
JP (1) JP2924786B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008046969A (en) * 2006-08-18 2008-02-28 Fujitsu Ltd Access monitoring method and device for shared memory
JP2008529115A (en) * 2005-01-24 2008-07-31 インターナショナル・ビジネス・マシーンズ・コーポレーション Method for managing access to shared resources in a multi-processor environment
US20150339259A1 (en) * 2012-08-07 2015-11-26 Nokia Corporation Access control for wireless memory
JP2017515229A (en) * 2014-04-30 2017-06-08 オラクル・インターナショナル・コーポレイション System and method for providing distributed transaction locks in a transaction middleware machine environment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008529115A (en) * 2005-01-24 2008-07-31 インターナショナル・ビジネス・マシーンズ・コーポレーション Method for managing access to shared resources in a multi-processor environment
JP4866864B2 (en) * 2005-01-24 2012-02-01 インターナショナル・ビジネス・マシーンズ・コーポレーション Method and program for managing access to shared resources in a multi-processor environment
JP2008046969A (en) * 2006-08-18 2008-02-28 Fujitsu Ltd Access monitoring method and device for shared memory
US20150339259A1 (en) * 2012-08-07 2015-11-26 Nokia Corporation Access control for wireless memory
US9798695B2 (en) * 2012-08-07 2017-10-24 Nokia Technologies Oy Access control for wireless memory
JP2017515229A (en) * 2014-04-30 2017-06-08 オラクル・インターナショナル・コーポレイション System and method for providing distributed transaction locks in a transaction middleware machine environment

Also Published As

Publication number Publication date
JP2924786B2 (en) 1999-07-26

Similar Documents

Publication Publication Date Title
US6014730A (en) Dynamic adding system for memory files shared among hosts, dynamic adding method for memory files shared among hosts, and computer-readable medium recording dynamic adding program for memory files shared among hosts
US10642794B2 (en) Computer storage deduplication
JP3704573B2 (en) Cluster system
US20030004975A1 (en) Database management system with rebalance architectures
JP2004528659A (en) Storage access key
US20060004877A1 (en) Method and system for data processing with data replication for the same
JPH1063557A (en) Distributed file synchronization system
JPH09293055A (en) System and method for exclusive control over shared file in loosely coupled multiple computer system, and medium for storing exclusive control program
JP2830826B2 (en) Distributed file synchronization system and method
KR100507782B1 (en) Database management system and the method of controlling consistency of system table in DBMS
JP3050194B2 (en) A system for dynamically adding a shared memory file between hosts, a method for dynamically adding a shared memory file between hosts, and a recording medium storing a program for dynamically adding a shared memory file between hosts
JP2611648B2 (en) File sharing system
JPH05274208A (en) Information filing device
JP2848437B2 (en) Multi-cluster exclusive control unit
JPH086727A (en) Method for executing program
JP2740238B2 (en) File exclusive control unit
JP3085260B2 (en) Exclusive control unit
JPH04282733A (en) Method for managing data base
JPH11306147A (en) Inter-host resource sharing/exclusive controller, method therefor and recording medium
JPH03202931A (en) File control system for information processing system
JPH1185590A (en) System and method for exclusive control and recording medium recording exclusively control program
JPH06309203A (en) Exclusive control method of data base processing system
JPH05120340A (en) Routing address managing method
JPH1091501A (en) Dynamic change system for hash table
JPH11306061A (en) Inter-process shared control system for database definition information

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990406

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

Free format text: PAYMENT UNTIL: 20090507

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100507

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20110507

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20110507

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20120507

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees