JPH01220046A - Exclusive control method - Google Patents

Exclusive control method

Info

Publication number
JPH01220046A
JPH01220046A JP63047243A JP4724388A JPH01220046A JP H01220046 A JPH01220046 A JP H01220046A JP 63047243 A JP63047243 A JP 63047243A JP 4724388 A JP4724388 A JP 4724388A JP H01220046 A JPH01220046 A JP H01220046A
Authority
JP
Japan
Prior art keywords
exclusive control
central processing
page
busy
registration request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63047243A
Other languages
Japanese (ja)
Inventor
Haruo Hayamizu
速水 治夫
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP63047243A priority Critical patent/JPH01220046A/en
Publication of JPH01220046A publication Critical patent/JPH01220046A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To lighten the burden of a central processing unit concerned with exclusive control by reporting busy to a reference registration request when an object page is already registered and transmitting the interruption of busy-to- free to the central processing unit which reports the busy to the reference registration request when the registration of the page is canceled. CONSTITUTION:One exclusive controller 1 is provided for a computer system as a dedicated device to hold and control a table for the exclusive control of the page and connected to plural central processing units 2 by input/output interfaces 4. When each transaction requests reference and registration to the table for the exclusive control before a page access, when the object page is already registered, the busy is reported to the reference registration request and when the registration of the page is canceled, the interruption of the busy- to-free is generated to the central processing unit which reports the busy. Thus, it becomes unnecessary for the central processing units 2 to hold and control the table for the exclusive control and the burden of the central processing units is lightened.

Description

