[go: up one dir, main page]

JPH02242363A - Shared resource control system - Google Patents

Shared resource control system

Info

Publication number
JPH02242363A
JPH02242363A JP6280789A JP6280789A JPH02242363A JP H02242363 A JPH02242363 A JP H02242363A JP 6280789 A JP6280789 A JP 6280789A JP 6280789 A JP6280789 A JP 6280789A JP H02242363 A JPH02242363 A JP H02242363A
Authority
JP
Japan
Prior art keywords
flag
test
storage area
address
cpu
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
JP6280789A
Other languages
Japanese (ja)
Inventor
Tamotsu Inoue
保 井上
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP6280789A priority Critical patent/JPH02242363A/en
Publication of JPH02242363A publication Critical patent/JPH02242363A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔概要〕 複数の処理単位がそれぞれ共用資源を共用する情報処理
システムにおけ°る共用資源制御方式に関し、 処理単位の制御を複雑化させること無く、共用資源の待
合せ発生機会を極力減少させることを目的とし、 共用資源を複数の分割単位に区分し、各分割単位に対応
してそれぞれ閉塞用のフラグを設け、各処理単位が共用
資源の使用を要求する際に、使用対象位置を示すアドレ
スを指定し、各処理単位に、使用要求およびアドレスに
基づき、使用対象位置を含む分割単位に対応するフラグ
を決定するフラグ決定手段を設け、フラグ決定手段が決
定したフラグをテストアンドセット命令実行手段に伝達
することより、テストアンドセット命令実行手段がフラ
グに対応する分割単位のみを閉塞して自処理単位に使用
可能とする様に構成する。
[Detailed Description of the Invention] [Summary] Regarding a shared resource control method in an information processing system in which a plurality of processing units each share a shared resource, it is possible to prevent the occurrence of shared resource waiting without complicating the control of processing units. The purpose is to reduce the chances of this happening as much as possible by dividing the shared resource into multiple division units, setting a blockage flag for each division unit, and when each processing unit requests the use of the shared resource, An address indicating a position to be used is specified, and each processing unit is provided with a flag determining means for determining a flag corresponding to the division unit including the position to be used based on the use request and the address, and the flag determined by the flag determining means is By transmitting the flag to the test and set instruction execution means, the test and set instruction execution means is configured to block only the divided unit corresponding to the flag and make it usable for its own processing unit.

〔産業上の利用分野〕[Industrial application field]

本発明は情報処理システムに係り、特に複数の処理単位
がそれぞれ共用資源を共用する情報処理システムにおけ
る共用資源制御方式に関する。
The present invention relates to an information processing system, and particularly to a shared resource control method in an information processing system in which a plurality of processing units each share a shared resource.

複数のプロセッサ、或いは単一プロセッサ内で動作する
複数のプロセス等の処理単位が、共用メモリ、或いは各
種入出力装置等の共用資源を共用する際に、一つの処理
単位が共用資源を使用中に、他の処理単位が並行して共
用資源を使用すると、双方の処理結果に混乱を生ずる。
When processing units such as multiple processors or multiple processes operating within a single processor share shared resources such as shared memory or various input/output devices, if one processing unit is using the shared resources. , If other processing units use the shared resource in parallel, confusion will occur in the processing results of both.

かかる混乱を防止する手段として、テストアンドセット
命令が広く採用されている。
Test and set instructions are widely used as a means to prevent such confusion.

〔従来の技術〕 第4図は従来ある情報処理システムの一例を示す図であ
る。
[Prior Art] FIG. 4 is a diagram showing an example of a conventional information processing system.

第4図において、二組のプロセッサ(CP U)■(個
々のプロセッサ(CP U)を1−0および1−1と称
する、以下同様)が処理単位として、共用資源である共
用メモIJ  (CM)2内の記憶領域A0を共通に使
用する。
In FIG. 4, two sets of processors (CPU) (individual processors (CPU) are referred to as 1-0 and 1-1, hereinafter the same) operate as a processing unit to process a shared memory IJ (CM ) 2 is commonly used.

