JPH04205039A - Exclusive control on shared files in a plurality of operating systems - Google Patents

Exclusive control on shared files in a plurality of operating systems

Info

Publication number
JPH04205039A
JPH04205039A JP2321423A JP32142390A JPH04205039A JP H04205039 A JPH04205039 A JP H04205039A JP 2321423 A JP2321423 A JP 2321423A JP 32142390 A JP32142390 A JP 32142390A JP H04205039 A JPH04205039 A JP H04205039A
Authority
JP
Japan
Prior art keywords
access
exclusive
file
shared file
control flag
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
JP2321423A
Other languages
Japanese (ja)
Inventor
Masayoshi Nakatani
中谷 昌義
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 Solution Innovators Ltd
Original Assignee
NEC Solution Innovators Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP2321423A priority Critical patent/JPH04205039A/en
Publication of JPH04205039A publication Critical patent/JPH04205039A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To automatically carry out exclusive access control for shared files by providing an exclusive information management table that can be accessed from an access control module contained in a plurality of operating systems with information necessary for exclusive control of shared files. CONSTITUTION:In an exclusive information management table 7, a name of shared file 8, and a number of entries corresponding to the number of shared files 8 consisting of control flags, waiting times for exclusion are registered. The control flag 0 indicates no access, the control flag 1 indicates that information is being input in the table, the control flag 2 indicates that information is being output from the table, and the control flag 3 indicates that information is being updated. When an application program(AP) 3 on an operating system 1 issues a access request to the file 8, a module 5 references a corresponding entry control flag for an external file name on table 7. If the entry control flag indicates 0, it is understood that no access is carried out from AP4 on operating system 2 to file 8. Accordingly, the control flag is changed to 1, 2, or to 3 in accordance with type of access to make operating system 1 execute access from AP3 on operating system 1 to file 8.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は複数O3(オペレーティングシステム)におけ
る共有ファイル排他制御方式に関し、特に同一のコンピ
ュータシステム上に搭載された複数のOSからディスク
上の共有ファイルに対してアクセスを行う際に共有ファ
イルに対するアクセスを排他的に制御する複数OSにお
ける共有ファイル排他制御方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a shared file exclusive control method in multiple O3s (operating systems), and in particular, the present invention relates to a shared file exclusive control method in multiple O3s (operating systems), and in particular, a shared file on a disk from multiple OSs installed on the same computer system. The present invention relates to a shared file exclusive control method for multiple OSs that exclusively controls access to a shared file when accessing a shared file.

〔従来の技術〕[Conventional technology]

従来、同一のコンピュータシステム上に搭載された複数
OSにおける共有ファイルのアクセス方式では、OSの
共有ファイルに対するアクセス方法に違いがあったので
、共有ファイルに対するアクセスの排他制御は行われて
いなかった。
Conventionally, in shared file access methods for multiple OSs installed on the same computer system, exclusive control of access to shared files has not been performed because the OSs have different access methods for shared files.

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

上述した従来の複数O3における共有ファイルのアクセ
ス方式では、OSの共有ファイルに対するアクセス方法
の違いのために共有ファイルに対するアクセスの排他制
御が行われていなかったので、オペレータが意識して共
有ファイルの同時アクセスが行われないようにする必要
があり、人手の介入を必要とするために、アプリケーシ
ョンプログラムによるデータ更新処理等を実行させるに
当たり細心の注意が必要であるという欠点がある。
In the conventional shared file access method for multiple O3s described above, exclusive control of access to shared files was not performed due to differences in the OS access methods for shared files. Since it is necessary to prevent access, and manual intervention is required, there is a drawback that great care is required when executing data update processing by an application program.

また、人手の介入を必要とするために、アプリケーショ
ンプログラムを自動的に実行させることができないうえ
、更新ミスおよびデータ抜けが発生してアプリケーショ
ンプログラムの運用に甚大な支障をきたすおそれがある
という欠点がある。
In addition, since it requires human intervention, the application program cannot be executed automatically, and update errors and data omissions may occur, which may seriously impede the operation of the application program. be.

