JPH0612310A - File simultaneous editing device - Google Patents

File simultaneous editing device

Info

Publication number
JPH0612310A
JPH0612310A JP4167156A JP16715692A JPH0612310A JP H0612310 A JPH0612310 A JP H0612310A JP 4167156 A JP4167156 A JP 4167156A JP 16715692 A JP16715692 A JP 16715692A JP H0612310 A JPH0612310 A JP H0612310A
Authority
JP
Japan
Prior art keywords
file
edited
partial area
editing
exclusive management
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
JP4167156A
Other languages
Japanese (ja)
Inventor
Hisashi Kato
尚志 加藤
Akira Tanaka
朗 田中
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP4167156A priority Critical patent/JPH0612310A/en
Publication of JPH0612310A publication Critical patent/JPH0612310A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To make plural alterations at the same time while maintaining the consistency of information for a file to be edited, and to maintain the consistency of information between the object file to be edited and a relative partial area not to be edited at the time of editing operation. CONSTITUTION:One editing device 4a when starting editing the partial area 2a of a 1st file to be edited inquires the possibility of editing of one exclusive control table controller 5a. The exclusive control table controller 5a checks whether or not the editing operation can be done by referring to an exclusive control table 8 and updates the exclusive control table 8 when the editing operation can be performed so as to indicate that exclusive control is carried out. Then the relative partial area of the partial area 2a of the 1st file to be edited is checked by referring to a relative information table and when the area is found, the exclusive control table 8 is updated by regarding it as an object of the exclusive control. Then the editing operation is performed and at its end, the exclusive control table 8 is put back to its original state and the exclusive control is reset.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は計算機上で被編集ファ
イルの部分領域に対して排他制御を行いながら、被編集
ファイルに対して同時に複数の変更を実施可能にする同
時編集方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a simultaneous editing system which enables a plurality of changes to be made on an edited file at the same time while performing exclusive control on a partial area of the edited file on a computer. .

【0002】[0002]

【従来の技術】一般に編集作業は、被編集ファイル内情
報の整合性を保つために同時に複数の変更を実施するこ
とは避けなければならない。このために排他管理を実施
することによって同時に同一被編集ファイルに対する変
更を行うことを回避し、被編集ファイル内情報の整合性
を保つ必要がある。
2. Description of the Related Art Generally, in editing work, it is necessary to avoid making a plurality of changes at the same time in order to maintain the consistency of information in a file to be edited. For this reason, it is necessary to avoid making simultaneous changes to the same edited file by performing exclusive management, and to maintain the consistency of the information in the edited file.

【0003】編集作業における排他管理は、ファイルロ
ックを実施することによって実現されている。ファイル
ロックとは2つの変更が同時に行われてはいけない被編
集ファイルで、現在その被編集ファイルを編集している
編集装置がないことを変更中の印の有無で確認し(有な
らロック)、もしあれば変更をあきらめるか延期するこ
とにして、もしなければ変更を始めようとする編集装置
が変更中の印をつけることにより、他の変更が行えない
ようにする(ロックする)。そして変更が終了した時に
編集作業中の印を消すことである。
Exclusive management in editing work is realized by implementing a file lock. A file lock is an edited file that cannot be changed at the same time, and it is confirmed that there is no editing device that is currently editing the edited file by checking the presence or absence of a change mark (lock if present), If so, give up or postpone the change, and if not, the editing device that initiates the change marks it as being changed so that no other changes can be made (locked). Then, when the change is completed, the mark of the editing work is erased.

【0004】従来このような要求に応えるものとして、
図11に示すような排他管理方式が提案されている。こ
の図11は、Super Ascii(出版社 株式会
社アスキー)1991年9月号に示された装置の構成図
であり、図において1は被編集ファイルで、4aは被編
集ファイル1を変更する第1の編集装置であり、4bも
被編集ファイル1を変更する第2の編集装置である。1
0は被編集ファイル1の排他管理を行う排他管理装置で
ある。
Conventionally, in order to meet such a demand,
An exclusive management method as shown in FIG. 11 has been proposed. FIG. 11 is a block diagram of the apparatus shown in the September 1991 issue of Super Ascii (publishing company ASCII), in which 1 is an edited file and 4a is a first edited file. And an editing device 4b is a second editing device for changing the edited file 1. 1
Reference numeral 0 is an exclusive management device for exclusive management of the edited file 1.

