JPH0458343A - Control system for shared use of file - Google Patents

Control system for shared use of file

Info

Publication number
JPH0458343A
JPH0458343A JP2170841A JP17084190A JPH0458343A JP H0458343 A JPH0458343 A JP H0458343A JP 2170841 A JP2170841 A JP 2170841A JP 17084190 A JP17084190 A JP 17084190A JP H0458343 A JPH0458343 A JP H0458343A
Authority
JP
Japan
Prior art keywords
file
management information
job
file management
memory
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
JP2170841A
Other languages
Japanese (ja)
Inventor
Shunei Takano
高野 俊英
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 JP2170841A priority Critical patent/JPH0458343A/en
Publication of JPH0458343A publication Critical patent/JPH0458343A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To improve the processing efficiency for control of the shared use of a file by registering the file control information that is not retrieved for a long time into a file control information recording file and the file control information that is frequently retrieved into a memory up-queue. CONSTITUTION:When a file where a certain job is not used by any job is used exclusively or sharedly for the first time, the corresponding file control information is registered in the end of a memory up-queue 4. Meanwhile the corresponding file control information is moved to the end of the queue 4 from this queue 4 or a file control information recording file 5 when a certain job is used by another job or its own job. When the number of pieces of file control information stored in the queue 4 exceeds the number decided by a system, the file control information that is not retrieved for the longest time in the queue 4 is moved to the file 5. Thus the input/output frequency is reduced to the file 5 and the processing efficiency is improved for control of the shared use of the file.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はファイル共有使用制御方式に関し、特に計算機
システム(以下、単にシステムという)において異なる
または同一のジョブがファイルを共有使用するためのフ
ァイル共有使用制御方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a file sharing usage control method, and in particular to a file sharing method for sharing files between different or the same jobs in a computer system (hereinafter simply referred to as the system). Concerning usage control methods.

〔従来の技術〕[Conventional technology]

ある時点であるジョブが使用しているファイルを管理す
る情報(以下、ファイル管理情報という)は、メモリ上
または特定のファイル(以下、ファイル管理情報記録フ
ァイルという)内に登録されており、どのジョブにも使
用されていないファイルに対応するファイル管理情報は
、メモリ上およびファイル管理情報記録ファイル内のい
ずれにも登録されていない。あるジョブが新たにファイ
ルを排他または共有使用するときには、システムは、当
該ファイルに対応するファイル管理情報を検索すること
によって当該ファイルがすでに使用されているか否かを
認識し、ファイル共有使用制御を行う。ファイル管理情
報の検索は、まずメモリ上で行われ、次にファイル管理
情報記録ファイル内で行われる。上記技術は、従来の技
術および本発明の双方に通じるファイル共有使用制御方
式の基本である。
Information that manages files used by a certain job at a certain point in time (hereinafter referred to as file management information) is registered in memory or in a specific file (hereinafter referred to as file management information recording file). File management information corresponding to a file that is not even used is not registered in the memory or in the file management information recording file. When a certain job newly uses a file exclusively or in a shared manner, the system searches the file management information corresponding to the file to recognize whether the file is already in use and performs file sharing usage control. . A search for file management information is first performed on the memory, and then within the file management information recording file. The above technique is the basis of a file sharing usage control scheme that is common to both the prior art and the present invention.

ところで、従来のファイル共有使用制御方式では、ある
時点でどのジョブにも使用されていないファイルが初め
て何らかのジョブに使用されるときには、その時点にお
いて何らかのジョブに使用されているファイルの数がシ
ステムで定められた数未満であれば初めて使用されるフ
ァイルに対応するファイル管理情報はメモリ上に登録さ
れ、そうでなければファイル管理情報記録ファイル内に
登録されていた。そして、当8亥ファイルがそれに使用
するすへてのジョブによって解放されない限り、−旦フ
アイル管理情報記録ファイル内に登録されたファイル管
理情報はファイル管理情報記録ファイル内に登録された
ままで、メモリ上に登録されたファイル管理情報はメモ
リ上に登録されたままになっていた。
By the way, in the conventional file sharing usage control method, when a file that is not being used by any job at a certain point in time is used for the first time in some job, the number of files being used by some job at that point is determined by the system. If the number is less than the specified number, the file management information corresponding to the file being used for the first time is registered in the memory, and if not, it is registered in the file management information recording file. And, unless the current file is released by all the jobs that use it, the file management information registered in the file management information recording file will remain registered in the file management information recording file and will remain in memory. The file management information registered in was still registered in memory.

