JPS62236040A - Central version type exclusive control method - Google Patents

Central version type exclusive control method

Info

Publication number
JPS62236040A
JPS62236040A JP61078156A JP7815686A JPS62236040A JP S62236040 A JPS62236040 A JP S62236040A JP 61078156 A JP61078156 A JP 61078156A JP 7815686 A JP7815686 A JP 7815686A JP S62236040 A JPS62236040 A JP S62236040A
Authority
JP
Japan
Prior art keywords
task
ecb
resource
entry
control method
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
JP61078156A
Other languages
Japanese (ja)
Inventor
▲つる▼ 雅春
Masaharu Tsuru
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 JP61078156A priority Critical patent/JPS62236040A/en
Publication of JPS62236040A publication Critical patent/JPS62236040A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Abstract

PURPOSE:To facilitate a processing in a lump for resources management at high speed when a system is formed by providing an application right acquisition request entry for a substitute task connected to an ECB via an address. CONSTITUTION:It is supposed that an idle area of about 4 bytes is previously formed within a user program (e) as an ECB 11. When an application right acquisition substitute request is delivered from a task B, the program (e) informs the head address of the ECB 11 to the central version type exclusive control method. Thus this exclusive control method is through within the program (e) as long as the ECB 1 has no program mistake, etc. Here a resources application right information entry is provided to a control table II for task B if the ECB 11 is available. Then an information control entry 10 is provided for the acquisition of the resources application right against a substitute task E. Then the task B is kept waiting if the acquisition of the application right is impossible after reference to the contents of the ECB 11 via an address. While the task B acquires the secondary resources S2 when the application right is obtained.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は情報処理装置のトランザクション処理システ
ムで多量の資源を効率良く使用する管理方式の排他制御
方法、特にセントラル・バージヨン型の排他制御方法に
関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a management-based exclusive control method for efficiently using a large amount of resources in a transaction processing system of an information processing device, and in particular to a central version type exclusive control method. It is something.

〔従来の技術〕[Conventional technology]

第3図は従来の排他制御方法を説明するための管理テー
ブル(1)のブロック図である。図忙おいて。
FIG. 3 is a block diagram of a management table (1) for explaining a conventional exclusive control method. Stay busy.