【0005】次に、図11と従来の排他管理装置10の
動作を示すフローチャート図12を参照しながら説明す
る。まず第1の編集装置4aは編集作業を開始するにあ
たり排他管理装置10に被編集ファイル1にファイルロ
ックを行う要求をする。排他管理装置10は被編集ファ
イル1がファイルロックされているかどうか、そしてフ
ァイルロックされている場合にはファイルロックを要求
した編集装置4a以外の装置に関しての情報を持ってい
る。要求を受けたこの排他管理装置10は図12に示す
ファイルロック情報確認ステップ37を実行する。この
ファイルロック情報確認ステップ37では被編集ファイ
ル1が既にファイルロックの対象として排他管理装置1
0に登録されているかどうかを調べる。被編集ファイル
1がファイルロックされていたならば、図12のファイ
ルロック失敗通知ステップ40で第1の編集装置4aに
対して被編集ファイル1へのファイルロック要求が失敗
したことを伝える。ファイルロック情報確認ステップ3
7の結果、被編集ファイル1がフィルロックされていな
い場合には、図12で示されるファイルロック情報登録
ステップ38を実行する。ファイルロック情報登録ステ
ップ38では被編集ファイル1が第1の編集装置4aに
よってファイルロックされるように排他管理装置10に
登録する。次に図12のファイルロック成功通知ステッ
プ39で第1の編集装置4aに対して被編集ファイル1
へのファイルロック要求に成功したことを伝える。この
ようにしてファイルロックに成功した第1の編集装置4
aは被編集ファイル1の変更を行なう。
Next, a description will be given with reference to FIG. 11 and a flowchart of FIG. 12 showing the operation of the conventional exclusive management device 10. First, the first editing device 4a requests the exclusive management device 10 to lock the file to be edited 1 when starting the editing work. The exclusive management device 10 has information regarding whether or not the edited file 1 is file-locked, and when the file-to-be-edited 1 is file-locked, the device other than the editing device 4a that has requested the file lock. The exclusive management device 10 that has received the request executes the file lock information confirmation step 37 shown in FIG. In this file lock information confirmation step 37, the file to be edited 1 is already subject to the file lock and the exclusive management device 1
Check if it is registered to 0. If the file to be edited 1 is file locked, the file lock request step 40 shown in FIG. 12 notifies the first editing device 4a that the file lock request to the file to be edited 1 has failed. File lock information confirmation step 3
As a result of No. 7, when the edit file 1 is not fill-locked, the file lock information registration step 38 shown in FIG. 12 is executed. In the file lock information registration step 38, the file to be edited 1 is registered in the exclusion management device 10 so that the file is locked by the first editing device 4a. Next, at the file lock success notification step 39 of FIG. 12, the edited file 1 is sent to the first editing device 4a.
A successful file lock request to. The first editing device 4 that succeeds in file locking in this way
a changes the edited file 1.

【0006】次にこの状態で、第2の編集装置4bが被
編集ファイル1に対して編集作業を開始しようとして排
他管理装置10にファイルロック要求を発行した場合を
考える。排他管理装置10は上記のように被編集ファイ
ル1のファイルロック情報を調べ、既に被編集ファイル
1がファイルロックされていることを第2の編集装置4
bに伝える。また、第2の編集装置4bが被編集ファイ
ル1を強制的に変更しようとした場合にはその変更を拒
否する。このようにして被編集ファイル1は第1の編集
装置4aによるファイルロックが解除されるまで第2の
編集装置4bには変更されない。
Next, in this state, consider a case where the second editing apparatus 4b issues a file lock request to the exclusive management apparatus 10 in order to start editing work on the edited file 1. The exclusive management device 10 checks the file lock information of the edited file 1 as described above, and confirms that the edited file 1 is already file locked by the second editing device 4
tell b. If the second editing device 4b forcibly tries to change the edited file 1, the change is rejected. In this way, the edited file 1 is not changed by the second editing device 4b until the file lock by the first editing device 4a is released.

【0007】そして第1の編集装置4aは、変更が終了
した後で排他管理装置10に対してファイルロックの解
除要求を発行する。これを受けた排他管理装置10では
被編集ファイル1が第1の編集装置4aによってロック
されているという情報を削除する。この後に発行された
第2の編集装置4bの被編集ファイル1に対してのファ
イルロック要求は受け付けられ、第2の編集装置4bに
よる被編集ファイル1の変更が可能になる。
Then, the first editing device 4a issues a file lock release request to the exclusive management device 10 after the change is completed. Upon receipt of this, the exclusive management device 10 deletes the information that the edited file 1 is locked by the first editing device 4a. A file lock request issued to the edited file 1 by the second editing apparatus 4b after this is accepted, and the edited file 1 can be changed by the second editing apparatus 4b.

【0008】[0008]

【発明が解決しようとする課題】従来の編集方式は上記
のような編集方式によっているので排他管理の対象とな
る単位が被編集ファイル毎であった。このため1つの編
集装置が被編集ファイルをファイルロックして更新を行
っている時には他の編集装置は被編集ファイルに対して
更新ができず、同時に被編集ファイルに対して複数の更
新処理を行えないために作業効率が低下するという問題
点があった。
Since the conventional editing method is based on the above-described editing method, the unit of exclusive management is each edited file. For this reason, when one editing device locks an edited file to update it, the other editing device cannot update the edited file, and at the same time, can perform multiple update processes on the edited file. There is a problem that work efficiency is reduced because it is not present.

【0009】また、1つの編集装置が被編集ファイルを
ファイルロックして更新を行なわなければ、他の編集装
置による変更を許してしまう。その結果1つの編集装置
による変更と他の編集装置による変更が独自に行われ、
被編集ファイルでの情報の整合性を失うなどの問題点が
あるので,効率を考慮すれば適切な単位のロック,更に
同単位の関連情報領域のロックなどが必要であるが,こ
れらはできないという問題があった。
If one editing device does not lock the file to be edited and updates the edited file, the other editing device permits the modification. As a result, changes made by one editing device and changes made by another editing device are made independently,
Since there is a problem such as loss of information consistency in the edited file, considering the efficiency, it is necessary to lock the appropriate unit and the related information area of the same unit, but these cannot be done. There was a problem.

【0010】この発明は上記のような問題点を解消する
ためになされたもので、被編集ファイルに対して同時に
複数の更新を情報の整合性を保ちつゝ行えるようにする
ことを目的としている。
The present invention has been made to solve the above problems, and an object thereof is to enable a plurality of updates to an edited file at the same time while maintaining the consistency of information. .

【0011】[0011]

【課題を解決するための手段】この発明による同時編集
装置は、被編集ファイルの部分領域に対する排他管理情
報を持つ排他管理テーブルと、編集装置の要求に応じて
排他管理テーブルに被編集ファイルの部分領域の編集可
能性を問い合わせ更にその内容を更新する排他管理テー
ブル制御装置と、被編集ファイルの編集可能範囲をこの
問い合わせ結果に基づいて制御する編集装置を設けたも
のである。
A simultaneous editing apparatus according to the present invention includes an exclusive management table having exclusive management information for a partial area of an edited file and a part of the edited file in the exclusive management table in response to a request from the editing apparatus. An exclusive management table control device for inquiring the editability of an area and further updating the contents thereof, and an edit device for controlling the editable range of a file to be edited based on the inquiry result are provided.