本発明の目的は、上述の点に鑑み、共有ファイルに対す
るアクセスの排他制御を自動的に行え、アプリケーショ
ンプログラムの自動実行が可能になるとともに、オペレ
ータの介入による処理時のミスをなくすことができるよ
うにした複数OSにおける共有ファイル排他制御方式を
提供することにある。
In view of the above points, an object of the present invention is to automatically perform exclusive control of access to shared files, enable automatic execution of application programs, and eliminate errors during processing due to operator intervention. The purpose of the present invention is to provide a shared file exclusive control method for multiple OSs.

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

本発明の複数OSにおける共有ファイル排他制御方式は
、同一のコンピュータシステム上に搭載された複数のO
3からディスク上の共有ファイルに対してアクセスを行
う際に共有ファイルに対するアクセスを排他的に制御す
る複数O3における共有ファイル排他制御方式において
、前記複数のOSから共通にアクセス可能で排他制御に
必要な情報を格納する排他情報管理テーブルと、この排
他情報管理テーブルを参照し前記共有ファイルに対する
アクセスの種類に応じてアクセスの可否を判断しアクセ
スが不可の場合にはアクセス待ちを行うアクセス制御モ
ジュールとを有する。
The shared file exclusive control method for multiple OSs of the present invention is applicable to multiple OSs installed on the same computer system.
In the shared file exclusive control method in multiple O3s that exclusively controls access to the shared file when accessing the shared file on the disk from 3. An exclusive information management table that stores information, and an access control module that refers to the exclusive information management table, determines whether access is possible according to the type of access to the shared file, and waits for access if access is not possible. have

〔作用〕[Effect]

本発明の複数OSにおける共有ファイル排他制御方式で
は、排他情報管理テーブルが複数のOSから共通にアク
セス可能で排他制御に必要な情報を格納し、アクセス制
御モジュールが排他情報管理テーブルを参照し共有ファ
イルに対するアクセスの種類に応じてアクセスの可否を
判断しアクセスが不可の場合にはアクセス待ちを行う。
In the shared file exclusive control method for multiple OSs of the present invention, an exclusive information management table is commonly accessible from multiple OSes and stores information necessary for exclusive control, and the access control module refers to the exclusive information management table and It is determined whether or not access is possible according to the type of access to, and if access is not possible, it waits for access.

〔実施例〕〔Example〕

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

第1図は、本発明の一実施例に係る複数OSにおける共
有ファイル排他制御方式の構成を示すブロフク図である
0本実施例の複数OSにおける共有ファイル排他制御方
式は、同一のコンピュータシステム(図示せず)上に搭
載された第1081および第2032と、第10SI上
で動作するアプリケーションプログラム3と、第203
2上で動作するアプリケーションプログラム4と、第1
051に含まれるアクセス制御モジュール5と、第20
82に含まれるアクセス制御モジュール6と、第10S
Iおよび第2082から共通にアクセス可能なディスク
上に作成された排他情報管理テーブル7と、同じく第1
081および第2032から共通にアクセス可能なディ
スク上に作成されたアプリケーションプログラム4およ
び5の共通ロジックによる単数または複数の共有ファイ
ル8とから構成されている。
FIG. 1 is a block diagram showing the configuration of a shared file exclusive control method in multiple OSs according to an embodiment of the present invention. (not shown) installed on the 1081st and 2032nd SI, the application program 3 running on the 10th SI, and the 203rd SI.
Application program 4 running on 2 and
The access control module 5 included in 051 and the 20th
The access control module 6 included in 82 and the 10th S
Exclusive information management table 7 created on a disk that can be accessed in common from I and 2082nd, and also from 1st
081 and 2032, and one or more shared files 8 based on the common logic of application programs 4 and 5 created on a disk that can be accessed in common from 081 and 2032.

第2図を参照すると、排他情報管理テーブル7は、外部
ファイル名(共有ファイル8の名称)。
Referring to FIG. 2, the exclusive information management table 7 contains external file names (names of shared files 8).

