JPH02224152A - File exclusive control device - Google Patents
File exclusive control deviceInfo
- Publication number
- JPH02224152A JPH02224152A JP1046170A JP4617089A JPH02224152A JP H02224152 A JPH02224152 A JP H02224152A JP 1046170 A JP1046170 A JP 1046170A JP 4617089 A JP4617089 A JP 4617089A JP H02224152 A JPH02224152 A JP H02224152A
- Authority
- JP
- Japan
- Prior art keywords
- exclusive
- search
- update
- identification information
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000007717 exclusion Effects 0.000 claims description 30
- 238000000034 method Methods 0.000 claims description 22
- 238000013500 data storage Methods 0.000 claims description 14
- 230000003213 activating effect Effects 0.000 claims description 5
- 230000003247 decreasing effect Effects 0.000 abstract 2
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 3
- 230000003068 static effect Effects 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、電子計算機系のデータベースファイルのファ
イル排他制御装置に利用する。DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention is applied to a file exclusive control device for a database file of an electronic computer system.
本発明のファイル排他制御装置において、第一排他識別
情報とは別に第二排他識別情報を使用し更新制御手段は
第二排他識別情報がすでに更新排他または検索排他され
ている場合には解除されるまで待ち、排他されていない
場合には更新処理終了まで更新排他にし検索制御手段は
第二排他識別情報がすでに更新排他がされていない場合
には検索処理が終了するまで検索排他にすることにより
、
更新処理が行われているデータベースに対して大きなス
ループットの低下をまねくことなく検索処理を行うこと
ができるようにしたものである。In the file exclusive control device of the present invention, the second exclusive identification information is used separately from the first exclusive identification information, and the update control means is canceled if the second exclusive identification information is already update exclusive or search exclusive. If the second exclusive identification information is not already updated, the search control means makes the search exclusive until the end of the search process. This makes it possible to perform search processing on a database that is undergoing update processing without causing a significant drop in throughput.
従来、ファイル排他制御装置は、格納単位を排他する場
合には更新排他と検索排他とを共に一つの排他識別情報
に基づいて行っていた。Conventionally, when a storage unit is to be excluded, a file exclusion control device has performed both update exclusion and search exclusion based on one exclusion identification information.
しかし、このような従来のファイル排他制御装置では、
一つの排他識別情報で排他制御を行っているが、同時に
複数のプログラムから更新した場合の矛盾を発生させな
いためには、更新および検索された格納単位はプログラ
ム終了まで排他する必要があるので、たとえ検索プログ
ラムでも、更新排他されている格納単位に検索しにいく
と排他待ちする欠点があった。However, with such conventional file exclusive control devices,
Exclusive control is performed using one exclusive identification information, but in order to avoid conflicts when updates are made from multiple programs at the same time, the storage units that are updated and searched need to be exclusive until the end of the program. Search programs also have the disadvantage of waiting for exclusion when searching for a storage unit that is update-exclusive.
本発明は上記の欠点を解決するもので、更新処理が行わ
れているデータベースに対して大きなスルーブツトの低
下をおこすことなく検索処理を行うことができるファイ
ル排他制御装置を提供することを目的とする。The present invention solves the above-mentioned drawbacks, and aims to provide a file exclusive control device that can perform search processing without significantly reducing throughput for a database that is undergoing update processing. .
本発明は、複数のデータ格納領域に分割されたデータベ
ースファイルと、この複数のデータ格納領域に対応して
排他状態を示す第一排他識別情報が格納された排他状態
記憶手段と、更新プログラム手段の更新要求または検索
要求に基づき上記第一排他識別情報を使用して更新処理
または検索処理の制御を行う更新制御手段と、検索プロ
グラム手段の検索要求に基づき検索処理の制御を行う検
索制御手段とを備えたファイル排他制御装置において、
上記排他状態記憶手段は、上記第一排他識別情報とは別
に上記複数のデータ格納領域に対応して排他状態を示す
第二排他識別情報が格納される手段を含み、上記第二排
他識別情報がすでに更新排他、または検索排他されてい
る場合には解除になるまで待ち、排他されていない場合
には更新処理終了まで更新排他する一時更新排他手段と
、上記第二排他識別情報がすでに更新排他されている場
合には解除になるまで待ち、排他されていない場合には
検索処理終了まで検索排他する一時検索排他手段とを備
え、上記更新制御手段は、上記更新要求に基づき上記一
時更新排他手段を起動する手段を含み、上記検索制御手
段は、上記検索要求に基づき上記一時検索排他手段を起
動する手段を含むことを特徴とする。The present invention includes a database file divided into a plurality of data storage areas, an exclusive state storage means storing first exclusive identification information indicating an exclusive state corresponding to the plurality of data storage areas, and an update program means. an update control means for controlling an update process or a search process using the first exclusive identification information based on an update request or a search request; and a search control means for controlling a search process based on a search request from the search program means. In the file exclusive control device equipped with
The exclusive state storage means includes means for storing second exclusive identification information indicating an exclusive state in correspondence with the plurality of data storage areas, separately from the first exclusive identification information, and the second exclusive identification information is Temporary update exclusion means that waits until update exclusion or search exclusion is already applied until it is canceled, and if update exclusion is not performed until update processing is completed; the update control means executes the temporary update exclusion means based on the update request. The search control means includes means for activating the temporary search exclusive means based on the search request.
排他状態記憶手段は複数のデータ格納領域に対して排他
状態を示す第一排他識別情報に加えて第二排他識別情報
を格納する。一時更新排他手段は第二排他識別情報がす
でに更新排他、または検索排他されている場合は解除さ
れるまで待ち、排他されていない場合には更新処理終了
まで更新排他する。一時検索排他手段はすでに更新排他
されている場合には解除されるまで待ち、排他されてい
ない場合には検索処理終了まで検索排他する。更新制御
手段は要新要求に基づき一時更新排他手段を起動する。The exclusive state storage means stores second exclusive identification information in addition to first exclusive identification information indicating exclusive states for the plurality of data storage areas. If the second exclusion identification information is already update-exclusive or search-exclusive, the temporary update exclusion means waits until the second exclusion identification information is released; if the second exclusion identification information is not exclusive, it is update-exclusive until the end of the update process. If the temporary search exclusion means has already been updated, it waits until it is released, and if it has not been updated, the temporary search exclusion means performs the search exclusion until the end of the search process. The update control means activates the temporary update exclusion means based on the update request.
検索制御手段は検索要求に基づき一時検索排他手段を起
動する。以上の動作により更新処理がされていても更新
処理中を除いて排他待ちすることなく検索ができ、更新
処理が行われているデータベースに対して大きなスルー
ブツトの低下をまねくことなく検索処理を行うことがで
きる。The search control means activates the temporary search exclusion means based on the search request. Through the above operations, even if an update process is being performed, a search can be performed without waiting for exclusive use, except during the update process, and the search process can be performed without causing a significant drop in throughput for the database where the update process is being performed. Can be done.
本発明の実施例について図面を参照して説明する。第1
図は本発明一実施例ファイル排他制御装置のブロック構
成図である。第1図において、ファイル排他制御装置は
、複数のデータ格納領域に分割されたデータベースファ
イル24と、データ格納領域に対応して排他状態を示す
第一排他識別情報22が格納される排他状態記憶手段2
1と、第一排他識別情報22がすでに更新排他、または
検索排他されている場合には解除するまで待ち、排他さ
れていない場合には静止点まで更新排他する更新排他手
段15と、第一排他識別情報22がすでに更新排他され
ている場合には解除するまで待ち、排他されていない場
合には静止点まで検索排他する検索排他手段17と、デ
ータベースファイル24の更新処理を行うデータベース
更新手段19と、データベースファイル24の検索処理
を行うデータベース検索手段20と、更新プログラム手
段11の更新要求101に基づいて更新排他手段15を
起動し静止点まで更新するデータ格納領域に対応する第
一排他識別情報22を更新排他してデータベース更新手
段19を起動し、また更新プログラム手段11の検索要
求102に基づき検索排他手段17を起動し静止点まで
検索するデータ格納領域に対応する第一排他識別情報を
検索排他してデータベース検索手段20を起動する更新
制御手段13と、検索プログラム手段12の検索要求1
03に基づいてデータベース検索手段20を起動する検
索制御手段14とを備える。Embodiments of the present invention will be described with reference to the drawings. 1st
The figure is a block diagram of a file exclusive control device according to an embodiment of the present invention. In FIG. 1, the file exclusive control device includes a database file 24 divided into a plurality of data storage areas, and exclusive state storage means in which first exclusive identification information 22 indicating an exclusive state is stored corresponding to the data storage areas. 2
1, an update exclusive means 15 that waits until the first exclusion identification information 22 is already update exclusive or search exclusive, waits until it is released, and updates and excludes the first exclusive identification information 22 up to a stationary point if it is not exclusive; If the identification information 22 has already been subjected to update exclusion, it waits until it is released, and if it is not excluded, it searches and excludes the identification information 22 up to a stationary point. A database update means 19 performs an update process on the database file 24. , a database search means 20 that performs a search process for the database file 24, and first exclusive identification information 22 corresponding to the data storage area that activates the update exclusive means 15 based on the update request 101 of the update program means 11 and updates up to a static point. The database update means 19 is activated by updating and exclusive, and the search exclusive means 17 is activated based on the search request 102 of the update program means 11 to search and exclude the first exclusive identification information corresponding to the data storage area to be searched up to the rest point. the update control means 13 which starts the database search means 20, and the search request 1 of the search program means 12;
03.
ここで本発明の特徴とするところは、排他状態記憶手段
21に、上記第一排他識別情報とは別に上記複数のデー
タ格納領域に対応して排他状態を示す第二排他識別情報
23が格納される手段を含み、第二排他識別情報23が
すでに更新排他、または検索排他されている場合には解
除になるまで待ち、排他されていない場合には更新処理
終了まで更新排他する一時更新排他手段16と、第二排
他識別情報23がすでに更新排他されている場合には解
除になるまで待ち、排他されていない場合には検索処理
終了まで検索排他する一時検索排他手段18とを備え、
更新制御手段13は、更新要求101に基づき一時更新
排他手段16を起動する手段を含み、検索制御手段14
は、検索要求103に基づき一時検索排他手段18を起
動する手段を含むことにある。Here, the feature of the present invention is that, in addition to the first exclusive identification information, the exclusive state storage means 21 stores second exclusive identification information 23 indicating exclusive states corresponding to the plurality of data storage areas. If the second exclusion identification information 23 is already update-exclusive or search-exclusive, it waits until it is released, and if it is not exclusive, it updates and excludes it until the end of the update process. and a temporary search exclusion means 18 that waits until the second exclusion identification information 23 is already updated and excluded, and performs search exclusion until the end of the search process if the second exclusion identification information 23 is not updated,
The update control means 13 includes means for activating the temporary update exclusion means 16 based on the update request 101, and the search control means 14
The present invention includes means for activating the temporary search exclusion means 18 based on the search request 103.
このような構成のファイル排他制御装置の動作について
説明する。第2図は本発明のファイル排他制御装置のデ
ータベースファイルの内容を示す図である。第3図は本
発明のファイル排他装置の動作説明図である。The operation of the file exclusive control device having such a configuration will be explained. FIG. 2 is a diagram showing the contents of a database file of the file exclusive control device of the present invention. FIG. 3 is an explanatory diagram of the operation of the file exclusive device of the present invention.
第2図はデータベースファイル24の構造例を示し、第
2図に示すようにデータベースファイル24は複数のデ
ータ格納領域201.202、 、から構成され、一つ
のデータ格納領域たとえばデータ格納領域201は複数
の格納単位203.204.205から構成される。FIG. 2 shows an example of the structure of the database file 24. As shown in FIG. 2, the database file 24 is composed of a plurality of data storage areas 201, 202, . It is composed of storage units 203, 204, and 205.
第1図〜第3図においてまずデータベースファイル24
の領域定義時に、更新排他されている格納単位に対して
検索できることを定義する。In Figures 1 to 3, first the database file 24
When defining an area, it is defined that a storage unit that is update-exclusive can be searched.
このデータベースファイル24に対して更新制御手段1
3でアクセスしている更新プログラム手段11から更新
要求101を行うと更新制御手段13は、更新排他手段
15と一時更新排他手段16とを起動し更新処理を行い
、また検索要求102を行うと検索排他手段17を起動
し検索処理を行う。Update control means 1 for this database file 24
When an update request 101 is made from the update program means 11 accessed in step 3, the update control means 13 activates the update exclusive means 15 and the temporary update exclusive means 16 to perform update processing, and when a search request 102 is made, the update control means 13 starts the update exclusive means 15 and temporary update exclusive means 16 to perform the update process. The exclusive means 17 is activated to perform search processing.
さらに、検索制御手段14でアクセスしている検索プロ
グラム手段12から検索要求103を行うと一時検索排
他手段18を起動し検索処理を行う。Further, when a search request 103 is issued from the search program means 12 accessed by the search control means 14, the temporary search exclusion means 18 is activated to perform search processing.
したがって、第3図に示すように検索制御手段14でア
クセスしている検索プログラム手段12から検索要求1
03を行うと更新制御手段13でアクセスしている更新
プログラム手段11から更新処理がされていても更新処
理中を除いて排他待ちすることなく検索できる。Therefore, as shown in FIG.
If step 03 is performed, even if an update process is being performed from the update program unit 11 accessed by the update control unit 13, the search can be performed without waiting for exclusive use except when the update process is in progress.
以上説明したように、本発明は、更新処理が行われてい
るデータベースに対して大きなスルーブツトの低下をま
ねくことがなく、検索処理を行うことができる優れた効
果がある。As described above, the present invention has an excellent effect in that search processing can be performed without causing a large drop in throughput for a database that is being updated.
第1図は本発明一実施例ファイル排他制御装置をブロッ
ク構成図。
第2図は本発明のファイル排他制御装置のデータベース
ファイルの内容を示す図。
第3図は本発明のファイル排他制御装置の動作説明図。
11・・・更新プログラム手段、12・・・検索プログ
ラム手段、13・・・更新制御手段、14・・・検索制
御手段、15・・・更新排他手段、16・・・一時更新
排他手段、17・・・検索排他手段、18・・・一時検
索排他手段、19・・・データベース更新手段、20・
・・データベース検索手段、21・・・排他状態記憶手
段、22・・・第一排他識別情報、23・・・第二排他
識別情報、24・・・データベースファイノペ101・
・・更新要求、102.103・・・検索要求、201
.202・・・データ格納領域、203〜205・・・
格納単位、R・・・検索処理、U・・・更新処理。FIG. 1 is a block diagram of a file exclusive control device according to an embodiment of the present invention. FIG. 2 is a diagram showing the contents of a database file of the file exclusive control device of the present invention. FIG. 3 is an explanatory diagram of the operation of the file exclusive control device of the present invention. DESCRIPTION OF SYMBOLS 11... Update program means, 12... Search program means, 13... Update control means, 14... Search control means, 15... Update exclusive means, 16... Temporary update exclusive means, 17 ...Search exclusive means, 18... Temporary search exclusive means, 19... Database update means, 20.
. . . Database search means, 21 . . . Exclusive status storage means, 22 . . . First exclusive identification information, 23 .
...Update request, 102.103...Search request, 201
.. 202...Data storage area, 203-205...
Storage unit, R...search processing, U...update processing.
Claims (1)
ァイルと、この複数のデータ格納領域に対応して排他状
態を示す第一排他識別情報が格納された排他状態記憶手
段と、更新プログラム手段の更新要求または検索要求に
基づき上記第一排他識別情報を使用して更新処理または
検索処理の制御を行う更新制御手段と、検索プログラム
手段の検索要求に基づき検索処理の制御を行う検索制御
手段とを備えた ファイル排他制御装置において、 上記排他状態記憶手段は、上記第一排他識別情報とは別
に上記複数のデータ格納領域に対応して排他状態を示す
第二排他識別情報が格納される手段を含み、 上記第二排他識別情報がすでに更新排他、または検索排
他されている場合には解除になるまで待ち、排他されて
いない場合には更新処理終了まで更新排他する一時更新
排他手段と、上記第二排他識別情報がすでに更新排他さ
れている場合には解除になるまで待ち、排他されていな
い場合には検索処理終了まで検索排他する一時検索排他
手段とを備え、 上記更新制御手段は、上記更新要求に基づき上記一時更
新排他手段を起動する手段を含み、上記検索制御手段は
、上記検索要求に基づき上記一時検索排他手段を起動す
る手段を含む ことを特徴とするファイル排他制御装置。[Claims] 1. A database file divided into a plurality of data storage areas, and exclusive state storage means storing first exclusive identification information indicating an exclusive state corresponding to the plurality of data storage areas; update control means for controlling the update process or search process based on the update request or search request from the update program means using the first exclusive identification information; and search for controlling the search process based on the search request from the search program means. In the file exclusive control device, the exclusive state storage means stores second exclusive identification information indicating exclusive states corresponding to the plurality of data storage areas, separately from the first exclusive identification information. If the second exclusive identification information is already update-exclusive or search-exclusive, it waits until it is released, and if it is not exclusive, it is update-exclusive until the end of the update process; , temporary search exclusive means waits until the second exclusive identification information is already update-exclusive until it is released, and if the second exclusive identification information is not exclusive, performs search exclusion until the end of the search process, the update control means , a file exclusive control device comprising means for activating the temporary update exclusive means based on the update request, and wherein the search control means includes means for activating the temporary search exclusive means based on the search request.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1046170A JP2740238B2 (en) | 1989-02-27 | 1989-02-27 | File exclusive control unit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1046170A JP2740238B2 (en) | 1989-02-27 | 1989-02-27 | File exclusive control unit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02224152A true JPH02224152A (en) | 1990-09-06 |
| JP2740238B2 JP2740238B2 (en) | 1998-04-15 |
Family
ID=12739549
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1046170A Expired - Fee Related JP2740238B2 (en) | 1989-02-27 | 1989-02-27 | File exclusive control unit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2740238B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5809503A (en) * | 1993-07-08 | 1998-09-15 | Fujitsu Limited | Locking mechanism for check in/check out model which maintains data consistency amongst transactions |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS63196956A (en) * | 1987-02-10 | 1988-08-15 | Nec Corp | File exclusion system |
| JPS63307553A (en) * | 1987-06-08 | 1988-12-15 | Nec Corp | File control system |
-
1989
- 1989-02-27 JP JP1046170A patent/JP2740238B2/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS63196956A (en) * | 1987-02-10 | 1988-08-15 | Nec Corp | File exclusion system |
| JPS63307553A (en) * | 1987-06-08 | 1988-12-15 | Nec Corp | File control system |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5809503A (en) * | 1993-07-08 | 1998-09-15 | Fujitsu Limited | Locking mechanism for check in/check out model which maintains data consistency amongst transactions |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2740238B2 (en) | 1998-04-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH02224152A (en) | File exclusive control device | |
| JPH02297670A (en) | Data base retrieving system | |
| JP2843748B2 (en) | Exclusive control method | |
| JPH02246075A (en) | File retrieval system in magnetic tape volume | |
| JPH03129570A (en) | Data base retrieving system | |
| JPH0239225A (en) | Filing system | |
| JPH04112253A (en) | Data accessing method using multilayer buffer | |
| JPH02222028A (en) | Open system for designation of file label address of optical disk file | |
| JPH01120621A (en) | Retrieving/updating system for data base | |
| JPH06214849A (en) | Data base system | |
| JPH04354036A (en) | Data base management method | |
| JPS6019240A (en) | Loading system | |
| JPS63217446A (en) | Buffer control system | |
| JPS633351A (en) | Buffer retrieving control system | |
| JPH03251937A (en) | Data base retrieving system | |
| JPH06215033A (en) | Data processing device | |
| JPH02115936A (en) | Object program managing system | |
| JPH02287641A (en) | Access control system for direct organizing file | |
| JPH02264332A (en) | Retrieving and registering system for alphabetic name | |
| JPH0581100A (en) | File management system | |
| JPH0325640A (en) | Data base updating system | |
| JPS6358554A (en) | Document control system | |
| JPH02148365A (en) | Echo displaying system for graphic display device | |
| JPH03110643A (en) | Master file operating system | |
| JPH01191954A (en) | Cabinet management system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| LAPS | Cancellation because of no payment of annual fees |