【発明の詳細な説明】 (産業上の利用分野〕 本発明は排他!IJ#方法、すなわち、1台または複数
台の中央処理装置と該中央処理装置により共用されるフ
ァイルおよびファイル記憶装置を有する計算機システム
において、一つのトランザクションが処理中のファイル
に対し、他のトランザクションがアクセスすることを抑
止する制御方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention is an exclusive!IJ# method comprising one or more central processing units and files and file storage devices shared by the central processing units. The present invention relates to a control method for preventing other transactions from accessing a file that is being processed by one transaction in a computer system.

〔従来の技術〕[Conventional technology]

複数トランザクション間の共用ファイルの排他制御は、
論理的には、以下のように実行される。
Exclusive control of shared files between multiple transactions is
Logically, it is executed as follows.

(1)ファイルをアクセスする前に参照する排他制御用
テーブルを計算機システムに一つ設置して、そこに登録
されているファイルにはアクセスしないことにする。
(1) An exclusive control table that is referenced before accessing a file is installed in the computer system, and files registered in the table are not accessed.

(2)ファイルを排他的に処理したいときは、上記排他
制御用テーブルに対象ファイルを登録して、登録が完了
した後処理に入り、処理が終了した後、登録を抹消する
6登録時には、既登録ファイルと照合され、一致するフ
ァイルが存在する場合は R録を完了させない。
(2) If you want to process a file exclusively, register the target file in the exclusive control table above, enter the process after registration is completed, and delete the registration after the process is completed. 6. It is compared with the registered file, and if a matching file exists, the R recording is not completed.

上述の排他制御用テーブルへの登録単位としては、次の
二案がある。
There are the following two options as the unit of registration in the above-mentioned exclusive control table.

(i)ファイル (it)ファイルを構成する、ファイル装置アクセス単
位(以下、「ページ」という) なお、従来は、上述の排他制御用テーブルを中央処理装
置の主記憶装置上に置き、中央処理装置が管理していた
(i) File (it) A file device access unit (hereinafter referred to as a "page") that constitutes a file. Conventionally, the above-mentioned exclusive control table is placed on the main memory of the central processing unit, and the central processing unit was managed.

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

しかしながら、上記従来技術は・、下記の如き欠点を有
するものであった。
However, the above conventional technology has the following drawbacks.

(I)排他制御用テーブルへの登録単位をファイルとす
る場合は、排他制御の単位が大きいために、既登録ファ
イルとの照合処理が中央処理装置の大きな負荷とはなら
ないが、ファイル待ちとなるトランザクションが多くな
る。
(I) When the unit of registration in the exclusive control table is a file, the unit of exclusive control is large, so the process of matching with already registered files does not place a large load on the central processing unit, but it does require a file wait. Transactions will increase.

(II)排他制御用テーブルへの登録単位をページとす
る場合は、ファイル待ちとなるトランザクションは少な
くなるが、ページは多数存在するため、既登録ファイル
との照合処理が中央処理装置の大きな負荷となる。
(II) If the unit of registration in the exclusive control table is a page, fewer transactions will have to wait for a file, but since there are many pages, matching with already registered files will place a heavy load on the central processing unit. Become.

(m)複数台の中央処理装置が存在する場合は、中央処
理装置間通信により上記排他制御用テーブルを参照・更
新する必要があり、中央処理装置の更に大きな負荷とな
る。
(m) If there are multiple central processing units, it is necessary to refer to and update the exclusive control table through communication between the central processing units, resulting in an even heavier load on the central processing units.

本発明は上記事情に鑑みてなされたもので、その目的と
するところは、従来の技術における上述の如き欠点を解
消し、1台または複数台の中央処理装置と該中央処理装
置により共用されるファイルおよびファイル記憶装置を
有する計算機システムにおいて、排他制御用テーブルへ
の登録単位を前記ファイルを構成するファイル装置アク
セス単位としての「ページ」とする場合の、排他制御に
係わる中央処理装置の負荷を軽減することが可能な排他
制御方法を提供することにある。
The present invention has been made in view of the above-mentioned circumstances, and its purpose is to solve the above-mentioned drawbacks of the conventional technology, and to provide a system that can be shared by one or more central processing units and the central processing unit. In a computer system that has files and file storage devices, the load on the central processing unit related to exclusive control is reduced when the registration unit in the exclusive control table is a "page" which is the file device access unit that constitutes the file. The purpose of the present invention is to provide an exclusive control method that enables

〔課題を解決するための手段〕[Means to solve the problem]

本発明の上述の目的は、1台または複数台の中央処理装
置と該中央処理装置により共用されるファイルおよびフ
ァイル記憶装置を有する計算機システムにおける排他制
御用テーブルを用いる排他制御方法において、前記排他
制御用テーブルをページ毎に設けるとともに、該排他制
御用テーブルを保持・管理する専用装置として前記シス
テムに1台の排他制御装置を設け、′該排他制御装置を
前記中央処理装置と入出力インタフェースにより接・続
して、各トランザクションはページアクセスの前に前記
排他制御用テーブルへ参照・登録要求を行い、該参照・
登録要求が完了したときのみ対象ページへアクセスする
こととし、その際、前記排他制御装置は、対象ページが
既に登録されている場合は参照・登録要求に対しビジー
を報告し、また、当該ページの登録が抹消されたとき、
前記参照・登録要求に対しビジーを報告した中央処理装
置にビジーツーフリーの割込みを通知することを特徴と
する排他制御方法によって達成される。
The above-mentioned object of the present invention is to provide an exclusive control method using an exclusive control table in a computer system having one or more central processing units, files and file storage devices shared by the central processing units; In addition to providing a table for each page, one exclusive control device is provided in the system as a dedicated device for holding and managing the exclusive control table, and the exclusive control device is connected to the central processing unit by an input/output interface.・Subsequently, each transaction makes a reference/registration request to the exclusive control table before accessing the page, and the reference/registration request is made to the exclusive control table.
The target page is accessed only when the registration request is completed, and at that time, the exclusive control device reports busy in response to the reference/registration request if the target page is already registered, and also When the registration is cancelled,
This is achieved by an exclusive control method characterized by notifying a busy-to-free interrupt to the central processing unit that has reported busy in response to the reference/registration request.

〔作用〕[Effect]

本発明に係わる排他制御方法では、ページの排他制御用
テーブルを保持・管理する専用装置として、計算機シス
テムに1台の排他制御装置を設けて、中央処理装置と入
出力インタフェースにより接続し、各トランザクション
がページアクセスの前に上記排他制御用テーブルに参照
・登録要求したとき、対象ページが既に登録されている
場合は該参照・登録要求に対しビジーを報告し、また、
当該ページの登録が抹消されたときは、ビジーを報告し
た中央処理装置に「ビジーツーフリー」の割込みを発生
するようにしたので、中央処理装置は前記排他制御用テ
ーブルを保持・管理する必要がなくなり、これにより、
中央処理装置の負荷が軽くできるものである。
In the exclusive control method according to the present invention, one exclusive control device is provided in a computer system as a dedicated device for holding and managing a table for exclusive control of pages, and is connected to a central processing unit through an input/output interface. makes a reference/registration request to the above exclusive control table before accessing the page, and if the target page is already registered, reports the reference/registration request as busy, and
When the registration of the page is deleted, a "busy-to-free" interrupt is generated to the central processing unit that reported the busy status, so the central processing unit is required to maintain and manage the exclusive control table. This causes
This can lighten the load on the central processing unit.

〔実施例〕〔Example〕

以下、本発明の実施例を図面に基づいて詳細に説明する
Embodiments of the present invention will be described in detail below with reference to the drawings.

第2図は、本発明の一実施例である計算機システムのシ
ステム系統図である6図に示す如く、本システムにおい
ては、複数の中央処理装置2が入出力インタフェース装
置4を介して複数のファイル装置3および単一の排他制
御装置1に接続されている。ファイル装置3には、単一
、または、複数の中央処理袋!i2で処理される複数の
トランザクション間で共用されるファイルがページ単位
で格納されている。
FIG. 2 is a system diagram of a computer system that is an embodiment of the present invention. As shown in FIG. It is connected to the device 3 and the single exclusive control device 1 . The file device 3 has a single or multiple central processing bags! Files shared among multiple transactions processed by i2 are stored in page units.

第3図は、排他制御装置1の具体的構成例を示すもので
あり1本実施例に示す排他制御装置1は排他制御用テー
ブルを格納するメモリ部13.各中央処理装置との通信
を行う中央処理装置インタフェース部12.排他制御用
テーブルの管理および全体制御を行う共通制御部11か
ら成っている。
FIG. 3 shows a specific example of the configuration of the exclusive control device 1. The exclusive control device 1 shown in this embodiment has a memory section 13. A central processing unit interface section 12 that communicates with each central processing unit. It consists of a common control section 11 that manages exclusive control tables and performs overall control.

第4図は、上記排他制御用テーブルの一構成例を示すも
のである。図に示す如く、上記排他制御用テーブルの各
エントリは、以下のカラムから構成される。
FIG. 4 shows an example of the configuration of the exclusive control table. As shown in the figure, each entry in the exclusive control table is composed of the following columns.

(1)第1カラム(21) :ページ名(2)第2カラ
ム(22) :該ページ名を登録した中央処理装置番号 (3)第3カラム(23) :該ページ名が登録された
以降に、該ページに対し参照・登録アクセスを行った中
央処理装置番号のリスト 上述の如く構成された本実施例における排他制御動作を
、以下、第1図に示す処理フローチャートに従って説明
する。第1図(a)はCPU側の処理を、また、同(b
)は排他制御装置側の処理を示している。
(1) First column (21): Page name (2) Second column (22): Central processing unit number that registered the page name (3) Third column (23): Since the page name was registered List of central processing unit numbers that have made reference/registration access to the page The exclusive control operation in this embodiment configured as described above will be described below with reference to the processing flowchart shown in FIG. Figure 1(a) shows the processing on the CPU side, and Figure 1(b) shows the processing on the CPU side.
) indicates processing on the exclusive control device side.