制御フラグおよび排他時の待ち時間からなる共有ファイ
ル8の数に対応するエントリを登録しており、制御フラ
グは“0°のときにアクセスなしを、°1′のときに入
力(読出し)中を、”2”のときに出力(書込み)中を
、“3”のときに更新(読出しおよび書込み)中をそれ
ぞれ示す。
An entry corresponding to the number of shared files 8 is registered, consisting of a control flag and a waiting time for exclusive use. , "2" indicates that output (writing) is in progress, and "3" indicates that updating (reading and writing) is in progress.

次に、このように構成された本実施例の複数OSにおけ
る共有ファイル排他制御方式の動作について説明する。
Next, the operation of the shared file exclusive control method in the multiple OSs of this embodiment configured as described above will be explained.

第10sI上のアプリケーションプログラム3から共有
ファイル8に対するアクセス要求が発行されると、アク
セス制御モジュール5は、排他情報管理テーブル7の対
応する外部ファイル名のエントリの制御フラグを参照し
て、“O”のときには第2032上のアプリケーション
プログラム4から同一の共有ファイル8に対してアクセ
スが行われていないことがわかるので、制御フラグをア
クセスの種1s(入力、出力または更新)に応じて“l
”、”2”または“3”に変更し、第10Sl上のアプ
リケーションプログラム3からの共有ファイル8に対す
るアクセスを実行させる。
When the application program 3 on the 10th sI issues an access request to the shared file 8, the access control module 5 refers to the control flag of the entry of the corresponding external file name in the exclusive information management table 7, and sets it to "O". When this happens, it can be seen that the same shared file 8 is not being accessed from the application program 4 on the 2032nd, so the control flag is set to "l" according to the type of access 1s (input, output, or update).
”, “2” or “3” to allow the application program 3 on the 10th Sl to access the shared file 8.

第1051上のアプリケーションプログラム3が共有フ
ァイル8に対するアクセスを行っている途中で、第20
82上のアプリケーションプログラム4から同一の共有
ファイル8に対するアクセス要求が発行されると、アク
セス制御モジュール6は、排他情報管理テーブル7の対
応する外部ファイル名のエントリの制御フラグを参照し
て、“1”のときには第10Sl上のアプリケーション
プログラム3から共有ファイル8に対してアクセスとし
て入力が行われていることがわかるので、第2082上
のアプリケーションプログラム4からのアクセスも入力
であれば、第2082上のアプリケーションプログラム
4からの共有ファイル8に対するアクセスも実行させる
。他方、第20S2上のアプリケーションプログラム4
からのアクセスが入力以外(すなわち、出力または更新
)であれば、アクセス制御モジュール6は、第2052
上のアプリケーションプログラム4からの共有ファイル
8に対するアクセスを待たせる。
While the application program 3 on the 1051st is accessing the shared file 8, the application program 3 on the 20th
When an access request to the same shared file 8 is issued from the application program 4 on 82, the access control module 6 refers to the control flag of the entry of the corresponding external file name in the exclusive information management table 7 and sets it to "1". ”, it can be seen that the input is being made as an access to the shared file 8 from the application program 3 on the 10th Sl, so if the access from the application program 4 on the 2082nd is also an input, then the access from the application program 4 on the 2082nd Access to the shared file 8 from the application program 4 is also executed. On the other hand, application program 4 on the 20th S2
If the access from is other than input (i.e. output or update), the access control module 6
Access to the shared file 8 from the above application program 4 is made to wait.

また、排他情報管理テーブル7の対応する外部ファイル
名のエントリの制御フラグを参照して、“2”または“
3”のときには、アクセス制御モジュール6は、第10
sI上のアプリケーションプログラム3から共有ファイ
ル8に対してアクセスとして出力または更新が行われて
いることがわかるので、第2032上のアプリケーショ
ンプログラム4からの共有ファイル8に対するアクセス
を待たせる。
Also, refer to the control flag of the entry of the corresponding external file name in the exclusive information management table 7, and set it to “2” or “
3”, the access control module 6
Since it can be seen that the application program 3 on the sI is accessing and outputting or updating the shared file 8, the access to the shared file 8 from the application program 4 on the 2032nd is made to wait.