このため、対応するファイル管理情報がメモリ上に登録
されているファイルが長時間にわたっであるジョブに使
用されていて、かつメモリ上のファイル管理情報の数が
システムで定められた数に達していると、初めて使用さ
れるファイルに対応するファイル管理情報がメモリ上に
登録されずに、ファイル管理情報記録ファイル内に登録
される。
Therefore, if a file whose corresponding file management information is registered in memory has been used for a long time in a job, and the number of file management information in memory has reached the number specified by the system. If the file is used for the first time, the file management information corresponding to the file is not registered in the memory, but is registered in the file management information recording file.

したがって、後にそのファイルを共有使用するときに、
当該ファイルに対応するファイル管理情報がメモリ上に
登録されていないために、ファイル管理情報記録ファイ
ル内を検索しなければならなくなる。対応するファイル
管理情報がメモリ上に登録されているファイルが新たに
共有使用されることが頻繁にあればよいが、そうでなけ
れば、はとんど検索されないファイル管理情報がメモリ
上に登録されて、頻繁に検索されるファイル管理情報が
ファイル管理情報記録ファイル内に登録されているため
、ファイル管理情報記録ファイルに対する入出力回数が
多くなり、ファイル共有使用制御処理の効率が悪くなる
So when you later use that file for shared use,
Since the file management information corresponding to the file is not registered in the memory, the file management information recording file must be searched. It is good if a file whose corresponding file management information is registered in memory is newly shared and used frequently, but if this is not the case, file management information that is rarely searched is registered in memory. Since frequently searched file management information is registered in the file management information recording file, the number of inputs and outputs to the file management information recording file increases, and the efficiency of the file sharing usage control process deteriorates.

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

上述した従来のファイル共有使用制御方式では、ファイ
ル管理情報記録ファイル内に登録されたファイル管理情
報はファイル管理情報記録ファイル内に登録されたまま
で、メモリ上に登録されたファイル管理情報はメモリ上
に登録されたままになっていたので、頻繁に検索される
ファイル管理情報がファイル管理情報記録ファイル内に
登録されていた場合にはファイル管理情報記録ファイル
に対する入出力回数が多くなり、ファイル共有使用制御
処理の効率が悪くなるという欠点がある。
In the conventional file sharing usage control method described above, the file management information registered in the file management information recording file remains registered in the file management information recording file, and the file management information registered in the memory is not stored in the memory. If frequently searched file management information is registered in the file management information recording file, the number of inputs and outputs to the file management information recording file will increase, resulting in file sharing usage control. This has the disadvantage that processing efficiency deteriorates.

本発明の目的は、上述の点に鑑み、頻繁に検索されるフ
ァイル管理情報がメモリ上に登録されている確率を高く
し、ファイル管理情報記録ファイルに対する入出力回数
を削減し、ファイルの共有使用制御処理の効率化を図る
ようにしたファイル共有使用制御方式を提供することに
ある。
In view of the above-mentioned points, an object of the present invention is to increase the probability that frequently searched file management information is registered in memory, reduce the number of inputs and outputs to a file management information recording file, and reduce the number of inputs and outputs to a file management information recording file. An object of the present invention is to provide a file sharing usage control method that improves the efficiency of control processing.

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