各トランザクションがページをアクセスする前に、まず
、参照する排他制御用テーブルを排他制御装置に設置す
る。
Before each transaction accesses a page, an exclusive control table to be referenced is first installed in the exclusive control device.

最初に、第1図(a)に基づいて、動作の概要を説明す
る。各トランザクションがページをアクセスする場合に
は、ステップ41に示す如く、その前に排他制御装置を
アクセスし、排他制御用テーブルに対象ページ名が登録
されているか否かをチエツクする。本実施例の場合、I
ODアドレスは一定であり、アクセス種別には、参照/
参照・登録の別がある。排他制御用テーブルに対象ペー
ジ名が登録されている場合は、排他制御装置は上記アク
セス要求に対してビジーを報告する。対象ページ名が登
録されていない場合は、アクセス要求が正常に終了する
。正常終了したときのみ、ステップ43に示す如く、対
象ページをアクセスする。
First, an outline of the operation will be explained based on FIG. 1(a). When each transaction accesses a page, as shown in step 41, it first accesses the exclusive control device and checks whether the target page name is registered in the exclusive control table. In the case of this example, I
The OD address is constant, and the access type includes reference/
There are two types: reference and registration. If the target page name is registered in the exclusive control table, the exclusive control device reports busy in response to the access request. If the target page name is not registered, the access request ends normally. Only when the process ends normally, the target page is accessed as shown in step 43.