各プロセッサ(CPU)1は、それぞれテストアンドセ
ット設定部(TSS)11およびテストアンドセット解
除部(TSR)12を具備しており、また共用メモリ 
(CM>2には、記憶領域A。の閉塞状態を示すフラグ
F0が設けられている。
Each processor (CPU) 1 is equipped with a test and set setting section (TSS) 11 and a test and set cancellation section (TSR) 12, and also has a shared memory.
(For CM>2, a flag F0 indicating the blockage state of the storage area A is provided.

例えばプロセッサ(CPU)1−0に、記憶領域A、 
内のアドレスaxに格納されているデータdxを読出し
、所要の処理を施して再びアドレスaxに書込む要求が
発生すると、プロセッサ(CPU)1−0はテストアン
ドセット設定部(TSS)11−〇を起動し、フラグF
0の所在位置くアドレスao)を指定するテストアンド
セット設定命令TSを伝達する。
For example, in processor (CPU) 1-0, storage area A,
When a request is made to read data dx stored at address ax in , perform necessary processing, and write to address ax again, processor (CPU) 1-0 sets test and set setting unit (TSS) 11-0. and flag F
A test and set setting command TS specifying the location of address 0 (address ao) is transmitted.

起動されたテストアンドセット設定部(TSS)11−
0は、受信したテストアンドセット設定命令TSにより
指定されたアドレスa0に設けられているフラグF0の
設定状態を分析し、空き状態に設定されている場合には
、対応する記憶領域A0が他のプロセッサ(CPU)1
−1により使用されていないと判断し、直ちにフラグF
0を閉塞状態に設定した後、プロセッサ(CPU)1−
〇に記憶領域A、の使用を許容する。
Started test and set setting section (TSS) 11-
0 analyzes the setting state of the flag F0 provided at the address a0 specified by the received test and set setting command TS, and if it is set to an empty state, the corresponding storage area A0 is Processor (CPU) 1
-1, it is judged that it is not used, and immediately flag F
After setting 0 to the blocked state, processor (CPU) 1-
Allow 〇 to use storage area A.

かかる状態で、他プロセツサ(CPU)1−1に、記憶
領域A0内のアドレスa、に格納されているデータd、
を続出し、所要の処理を施して再びアドレスa、に書込
む要求が発生すると、プロセッサ(CPU)L−1はテ
ストアンドセット設定部(TSS)11−1を起動し、
フラグF0の所在位置(アドレスas)を指定するテス
トアンドセント設定命令TSを伝達する。
In this state, the other processor (CPU) 1-1 receives data d, which is stored at address a in storage area A0.
When a request is made to perform the necessary processing and write to address a again, processor (CPU) L-1 starts test and set setting section (TSS) 11-1,
A test and cent setting command TS specifying the location (address as) of the flag F0 is transmitted.

起動されたテストアンドセット設定部(TSS)11−
1は、受信したテストアンドセット設定命令TSにより
指定されたアドレスaQに設けられているフラグF0の
設定状態を分析し、閉塞状態に設定されていることを確
認すると、対応する記憶領域A0が他のプロセッサ(C
PU)l−0により使用中と判断し、フラグF0が空き
状態となる迄待機する。
Started test and set setting section (TSS) 11-
1 analyzes the setting state of the flag F0 set at the address aQ specified by the received test and set setting command TS, and when it is confirmed that the flag F0 is set to the blocked state, the corresponding storage area A0 is set to another address. processor (C
It is determined that it is in use based on PU) l-0, and it waits until the flag F0 becomes empty.

やがてプロセッサ(CPU)I−0が、データdXに対
する読出しおよび書込み処理を完了すると、テストアン
ドセント解除部(TSR)12−Oを起動し、フラグF
6の所在位置くアドレスa。)を指定するテストアンド
セット解除命令TRを伝達する。
When the processor (CPU) I-0 completes the read and write processing for the data dX, it activates the test-and-sent release unit (TSR) 12-O and sets the flag F.
6 is located at address a. ) is transmitted.

起動されたテストアンドセント解除部(TSR−)12
−0は、受信したテストアンドセット解除命令TRによ
り指定されたアドレスa0に設けられているフラグF0
を空き状態に設定し、記憶領域A0を他のプロセッサ(
CPU)1−1にも使用可能とする。
Activated test-and-sent release unit (TSR-) 12
-0 is the flag F0 set at the address a0 specified by the received test and set release command TR.
is set to free status, and the storage area A0 is set to be used by other processors (
CPU) 1-1 can also be used.

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