【0012】また、被編集ファイルの部分領域の関連情
報を同一又は異なるフアイル上に持つ時,これらの情報
を保持する関連情報テーブルを設けたものである。
Further, when the related information of the partial area of the file to be edited is held on the same or different file, the related information table for holding this information is provided.

【0013】[0013]

【作用】この発明におけるファイル同時編集装置は被編
集ファイルのある部分領域に対して、同時に複数の更新
要求が発生したら、処理要求の1つを受けた編集装置と
排他管理テーブル制御装置は、選択により関連情報テ−
ブルを見て関連情報があればその分も含めて排他管理テ
ーブルを更新し、他の更新処理要求の編集装置と排他管
理テーブル制御装置による該被編集ファイルの部分領域
へのアクセスを禁止し、更新処理が終了したら、排他管
理テーブルの内容を元に戻して排他管理を解除する。以
下同様にして他の更新処理の要求を受けた他の編集装置
と排他管理テーブル制御装置によるアクセスを可能にす
る。この様な処理を被編集ファイルの各部分領域及び選
択によりその関連情報領域についても情報の整合性を保
ちつゝ同時に行い、結果的に被編集ファイルの複数の編
集処理を同時に行う。
In the simultaneous editing apparatus for files according to the present invention, when a plurality of update requests are simultaneously issued to a partial area of a file to be edited, the editing apparatus and the exclusive management table control apparatus which receive one of the processing requests select Related information
The exclusive management table is updated including the relevant information when the user sees the table, and access to the partial area of the edited file by the editing device and the exclusive management table control device of the other update processing request is prohibited, When the update process is completed, the contents of the exclusion management table are restored to cancel the exclusion management. In the same manner, the exclusive management table control device can be accessed by other editing devices that have received another update processing request. Such processing is performed at the same time while maintaining information consistency in each partial area of the file to be edited and its related information area by selection, and as a result, a plurality of editing processing of the file to be edited are simultaneously performed.

【0014】[0014]

【実施例】【Example】

実施例1.図1はこの発明による同時編集方式の請求項
1の一実施例の全体構成図である。図1において、1は
被編集ファイル、2は被編集ファイル1の部分領域の全
般,2aは第1の被編集ファイルの部分領域、2bは第
2の被編集ファイルの部分領域、4は編集装置,4aは
第1の被編集ファイルの部分領域2aを変更する第1の
編集装置であり、5は排他管理テ−ブル制御装置,5a
は第1の編集装置4aが第1の被編集ファイルの部分領
域2aの編集可能性を問い合わせ或は排他管理テーブル
を更新する第1の排他管理テーブル制御装置、4bは第
2の被編集ファイルの部分領域2bを変更する第2の編
集装置、5bは第2の編集装置4bによる第2の被編集
ファイルの部分領域2bの編集可能性を問い合わせ或い
は排他管理テーブルを更新する第2の排他管理テーブル
制御装置である。8は第1の排他管理テーブル制御装置
5aと第2の排他管理テーブル制御装置5bが参照し、
或いは更新する全ての被編集ファイルの部分領域に関す
る排他管理情報を持つ排他管理テーブルである。
Example 1. FIG. 1 is an overall configuration diagram of an embodiment of claim 1 of the simultaneous editing system according to the present invention. In FIG. 1, 1 is an edited file, 2 is a general partial area of the edited file 1, 2a is a partial area of a first edited file, 2b is a partial area of a second edited file, and 4 is an editing device. , 4a is a first editing device for changing the partial area 2a of the first edited file, 5 is an exclusive management table control device, 5a
Is a first exclusive management table control device for inquiring the editability of the partial area 2a of the first edited file by the first editing device 4a or updating the exclusive management table, and 4b is for the second edited file. A second editing device 5b for changing the partial area 2b is a second exclusive management table for inquiring the editability of the partial area 2b of the second edited file by the second editing device 4b or updating the exclusive management table. It is a control device. 8 is referred to by the first exclusive management table control device 5a and the second exclusive management table control device 5b,
Alternatively, it is an exclusive management table having exclusive management information regarding partial areas of all edited files to be updated.

【0015】次に、前記のように構成された同時編集方
式の動作を図1〜図6を参照しながら説明する。図2
は、排他管理テーブル制御装置5が編集装置4から被編
集ファイル1の部分領域2の編集可能性を問い合わせら
れた時の動作を示すフローチャート、図3〜図6は、下
記の各編集作業時の排他管理テーブル8の内容をそれぞ
れ示している図であり、この中で図3は被編集ファイル
の部分領域に対しての編集作業が行なわれる前の初期状
態を示している。
Next, the operation of the simultaneous editing method configured as described above will be described with reference to FIGS. Figure 2
Is a flow chart showing the operation when the exclusive management table control device 5 is inquired by the editing device 4 about the editability of the partial area 2 of the edited file 1. FIGS. 3 to 6 show the following edit operations. FIG. 4 is a diagram showing the contents of the exclusive management table 8, in which FIG. 3 shows the initial state before the editing work is performed on the partial area of the edited file.