各トランザクションは、ページの排他的処理が終了した
とき、排他制御用テーブルから該当ページ名を抹消する
ため、ステップ45に示す如く、排他制御装置をアクセ
スする。このとき、排他制御装置は、後述する如く、該
ページ名に対して参照または登録しようとした中央処理
装置に対して、ビジーツーフリーの割込みを上げる。ビ
ジーツーフリーの割込みが上がった中央処理装置では、
ステップ46に示す如く、待たされていたトランザクシ
ョンを判別し、その処理を実行に移す。
When the exclusive processing of a page is completed, each transaction accesses the exclusive control device as shown in step 45 in order to delete the corresponding page name from the exclusive control table. At this time, the exclusive control device issues a busy-to-free interrupt to the central processing unit that attempts to refer to or register the page name, as will be described later. In the central processing unit where busy-to-free interrupts have increased,
As shown in step 46, the transaction that has been kept waiting is determined and its processing is executed.

以下、第1図(b)に基づいて、排他制御装置の動作の
詳細を説明する。排他制御装置はアクセスを受けると、
その種別を判定しくステップ5o)、参照・登録要求で
あればステップ51〜54、参照要求であればステップ
55〜59、抹消要求であればステップ60〜62に示
す処理を行う。
Hereinafter, the details of the operation of the exclusive control device will be explained based on FIG. 1(b). When the exclusive control device receives access,
If the type is determined (step 5o), the process shown in steps 51 to 54 is performed if it is a reference/registration request, steps 55 to 59 if it is a reference request, and steps 60 to 62 if it is a deletion request.

すなわち、各トランザクションが排他制御装置をアクセ
スし、排他制御用テーブルに対象ページ名を登録する。
That is, each transaction accesses the exclusive control device and registers the target page name in the exclusive control table.

登録時には、排他制御装置において、排他制御用テーブ
ルの既登録ページ名と照合され(ステップ51)、一致
するページ名が存在しない場合には(ステップ52)、
排他制御用テーブルに対象ページ名、登録CPU番号を
登録し、アクセスに対し正常終了する(ステップ53.
54)。登録アクセスが正常終了したときは、ページの
排他的処理に入る。
At the time of registration, the exclusive control device checks the already registered page name in the exclusive control table (step 51), and if there is no matching page name (step 52),
The target page name and registered CPU number are registered in the exclusive control table, and the access is normally terminated (step 53.
54). When the registration access ends normally, exclusive processing of the page begins.

参照時にぼ、一致するページ名が存在する場合には(ス
テップ56)、排他制御用テーブルにアクセス待ちCP
U番号の待行列に、第4図に示した如き形で当該CPU
番号が登録されているか否かをチエツクしくステップ5
7)、登録されていなればそれを登録して(ステップ5
8)、アクセスに対してビジーを返却する(ステップ5
9)。また、対象ページ名が存在する場合には、参照要
求が正常終了する(ステップ54)。参照アクセスが正
常終了したときは、ページの排他的処理に入る。
At the time of reference, if a matching page name exists (step 56), the access waiting CP is stored in the exclusive control table.
The corresponding CPU is placed in the U number queue as shown in Figure 4.
Check if the number is registered or not Step 5
7) If it is not registered, register it (Step 5)
8), return busy for access (step 5)
9). Furthermore, if the target page name exists, the reference request ends normally (step 54). When the reference access ends normally, exclusive processing of the page begins.

各トランザクションは、ページの排他的処理が終了した
ときは、排他制御装置をアクセスし、排他制御装置はス
テップ62において、排他制御用テーブルから該当ペー
ジ名を抹消する。このとき、排他制御装置は、該ページ
名に対して参照または登録しようとした過失処理装置に
対して、ステップ61に示す如く、ビジーツーフリーの
割込みを上げる。前述の如く、ビジーツーフリーの割込
みが上がっ゛た中央処理装置では、待たされていたトラ
ンザクションを判別し、その処理を実行に移す。
When each transaction finishes exclusive processing of a page, it accesses the exclusive control device, and the exclusive control device deletes the corresponding page name from the exclusive control table in step 62. At this time, the exclusive control device raises a busy-to-free interrupt as shown in step 61 to the fault processing device that attempted to refer to or register the page name. As mentioned above, when a busy-to-free interrupt occurs, the central processing unit determines the transaction that has been kept waiting, and executes the transaction.