本発明のファイル共有使用制御方式は、異なるまたは同
一のジョブがファイルを共有使用するために必要となる
ファイル管理情報が、一部はメモリ上に、一部はファイ
ル管理情報記録ファイル内に登録され、あるジョブが新
たにファイルを排他または共有使用するときに当該ファ
イルが別のあるジョブまたは自ジョブによってすでに使
用されているか否かを認識するためにファイル管理情報
を検索する計算機システムにおいて、ファイル管理情報
をメモリ上に計算機システムで定められた数までキュー
として登録するメモリ上キューと、あるジョブがどのジ
ョブにも使用されていないファイルを初めて排他または
共有使用するときに使用するファイルに対応するファイ
ル管理情報を前記メモリ上キューの末尾に登録し、当該
ジョブが別のあるジョブまたは自ジョブがすでに使用し
ているファイルを共有使用するときに前記メモリ上キュ
ーまたは前記ファイル管理情報記録ファイル内にすでに
登録されているファイル管理情報を前記メモリ上キュー
の末尾に移動し、その結果前記メモリ上キュー内のファ
イル管理情報の数が計算機システムで定められた数を越
える場合には前記メモリ上キューの先頭のファイル管理
情報を前記ファイル管理情報記録ファイルに移動するフ
ァイル共有使用制御機構とを有する。
In the file sharing usage control method of the present invention, file management information required for shared use of files by different or the same jobs is partially registered in the memory and partially in the file management information recording file. , File management in a computer system that searches file management information in order to recognize whether a file is already being used by another job or the own job when a job newly uses a file exclusively or in a shared manner. An in-memory queue that registers information as a queue in memory up to the number determined by the computer system, and a file that corresponds to the file used when a job uses a file that is not used by any other job exclusively or for the first time. Management information is registered at the end of the memory queue, and when the job in question shares a file that is already being used by another job or its own job, the management information is registered at the end of the memory queue or the file management information recording file. The registered file management information is moved to the end of the memory queue, and if the number of file management information in the memory queue exceeds the number determined by the computer system, the registered file management information is moved to the beginning of the memory queue. and a file sharing usage control mechanism that moves the file management information of the file to the file management information recording file.

〔作用〕[Effect]

本発明のファイル共有使用制御方式では、メモリ上キュ
ーがファイル管理情報をメモリ上に計算機システムで定
められた数までキューとして登録し、ファイル共有使用
制御機構があるジョブがどのジョブにも使用されていな
いファイルを初めて排他または共存使用するときに使用
するファイルに対応するファイル管理情報をメモリ上キ
ューの末尾に登録し、当該ジョブが別のあるジョブまた
は自ジョブがすでに使用しているファイルを共有使用す
るときにメモリ上キューまたはファイル管理情報記録フ
ァイル内にすでに登録されているファイル管理情報をメ
モリ上キューの末尾に移動し、その結果メモリ上キュー
内のファイル管理情報の数が計算機システムで定められ
た数を越える場合にはメモリ上キューの先頭のファイル
管理情報をファイル管理情報記録ファイルに移動する。
In the file sharing usage control method of the present invention, an in-memory queue registers file management information in memory as a queue up to the number determined by the computer system, and a job with a file sharing usage control mechanism is used by any job. When using a file that is not available for the first time exclusively or coexisting, the file management information corresponding to the file to be used is registered at the end of the memory queue, and the job in question shares the file that is already being used by another job or by its own job. When doing so, the file management information already registered in the memory queue or file management information recording file is moved to the end of the memory queue, and as a result, the number of file management information in the memory queue is determined by the computer system. If the number exceeds the number, the file management information at the head of the memory queue is moved to the file management information recording file.

〔実施例〕〔Example〕

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

第1図は、本発明の一実施例に係るファイル共有使用制
御方式の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of a file sharing usage control system according to an embodiment of the present invention.

本実施例のファイル共有使用制御方式は、ジョブ1およ
び2と、ファイル共有使用側1HjlJ、構3と、メモ
リ上キュー4と、ファイル管理情報記録ファイル5とか
ら構成されている。
The file sharing usage control system of this embodiment is composed of jobs 1 and 2, a file sharing user side 1HjlJ, a structure 3, a memory queue 4, and a file management information recording file 5.