以上の説明から明らかな如く、従来ある情報処理システ
ムにおいては、プロセッサ(CPU)1−0および1−
1が共用する共用メモリ (CM)2内の記憶領域A0
に対応してフラグFoを設け、記憶領域A0を使用する
プロセッサ(CPU)1−〇がフラグF0を閉塞状態に
設定することにより、他のプロセッサ(CPU)l−1
に対して閉塞していた為、その間プロセッサ(CPU)
1−1は記憶領域A0の使用を待合わせる必要があり、
処理効率を低下させる恐れがあった。
As is clear from the above explanation, in a conventional information processing system, processors (CPUs) 1-0 and 1-
Storage area A0 in shared memory (CM) 2 shared by 1
A flag Fo is set corresponding to the storage area A0, and the processor (CPU) 1-0 that uses the storage area A0 sets the flag F0 to the blocked state, so that other processors (CPU) l-1
During this time, the processor (CPU)
1-1 needs to wait for the use of storage area A0,
There was a risk that processing efficiency would be reduced.

かかる待合せの発生確率を極力減少させる目的で、記憶
領域A0を複数の部分記憶領域に区分し、各部分記憶領
域毎にフラグを設けることにより、部分記憶領域を閉塞
単位とすることも考慮されるが、かかる場合に各プロセ
ッサ(CPU)1は、使用対象アドレスが何れの部分記
憶領域に所属し、何れのフラグを各テストアンドセット
設定部(TSS)11或いはテストアンドセット解除部
(TSR)12に指定すべきかを判定する必要があり、
制御が複雑となる問題点があった。
In order to reduce the probability of occurrence of such a wait as much as possible, it is also considered to divide the storage area A0 into a plurality of partial storage areas and set a flag for each partial storage area, thereby making the partial storage area a blockage unit. However, in such a case, each processor (CPU) 1 determines which partial storage area the target address belongs to and which flag is set in each test and set setting section (TSS) 11 or test and set cancellation section (TSR) 12. It is necessary to determine whether it should be specified as
There was a problem that the control was complicated.

本発明は、処理単位の制御を複雑化させること無く、共
用資源の待合せ発生機会を極力減少させることを目的と
する。
An object of the present invention is to reduce the chances of shared resource queuing occurring as much as possible without complicating the control of processing units.

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

第1図は本発明の原理を示す図である。 FIG. 1 is a diagram showing the principle of the present invention.

第1図において、100は情報処理システムに複数設け
られた処理単位、200は各処理単位100により共用
される共用資源、101は各処理単位100に設けられ
たテストアンドセット命令実行手段である。
In FIG. 1, 100 is a plurality of processing units provided in the information processing system, 200 is a shared resource shared by each processing unit 100, and 101 is a test and set instruction execution means provided in each processing unit 100.

102は、本発明により各処理単位100に設けられた
フラグ決定手段である。
102 is a flag determining means provided in each processing unit 100 according to the present invention.

201は、本発明により共用資源200を区分して設け
られた複数の分割単位である。
201 is a plurality of division units provided by dividing the shared resource 200 according to the present invention.

300は、本発明により各分割単位201に対応して設
けられた閉塞用のフラグである。
Reference numeral 300 is a blockage flag provided corresponding to each division unit 201 according to the present invention.

〔作用〕[Effect]

各処理単位100が共用資源200の使用を要求する際
に、使用対象位置を示すアドレスaを指定する。
When each processing unit 100 requests the use of the shared resource 200, it specifies an address a indicating the location to be used.

フラグ決定手段102は、使用要求およびアドレスaに
基づき、使用対象位置を含む分割単位201に対応する
フラグ300を決定する。
The flag determining means 102 determines a flag 300 corresponding to the division unit 201 including the position to be used, based on the use request and address a.

テストアンドセット命令実行手段101は、フラグ決定
手段102が決定したフラグ300に対応する分割単位
201のみを閉塞して自処理単位100に使用可能とす
る。
The test and set instruction execution means 101 blocks only the division unit 201 corresponding to the flag 300 determined by the flag determination means 102 and makes it usable for its own processing unit 100.

従って、処理単位は共用資源の使用を要求する際に、使
用対象位置を指定するのみで、使用対象位置を含む分割
単位のみを他の処理単位に対して閉塞する為、他の分割
単位に対しては他の処理単位が並行して使用可能となり
、処理単位の制御を複雑化させること無く、共用資源の
待合せが発生する機会が大幅に減少し、当該情報処理シ
ステムの処理効率も向上する。
Therefore, when a processing unit requests the use of a shared resource, it only specifies the location to be used, and only the division unit that includes the location to be used is blocked from other processing units. In this case, other processing units can be used in parallel, and without complicating the control of the processing units, the chances of waiting for shared resources are significantly reduced, and the processing efficiency of the information processing system is improved.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面により説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第2図は本発明の一実施例による情報処理システムを示
す図であり、第3図は第2図におけるフラグ決定過程を
例示する図である。なお、全図を通じて同一符号は同一
対象物を示す。
FIG. 2 is a diagram showing an information processing system according to an embodiment of the present invention, and FIG. 3 is a diagram illustrating the flag determination process in FIG. 2. Note that the same reference numerals indicate the same objects throughout the figures.