【0016】第1の編集装置4aが第1の被編集ファイ
ルの部分領域2aの編集作業を開始する時に、第1の排
他管理テーブル制御装置5aに対して第1の被編集ファ
イルの部分領域2aの編集可能性を問い合わせる。問い
合わせを受けた第1の排他管理テーブル制御装置5aが
動作を開始して、図2に示す排他管理情報確認ステップ
31を行う。この排他管理情報確認ステップ31は排他
管理テーブル8を参照して第1の被編集ファイルの部分
領域2aに対しての編集作業が行えるかを調べる。被編
集ファイル1の排他管理テーブル8は最初に図3に示す
ように空白の初期状態であるので、第1の被編集ファイ
ルの部分領域2aの編集作業が可能であることがわか
る。次に図2に示す排他管理情報更新ステップ32を実
行する。この排他管理情報更新ステップ32では排他管
理情報確認ステップ31で編集可能であると判明した第
1の被編集ファイルの部分領域2aが第1の編集装置4
aによって排他管理されている(排他的にアクセス)こ
とを示すために排他管理テーブル制御装置5aは排他管
理テーブル8を書き換える。これによって排他管理テー
ブル8の内容は図4に示すようになる。次に図2に示す
排他管理成功通知ステップ33を実行する。排他管理成
功通知ステップ33では第1の排他管理テーブル制御装
置5aを介して第1の被編集ファイルの部分領域2aの
編集が可能であることを通知する。このように第1の排
他管理テーブル制御装置5aの動作によって第1の被編
集ファイルの部分領域2aを排他管理することに成功し
た第1の編集装置4aは第1の被編集ファイルの部分領
域2aの更新を行う。
When the first editing device 4a starts the editing operation of the partial area 2a of the first edited file, the first exclusive management table control device 5a instructs the first exclusive management table controller 5a to edit the partial area 2a of the first edited file. Inquire about editability of. The first exclusive management table control device 5a which has received the inquiry starts its operation and performs the exclusive management information confirmation step 31 shown in FIG. In the exclusive management information confirmation step 31, it is checked by referring to the exclusive management table 8 whether the editing work can be performed on the partial area 2a of the first edited file. Since the exclusive management table 8 of the edited file 1 is initially in a blank initial state as shown in FIG. 3, it can be understood that the editing operation of the partial area 2a of the first edited file is possible. Next, the exclusive management information updating step 32 shown in FIG. 2 is executed. In this exclusive management information updating step 32, the partial area 2a of the first edited file which is found to be editable in the exclusive management information confirming step 31 is the first editing device 4
The exclusive management table controller 5a rewrites the exclusive management table 8 to indicate that it is exclusively managed by a (exclusively accessed). As a result, the contents of the exclusion management table 8 become as shown in FIG. Next, the exclusive management success notification step 33 shown in FIG. 2 is executed. In the exclusive management success notification step 33, the fact that the partial area 2a of the first edited file can be edited is notified via the first exclusive management table controller 5a. In this way, the first editing device 4a that succeeds in exclusive management of the partial area 2a of the first edited file by the operation of the first exclusion management table control device 5a is the partial area 2a of the first edited file. Update.

【0017】次に第1の編集装置4aの更新中に,第2
の編集装置4bが第1の被編集ファイルの部分領域2a
の編集作業を開始しようとした場合、第2の排他管理テ
ーブル制御装置5bが動作を開始して、上記と同じよう
に排他管理情報確認ステップ31を行う。排他管理情報
確認ステップ31では図4で示される状態の排他管理テ
ーブル8を参照するが、既に第1の編集装置4aによっ
て第1の被編集ファイルの部分領域2aは排他制御され
ていることがわかるので図2に示す排他管理失敗通知ス
テップ34を実行する。排他管理失敗通知ステップ34
では第2の編集装置4bに対して第1の被編集ファイル
の部分領域2aの編集が不可能であることを通知する。
このように第2の排他管理テーブル制御装置5bの動作
によって第1の被編集ファイルの部分領域2aを排他管
理することに失敗したことを認識した第2の編集装置4
bは第1の被編集ファイルの部分領域2aを更新するこ
とはできない。
Next, while the first editing device 4a is being updated, the second editing device 4a
The editing device 4b of the first partial file 2a of the first edited file.
When the editing work is started, the second exclusive management table control device 5b starts the operation and performs the exclusive management information confirmation step 31 in the same manner as above. In the exclusive management information confirmation step 31, the exclusive management table 8 in the state shown in FIG. 4 is referred to, but it can be seen that the first editing device 4a has already exclusive-controlled the partial area 2a of the first edited file. Therefore, the exclusion management failure notification step 34 shown in FIG. 2 is executed. Exclusive management failure notification step 34
Then, the second editing device 4b is notified that the partial area 2a of the first edited file cannot be edited.
In this way, the second editing device 4 recognizes that the exclusive management of the partial area 2a of the first edited file has failed due to the operation of the second exclusive management table control device 5b.
b cannot update the partial area 2a of the first edited file.