上記実施例によれば、排他制御の負荷を中央処理装置か
ら軽減することができる6 第5図は、本発明の第二の実施例に用いる排他制御用テ
ーブルの構成例を示す図である。本実施例に示す排他制
御用テーブルと、第4図に示した第一の実施例の排他制
御用テーブルとの相異は。
According to the embodiment described above, the load of exclusive control can be reduced from the central processing unit.6 FIG. 5 is a diagram showing an example of the configuration of an exclusive control table used in the second embodiment of the present invention. What is the difference between the exclusive control table shown in this embodiment and the exclusive control table of the first embodiment shown in FIG.

前述のビジーツーフリーの割込みが上がった中央処理装
置において、使用可能となったページをアクセスしよう
としている(待たされていた)トランザクションを判別
する処理を容易にするために、その内容を下記の如く変
更した点にある。
In the central processing unit where the busy-to-free interrupt occurs, the contents are as follows in order to facilitate the process of determining the transaction that is attempting to access the available page (has been kept waiting). This is what has been changed.

(1)第1カラム(31):ページ名 (2)第2カラム(32) :該ページ名を登録した中
央処理装置番号 (3)第3カラム(33) :該ページ名が登録したと
きに使用したデバイスアドレス (IOD番号) (4)第4カラム(34) :該ページ名が登録された
以降に、該ページに対し参照・登録のアクセスを行った
中央処理装置番号と、そのときに使用したデバイスアド
レス (100番号)との組のリスト 第6図は、第2の実施例の動作を示す処理フローチャー
トであり、先に示した第1図と同じ処理ステップについ
ては同じ番号を、また、類似の処理ステップ(IOD番
号を用いるもの)についでは同番号にaを付加して示し
ている。
(1) First column (31): Page name (2) Second column (32): Central processing unit number that registered the page name (3) Third column (33): When the page name was registered Used device address (IOD number) (4) Fourth column (34): Central processing unit number that accessed the page for reference/registration after the page name was registered, and the number used at that time FIG. 6 is a processing flowchart showing the operation of the second embodiment, and the same numbers are used for the same processing steps as in FIG. 1 shown above. Similar processing steps (those using IOD numbers) are shown with the same number appended with a.

本実施例においては、排他制御装置へのアクセスを、複
数の上記IOD番号で可能とし、各トランザクション対
応の識別コードとして、上記工OD番号を使用する。従
って、第1の実施例において示した。ステップ61のビ
ジーツーフリーの割込み報告を行う際のIOD番号は、
前にアクセスしたときのIOD番号とな、待たされてい
るトランザクションの中で、対応するものを判定する処
理(ステップ46a)において、上記IOD番号を識別
コードとして用いることができる。このIOD番号は、
排他制御装置へのアクセスおよび排他制御装置からの割
込みにおいて、入出力インタフェースで常に使用される
ものであり、特別に識別コードを送受する必要がない点
が特徴である。
In this embodiment, the exclusive control device can be accessed using a plurality of IOD numbers, and the IOD number is used as an identification code for each transaction. Therefore, this is shown in the first embodiment. The IOD number when reporting the busy-to-free interrupt in step 61 is:
The IOD number can be used as an identification code in the process (step 46a) of determining which transaction corresponds to the IOD number of the previous access. This IOD number is
It is always used as an input/output interface when accessing the exclusive control device and interrupting from the exclusive control device, and is characterized in that there is no need to send or receive a special identification code.