第2図においては、第1図における処理単位100とし
て二組のプロセッサ(CPU)1が示すされ、また第1
図における共用資源200として記憶領域A0が共用メ
モIJ (CM)2内に示され、また第1図におけるテ
ストアンドセント命令実行手段101としてテストアン
ドセット設定部(TSS)11およびテストアンドセッ
ト解除部(TSR)12が各プロセッサ(CPU)1内
に示されており、また゛第1図におけるフラグ決定手段
102として、フラグ決定部(FDC)13が各プロセ
ッサ(CPU)1内に設けられ、また第1図における共
用資源200が複数の分割単位201に区分される如く
、記憶領域A、は四組の部分記憶領域AI乃至A4に区
分されており、更に第1図におけるフラグ300として
、フラグF、乃至F4が各部分記憶領域A+乃至A4に
対応して、共用メモリ (CM)2内の制wJ領域b1
乃至b4に設けられている。
In FIG. 2, two sets of processors (CPUs) 1 are shown as the processing unit 100 in FIG.
A storage area A0 is shown in the shared memory IJ (CM) 2 as a shared resource 200 in the figure, and a test and set setting section (TSS) 11 and a test and set cancellation section are shown as the test and send instruction execution means 101 in FIG. (TSR) 12 is shown in each processor (CPU) 1, and a flag determining section (FDC) 13 is provided in each processor (CPU) 1 as the flag determining means 102 in FIG. Just as the shared resource 200 in FIG. 1 is divided into a plurality of division units 201, the storage area A is divided into four sets of partial storage areas AI to A4, and the flags 300 in FIG. to F4 correspond to each partial storage area A+ to A4, and control wJ area b1 in the shared memory (CM) 2.
It is provided from b4 to b4.

第2図および第3図において、プロセッサ(CPU)l
−0に、記憶領域A0内のアドレスaxに格納されてい
るデータdXを読出し、所要の処理を施して再びアドレ
スaxに書込む要求が発生すると、プロセッサ(CPU
)1−0はフラグ決定部(FDC)13−0を起動し、
記憶領域A。
In FIGS. 2 and 3, processor (CPU) l
-0, when a request is generated to read data dX stored at address ax in storage area A0, perform necessary processing, and write it again to address ax, the processor (CPU
) 1-0 activates the flag determination unit (FDC) 13-0,
Storage area A.

に対応して仮想的に設けられたフラグF0と、アクセス
対象とするアドレスa8とを指定するテストアンドセッ
ト設定命令TSを伝達する。
A test and set setting command TS is transmitted that specifies a flag F0 that is virtually provided corresponding to the flag F0 and an address a8 to be accessed.

起動されたフラグ決定部(FDC)13−0は、受信し
たテストアンドセット設定命令TSからフラグF、を抽
出しく第3図ステップS1)、フラグF0がプロセッサ
(CPU)1−0に登録されているか否かを分析しくス
テップS2)、登録されていることを確認すると(ステ
ップS3)、次にテストアンドセット設定命令TSから
アドレスaXを抽出しくステップS4)、アドレスa8
が何れの部分記憶領域Ai  (但しiは1乃至4)内
に存在するかを分析しくステップS5)、例えば部分記
憶領域A+内に存在することを確認すると(ステップS
6)、部分記憶領域A1に対応して設けられているフラ
グF1を決定した後(ステップS8)、受信した命令が
テストアンドセット設定命令TSかテストアンドセント
解除命令TRかを分析しくステップS8)、テストアン
ドセント設定命令TSであることを確認すると、テスト
アンドセット設定部(TSS)11−0を起動しくステ
ップS9)、ステップS7において決定したフラグF+
の共用メモリ (CM)2における制御領域す、を指定
する。
The activated flag determination unit (FDC) 13-0 extracts the flag F from the received test and set setting command TS (step S1 in FIG. 3), and the flag F0 is registered in the processor (CPU) 1-0. When it is confirmed that the address a8 is registered (step S3), the address aX is extracted from the test and set setting command TS (step S4).
Analyzes which partial storage area Ai (where i is 1 to 4) exists in which partial storage area Ai (step S5), and confirms that it exists in partial storage area A+ (step S5).
6) After determining the flag F1 provided corresponding to the partial storage area A1 (step S8), analyze whether the received command is a test and set setting command TS or a test and cent cancellation command TR (step S8). , when it is confirmed that it is the test and set setting command TS, the test and set setting section (TSS) 11-0 is activated (step S9), and the flag F+ determined in step S7 is set.
The control area in the shared memory (CM) 2 is specified.