【0018】続いて第2の編集装置4bが改めて第2の
被編集ファイルの部分領域2bの編集作業を開始しよう
とした場合、第2の排他管理テーブル制御装置5bが動
作を開始して、上記のように排他管理情報確認ステップ
31を行う。排他管理情報確認ステップ31は図4で示
される状態の排他管理テーブル8を参照し、第2の被編
集ファイルの部分領域2bは排他制御されていないので
第2の被編集ファイルの部分領域2bの編集作業が可能
であることがわかる。次に排他管理情報更新ステップ3
2を実行し編集可能であると判明した第2の被編集ファ
イルの部分領域2bが第2の編集装置4bによって更新
されていることを示すために排他管理テーブル制御装置
5bは排他管理テーブル8を書き換える。これによって
排他管理テーブル8は図5のようになる。次に排他管理
成功通知ステップ33では第2の排他管理テーブル制御
装置5bを介して第2の被編集ファイルの部分領域2b
の編集が可能であることを通知する。第2の排他管理テ
ーブル制御装置5bによって第2の被編集ファイルの部
分領域2bを排他管理することに成功した第2の編集装
置4bは第2の被編集ファイルの部分領域2bの更新を
行う。
Subsequently, when the second editing device 4b again tries to start the editing work of the partial area 2b of the second edited file, the second exclusive management table control device 5b starts the operation and As described above, the exclusive management information confirmation step 31 is performed. The exclusive management information confirmation step 31 refers to the exclusive management table 8 in the state shown in FIG. 4, and since the partial area 2b of the second edited file is not subjected to exclusive control, the partial area 2b of the second edited file is It turns out that editing work is possible. Next, exclusive management information update step 3
The exclusive management table control device 5b sets the exclusive management table 8 to indicate that the partial area 2b of the second edited file which is found to be editable by executing step 2 is updated by the second editing device 4b. rewrite. As a result, the exclusion management table 8 becomes as shown in FIG. Next, in the exclusion management success notification step 33, the partial area 2b of the second edited file is transmitted via the second exclusion management table control device 5b.
Notify that the can be edited. The second editing device 4b, which succeeds in exclusive management of the partial area 2b of the second edited file by the second exclusive management table control device 5b, updates the partial area 2b of the second edited file.

【0019】第1の被編集ファイルの部分領域2aの変
更を終えた第1の編集装置4aは、第1の排他管理テー
ブル制御装置5aに編集作業を終了した通知を行う。こ
の通知を受けた第1の排他管理テーブル制御装置5aは
排他管理テーブル8から第1の編集装置4aの排他管理
に関する情報を削除するように書き換える。これにより
排他管理テーブル8は図6のようになる。この結果第1
の被編集ファイルの部分領域2aに対しての排他管理が
解除されて第2の編集装置4bによる編集作業が可能に
なる。
The first editing device 4a, which has finished changing the partial area 2a of the first edited file, notifies the first exclusive management table control device 5a of the completion of the editing work. The first exclusion management table control device 5a receiving this notification rewrites the exclusion management table 8 so as to delete the information regarding the exclusion management of the first editing device 4a. As a result, the exclusion management table 8 becomes as shown in FIG. As a result of this
The exclusive management for the partial area 2a of the file to be edited is released, and the editing work by the second editing device 4b becomes possible.

【0020】被編集ファイル1の任意の各部分領域に対
する更新要求が発生した場合、各部分領域について、以
上の処理を行うが、これらの部分領域の処理は各部分領
域間では併行して進むので、被編集ファイル1の全体で
見れば複数の更新処理要求に対して同時に編集処理を行
う。 また上記実施例では被編集ファイル1を変更する
のは第1の編集装置4aと第2の編集装置4b及び関連
装置の2組について説明したが、これは2組でなく任意
の数の編集装置であってもよい。なお、これらは次に示
す実施例2の場合も同様である。
When an update request is made for any of the partial areas of the file to be edited 1, the above processing is performed for each partial area. However, the processing of these partial areas proceeds in parallel between the partial areas. If the entire edited file 1 is viewed, the editing process is simultaneously performed for a plurality of update process requests. Further, in the above embodiment, the file to be edited 1 is changed by the two groups of the first editing apparatus 4a, the second editing apparatus 4b and the related apparatus. However, this is not the two groups but an arbitrary number of editing apparatuses. May be The same applies to the case of the second embodiment described below.

【0021】実施例2.図7はこの発明による同時編集
装置の請求項2の1実施例の全体構成図である。図7に
おいて、図1と同一又は相当部分には同一符号を付して
いるのでこれらの説明は省略する。2cは第1の被編集
フアイルの部分領域2aの関連部分領域である第3の被
編集フアイルの部分領域,9は第1の排他管理テーブル
制御装置5aが排他管理テーブル8を変更する際に参照
する関連部分領域に関する情報を持つ関連情報テーブル
である。図8は、排他管理テーブル制御装置5aが編集
装置4aから被編集ファイルの部分領域2aの編集可能
性を問い合わせられた時の動作を示すフローチャート、
図3と図9は各編集作業時の排他管理テーブルの状態を
示している図であり、図3は前記したように被編集ファ
イルの部分領域2に対しての編集作業が行なわれる前の
初期状態を示しており、図10は被編集ファイル1の関
連情報テーブル9を示している。
Example 2. FIG. 7 is an overall configuration diagram of an embodiment of claim 2 of the simultaneous editing apparatus according to the present invention. In FIG. 7, parts that are the same as or correspond to those in FIG. Reference numeral 2c is a partial area of the third edited file, which is a related partial area of the partial area 2a of the first edited file, and 9 is referred to when the first exclusive management table controller 5a changes the exclusive management table 8. It is a related information table which has information about the related partial area. FIG. 8 is a flowchart showing the operation when the exclusive management table control device 5a is inquired by the editing device 4a about the editability of the partial area 2a of the edited file,
3 and 9 are diagrams showing the state of the exclusive management table at the time of each editing work, and FIG. 3 shows the initial state before the editing work is performed on the partial area 2 of the file to be edited as described above. 10 shows the state, and FIG. 10 shows the related information table 9 of the edited file 1.