第7図は、前述の実施例におけるステップ52゜56の
、参照・登録のページが既に登録済みか否かを判定する
処理を高速化するためのメモリ部13の構成例を示すも
のである。すなわち、上記実施例においては、参照・登
録のページ名が既に登録済みか否かを判定する処理を、
ハツシングまたはバイナリサーチ等の方式を用いて行う
ものとしているが、この処理は時間がかかる場合が多い
ので、これをハードウェアにより高速に処理する例を示
すものである。
FIG. 7 shows an example of the configuration of the memory unit 13 for speeding up the process of determining whether or not the reference/registration page has already been registered in steps 52 and 56 in the above-described embodiment. That is, in the above embodiment, the process of determining whether the reference/registration page name has already been registered is performed as follows:
Although it is assumed that this processing is performed using a method such as hashing or binary search, this processing often takes time, so an example is shown in which this processing is performed at high speed using hardware.

第7図において、200はアドレスを内蔵する連想メモ
リ(Content Address Memory、
 CA M)であり、ページ名121が格納されるペー
ジ名格納域221およびエントリ有効表示ビット格納域
220から成っている。201はCAM一致信号208
からアドレス線209を作成するアドレスエンコーダで
あり、202はCAMアクセスレジスタ、203はアド
レスデコーダ、205はメモリレジスタを示してぃる6
204はRAMであり、第5図の第2〜4カラム(32
〜34)の格納域222〜224から成っている。なお
、210はCAMに対して一致検索したときに、一致エ
ントリが無い場合に出力される不一致信号線、また、2
13はCPU番号と工○D番号の登録要求のエントリ信
号、214はアクセス要求したCPU番号および工○D
番号のエントリ信号を示している。206.207.2
12はデータ線である。
In FIG. 7, 200 is an associative memory (Content Address Memory,
CAM), and consists of a page name storage area 221 in which the page name 121 is stored and an entry valid display bit storage area 220. 201 is a CAM match signal 208
202 is a CAM access register, 203 is an address decoder, and 205 is a memory register.
204 is a RAM, and columns 2 to 4 (32
~34) storage areas 222-224. Note that 210 is a mismatch signal line that is output when there is no matching entry when searching for a match in CAM;
13 is an entry signal for requesting the registration of the CPU number and ○D number, 214 is the CPU number and ○D number that requested access.
Showing number entry signal. 206.207.2
12 is a data line.

本実施例においては、基本的な手順は前述の各実施例と
同様であるが、前述の実施例におけるステップ52.5
6の、参照・登録のページが既に登録済みか否かを判定
する処理を、次の如く行うことが可能である。すなわち
、参照・登録のページ名を上記CAMアクセスレジスタ
202に入れて、CAM200に対して一致検索を行う
ものである。これにより、CAM200に内在する並列
処理能力を用いて、登録済みページ名との一致検索が容
易に行うことができる。
In this embodiment, the basic procedure is the same as in each of the above-mentioned embodiments, except for step 52.5 in the above-mentioned embodiments.
The process of determining whether or not the reference/registration page has already been registered in step 6 can be performed as follows. That is, the name of the referenced/registered page is entered in the CAM access register 202, and a match search is performed in the CAM 200. Thereby, using the parallel processing capability inherent in the CAM 200, it is possible to easily perform a match search with registered page names.

〔発明の効果〕〔Effect of the invention〕

以上詳細に説明した如く、本発明によれば、1台または
複数台の中央処理装置と該中央処理装置により共用され
るファイルおよびファイル記憶装置を有する計算機シス
テムにおける排他制御用テーブルを用いる排他制御方法
において、前記排他制御用テーブルをページ毎に設ける
とともに、該排他制御用テーブルを保持・管理する専用
装置として前記システムに1台の排他制御装置を設け、
該排他制御装置を前記中央処理装置と入出力インタフェ
ースにより接続して、各トランザクションはページアク
セスの前に前記排他制御用テーブルへ参照・登録要求を
行い、該参照・登録要求が完了したときのみ対象ページ
へアクセスすることとし、その際、前記排他制御装置は
、対象ページが既に登録されている場合は参照・登録要
求に対しビジーを報告し、また、当該ページの登録が抹
消されたとき、前記参照・登録要求に対しビジーを報告
した中央処理装置にビジーツーフリーの割込みを通知す
るようにしたので、前記計算機システムにおいて、排他
制御に係わる中央処理装置の負荷を軽減することが可能
な排他制御方法を実現できるという顕著な効果を奏する
ものである。
As explained in detail above, according to the present invention, an exclusive control method using an exclusive control table in a computer system having one or more central processing units, files and file storage devices shared by the central processing units The exclusive control table is provided for each page, and one exclusive control device is provided in the system as a dedicated device for holding and managing the exclusive control table,
The exclusive control device is connected to the central processing unit through an input/output interface, and each transaction requests reference/registration to the exclusive control table before page access, and is processed only when the reference/registration request is completed. When accessing a page, the exclusive control device reports busy in response to a reference/registration request if the target page is already registered, and if the page is unregistered, the exclusive control device Since a busy-to-free interrupt is notified to the central processing unit that has reported busy in response to a reference/registration request, exclusive control can reduce the load on the central processing unit related to exclusive control in the computer system. This method has the remarkable effect of realizing the method.