アクセス制御モジュール6により第2082上のアプリ
ケーションプログラム4からの共有ファイル8に対する
アクセスが待たせられた状態で、第10SI上のアプリ
ケーションプログラム3の共有ファイル8に対するアク
セスが終了すると、アクセス制御モジュール5は、排他
情報管理テーブル7の対応する外部ファイル名のエント
リの制御フラグを“0”に書き換える。したがって、共
有ファイル8に対するアクセスを待たせていたアクセス
制御モジュール6は、排他情報管理テーブル7の対応す
る外部ファイル名のエントリの制御フラグを参照して“
0”になったことを検出し、第2082上のアプリケー
ションプログラム4からの待たせられていたアクセスの
種類(出力または更新)に応じて制御フラグを”2”ま
たは“3”に変更して、第2082上のアプリケーショ
ンプログラム4からの共有ファイル8に対するアクセス
を実行させる。
When access to the shared file 8 by the application program 3 on the 10th SI ends while the access to the shared file 8 from the application program 4 on the 2082nd SI is made to wait by the access control module 6, the access control module 5: The control flag of the entry of the corresponding external file name in the exclusive information management table 7 is rewritten to "0". Therefore, the access control module 6 that had been waiting to access the shared file 8 refers to the control flag of the entry of the corresponding external file name in the exclusive information management table 7 and
0", and changes the control flag to "2" or "3" depending on the type of access (output or update) that has been kept waiting from the application program 4 on the 2082nd, Access to the shared file 8 from the 2082nd application program 4 is executed.

なお、上記実施例では、排他情報管理テーブル7を第1
081および第2032から共通にアクセス可能なディ
スク上に形成した場合について説明したが、排他情報管
理テーブル7を第1051および第2032から共通に
アクセス可能な主記憶上に形成してもよい。
Note that in the above embodiment, the exclusive information management table 7 is
Although the case has been described in which the exclusive information management table 7 is formed on a disk that is commonly accessible from the 1051st and 2032nd nodes, the exclusive information management table 7 may be formed on a main memory that is commonly accessible from the 1051st and 2032nd nodes.

また、上記実施例では、同一のコンピュータシステム上
に搭載されたOSが第1031および第2032の2つ
の場合を例にとって説明したが、同一のコンピュータシ
ステム上に搭載される○Sは3つ以上であってもよい。
Further, in the above embodiment, the case where there are two OSs installed on the same computer system, 1031st and 2032nd, was explained as an example, but three or more ○Ss are installed on the same computer system. There may be.

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

以上説明したように本発明は、OSに含まれるアクセス
制御モジュールから共通にアクセス可能な排他情報管理
テーブル上にファイルの排他制御に必要な情報をもつよ
うにしたことにより、共有ファイルに対するアクセスの
排他制御を自動的に行うことができるという効果がある
As explained above, the present invention provides exclusive access to shared files by having information necessary for exclusive control of files on an exclusive information management table that can be commonly accessed from access control modules included in the OS. This has the advantage that control can be performed automatically.

また、人手の介入がなくなるので、アプリケーションプ
ログラムの自動実行が可能になるとともに、オペレータ
の介入による処理時のミスをなくすことができるという
効果がある。
Furthermore, since there is no need for human intervention, application programs can be automatically executed, and errors during processing due to operator intervention can be eliminated.

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