【0022】次に動作について説明する。図7、図8に
おいて、第1の編集装置4aが第1の被編集ファイルの
部分領域2aの編集作業を開始する時に、第1の排他管
理テーブル制御装置5aに対して第1の被編集ファイル
の部分領域2aの編集可能性を問い合わせる。問い合わ
せを受けた第1の排他管理テーブル制御装置5aが動作
を開始して、図8に示す排他管理情報確認ステップ31
を実行する。この排他管理情報確認ステップ31は排他
管理テーブル8を参照して第1の被編集ファイルの部分
領域2aに対して編集作業が行えるか否かを調べる。被
編集ファイル1の排他管理テーブル8は図3に示すよう
に空白の初期状態であるので、第1の被編集ファイルの
部分領域2aの編集作業が可能であることがわかる。次
に図8に示す排他管理情報更新ステップ32を実行す
る。この排他管理情報更新ステップ32では排他管理情
報確認ステップ31で編集可能であると判明した第1の
被編集ファイルの部分領域2aが第1の編集装置4aに
よって排他管理されていることを示すために排他管理テ
ーブル制御装置5aは排他管理テーブル8を書き換え
る。そして図8に示す関連情報確認ステップ35を実行
する。
Next, the operation will be described. In FIG. 7 and FIG. 8, when the first editing device 4a starts the editing work of the partial area 2a of the first edited file, the first edited file is sent to the first exclusive management table control device 5a. Inquiry about the editability of the partial area 2a. The first exclusive management table control device 5a that has received the inquiry starts its operation, and the exclusive management information confirmation step 31 shown in FIG.
To execute. This exclusion management information confirmation step 31 refers to the exclusion management table 8 to check whether or not the editing work can be performed on the partial area 2a of the first edited file. Since the exclusive management table 8 of the edited file 1 is in a blank initial state as shown in FIG. 3, it can be seen that the editing operation of the partial area 2a of the first edited file is possible. Next, the exclusive management information updating step 32 shown in FIG. 8 is executed. In this exclusive management information updating step 32, in order to show that the partial area 2a of the first edited file found to be editable in the exclusive management information confirming step 31 is exclusively managed by the first editing device 4a. The exclusive management table control device 5a rewrites the exclusive management table 8. Then, the related information confirmation step 35 shown in FIG. 8 is executed.

【0023】関連情報とは、ここでは第1の被編集ファ
イルの部分領域2aの内容と論理的に関連、或は一体を
なす情報であり、多くの場合同時にアクセス、或は更新
されるもので第1の被編集ファイルの部分領域2aとは
別の領域に書き込まれている情報をいう。例えば、被編
集ファイル1の内容がソースコードの場合、それが呼び
出す関数が関連情報に当る。関連情報確認ステップ35
では図10の関連情報テーブル9を参照して第1の被編
集ファイルの部分領域2aの関連部分領域がないかを調
べる。なければ排他管理成功通知ステップ33を実行す
る。関連情報テーブル9には第1の被編集ファイルの部
分領域2aに関しての関連情報が含まれているので図8
で示す関連情報に基づく排他管理情報更新ステップ36
を行う。関連情報排他管理登録ステップ36では関連情
報テーブル9の情報に従って関連部分領域である第3の
被編集ファイルの部分領域2cも第1の編集装置4aに
よって排他管理されるように排他管理テーブル制御装置
5aは排他管理テーブル8を書き換える。これで排他管
理テーブル8は図9のようになる。次に図8に示す排他
管理成功通知ステップ33を行う。排他管理成功通知ス
テップ33では第1の排他管理テーブル制御装置5aを
介して第1の被編集ファイルの部分領域2aの編集が可
能であることを通知する。このように第1の排他管理テ
ーブル制御装置5aの動作によって第1の被編集ファイ
ルの部分領域2aを排他管理することに成功すると同時
に、第1の被編集ファイルの部分領域2aの関連部分領
域である第3の被編集ファイルの部分領域2cの排他管
理も行った。この後第1の編集装置4aは第1の被編集
ファイルの部分領域2a、更に必要なら関連する第3の
被編集ファイルの部分領域2cの更新を行う。なお、第
3の被編集ファイルの部分領域2cは被編集フアイル1
以外のフアイル上にある時も、更新に当たっては排他管
理テ−ブル8を介して編集作業の可否を調べられるなど
前記と同じように、排他管理の必要な処理がされること
は言うまでもない。
The related information here is information that is logically related to or integrated with the contents of the partial area 2a of the first edited file, and is often accessed or updated at the same time. The information is written in an area different from the partial area 2a of the first edited file. For example, when the content of the edited file 1 is a source code, the function called by it corresponds to the related information. Related information confirmation step 35
Then, referring to the related information table 9 of FIG. 10, it is checked whether or not there is a related partial area of the partial area 2a of the first edited file. If not, the exclusive management success notification step 33 is executed. Since the related information table 9 contains the related information about the partial area 2a of the first edited file, FIG.
Exclusive management information update step 36 based on related information shown by
I do. In the related information exclusive management registration step 36, the exclusive management table control device 5a is controlled so that the partial region 2c of the third edited file, which is a related partial region, is also exclusively managed by the first editing device 4a according to the information in the related information table 9. Rewrites the exclusion management table 8. The exclusive management table 8 is now as shown in FIG. Next, the exclusive management success notification step 33 shown in FIG. 8 is performed. In the exclusive management success notification step 33, the fact that the partial area 2a of the first edited file can be edited is notified via the first exclusive management table controller 5a. As described above, the exclusive management of the partial area 2a of the first edited file is succeeded by the operation of the first exclusive management table control device 5a, and at the same time, in the related partial area of the partial area 2a of the first edited file. Exclusive management of the partial area 2c of a certain third edited file was also performed. After this, the first editing device 4a updates the partial area 2a of the first edited file and, if necessary, the related partial area 2c of the third edited file. The partial area 2c of the third edited file is the edited file 1
Needless to say, even when the file is on a file other than the above, in the same manner as described above, the processing necessary for exclusive management is performed, such as whether or not the editing work can be checked via the exclusive management table 8 when updating.