ジョブ1および2からは、ファイル割当て要求6および
7がファイル共有使用制御機構3に出力されるよう番こ
なっている。
From jobs 1 and 2, file allocation requests 6 and 7 are output to the file sharing usage control mechanism 3.

メモリ上キュー4は、ファイル管理情報をメモリ上にシ
ステムで定められた数まで登録するキューである。
The memory queue 4 is a queue in which file management information is registered in the memory up to the number determined by the system.

次に、このように構成された本実施例のファイル共有使
用制御方式の動作について説明する。
Next, the operation of the file sharing usage control method of this embodiment configured as described above will be explained.

いま、ジョブ1がジョブ1の実行のために必要なファイ
ルを確保しようとしており、そのファイルはその時点に
おいてどのジョブにも使用されてないとする。このとき
、ジョブ1は、ファイル共有使用制御機構3に対してフ
ァイル割当て要求6を行う。
Assume that Job 1 is trying to secure a file necessary for executing Job 1, and that file is not being used by any job at that time. At this time, the job 1 makes a file allocation request 6 to the file sharing usage control mechanism 3.

ファイル共有使用制御機構3は、ファイル割当て要求6
を受けて、メモリ上キュー4内およびファイル管理情報
記録ファイル5内をこの順に当該ファイルに対応するフ
ァイル管理情報が登録されているか否かを検索する。こ
の場合、当該ファイルハどのジョブにも使用されていな
いから、メモリ上キュー4およびファイル管理情報記録
ファイル5のいずれにも当該ファイルに対応するファイ
ル管理情報は登録されでおらず、ファイル共有使用制御
機構3は、当該ファイルに対応するファイル管理情報を
メモリ上キュー4の末尾に登録する。
The file sharing usage control mechanism 3 makes a file allocation request 6
Then, the memory queue 4 and file management information recording file 5 are searched in this order to see if file management information corresponding to the file is registered. In this case, since the file in question is not used by any job, the file management information corresponding to the file is not registered in either the memory queue 4 or the file management information recording file 5, and the file sharing usage control The mechanism 3 registers the file management information corresponding to the file at the end of the memory queue 4.

この結果、メモリ上キュー4内のファイル管理情報の数
がシステムで定められた数を越える場合には、ファイル
共有使用制御機構3は、メモリ上キュー4の先頭のファ
イル管理情報をファイル管理情報記録ファイル5内に移
動する。
As a result, if the number of file management information in the memory queue 4 exceeds the number determined by the system, the file sharing usage control mechanism 3 records the file management information at the head of the memory queue 4. Move to file 5.

次に、ジョブ2がジョブ2の実行のために必要なファイ
ルを確保しようとしており、そのファイルはその時点に
おいてジョブ1に使用されているとする。このとき、ジ
ョブ2は、ファイル共有使用制御機構3に対してファイ
ル割当て要求7を行う。
Next, assume that Job 2 is trying to secure a file necessary for executing Job 2, and that file is being used by Job 1 at that point. At this time, the job 2 makes a file allocation request 7 to the file sharing usage control mechanism 3.