また、上記排他制御方法に加えて、各トランザクション
が排他制御装置をアクセスする際のデバイスアドレスを
当該トランザクションの識別コードとして用いるように
することにより、アクセスしようとしたページが他のト
ランザクションに排他的に使用されていた場合、該他の
トランザクションによる排他的使用が解除されたときに
、その旨の割込みが発生し、その割込みのデバイスアド
レスを識別コードとして該当トランザクションを判定で
きるようになり、中央処理装置の負荷が更に軽くできる
という効果もある。
In addition to the above exclusive control method, by using the device address used when each transaction accesses the exclusive control device as the identification code of the transaction, the page that is being accessed can be accessed exclusively by other transactions. If it is used, when the exclusive use by the other transaction is canceled, an interrupt will be generated to that effect, and the corresponding transaction can be determined using the device address of the interrupt as an identification code, and the central processing unit Another effect is that the load can be further reduced.

更に、他の効果として、排他制御装置は入出力インタフ
ェース接続であるため、異機種、複数の中央処理装置に
接続可能であること、複数の中央処理装置にまたがる排
他制御において中央処理装置間通信が不要であること等
が挙げられる。
Furthermore, as other effects, the exclusive control device has an input/output interface connection, so it can be connected to different models and multiple central processing units, and communication between central processing units is improved in exclusive control that spans multiple central processing units. For example, it is unnecessary.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例を示す処理フローチャート、
第2図は実施例の計算機システムを示すシステム系統図
、第3図は排他制御装置の具体的構成例を示す図、第4
図、第5図は排他制御用テーブルの構成例を示す図、第
6図は他の実施例を示す処理フローチャート、第7図は
処理の一部をハードウェアによる場合の実施例を示す構
成図である。 1:排他制御装置、2:中央処理装置、3:ファイル装
置、4:入出力インタフェース装置、11:共通制御部
、12:中央処理装置インタフェース部、13:メモリ
部、20Q:CAM。 特許出願人日本電信電話株式会社
FIG. 1 is a processing flowchart showing an embodiment of the present invention;
FIG. 2 is a system diagram showing the computer system of the embodiment, FIG. 3 is a diagram showing a specific configuration example of the exclusive control device, and FIG.
5 is a diagram showing a configuration example of an exclusive control table, FIG. 6 is a processing flowchart showing another embodiment, and FIG. 7 is a configuration diagram showing an embodiment in which part of the processing is performed by hardware. It is. 1: exclusive control device, 2: central processing unit, 3: file device, 4: input/output interface device, 11: common control unit, 12: central processing unit interface unit, 13: memory unit, 20Q: CAM. Patent applicant Nippon Telegraph and Telephone Corporation

Claims (2)