【0024】第1の被編集ファイルの部分領域2aの更
新を終えた第1の編集装置4aは、第1の排他管理テー
ブル制御装置5aに編集作業を終了する通知を行う。こ
の通知を受けた第1の排他管理テーブル制御装置5aは
排他管理テーブル8から第1の編集装置4aの第1の被
編集ファイルの部分領域2aと第3の被編集ファイルの
部分領域2cの排他制御に関する情報を削除するように
書き換える。これで排他管理テーブル8は図3の状態に
戻り、排他制御は解除される。この結果第1の被編集フ
ァイルの部分領域2aに対しての排他管理が解除される
と同時に第3の被編集ファイルの部分領域2cに対して
の排他管理解除も行う。
The first editing device 4a, which has finished updating the partial area 2a of the first edited file, notifies the first exclusive management table control device 5a of the end of the editing work. Upon receiving this notification, the first exclusive management table control device 5a excludes from the exclusive management table 8 the partial area 2a of the first edited file and the partial area 2c of the third edited file of the first editing apparatus 4a. Rewrite to delete the control information. With this, the exclusion management table 8 returns to the state of FIG. 3, and the exclusion control is released. As a result, the exclusive management of the partial area 2a of the first edited file is released, and at the same time, the exclusive management of the partial area 2c of the third edited file is released.

【0025】上記実施例では被編集ファイルの部分領域
を排他管理の対象としたが、この被編集ファイルの部分
領域は被編集ファイル全体でもよく、また被編集ファイ
ルと異なる他のファイル全体もしくは部分でもよい。
In the above embodiment, the partial area of the edited file is targeted for exclusive management. However, the partial area of the edited file may be the entire edited file, or may be another file or a portion different from the edited file. Good.

【0026】また、更新対象の領域の関連情報の有無は
関連情報テーブル9の内容を調べて判定したが、他の方
法により判定してもよい。例えば、更新対象領域の内容
により関連情報の有無を判定し、有なら関連情報テーブ
ル9に書き込み、これらの関連情報領域の排他制御も併
行してもよい。
Although the presence / absence of relevant information in the area to be updated is determined by checking the content of the relevant information table 9, it may be determined by another method. For example, the presence / absence of related information may be determined based on the contents of the update target area, and if there is, the related information may be written in the related information table 9 and the exclusive control of these related information areas may be performed concurrently.

【0027】[0027]

【発明の効果】この発明によれば、ファイルの編集作業
の際に被編集ファイルの部分領域だけを排他管理の対象
とするので、同一の被編集ファイルに対して情報の整合
性を保ちつゝ複数の編集作業を同時に行うことができ、
編集作業の効率を高めるという効果がある。
According to the present invention, since only a partial area of a file to be edited is subject to exclusive management when a file is edited, information consistency can be maintained for the same file to be edited. You can do multiple edits at the same time,
This has the effect of improving the efficiency of editing work.

【0028】また、排他管理の対象として被編集ファイ
ルの部分領域との関連部分領域も自動的に排他管理の対
象とすることにより、編集作業時に被編集ファイルの内
容の整合性を保全しつゝ、同時に編集作業を行い、作業
効率を高める効果がある。
Further, by automatically subjecting the partial area related to the partial area of the edited file to the exclusive management as the exclusive management object, it is possible to maintain the consistency of the content of the edited file during the editing work. At the same time, editing work is performed at the same time, which has the effect of improving work efficiency.

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

【図1】図1は、この発明の請求項1の一実施例の全体
構成図である。
FIG. 1 is an overall configuration diagram of an embodiment of claim 1 of the present invention.

【図2】図2は、この発明による請求項1の排他管理テ
ーブル制御装置の動作を示すフローチャートである。
FIG. 2 is a flow chart showing an operation of the exclusive management table control device of claim 1 according to the present invention.

【図3】図3は、この発明による排他管理テーブルの初
期状態を示す図である。
FIG. 3 is a diagram showing an initial state of an exclusive management table according to the present invention.

【図4】図4は、この発明による排他管理テーブルの状
態を示す図である。
FIG. 4 is a diagram showing a state of an exclusive management table according to the present invention.

【図5】図5は、この発明による排他管理テーブルの状
態を示す図である。
FIG. 5 is a diagram showing a state of an exclusive management table according to the present invention.

【図6】図6は、この発明による排他管理テーブルの状
態を示す図である。
FIG. 6 is a diagram showing a state of an exclusive management table according to the present invention.

【図7】図7は、この発明の請求項2の一実施例の全体
構成図である。
FIG. 7 is an overall configuration diagram of an embodiment of claim 2 of the present invention.

【図8】図8は、この発明による請求項2の排他管理テ
ーブル制御装置の動作を示すフローチャートである。
FIG. 8 is a flow chart showing the operation of the exclusive management table control device of claim 2 according to the present invention.

【図9】図9は、この発明による排他管理テーブルの状
態を示す図である。
FIG. 9 is a diagram showing a state of an exclusive management table according to the present invention.

【図10】図10は、この発明による関連情報テーブル
の状態を示す図である。
FIG. 10 is a diagram showing a state of a related information table according to the present invention.

【図11】図11は、従来の編集方式を示す構成図であ
る。
FIG. 11 is a block diagram showing a conventional editing method.

【図12】図12は、従来の排他管理装置の動作を示す
フローチャートである。
FIG. 12 is a flowchart showing an operation of a conventional exclusive management apparatus.

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