ファイル共有使用制御機構3は、ファイル割当て要求7
を受けて、メモリ上キュー4内およびファイル管理情報
記録ファイル5内をこの順に当該ファイルに対応するフ
ァイル管理情報が登録されているか否かを検索する。こ
の場合、当該ファイルはジョブ1に使用されているから
、メモリ上キュー4およびファイル管理情報記録ファイ
ル5のいずれかに当該ファイルに対応するファイル管理
情報が登録されており、ファイル共有使用制御機構3は
、当該ファイルに対応するファイル管理情報をメモリ上
キュー4の末尾に移動する。この結果、メモリ上キュー
4内のファイル管理情報の数がシステムで定められた数
を越える場合には、ファイル共有使用制御機構3は、メ
モリ上キュー4の先頭のファイル管理情報をファイル管
理情報記録ファイル5内に移動する。
The file sharing usage control mechanism 3 sends a file allocation request 7
Then, the memory queue 4 and file management information recording file 5 are searched in this order to see if file management information corresponding to the file is registered. In this case, since the file is used for job 1, the file management information corresponding to the file is registered in either the memory queue 4 or the file management information recording file 5, and the file sharing usage control mechanism 3 moves the file management information corresponding to the file to the end of the memory queue 4. As a result, if the number of file management information in the memory queue 4 exceeds the number determined by the system, the file sharing usage control mechanism 3 records the file management information at the head of the memory queue 4. Move to file 5.

このようにして、長時間検索されたことのないファイル
管理情報はファイル管理情報記録ファイル5内に登録さ
れ、顧繁に検索されたファイル化管理情報がメモリ上キ
ュー4内に登録されることになり、ファイル管理情報の
検索時にファイル管理情報がメモリ上キュー4内に登録
されている確率を高くすることができる。
In this way, file management information that has not been searched for a long time is registered in the file management information recording file 5, and filed management information that has been searched frequently is registered in the memory queue 4. Therefore, it is possible to increase the probability that the file management information is registered in the memory queue 4 when searching for the file management information.

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

以上説明したように本発明は、あるジョブがその時点に
おいてどのジョブにも使用されていないファイルを初め
て排他または共有使用するときに初めて使用するファイ
ルに対応するファイル管理情報をメモリ上キューの末尾
に登録し、あるジョブが他のあるジョブまたは自ジョブ
によって使用されているファイルを共有使用するときに
共有使用するファイルに対応するファイル管理情報をメ
モリ上キューまたはファイル管理情報記録ファイルから
メモリ上キューの末尾に移動し、メモリ上キュー内のフ
ァイル管理情報の数がシステムで定められた数を越える
場合にはメモリ上キュー内で最も長時間検索されなかっ
たファイル管理情報をファイル管理情報記録ファイルに
移動することにより、当:亥ファイルを共有イ吏用する
ために当該ファイルに対応するファイル管理情報を検索
するときに、ファイル管理情報がファイル管理情報記録
ファイル内でなくメモリ上キュー内に登録されている確
率を高くし、ファイル管理情報記録ファイルに対する入
出力回数を削減し、ファイルの共存使用制御処理の効率
化を図ることができるという効果がある。
As explained above, the present invention stores file management information corresponding to the file to be used for the first time at the end of a queue in memory when a certain job uses a file that is not used by any other job for the first time exclusively or in a shared manner. When a job registers and shares a file that is being used by another job or its own job, the file management information corresponding to the shared file is stored in the memory queue or from the file management information recording file. If the number of file management information in the memory queue exceeds the number specified by the system, move the file management information that has not been searched for the longest time in the memory queue to the file management information recording file. By doing this, when searching for the file management information corresponding to the file in order to share the file, the file management information is registered in the memory queue instead of in the file management information recording file. This has the effect of increasing the probability that the files will be used, reducing the number of inputs and outputs to the file management information recording file, and increasing the efficiency of file coexistence use control processing.

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

第1図は本発明の一実施例に係るファイル共有使用制御
方式の構成を示すブロック図である。 図において、 ■、2・ジョブ、 3・・・ファイル共有使用制御機構、 4・・・メモリ上キュー 5・・・ファイル管理情報記録ファイル、6.7・ファ
イル割当て要求である。
FIG. 1 is a block diagram showing the configuration of a file sharing usage control system according to an embodiment of the present invention. In the figure, (1) 2.Job, 3.File sharing usage control mechanism, 4.Memory queue 5.File management information recording file, 6.7.File allocation request.

Claims (1)