起動されたテストアンドセント設定部(TSS)11−
0は、前述と同様の過程により、受信したテストアンド
セット設定命令TSにより指定された制′aTlJf域
す、に設けられているフラグF。
Started test and cent setting section (TSS) 11-
0 is the flag F set in the constraint area designated by the received test and set setting command TS through the same process as described above.

の設定状態を分析し、空き状態に設定されている場合に
は、対応する部分記憶領域A、が他のプロセッサ(CP
LJ)1−1により使用されていないと判断し、直ちに
フラグF、を閉塞状態に設定した後、プロセッサ(CP
U)1−0に部分記憶領域A、の使用を許容する。
Analyzes the setting state of A, and if it is set to free state, the corresponding partial storage area A is used by another processor (CP
LJ) 1-1 determines that it is not being used, and immediately sets flag F to a blocked state.
U) Allow use of partial storage area A for 1-0.

なおステップS2において、フラグF0が未登録と確認
された場合(ステップS3)、またはステップS5にお
いてアドレスaxが記憶領域A。
Note that if the flag F0 is confirmed to be unregistered in step S2 (step S3), or if the address ax is determined to be storage area A in step S5.

の範囲外にあり、部分記憶領域Aiが決定されなかった
場合にはくステップS6)、受信したテストアンドセッ
ト設定命令TSが異常である旨を表示する(ステップ5
ll)。
If the partial storage area Ai is outside the range and the partial storage area Ai is not determined, a message indicating that the received test and set setting command TS is abnormal is displayed (step S6).
ll).

かかる状態で、他プロセツサ(CPU)1−1に、記憶
領域A、内のアドレスa、に格納されているデータdy
を読出し、所要の処理を施して再びアドレスa、に書込
む要求が発生すると、プロセッサ(CPU)1−1は前
述と同様にフラグ決定部(FDC)13−1を起動し、
記憶領域A0に対応して仮想的に設けられたフラグF0
と、アクセス対象とするアドレスa、とを指定するテス
トアンドセット設定命令TSを伝達する。
In this state, the data dy stored at address a in storage area A is stored in another processor (CPU) 1-1.
When a request is made to read out, perform the necessary processing, and write to address a again, the processor (CPU) 1-1 activates the flag determination unit (FDC) 13-1 in the same way as described above.
Flag F0 virtually provided corresponding to storage area A0
and the address a to be accessed.

起動されたフラグ決定部(FDC)13−N!、受信し
たテストアンドセット設定命令TSに指定されているフ
ラグF、がプロセッサ(CPU)1−1に登録済みであ
ることを確認した後(ステップS1乃至S3)、テスト
アンドセント設定命令TSに指定されているアドレスa
yを抽出しくステップS4)、アドレスa、が何れの部
分記憶領域Ai内に存在するかを分析しくステップS5
)、例えば部分記憶領域A、内に存在することを確認す
ると(ステップS6)、部分記憶領域A3に対応して設
けられているフラグF、を決定した後(ステップS8)
、受信した命令がテストアンドセット設定命令TSであ
ることを確認すると(ステップS8)、テストアンドセ
ント設定部(TSS)11−1を起動しくステップS9
)、ステップS7において決定したフラグF、の制御領
域す、を指定する。
Activated flag determination unit (FDC) 13-N! After confirming that the flag F specified in the received test and set setting command TS has been registered in the processor (CPU) 1-1 (steps S1 to S3), the flag F specified in the test and set setting command TS is address a
Step S4) to extract y, and analyze in which partial storage area Ai the address a exists in step S5.
), for example, exists in the partial storage area A (step S6), and after determining the flag F provided corresponding to the partial storage area A3 (step S8)
When it is confirmed that the received command is a test and set setting command TS (step S8), the test and set setting section (TSS) 11-1 is activated in step S9.
), the control region S of the flag F determined in step S7 is specified.