第1図は本発明の一実施例に係る複数OSにおける共存
ファイル排他制御方式の構成を示すブロック図、 第2図は第1図中の排他情報管理テーブルの内容を示す
図である。 図において、 1・・・第1O3, 2・・・第2O3, 3,4・アプリケーションプログラム、5.6・アクセ
ス制御モジュール、 7・・・排他情報管理テーブル、 8・・・共有ファイルである。
FIG. 1 is a block diagram showing the configuration of a coexistence file exclusive control method in multiple OSs according to an embodiment of the present invention, and FIG. 2 is a diagram showing the contents of the exclusive information management table in FIG. 1. In the figure, 1... 1st O3, 2... 2nd O3, 3. 4. Application program, 5.6. Access control module, 7. Exclusive information management table, 8. Shared file.

Claims (1)

【特許請求の範囲】 同一のコンピュータシステム上に搭載された複数のOS
からディスク上の共有ファイルに対してアクセスを行う
際に共有ファイルに対するアクセスを排他的に制御する
複数OSにおける共有ファイル排他制御方式において、 前記複数のOSから共通にアクセス可能で排他制御に必
要な情報を格納する排他情報管理テーブルと、 この排他情報管理テーブルを参照し前記共有ファイルに
対するアクセスの種類に応じてアクセスの可否を判断し
アクセスが不可の場合にはアクセス待ちを行うアクセス
制御モジュールと を有することを特徴とする複数OSにおける共有ファイ
ル排他制御方式。
[Claims] Multiple OSs installed on the same computer system
In a shared file exclusive control method for multiple OSs that exclusively controls access to a shared file on a disk when accessing a shared file from a disk, information that is commonly accessible from the multiple OSes and necessary for exclusive control is provided. and an access control module that refers to the exclusive information management table, determines whether or not access is possible according to the type of access to the shared file, and waits for access if access is not possible. A shared file exclusive control method for multiple OSs, which is characterized by:
JP2321423A 1990-11-26 1990-11-26 Exclusive control on shared files in a plurality of operating systems Pending JPH04205039A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2321423A JPH04205039A (en) 1990-11-26 1990-11-26 Exclusive control on shared files in a plurality of operating systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2321423A JPH04205039A (en) 1990-11-26 1990-11-26 Exclusive control on shared files in a plurality of operating systems

Publications (1)

Publication Number Publication Date
JPH04205039A true JPH04205039A (en) 1992-07-27

Family

ID=18132388

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2321423A Pending JPH04205039A (en) 1990-11-26 1990-11-26 Exclusive control on shared files in a plurality of operating systems

Country Status (1)

Country Link
JP (1) JPH04205039A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0950423A (en) * 1995-07-21 1997-02-18 Bull Sa Data transmission method between remote information-processing systems

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0950423A (en) * 1995-07-21 1997-02-18 Bull Sa Data transmission method between remote information-processing systems

Similar Documents

Publication Publication Date Title
US5717950A (en) Input/output device information management system for multi-computer system
US5255387A (en) Method and apparatus for concurrency control of shared data updates and queries
KR20090066765A (en) Method and apparatus for migrating task in multicore platform
JPH04284548A (en) Data base exclusive controlling system
JPH04205039A (en) Exclusive control on shared files in a plurality of operating systems
JPH03216751A (en) Method of transferring file
JPS61184643A (en) Starting control system for virtual computer
JP2748407B2 (en) Database processing system
JPS62144257A (en) Cache memory
JPS6150356B2 (en)
JPH04260141A (en) Data shared processor
JPS6359639A (en) System for controlling compatibility of file access
JP3511935B2 (en) File writing method in multi-thread program
JPH0260011B2 (en)
JP2663600B2 (en) Control table relocation processing method
JPH0754469B2 (en) Input / output instruction execution unit for virtual computer system
JPS59105167A (en) Multiprocessor for job step dispersion processing
JPS63157234A (en) Program correcting system
JPH0229867A (en) Design execution control system
JPH0675757A (en) Link system for virtual space resident program
JPH10501083A (en) Method and system for calling a function from a program running in another environment
JPS59117620A (en) Computer system
JPH01120631A (en) Control system for executing data of divided compiling system
JPH03218532A (en) Control system for arbitrary starting program
JPH0281239A (en) File shared control system for virtual machine system