【特許請求の範囲】[Claims] (1)1台または複数台の中央処理装置と該中央処理装
置により共用されるファイルおよびファイル記憶装置を
有する計算機システムにおける排他制御用テーブルを用
いる排他制御方法において、前記排他制御用テーブルを
、前記ファイルを構成するファイル装置アクセス単位(
ページ)毎に設けるとともに、該排他制御用テーブルを
保持・管理する専用装置として前記システムに1台の排
他制御装置を設け、該排他制御装置を前記中央処理装置
と入出力インタフェースにより接続して、各トランザク
ションはページアクセスの前に前記排他制御用テーブル
へ参照・登録要求を行い、該参照・登録要求が完了した
ときのみ対象ページへアクセスすることとし、その際、
前記排他制御装置は、対象ページが既に登録されている
場合は参照・登録要求に対しビジーを報告し、また、当
該ページの登録が抹消されたとき、前記参照・登録要求
に対しビジーを報告した中央処理装置にビジーツーフリ
ーの割込みを通知することを特徴とする排他制御方法。
(1) In an exclusive control method using an exclusive control table in a computer system having one or more central processing units, files and file storage devices shared by the central processing units, the exclusive control table is The file device access unit that makes up the file (
one exclusive control device is provided in the system as a dedicated device for holding and managing the exclusive control table, and the exclusive control device is connected to the central processing unit by an input/output interface, Each transaction makes a reference/registration request to the exclusive control table before accessing the page, and accesses the target page only when the reference/registration request is completed.
The exclusive control device reports busy in response to the reference/registration request when the target page is already registered, and reports busy in response to the reference/registration request when the registration of the page is deleted. An exclusive control method characterized by notifying a central processing unit of a busy-to-free interrupt.
(2)前記排他制御装置に対するアクセスを、複数のデ
バイスアドレスで行うことを可能とするとともに、各ト
ランザクションの識別コードとして前記デバイスアドレ
スを用いることとし、あるトランザクションの前記排他
制御用テーブルへの参照・登録要求アクセスがビジーで
あった後の、前記ビジーツーフリーの割込みのデバイス
アドレスを識別コードとして、参照・登録要求が待たさ
れているトランザクションを判定することを特徴とする
、特許請求の範囲第1項記載の排他制御方法。
(2) The exclusive control device can be accessed using a plurality of device addresses, and the device address is used as an identification code for each transaction, and a transaction can be referenced to the exclusive control table. Claim 1, characterized in that the device address of the busy-to-free interrupt after the registration request access is busy is used as an identification code to determine the transaction in which the reference/registration request is awaited. Exclusive control method described in section.
JP63047243A 1988-02-29 1988-02-29 Exclusive control method Pending JPH01220046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63047243A JPH01220046A (en) 1988-02-29 1988-02-29 Exclusive control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63047243A JPH01220046A (en) 1988-02-29 1988-02-29 Exclusive control method

Publications (1)

Publication Number Publication Date
JPH01220046A true JPH01220046A (en) 1989-09-01

Family

ID=12769788

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63047243A Pending JPH01220046A (en) 1988-02-29 1988-02-29 Exclusive control method

Country Status (1)

Country Link
JP (1) JPH01220046A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04291639A (en) * 1991-03-20 1992-10-15 Fujitsu Ltd Record occupation system
JPH05128072A (en) * 1991-11-06 1993-05-25 Fujitsu Ltd Inter-system exclusive control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04291639A (en) * 1991-03-20 1992-10-15 Fujitsu Ltd Record occupation system
JPH05128072A (en) * 1991-11-06 1993-05-25 Fujitsu Ltd Inter-system exclusive control system

Similar Documents

Publication Publication Date Title
EP0456491B1 (en) A distributed database management system
US7373438B1 (en) System and method for reprioritizing high-latency input/output operations
US6061763A (en) Memory management system employing multiple buffer caches
JP3066693B2 (en) Distributed data processing system
CN1959676B (en) Apparatus and method for materialized query table journaling in a computer database system
US6230220B1 (en) Method for allocating either private or shared buffer memory for storing data from sort operations in accordance with an assigned value or threshold value
US8046421B2 (en) High performance storage access environment
US6711559B1 (en) Distributed processing system, apparatus for operating shared file system and computer readable medium
JPH06162086A (en) Method and device for controlling remote data base
US5920860A (en) Method and apparatus for accessing of large object data segments from a remote database
WO2021114848A1 (en) Data reading and writing method and device for database
JP3290801B2 (en) Resource location detection method
JPH01220046A (en) Exclusive control method
JP2636740B2 (en) Distributed file system
US5564120A (en) Data management method in a distributed processing system
JPH05314179A (en) Data retrieval processing method for distributed data base
EP0573922B1 (en) Network type document management system
JPH03266046A (en) Data base high speed access method
JPS6327936A (en) File management method
JP2776747B2 (en) File transfer device
JPH01114936A (en) File system
JPH0612388A (en) Access system for decentralized file
JPH03231339A (en) Data base access system
JPH065838B2 (en) Server controller
JPH0581115A (en) Data processing method for distributed database managing system