起動されたテストアンドセット設定部(TSS)11−
1は、前述と同様の過程により、受信したテストアンド
セット設定命令TSにより指定された制御領域す、に設
けられているフラグF3の設定状態を分析し、空き状態
に設定されている場合には、対応する部分記憶領域A、
が他のプロセッサ(CPU)1−0により使用されてい
ないと判断し、直ちにフラグF3を閉塞状態に設定した
後、プロセッサ(CPU)1−1に部分記憶領域A、の
使用を許容する。
Started test and set setting section (TSS) 11-
1 analyzes the setting state of the flag F3 set in the control area specified by the received test and set setting command TS through the same process as described above, and if it is set to an empty state, , corresponding partial storage area A,
After determining that the partial storage area A is not being used by another processor (CPU) 1-0 and immediately setting the flag F3 to the blocked state, the processor (CPU) 1-1 is allowed to use the partial storage area A.

やがてプロセッサ(CPU)1−0が、データd8に一
対する読出しおよび書込み処理を完了すると、プロセッ
サ(CPU)1−0は前述と同様にフラグ決定部(FD
C)13−0を起動し、記憶領域A0に対応して仮想的
に設けられたフラグF。と、アクセスしたアドレスax
とを指定するテストアンドセット解除命令TRを伝達す
る。
When the processor (CPU) 1-0 eventually completes the read and write processing for the data d8, the processor (CPU) 1-0 selects the flag determination unit (FD) as described above.
C) 13-0 is activated and a flag F is virtually provided corresponding to the storage area A0. and the accessed address ax
A test and set release command TR is transmitted specifying the following.

起動されたフラグ決定部(FDC)13−0は、受信し
たテストアンドセット解除命令TRに指定されているフ
ラグF、がプロセッサ(CPU)1−0に登録済みであ
ることを確認した後(ステップS1乃至S3)、テスト
アンドセット解除命令TRに指定されているアドレスa
xを抽出しくステップS4)、アドレスaXが何れの部
分記憶領域At内に存在するかを分析しくステップS5
)、部分記憶領域AI内に存在することを確認すると(
ステップS6)、部分記憶領域A1に対応して設けられ
ているフラグF、を決定した後(ステップS8)、受信
した命令がテストアンドセット解除命令TRであること
を確認すると(ステップS8)、テストアンドセット解
除部(TSR)12−0を起動しくステップ5IO)、
ステップS7において決定したフラグF1の制御領域b
1を指定する。
The activated flag determination unit (FDC) 13-0 confirms that the flag F specified in the received test and set cancellation command TR has been registered in the processor (CPU) 1-0 (step S1 to S3), the address a specified in the test and set release instruction TR
Step S4) to extract x, and step S5 to analyze which partial storage area At the address aX exists in.
), and confirming that it exists in the partial storage area AI (
Step S6), after determining the flag F provided corresponding to the partial storage area A1 (Step S8), and confirming that the received command is the test and set cancellation command TR (Step S8), the test Activate the AND set release unit (TSR) 12-0 (step 5IO),
Control region b of flag F1 determined in step S7
Specify 1.

起動されたテストアンドセット解除部(TSR)12−
0は、受信したテストアンドセット解除命令TRにより
指定された制<u SR域b1に設けられているフラグ
F1を空き状態に設定し、部分記憶領域A、を他のプロ
セッサ(CPU)l−1にも使用可能とする。
Activated test and set release unit (TSR) 12-
0 sets the flag F1 provided in the control <u SR area b1 to an empty state, and makes the partial storage area A available to another processor (CPU) l-1. It can also be used for

以上の説明から明らかな如く、本実施例によれば、プロ
セッサ(CPU)1−0が記憶領域A0のアドレスax
にアクセスを要求する際に、記憶領域A0に対応して仮
想的に設けられたフラグF。と、アクセス対象とするア
ドレスallとを指定するテストアンドセット設定命令
TSをフラグ決定部(FDC)13−0に伝達するのみ
で、アドレスaxが存在する部分記憶領域AIのみを閉
塞して使用可能とする為、アクセス対象とするアドレス
axの所在する部分記憶領域A、を何等意識する必要も
無い為、制御も簡単となり、また他のプロセッサ(CP
U)1−1は同一記憶領域A0内の他の部分記憶領域A
、に存在する他のアドレスa、に、待合わせること無く
アクセス可能と存る。
As is clear from the above description, according to this embodiment, the processor (CPU) 1-0 uses the address ax of the storage area A0.
A flag F is virtually provided corresponding to the storage area A0 when requesting access to the storage area A0. By simply transmitting the test and set setting command TS that specifies the address "all" and the address "all" to be accessed to the flag determination unit (FDC) 13-0, it is possible to block and use only the partial storage area AI where the address ax exists. Therefore, there is no need to be aware of the partial storage area A where the address ax to be accessed is located, so control is simple, and other processors (CP
U) 1-1 is another partial storage area A in the same storage area A0
It is possible to access another address a existing in , without waiting.