【特許請求の範囲】 異なるまたは同一のジョブがファイルを共有使用するた
めに必要となるファイル管理情報が、一部はメモリ上に
、一部はファイル管理情報記録ファイル内に登録され、
あるジョブが新たにファイルを排他または共有使用する
ときに当該ファイルが別のあるジョブまたは自ジョブに
よってすでに使用されているか否かを認識するためにフ
ァイル管理情報を検索する計算機システムにおいて、フ
ァイル管理情報をメモリ上に計算機システムで定められ
た数までキューとして登録するメモリ上キューと、 あるジョブがどのジョブにも使用されていないファイル
を初めて排他または共有使用するときに使用するファイ
ルに対応するファイル管理情報を前記メモリ上キューの
末尾に登録し、当該ジョブが別のあるジョブまたは自ジ
ョブがすでに使用しているファイルを共有使用するとき
に前記メモリ上キューまたは前記ファイル管理情報記録
ファイル内にすでに登録されているファイル管理情報を
前記メモリ上キューの末尾に移動し、その結果前記メモ
リ上キュー内のファイル管理情報の数が計算機システム
で定められた数を越える場合には前記メモリ上キューの
先頭のファイル管理情報を前記ファイル管理情報記録フ
ァイルに移動するファイル共有使用制御機構と を有することを特徴とするファイル共有使用制御方式。
[Claims] File management information necessary for different or the same jobs to share a file is registered partly in memory and partly in a file management information recording file,
In a computer system that searches for file management information in order to recognize whether or not the file is already being used by another job or the own job when a job newly uses a file exclusively or in a shared manner, file management information is An in-memory queue that registers files in memory up to a number determined by the computer system as a queue, and a file management system that corresponds to the file used when a job uses a file that is not used by any other job exclusively or shared for the first time. The information is registered at the end of the memory queue, and when the job in question shares a file that is already being used by another job or its own job, the information is already registered in the memory queue or the file management information recording file. If the number of file management information in the memory queue exceeds the number determined by the computer system, the file management information stored in the memory queue is moved to the end of the memory queue. A file sharing usage control method comprising: a file sharing usage control mechanism that moves file management information to the file management information recording file.
JP2170841A 1990-06-28 1990-06-28 Control system for shared use of file Pending JPH0458343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2170841A JPH0458343A (en) 1990-06-28 1990-06-28 Control system for shared use of file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2170841A JPH0458343A (en) 1990-06-28 1990-06-28 Control system for shared use of file

Publications (1)

Publication Number Publication Date
JPH0458343A true JPH0458343A (en) 1992-02-25

Family

ID=15912322

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2170841A Pending JPH0458343A (en) 1990-06-28 1990-06-28 Control system for shared use of file

Country Status (1)

Country Link
JP (1) JPH0458343A (en)

Similar Documents

Publication Publication Date Title
JP3510042B2 (en) Database management method and system
US8549526B2 (en) Access control apparatus and access control method
JPH04284548A (en) Data base exclusive controlling system
JPH0458343A (en) Control system for shared use of file
JPH06139082A (en) Task queue managing system
JPH0457127A (en) Version managing device
JPH04257062A (en) Data processor using hash queue
JP2787107B2 (en) Buffer control system and device
JP2007004326A (en) Data access method and program therefor
JPH021056A (en) Data base processing system
JPS63217446A (en) Buffer control system
JPH02197948A (en) File transfer system
JP2776747B2 (en) File transfer device
JPH02206840A (en) Object storage control system
JPH05225029A (en) File exclusive control device
JPH0447346A (en) Decentraiized file processing system
JPH0561739A (en) Swap file managing system
JPH03282749A (en) Temporary update data control system
JPH1083340A (en) Device and method for memory area management, and medium where memory area managing program is recorded
JPS63310020A (en) Data base subschema looking-ahead system
JPS62160545A (en) System for managing unused area of direct access storage device
JPH05313963A (en) Deciding system for storing block to data file
JPH01279339A (en) File writing processing system
JPS62278660A (en) Access control system
JPS63298543A (en) Access control system for file with key