Cハは主資源(財)に関する情報管理エントリ(以後。C is an information management entry (hereinafter referred to as "information management entry") regarding the main resource (goods).

単に主資源エントリと称する)であり、Cλ)(Jlは
主資源(財)に含まれる副資源(F3t’)、(F32
)に関する情報管理エントリ(以後単に副資源二ン) 
IJと称する)である、ここで主資源(財)が副資源(
81)及び(8コ)を含むことを(ハ;= (Jl ;
= 1.71で表わす。(す)及び(り1はそれぞれタ
スク(4)及び(Blのための資源利用権を獲得するタ
スクに関する情報管理エントリ(以後、単に利用権獲得
要求エン) IJと称する)である。(tl > (4
1及び(f) 、 (91はそれぞれタスク(支)及び
(Blの獲得する資源利用権の情報の情報管理エン) 
IJ(以後、単に資源利用権情報エン) IJと称する
)である。
(simply referred to as the main resource entry), Cλ) (Jl is the sub-resource (F3t'), (F32
) information management entry (hereinafter simply referred to as sub-resource 2)
IJ), where the main resource (good) is the secondary resource (referred to as IJ).
81) and (8).
= 1.71. (S) and (RI1) are task (4) and (information management entry (hereinafter simply referred to as usage rights acquisition request) IJ regarding the task of acquiring resource usage rights for Bl), respectively. (tl > (4
1 and (f), (91 is the task (support) and (information management engine for information on resource usage rights acquired by Bl), respectively)
IJ (hereinafter simply referred to as IJ).

まず、タスク(3)が副資源rs /)の獲得要求を出
すと、従来の排他制御方法は資源利用権情報エンド1月
j)を作成し、副資源(+9/)の利用権を獲得するた
めに副貴源エンiJ(コ)と先の資源利用権情報エント
リ(r)をチエーソすると共に、(ハ;! (lIi 
、 (4(1→(jlのようにチエーソしくここで例え
ば(/1 ;= (コ)は(ハと(コ)が互いに共有さ
れていることを表わす)、タスク囚が屏資源利用権を獲
得する。同様圧して、副資源(8J)K対しても、資源
利用権情報エントリ(Alが作成され、副資源利用権情
報エン) IJ (slを経由して(ゲ)→(61、(
j)コ(al、(21:(,71の関係が確立され。
First, when task (3) issues a request to acquire the sub-resource rs/), the conventional exclusive control method creates resource usage right information (end 1 j) and acquires the right to use the sub-resource (+9/). In order to do so, we will check the previous resource usage right information entry (r) with Deputy Takagen en iJ (ko), and (ha;! (lIi
, (4(1→(jl), for example, (/1 ;= (ko) means that (ha and (ko) are shared with each other), the task prisoner has the right to use the folding resource. Similarly, for the sub-resource (8J)K, the resource usage right information entry (Al is created and the sub-resource usage right information entry) IJ (via sl (G) → (61, (
j) ko(al, (21:(,71) relationship is established.

それぞれの間がチエーソされる。Cheeso is played between each.

次に別のタスクであるタスク(Blが副資源(81)に
対する要求を出すと、排他制御方法は上述したようにし
て資源利用権情報エンドIJ (ff+を作成し。
Next, when another task (Bl) issues a request for the sub-resource (81), the exclusive control method creates the resource usage right information end IJ (ff+) as described above.

“3  獲得できた場合は、Cり)→(ff)、(コ1
→(ざ)、(コ)−(り1〔(ハ及び(り)を介して〕
のようにチエーソする。副資源(Sコ)の場合も同様に
して(り1→Cり)、(3)→(幻、(J)→(7)の
間がそれぞれチエーソされる。ここでタスク(Blが副
資源(32)に獲得要求を出すのが最初に行なわたので
あれば、又は、上述した個々の関係が必要でなくなれば
経由するものがないから、単独に(7)→(ハ、(り)
→(91,+91→(3)のようにチエーソされる。
“3 If you can get it, Cri) → (ff), (ko1
→(za), (ko)-(ri1 [via (c) and (ri)]
Chieso like. In the case of the sub-resource (S), the steps between (3) → (phantom) and (J) → (7) are performed in the same way (RI1 → C-ri). Here, task (Bl is the sub-resource) If (32) is the first time to issue an acquisition request, or if the above-mentioned individual relationships are no longer necessary, there is nothing to go through, so (7) → (c, (ri))
→(91,+91→(3)).

ところで、このような方法でセントラル・バージヨン型
の排他制御を行うためには、他の別の種類のテーブルの
セントラル・タスク(Zlの利用権獲得要求エントリ(
図示しない)を中心としたシステムを新らたに作る必要
がある。つまり、資源利用権情報エンド1月sl 、 
(41、(71、(り1が作成され、第3図に示される
ようにこれらが各タスク(4)、(B1の利用権獲得要
求エントリ(<41 、 (71にチエーソされる毎に
セントラル・タスクに知らせる。
By the way, in order to perform central version exclusive control using this method, the central task (Zl usage right acquisition request entry (
It is necessary to create a new system centered on (not shown). In other words, resource usage rights information end January sl,
(41, (71, (ri1) are created, and as shown in Figure 3, these are assigned to the central - Inform the task.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来の排他制御方法では、以上のように資源利用権の獲
得(即ち資源の獲得)を行うタスクの責任でしか排他を
行えない構造であるため、各タスクごとに資源利用権を
獲得しなければならず、仮にセントラル・バージヨン型
システムを構築する場合には各タスクが資源利用権の獲
得の結果をセンタタスクに通知しなければならないとい
う問題点があった。
In the conventional exclusive control method, the structure is such that exclusive control can only be performed under the responsibility of the task that acquires the right to use the resource (that is, acquires the resource), so each task must acquire the right to use the resource. However, if a central version type system were to be constructed, each task would have to notify the center task of the result of acquiring resource usage rights.

この発明はかかる問題点を解決するためになされたもの
で、セントラル・タスク(被代行要求タスク即ち代行タ
スク)が他タスク圧式って資源利用権の獲得処理を全て
行い。結果を判断して他タスクの起動などを一括して制
御できるセントラル・バージヨン型排他制御方法を提供
することを目的とする。
The present invention was made to solve this problem, and a central task (substituted requesting task, ie, substitute task) performs all processes for acquiring resource utilization rights under pressure from other tasks. The purpose of this invention is to provide a central version exclusive control method that can judge the results and control the activation of other tasks all at once.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係るセントラル・バージヨン型排他制御方法
は前記代行タスクがPCB領域を有する時には、あるタ
スクのための資源利用権情報エントリを作成すると共に
1代行タスクのための利用権獲得要求エン) IJをも
作成し%ECBK資源利用権の獲得が可能である旨が書
き込まれていることを確認した後、あるタスクの資源利
用権情報エントリと上記代行タスクの利用権獲得要求エ
ントリとをチエーソし1代行タスクに資源利用権獲得可
能であることを知らせるようにしたものである、〔作 
用〕 この発明においては、代行して資源利用権の獲得要求を
出したタスクの制御を管理テーブルの情報にあるECB
のアドレスで行うことにより要求タスクの代りであるに
もかかわらずその利用権を獲得し、それを要求タスクに
渡すことができる。
The central version exclusive control method according to the present invention, when the delegated task has a PCB area, creates a resource usage right information entry for a certain task and sends a usage right acquisition request (IJ) for one delegated task. After confirming that it is written that it is possible to acquire the %ECBK resource usage rights, cheeso the resource usage rights information entry of a certain task and the usage rights acquisition request entry of the above delegated task, and execute 1 agency. This is a system that lets tasks know that they can acquire resource usage rights.
] In this invention, the control of a task that has issued a request to acquire resource usage rights on behalf of the user is controlled by the ECB in the information in the management table.
By using the address of , it is possible to obtain the usage right even though it is on behalf of the requesting task, and to pass it to the requesting task.

〔実施例〕〔Example〕

第1図はこの発明のセントラル・バージヨン型排他制御
方法の一実施例を説明するためのフローチャート図であ
る。図において、(/)〜(テ)は上記従来方法におけ
るものと同一である。
FIG. 1 is a flowchart for explaining an embodiment of the central version exclusive control method of the present invention. In the figure, (/) to (TE) are the same as in the conventional method.

第一図はこの発明のセントラル・パージョyfi排他制
御方法の一実施例を説明するための管理テーブル([[
)のブロック図であり、(10)は代行して資源利用権
を獲得するタスク(Elの情報を管理する利用権獲得要
求エン) 17であり、(l/)は被代行要求タスク(
以後、単に代行タスク)VC対応するプログラム内に作
成する作業領域ECB(イベントコントロールブロック
の略称であり、資源即ちその利用権が確保できているか
どうかを書き込むための領域)であり、Cl0)と(/
 /)’はアドレスで結ばれている。
Figure 1 shows a management table ([[
), in which (10) is a task 17 that acquires resource usage rights on behalf of (a usage rights acquisition requester that manages information on El), and (l/) is a delegated requesting task (
Hereinafter, it is a work area ECB (abbreviation for event control block, an area for writing whether or not the resource, that is, the right to use it) is created in the program corresponding to VC (hereinafter referred to simply as a proxy task), and is Cl0) and ( /
/)' are connected by addresses.

第2図を参照しながら、第1図に従ってこの発明の詳細
な説明する。以下、タスク(Elがセントラル・タスク
の1つとなり、タスク(Blからの資源利用権の要求を
代行するセントラルeバージョン型排他制御方法につい
て説明する。予めリパイト程度の空領域がECB(//
)としてユーザプログラム(Cl内に作成されていると
する。今、ステップ(2/)においてタスク(B)から
利用権獲得代行要求が出されると、ユーザプログラム(
e)はTrCB(//)の先頭アドレスをセントラル・
バージヨン型排他制御方法に知らせる。ユーザプログラ
ム(e)内にECB(//)があるかどうかがステップ
(コ/a)においてチェ1.  ツクされ・もしプ°グ
5hz、z等で肛B(//)が1  作成されていない
時にはセントラル・バージヨン型排他制御方法は終了す
る。ここでECB(//)がある場合には、ステップ(
,22)において管理テーブル(■)にタスク(B)に
対する資源利用権情報エントリを作成する。次に1代行
タスクTEIに対する資源利用権を獲得する情報管理エ
ントリ(10)を作成する。ステップ(2,ta)にお
いて、アドレスでECB(//)の内容を参照して利用
権が得られそうかどうかを調べる。もしもまだ獲得でき
ない時には、ステップ(コロ]において代行タスク((
至)にユーザインターフェイス(ソフトウェア)にて、
その旨を知らせ、それによってタスク(Blを資源が獲
得できる即ち資源の利用権が得られるまで待機させ、も
しもセントラル・バージヨン型排他制御方法が利用権が
得られることをPCB(//)を読んで確認した時には
、ステップ(2ダ)において資源利用権情報エントリ(
9)と利用権獲得要求エントリ(10)をチエーソしス
テップ(is)において代行タスクc匂にユーザインタ
ーフェイスで資源の利用権が得られることを知らせる。
The present invention will be described in detail according to FIG. 1 with reference to FIG. The following describes a central e-version type exclusive control method in which task (El) becomes one of the central tasks and requests resource usage rights from task (Bl).
) is created in the user program (Cl).Now, in step (2/), when task (B) issues a proxy request for acquisition of usage rights, the user program (
e) sets the start address of TrCB (//) to the central
Notify version type exclusive control method. Check 1. in step (c/a) whether ECB (//) exists in the user program (e). If the block B (//) is not created in program 5hz, z, etc., the central version exclusive control method ends. If ECB (//) is present here, step (
, 22), a resource usage right information entry for task (B) is created in the management table (■). Next, an information management entry (10) is created to acquire the right to use resources for one delegated task TEI. In step (2, ta), the content of the ECB (//) is referenced using the address to check whether usage rights are likely to be obtained. If you can't get it yet, you can use the substitute task ((
), in the user interface (software),
The task (Bl) is then made to wait until the resource can be acquired, that is, the right to use the resource is obtained. When confirmed, the resource usage right information entry (
9) and the right-to-use acquisition request entry (10), and in step (is), informs the proxy task C through the user interface that the right to use the resource can be obtained.

従って(デ)と(10)がチエーソされているので、こ
の利用権獲得情報はタスク(Blの利用権獲得要求エン
ド1月71に知らされ、最終的にはタスクIBIが副資
源(84)を獲得できることになる。
Therefore, since (de) and (10) are cheeso, this usage right acquisition information is notified to the task (Bl's usage right acquisition request end January 71), and finally task IBI acquires the subresource (84). You will be able to obtain it.

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

この発明はECBとアドレスで結ばれた代行タスクの利
用1’[I得要行エントリを設けたので1代行タスクが
資源利用権を獲得することができ、セントラル争バージ
ョン型システムを構築する上で資源管理の一括処理が容
易にかつ高速に行える効果を有する。
This invention provides a 1' [I acquisition request line entry for the use of delegated tasks connected to the ECB by address, so that one delegated task can acquire the right to use resources. This has the effect of making batch resource management easier and faster.

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

第1図はこの発明のセントラル・バージヨン型排他制御
方法を示す処理フローチャート図、第2図はとの発明の
詳細な説明するための管理テーブル([Il及びそれと
EC’Hの関係を示すブロック図、第3図は従来の管理
テーブル(Ilのブロック図である。 図において、(10)は代行タスク(Elの利用権獲得
要求エントリ、(//)はEC’Bである。 なお1図中同一群号は同一または相幽部分を示す・ 第1図
FIG. 1 is a processing flowchart showing the central version exclusive control method of the present invention, and FIG. 2 is a block diagram showing the management table ([Il and the relationship between it and EC'H , FIG. 3 is a block diagram of a conventional management table (Il). In the figure, (10) is an entry for requesting the right to use the proxy task (El), and (//) is EC'B. The same group number indicates the same or similar parts. Figure 1

Claims (1)

【特許請求の範囲】 あるタスクから資源利用権獲得要求を受けると他のタス
クの代わりに要求を行う代行タスクであるセントラル・
タスクにこの資源利用権獲得を代行させるセントラル・
バージヨン型排他制御方法であつて、 前記代行タスクがECB領域を有する時には、あるタス
クのための資源利用権情報エントリを作成すると共に、
代行タスクのための利用権獲得要求エントリをも作成し
、ECBに資源利用権の獲得が可能である旨が書き込ま
れていることを確認した後、あるタスクの資源利用権情
報エントリと上記代行タスクの利用権獲得要求エントリ
とをチエーソし、代行タスクに資源利用権獲得可能であ
ることを知らせることを特徴とするセントラル・バージ
ヨン型排他制御方法。
[Claims] When a request for acquisition of resource usage rights is received from a certain task, a central task is a proxy task that makes the request on behalf of another task.
A central task that acquires this resource usage right on behalf of the task.
In the version-type exclusive control method, when the substitute task has an ECB area, creating a resource usage right information entry for a certain task,
After creating a usage right acquisition request entry for the delegated task and confirming that it is written in the ECB that resource usage rights can be acquired, create a resource usage right information entry for a certain task and the above delegated task. A central version type exclusive control method characterized by cheating with an entry for requesting a right to use a resource, and notifying a substitute task that it is possible to acquire a right to use a resource.
JP61078156A 1986-04-07 1986-04-07 Central version type exclusive control method Pending JPS62236040A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61078156A JPS62236040A (en) 1986-04-07 1986-04-07 Central version type exclusive control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61078156A JPS62236040A (en) 1986-04-07 1986-04-07 Central version type exclusive control method

Publications (1)

Publication Number Publication Date
JPS62236040A true JPS62236040A (en) 1987-10-16

Family

ID=13654054

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61078156A Pending JPS62236040A (en) 1986-04-07 1986-04-07 Central version type exclusive control method

Country Status (1)

Country Link
JP (1) JPS62236040A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5963170U (en) * 1982-10-22 1984-04-25 国産金属工業株式会社内 key

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5963170U (en) * 1982-10-22 1984-04-25 国産金属工業株式会社内 key

Similar Documents

Publication Publication Date Title
US7130905B2 (en) System and method for coordinating access to data for a distributed application
US6247056B1 (en) Method and apparatus for handling client request with a distributed web application server
AU746391B2 (en) Method and system for facilitating distributed software development in a distribution unaware manner
US6237024B1 (en) Method and apparatus for the suspension and continuation of remote processes
AU742797B2 (en) Method and apparatus for performing transactions in a stateless web environment which supports a declarative paradigm
US7055153B2 (en) Inter-object messaging
US6510478B1 (en) Method and apparatus for coordination of a shared object in a distributed system
US6470342B1 (en) Process of maintaining a distributed map of transaction identifiers and using hashing to access these maps
JP2003529120A (en) Distributed processing support method using JDBC 1.0 driver
JP2002505466A (en) Remote method invocation method and apparatus
EP0600235A1 (en) Cooperative processing interface and communication broker for heterogeneous computing environments
US20020023118A1 (en) Method for effective utilizing of shared resources in computerized system
JPH1165863A (en) Common resource managing method
EP0807884B1 (en) Method and apparatus for disposing of objects in a multi-threaded environment
JPH04343157A (en) Method and data processing system which allow entrustment with mutual agreement for software command operation
US6161121A (en) Generic transfer of exclusive rights
JPS62236040A (en) Central version type exclusive control method
US6823358B1 (en) Enabling multiple client access to a process-based system or program from a single java virtual machine
US6381606B1 (en) Application programming interface for creating authorized connections to a database management system
JPH10133888A (en) Soft parts combining control device and method therefor
JP3220001B2 (en) System for limiting the number of X terminals
JPH02293953A (en) Specific system information obtaining method
JPH04274524A (en) System for controlling inter-process communication
KR19990053528A (en) Multiple resource sharing method in real time system
KR19990051702A (en) Remote Object Creation and Approach in Distributed Object System