なお、第2図および第3図はあく迄本発明の一実施例に
過ぎず、例えば記憶領域A、は四組の部分記憶領域AI
乃至A4に区分されるものに限定されることは無く、他
に幾多の変形が考慮されるが、何れの場合にも本発明の
効果は変わらない。
Note that FIGS. 2 and 3 are only one embodiment of the present invention, and for example, storage area A is divided into four sets of partial storage areas AI.
It is not limited to those classified into A4 to A4, and many other modifications may be considered, but the effects of the present invention remain the same in any case.

また本発明の対象となる処理単位100および共用資源
200は、図示されるマ°ロセツサ(CPU)1および
共用メモリ (CM)2に限定されず、処理単位が複数
プロセッサに属する場合、単一プロセッサに属する場合
もあり、更にテストアンドセット命令実行手段101お
よびフラグ決定手段102が処理単位内に限定されぬ等
、他に幾多の変形が考慮されるが、何れの場合にも本発
明の効果は変わらない。
Furthermore, the processing unit 100 and the shared resources 200 that are the object of the present invention are not limited to the illustrated processor (CPU) 1 and shared memory (CM) 2, but if the processing unit belongs to multiple processors, a single processor However, in any case, the effects of the present invention will be does not change.

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

以上、本発明によれば、前記情報処理システムにおいて
、処理単位は共用資源の使用を要求する際に、使用対象
位置を指定するのみで、使用対象位置を含む分割単位の
みを他の処理単位に対して閉塞する為、他の分割単位に
対しては他の処理単位が並行して使用可能となり、処理
単位の制御を複雑化させること無く、共用資源の待合せ
が発生する機会が大幅に減少し、当該情報処理システム
の処理効率も向上する。
As described above, according to the present invention, in the information processing system, when a processing unit requests the use of a shared resource, it only specifies the position to be used, and only the divided unit including the position to be used is transferred to other processing units. Since other processing units can be used in parallel for other partitioned units, the chances of waiting for shared resources are greatly reduced without complicating the control of processing units. , the processing efficiency of the information processing system is also improved.

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

第1図は本発明の原理を示す図、第2図は本発明の一実
施例による情報処理システムを示す図、第3図は第2図
におけるフラグ決定過程を例示する図、第4図は従来あ
る情報処理システムの一例を示す図である。 図において、■はプロセッサ(CPU) 、2は共用メ
モリ (CM) 、l 1はテストアンドセット設定部
(TSS) 、12はテストアンドセット解除部(TS
R)、13はフラグ決定部(FDC)、100は処理単
位、101はテストアンドセント命令実行手段、102
はフラグ決定手段、200は共用資源、201は分割単
位、300はフラグ、木発gAIζX計青檀処理シスL 惠2図 )f−、実間へ原理口
FIG. 1 is a diagram showing the principle of the present invention, FIG. 2 is a diagram showing an information processing system according to an embodiment of the present invention, FIG. 3 is a diagram illustrating the flag determination process in FIG. 2, and FIG. 1 is a diagram showing an example of a conventional information processing system. In the figure, ■ is the processor (CPU), 2 is the shared memory (CM), l1 is the test and set setting section (TSS), and 12 is the test and set cancellation section (TSS).
R), 13 is a flag determining unit (FDC), 100 is a processing unit, 101 is a test-and-sent instruction execution means, 102
is a flag determination means, 200 is a shared resource, 201 is a division unit, 300 is a flag, Kihatsu gAIζ

Claims (1)