1 被編集ファイル 2a 第1の被編集ファイルの部分領域 2b 第2の被編集ファイルの部分領域 2c 第3の被編集ファイルの部分領域 4a 第1の編集装置 4b 第2の編集装置 5a 第1の排他管理テーブル制御装置 5b 第2の排他管理テーブル制御装置 8 排他管理テーブル 9 関連情報テーブル 10 排他管理装置 1 Edited File 2a Partial Area of First Edited File 2b Partial Area of Second Edited File 2c Partial Area of Third Edited File 4a First Editing Device 4b Second Editing Device 5a First Exclusive management table control device 5b Second exclusive management table control device 8 Exclusive management table 9 Related information table 10 Exclusive management device

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 被編集ファイルを更新する編集装置と被
編集ファイルの部分領域単位の排他管理情報を管理する
排他管理テーブル制御装置の複数組と前記被編集ファイ
ルの部分領域単位の排他管理情報を保持する排他管理テ
ーブルを備えるファイル同時編集装置において、被編集
ファイルの同じ部分領域に対し、複数の更新処理要求が
併行して発生したとき、前記更新処理要求を受けて前記
編集装置を駆動して前記該被編集ファイルの部分領域に
アクセスした1つの編集装置の前記排他管理テーブル制
御装置と前記排他管理テーブルにより、該被編集ファイ
ルの部分領域に対するアクセスの排他制御をし、併て、
該被編集ファイルの任意の異る部分領域についても同様
の処理を併行することを特徴とするファイル同時編集装
置。
1. A plurality of sets of an editing device for updating an edited file, an exclusive management table control device for managing exclusive management information for partial areas of the edited file, and exclusive management information for each partial area of the edited file. In a file simultaneous editing device having an exclusive management table to be held, when a plurality of update processing requests occur concurrently for the same partial area of an edited file, the editing device is driven in response to the update processing request. Exclusive control of access to the partial area of the edited file is performed by the exclusive management table control device and the exclusive management table of one editing apparatus that has accessed the partial area of the edited file, and at the same time,
A file simultaneous editing device characterized in that the same processing is carried out in parallel for arbitrary different partial areas of the file to be edited.
【請求項2】 前記被編集ファイルに対するアクセスの
排他制御が前記被編集ファイルの部分領域に加えて、同
部分領域の関連情報の領域も対象とし、前記関連情報に
関する情報を保持する関連情報テーブルも備えたことを
特徴とする請求項1のファイル同時編集装置。
2. An exclusive control of access to the edited file targets not only a partial area of the edited file but also an area of related information of the partial area, and a related information table holding information related to the related information. The simultaneous file editing apparatus according to claim 1, further comprising:
JP4167156A 1992-06-25 1992-06-25 File simultaneous editing device Pending JPH0612310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4167156A JPH0612310A (en) 1992-06-25 1992-06-25 File simultaneous editing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4167156A JPH0612310A (en) 1992-06-25 1992-06-25 File simultaneous editing device

Publications (1)

Publication Number Publication Date
JPH0612310A true JPH0612310A (en) 1994-01-21

Family

ID=15844464

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4167156A Pending JPH0612310A (en) 1992-06-25 1992-06-25 File simultaneous editing device

Country Status (1)

Country Link
JP (1) JPH0612310A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009134365A (en) * 2007-11-28 2009-06-18 Fuji Xerox Co Ltd Data processor and data processing program
US7584199B2 (en) 2004-06-28 2009-09-01 Konica Minolta Business Technologies, Inc. System and server for managing shared files
US7694220B2 (en) 2004-04-14 2010-04-06 Sharp Kabushiki Kaisha Information processor, information processing system, file concurrent editing method and file concurrent editing program
JP2011034124A (en) * 2009-07-29 2011-02-17 Fujitsu Ltd Device, method and program for managing repository
JPWO2013018219A1 (en) * 2011-08-03 2015-03-05 三菱電機株式会社 Program creation device and programmable logic controller

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7694220B2 (en) 2004-04-14 2010-04-06 Sharp Kabushiki Kaisha Information processor, information processing system, file concurrent editing method and file concurrent editing program
US7584199B2 (en) 2004-06-28 2009-09-01 Konica Minolta Business Technologies, Inc. System and server for managing shared files
JP2009134365A (en) * 2007-11-28 2009-06-18 Fuji Xerox Co Ltd Data processor and data processing program
JP4530031B2 (en) * 2007-11-28 2010-08-25 富士ゼロックス株式会社 Data processing apparatus and data processing program
JP2011034124A (en) * 2009-07-29 2011-02-17 Fujitsu Ltd Device, method and program for managing repository
JPWO2013018219A1 (en) * 2011-08-03 2015-03-05 三菱電機株式会社 Program creation device and programmable logic controller
US9557727B2 (en) 2011-08-03 2017-01-31 Mitsubishi Electric Corporation Program creation device and programmable logic controller

Similar Documents

Publication Publication Date Title
JP4069905B2 (en) Shared file management system and server
JP4903012B2 (en) Workflow system, workflow processing method, and workflow processing program
JP2001051887A (en) Editing device for common document
JPH0612310A (en) File simultaneous editing device
JPH0612348A (en) Software installation device
JPH10111833A (en) Access right management system
US5388256A (en) Transaction processing database system with shared work-in-progress store for logging database changes
JPH07319820A (en) Information processing system
JP3042600B2 (en) Distributed file synchronization method
JP2000137620A (en) Method and system for changing program of transaction processing system and storage medium
JPH07287688A (en) Method and device for changing dynamic access right
JP6133832B2 (en) Recipe ID management server, recipe ID management system, and terminal device
JPH07104983A (en) Generation control device and generation control method
JPH0218635A (en) Decentralized process file control system
JPH05307478A (en) Constituting method for data base management system
JP3970524B2 (en) Exclusive control method between multiple operations
JP2650907B2 (en) Resource synchronization control method
JP6573584B2 (en) Security system and program file update method
JPH05204733A (en) System for updating library
JPH02236629A (en) Software managing system
JP2900873B2 (en) File management device
JP2000285031A (en) Method and device for automatically duplicating computer file
JPH04320549A (en) File access managing device
JP3891128B2 (en) Online transaction processing system terminal definition generation / update method
JPH1165913A (en) Decentralized data base