【特許請求の範囲】 複数の処理単位(100)が、共用資源(200)を互
いに閉塞して自処理単位(100)に使用可能とするテ
ストアンドセット命令実行手段(101)をそれぞれ具
備する情報処理システムにおいて、 前記共用資源(200)を複数の分割単位(201)に
区分し、 前記各分割単位(201)に対応してそれぞれ閉塞用の
フラグ(300)を設け、 前記各処理単位(100)が前記共用資源(200)の
使用を要求する際に、使用対象位置を示すアドレス(a
_x)を指定し、 前記各処理単位(100)に、前記使用要求およびアド
レス(a_x)に基づき、使用対象位置を含む前記分割
単位(201)に対応するフラグ(300)を決定する
フラグ決定手段(102)を設け、 前記フラグ決定手段(102)が決定したフラグ(30
0)を前記テストアンドセット命令実行手段(101)
に伝達することより、前記テストアンドセット命令実行
手段(101)が前記フラグ(300)に対応する分割
単位(201)のみを閉塞して自処理単位(100)に
使用可能とすることを特徴とする共用資源制御方式。
[Scope of Claims] Information that a plurality of processing units (100) are each equipped with a test-and-set instruction execution means (101) that blocks shared resources (200) from each other and makes them usable by the own processing unit (100). In the processing system, the shared resource (200) is divided into a plurality of division units (201), a blockage flag (300) is provided corresponding to each division unit (201), and each of the processing units (100) is provided with a blocking flag (300). ) requests the use of the shared resource (200), the address (a
__x), and determines a flag (300) corresponding to the divided unit (201) including the usage target position for each processing unit (100) based on the usage request and address (a_x); (102) is provided, and the flag (30
0) to the test and set instruction execution means (101)
The test and set instruction execution means (101) blocks only the division unit (201) corresponding to the flag (300) and makes it usable for its own processing unit (100). shared resource control method.
JP6280789A 1989-03-15 1989-03-15 Shared resource control system Pending JPH02242363A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6280789A JPH02242363A (en) 1989-03-15 1989-03-15 Shared resource control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6280789A JPH02242363A (en) 1989-03-15 1989-03-15 Shared resource control system

Publications (1)

Publication Number Publication Date
JPH02242363A true JPH02242363A (en) 1990-09-26

Family

ID=13210978

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6280789A Pending JPH02242363A (en) 1989-03-15 1989-03-15 Shared resource control system

Country Status (1)

Country Link
JP (1) JPH02242363A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06119232A (en) * 1992-06-16 1994-04-28 Internatl Business Mach Corp <Ibm> Shared-data-memory control system, setting method for master processing device and data-copy method
JP2009230757A (en) * 2008-03-24 2009-10-08 Nvidia Corp Lock mechanism for performing atomic update to shared memory
JP2014225058A (en) * 2013-05-15 2014-12-04 京セラドキュメントソリューションズ株式会社 Image forming apparatus and interrupt control method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06119232A (en) * 1992-06-16 1994-04-28 Internatl Business Mach Corp <Ibm> Shared-data-memory control system, setting method for master processing device and data-copy method
JP2009230757A (en) * 2008-03-24 2009-10-08 Nvidia Corp Lock mechanism for performing atomic update to shared memory
US8375176B2 (en) 2008-03-24 2013-02-12 Nvidia Corporation Lock mechanism to enable atomic updates to shared memory
JP2014225058A (en) * 2013-05-15 2014-12-04 京セラドキュメントソリューションズ株式会社 Image forming apparatus and interrupt control method

Similar Documents

Publication Publication Date Title
US6694390B1 (en) Managing bus transaction dependencies
US5193197A (en) Apparatus and method for distributed dynamic priority arbitration for access to a shared resource
US5826082A (en) Method for reserving resources
US5701495A (en) Scalable system interrupt structure for a multi-processing system
EP0682312A2 (en) Hardware implemented locking mechanism for parallel/distributed computer system
JPH04308961A (en) Means and apparatus for notifying state of synchronous locking of occupied process
EP0438021A2 (en) Synchronization instruction for multiple processor network
JPS5812611B2 (en) Data Tensou Seigiyohoushiki
US12254317B2 (en) Ticket locks with enhanced waiting
JP3506221B2 (en) Memory request cancellation method
JP2690435B2 (en) Multiprocessor system having microprogram means for dispatching processing to a processor
JPH02242363A (en) Shared resource control system
WO2020179344A1 (en) Vehicle control device
US5826045A (en) Arbitration parking apparatus and method for a split transaction bus in a multiprocessor computer system
JPH0656602B2 (en) Priority control system for processors with cache
US6904601B1 (en) Method and system for providing remote procedure calls in a multiprocessing system
JPH0728748A (en) Bus control mechanism and computer system
JPS6125249A (en) Exclusive control system
JPS6145348A (en) Bus priority control method
JPH0520269A (en) Exclusive control method
JP2856761B2 (en) Resource lock management device
JP2000003287A (en) Exclusive controller for shared resource, method therefor and recording medium for recording exclusive control program
KR20020063365A (en) Real time memory management method of multi processor system
JP3760995B2 (en) Shared memory vector processing system, control method therefor, and storage medium storing vector processing control program
JPS62546B2 (en)