JPS6227837A - Main memory access system - Google Patents

Main memory access system

Info

Publication number
JPS6227837A
JPS6227837A JP16873985A JP16873985A JPS6227837A JP S6227837 A JPS6227837 A JP S6227837A JP 16873985 A JP16873985 A JP 16873985A JP 16873985 A JP16873985 A JP 16873985A JP S6227837 A JPS6227837 A JP S6227837A
Authority
JP
Japan
Prior art keywords
request
exclusive control
control request
main memory
register
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
JP16873985A
Other languages
Japanese (ja)
Inventor
Itaru Okano
格 岡野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP16873985A priority Critical patent/JPS6227837A/en
Publication of JPS6227837A publication Critical patent/JPS6227837A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To evade deadlock of a main memory access system by invalidating an exclusive control request held by a transmitting means and delivering an exclusive control end request to a main memory in case an exclusive control request is produced from another main memory requester while the first exclusive control request is accepted. CONSTITUTION:An exclusive control request is delivered from an operand request part 2 of an execution processor 1 for each same clock while the exclusive control request delivered from an instruction request part 4 of the processor 1 is accepted by a system controller 23 and the exclusive control request is processed. The information on the above-mentioned operations is given to a lock-up detecting part 17 from an exclusive control request part 5 in an instruction request part 4 through a signal line 14. The part 17 invalidates the exclusive control request of a register 9 via a signal line 18 and also gives a re-extracting request of an operand to the part 2 via a signal line 19 after the part 17 detects that the exclusive control request is stored in the register 9 and also that said exclusive control request fails. In such a way, a deadlock can be evaded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は主記憶アクセス方式に関し、特に複数の排他制
御要求を一つの伝送手段により主記憶装置に対し送出す
るよう構成された処理装置におけるデッドロックの回避
技術に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a main memory access method, and in particular, to a dead access method in a processing device configured to send a plurality of exclusive control requests to a main memory device through a single transmission means. Concerning lock avoidance techniques.

主記憶装置の共通データ領域に対する多重アクセスを回
避するために、排他制御が行なわれる。
Exclusive control is performed to avoid multiple accesses to the common data area of the main storage device.

この排他制御は、主記憶装置を複数の処理装置で共用す
るマルチプロセッサシステム等においては各処理装置間
で必要となると共に、一つの処理装置内にオペランド要
求部と命令要求部の如(複数の主記憶要求元がある場合
にはこの複数の要求元間でも必要とされる。なお、一般
に、前記排他制御要求は、主記憶装置の特定の分割単位
(ロック単位という)に対し出され、該排他制御要求が
受け付けられることにより該ロック単位に対しロックが
かけられる。ここで、ロックとは排他制御要求に対する
ものであり、通常のメモリアクセスは阻害されない。
This exclusive control is necessary between each processing unit in a multiprocessor system where the main memory is shared by multiple processing units, and also requires multiple If there is a main storage request source, this is also required among these multiple request sources.In general, the exclusive control request is issued for a specific division unit (referred to as a lock unit) of the main storage device, and When an exclusive control request is accepted, a lock is placed on the lock unit.Here, the lock is for the exclusive control request, and normal memory access is not inhibited.

〔従来の技術〕[Conventional technology]

第2図は従来の主記憶アクセス方式を実施するシステム
のブロック図であり、主記憶袋w30にシステム制御装
置31を介して2個の実行処理装置32゜33と、2個
の入出力処理装置34.35を接続し、実行処理装置3
2.33で主記憶装置30を共用したマルチプロセッサ
システムを示す。
FIG. 2 is a block diagram of a system implementing a conventional main memory access method, in which two execution processing units 32 and 33 and two input/output processing units are connected to the main memory bag w30 via a system control device 31. 34. Connect 35 and execute processing device 3.
2.33 shows a multiprocessor system in which the main storage device 30 is shared.

実行処理装置32C;は、オペランド要求部36.命令
要求部37の二つの主記憶要求元があり、オペランド要
求部36から出されたオペランド要求(オペランド書込
み要求、オペランド読出し要求、それらに伴う排他制御
要求、この排他制御要求と対を為す排他制御終了要求等
の種類がある)および命令要求部37から出された命令
要求(命令取り出し要求、それに伴う排他制御要求、こ
の排他制御要求と対を為す排他制御終了要求等の種類が
ある)は、セレクタ38で予め決定された優先順位に従
って選択され、レジスタ39にロードされる。この優先
順位は、通常、オペランド取り出しが最も高く、次に命
令取り出しが高く、オペランド書込みが最も低い、セレ
クタ40は、レジスタ41に有効な要求があるときはレ
ジスタ41の出力を選択し、レジスタ41に有効な要求
がないときはレジスタ39を選択してその内容をレジス
タ41にロードする。このロードは、レジスタ41の内
容が排他制御要求以外のものであるときは、レジスタ4
1の内容がシステム制御装置31に受け取られた時点で
行なわれる。しかし、レジスタ41の内容が排他制御要
求のときは、セレクタ40は排他制御要求がシステム制
御装置31に受け取られた後もその選択をレジスタ41
に固定しており、システム制御装置31から排他制御要
求に対する成功が報告された時点で始めてレジスタ39
の内容がレジスタ41にロードされる。なお、このよう
な構成と同一の構成が実行処理装置33側にも設けられ
る。
The execution processing unit 32C; is an operand requesting unit 36. There are two main memory request sources of the instruction request unit 37, and an operand request issued from the operand request unit 36 (operand write request, operand read request, exclusive control request accompanying them, exclusive control paired with this exclusive control request) The command requests issued from the command request unit 37 (there are various types such as an instruction fetch request, an accompanying exclusive control request, and an exclusive control termination request paired with this exclusive control request) are as follows: It is selected by the selector 38 according to a predetermined priority order and loaded into the register 39. This priority is normally highest for operand fetching, next highest for instruction fetching, and lowest for operand writing.Selector 40 selects the output of register 41 when there is a valid request in register 41; If there is no valid request, register 39 is selected and its contents are loaded into register 41. This load is performed when the contents of the register 41 are other than exclusive control requests.
1 is received by the system controller 31. However, when the content of the register 41 is an exclusive control request, the selector 40 selects the selection from the register 41 even after the exclusive control request is received by the system control device 31.
The register 39 is fixed at
The contents of are loaded into register 41. Note that the same configuration as above is also provided on the execution processing device 33 side.

システム制御装置31に対して送出された排他制御要求
に対しては、ロックの成否がリプライによってその排他
制御要求を発した実行処理袋!32゜33に報告される
。そして、口7りが成功していれば、実行処理装置にお
けるセレクタ40はレジスタ39の新たな要求を受け付
けるべく切換えられ、ロックが失敗していれば、再びレ
ジスタ41から排他制御要求がシステム制御装置31に
送出される。
For an exclusive control request sent to the system control device 31, the success or failure of locking is determined by the execution processing bag that issued the exclusive control request! Reported on 32°33. If the lock is successful, the selector 40 in the execution processing unit is switched to accept a new request from the register 39, and if the lock has failed, the exclusive control request is again sent from the register 41 to the system control device. 31.

今、主記憶装置30のあるロック単位に対し実行処理装
置32.33から共に排他制御要求が出された場合を考
えると、その二つの排他制御要求はシステム制御装置3
1で優先順位がとられ、システム制御装置31は唯一の
実行処理装置に対してのみロック成功を報告する。そし
て、ロック成功した側の実行処理装置では前述したよう
に次の要求がレジスタ39からセレクタ40を介してレ
ジスタ41にロードされる。一方、ロックが失敗した側
の実行処理装置は、前述したように排他制御要求をレジ
スタ41に保持し、ロックが成功するまでその排他制御
要求をシステム制御装置31に送出し続ける。この為、
後続の命令はロック成功するまで待たされることになる
Now, considering the case where exclusive control requests are issued from the execution processing units 32 and 33 for a certain lock unit of the main storage device 30, the two exclusive control requests are
1, the system controller 31 reports lock success only to the only executing processor. Then, in the execution processing device on the side where the lock was successfully executed, the next request is loaded from the register 39 to the register 41 via the selector 40, as described above. On the other hand, the execution processing device on the side where the locking has failed holds the exclusive control request in the register 41 as described above, and continues to send the exclusive control request to the system control device 31 until the locking is successful. For this reason,
Subsequent instructions will have to wait until the lock is successful.

ロックを成功した実行処理装置が排他制御の必要な処理
を行ない、その処理が終了すると、排他制御終了要求を
排他制御要求と同一のパスを介してシステム制?11装
置31に送出する。これを受けてシステム制御装置31
はそのロック単位に対する新たな排他制御要求を受け付
ける状態となる。従って、もし他の実行処理装置が同一
ロック単位に対し排他制御要求を出していれば、システ
ム制御装置31からその実行処理装置に対しロック成功
が報告され、他の実行処理装置も排他制御の必要な処理
が可能となる。
The execution processing device that successfully acquired the lock performs processing that requires exclusive control, and when that processing is completed, the exclusive control termination request is sent to the system system via the same path as the exclusive control request. 11 device 31. In response to this, the system control device 31
becomes ready to accept new exclusive control requests for that lock unit. Therefore, if another execution processing unit issues an exclusive control request for the same lock unit, the system control unit 31 reports lock success to that execution processing unit, and the other execution processing unit also requires exclusive control. processing becomes possible.

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

ところで、第2図の構成において、同一の実行処理装置
から命令取り出しとオペランド取り出しに起因する排他
制御要求が同時に同一ロック単位に対して出された場合
、先ずセレクタ38においてそのどちらか優先順位の高
い方の排他制御要求が選択され、レジスタ39.セレク
タ40.レジスタ41を介してシステム制御装置31に
送出され、そのロック成功が報告された時点で後の排他
制御要求がレジスタ39.セレクタ40.レジスタ41
を介してシステム制御装置31に送られる。しかし、後
の排他制御要求は、先の排他制御要求が既にロック成功
していることからシステム制御装置31では受け付けら
れず、レジスタ41に保持されたままとなる。
By the way, in the configuration shown in FIG. 2, when exclusive control requests due to instruction fetching and operand fetching are simultaneously issued from the same execution processing unit to the same lock unit, the selector 38 first selects whichever has the higher priority. The other exclusive control request is selected, and the register 39. Selector 40. The exclusive control request is sent to the system control device 31 via the register 41, and at the time when the success of the lock is reported, the subsequent exclusive control request is sent to the register 39. Selector 40. register 41
It is sent to the system control device 31 via. However, since the previous exclusive control request has already been successfully locked, the subsequent exclusive control request is not accepted by the system control device 31 and remains held in the register 41.

このため、先の排他制御要求を出した主記憶要求元から
排他制御終了要求が出ても、この排他制御終了要求はレ
ジスタ41にロードされることができず、システム制御
装置31に排他制御終了要求を送出できない、この排他
制御終了要求が送出できないとレジスタ41に保持され
ている排他制御要求は受け付けられないから、このとき
所謂デッドロックが発生する。
Therefore, even if an exclusive control termination request is issued from the main memory request source that issued the previous exclusive control request, this exclusive control termination request cannot be loaded into the register 41, and the system control device 31 is prompted to terminate the exclusive control. If the request cannot be sent and the exclusive control end request cannot be sent, the exclusive control request held in the register 41 will not be accepted, so a so-called deadlock occurs at this time.

このようなデッドロックを回避する一方法は、実行処理
装置内に現在地の主記憶要求元が排他制御処理中である
か否かを検出する手段を設け、排他制御処理中であれば
、残りの主記憶要求元から新たな排他制御要求を出さな
いようにすることである。
One way to avoid such a deadlock is to provide a means in the execution processing unit to detect whether or not the main memory request source at the current location is performing exclusive control processing. The purpose is to prevent the main memory request source from issuing a new exclusive control request.

しかし、このような構成によれば、排他制御要求の対象
となるロック単位が各々別々であっても後の排他制御要
求は抑止されることになり、性能が著しく低下するとい
う問題がある。
However, with such a configuration, even if the lock units subject to exclusive control requests are different from each other, subsequent exclusive control requests are suppressed, resulting in a problem that performance deteriorates significantly.

本発明の目的は、性能を低下させることなく上述したよ
うなデッドロックを回避することにある。
An object of the present invention is to avoid deadlocks as described above without degrading performance.

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

本発明は上記問題点を解決するために、複数の主記憶要
求元を有し、各要求元から出された排他制御要求を共通
の伝送手段により主記憶装置に送出し、該送出された排
他制御要求が受け付けられなかった場合は該受け付けら
れなかった排他制御要求を前記伝送手段に保持せしめて
受け付けられるまで繰り返し前記主記憶装置に送出する
ように構成された処理装置における主記憶アクセス方式
前記伝送手段に保持された排他制御要求が受け付けられ
ない間に他の主記憶要求元から排他制御終了要求が出さ
れたとき前記伝送手段を専有する排他制御要求を無効に
して前記排他制御終了要求の送出を可能とし、且つ、該
無効にされた排他制御要求を発した主記憶要求元に排他
制御要求の再発行を指示するようにしたものである。
In order to solve the above problems, the present invention has a plurality of main storage request sources, sends exclusive control requests issued from each request source to the main storage device through a common transmission means, and The main memory access method in the processing device is configured such that when a control request is not accepted, the exclusive control request that is not accepted is held in the transmission means and repeatedly sent to the main memory until the control request is accepted. When an exclusive control termination request is issued from another main memory request source while the exclusive control request held in the transmission means is not accepted, the exclusive control request that monopolizes the transmission means is invalidated and the exclusive control termination request is In addition, the main memory request source that issued the invalidated exclusive control request is instructed to reissue the exclusive control request.

〔作用〕[Effect]

ある一つの主記憶要求元から出された排他制御要求が受
け付けられ排他制御処理が行なわれている間に別の主記
憶要求元から同一ロック単位に対し排他制御要求が出さ
れると、先の排他制御要求が受け付けられていることか
ら後の排他制御要求は受け付けられず、伝送手段を専有
する状態が発生する。しかし、このような状態が発生す
ると、伝送手段に保持された後の排他制御要求は無効に
されるので、先の排他制御要求を出した主記憶要求元か
らの排他制御終了要求は伝送手段を介して主記憶装置に
送出することが可能となる。また、排他制御要求を無効
にされた主記憶要求元に対しては排他制御要求の再発行
が指示されるので、再発行指示に基づき排他制御要求を
再度送出することで、前記排他制御終了要求が送出され
たことと相まって、その主記憶要求元に対してもその排
他制御要求が受け付けられることになり、デッドロック
が回避される。
If an exclusive control request issued by one main memory request source is accepted and exclusive control processing is being performed, if another main memory request source issues an exclusive control request for the same lock unit, the previous exclusive control request is Since the control request has already been accepted, subsequent exclusive control requests will not be accepted, resulting in a situation in which the transmission means is monopolized. However, if such a situation occurs, the exclusive control request held in the transmission means will be invalidated, so the exclusive control end request from the main memory requester that issued the previous exclusive control request will not be sent to the transmission means. It becomes possible to send the data to the main storage device via the computer. In addition, since the main memory request source whose exclusive control request has been invalidated is instructed to reissue the exclusive control request, by sending the exclusive control request again based on the reissue instruction, the exclusive control termination request Coupled with this, the exclusive control request is also accepted by the main memory request source, and deadlock is avoided.

〔実施例〕〔Example〕

第1図は本発明の実施例のデータ処理システムのブロッ
ク図であり、l、20は実行処理装置、21゜22は入
出力処理装置、23はシステム制御装置、24は主記憶
装置である。
FIG. 1 is a block diagram of a data processing system according to an embodiment of the present invention, in which 1 and 20 are execution processing units, 21 and 22 are input/output processing units, 23 is a system control unit, and 24 is a main storage unit.

実行処理装置1の中には、オペランド要求部2゜命令要
求部4.セレクタ6.8、レジスタ7.9゜10、ロッ
クアツプ検出部17等を含む主記憶要求機構が設けられ
ている。主記憶要求機構中にはレジスタ9と信号線16
等を含む伝送手段が含まれている。同様な構成の主記憶
要求機構は実行処理装置20にも設けられる。
The execution processing device 1 includes an operand requesting section 2, an instruction requesting section 4. A main memory request mechanism including a selector 6.8, a register 7.9.10, a lockup detection section 17, etc. is provided. During the main memory request mechanism, register 9 and signal line 16
Transmission means including, etc. are included. A main memory request mechanism having a similar configuration is also provided in the execution processing unit 20.

主記憶装置24に対する要求は、オペランド要求部2お
よび命令要求部4から出される。オペランド要求部2お
よび命令要求部4は各々独立に主記憶要求を発生するが
、双方の要求はセレクタ6で選択され、レジスタ7にロ
ードされる。セレクタ6は要求が一つの場合は要求のあ
った側の主記憶要求を選択するが、二つの主記憶要求が
同時に発生した場合には所定の優先順位によって何れか
一方の要求を選択する。また、セレクタ6はレジスタ7
に有効な要求が留まっている間は新たな要求は受け付け
ない、セレクタ8はレジスタ9に有効な要求がなければ
レジスタ7からの要求を受け付け、レジスタ9に有効な
要求が留まっていればレジスタ9の出力を選択する。
Requests to the main storage device 24 are issued from the operand request section 2 and the instruction request section 4. Operand request unit 2 and instruction request unit 4 each independently generate main memory requests, and both requests are selected by selector 6 and loaded into register 7. When there is only one request, the selector 6 selects the requested main memory request, but when two main memory requests occur simultaneously, it selects one of the requests based on a predetermined priority order. Also, selector 6 is register 7
Selector 8 will not accept a new request while a valid request remains in register 9. Selector 8 will accept a request from register 7 if there is no valid request in register 9, and selector 8 will accept a request from register 7 if there is a valid request in register 9. Select the output of

レジスタ9にロードされた主記憶要求は、信号線16を
通じてシステム制御装置23に伝えられる。
The main memory request loaded into register 9 is transmitted to system controller 23 via signal line 16.

システム制御装置23は各実行処理袋?I!1.20か
らの要求を受け付け、主記憶装置24とのインタフェイ
スを行なう。
Is the system control device 23 each execution processing bag? I! 1. Accepts requests from 20 and interfaces with the main storage device 24.

オペランド要求部2および命令要求部4は、通常の主記
憶要求の他にも、主記憶の排他制御要求。
In addition to normal main memory requests, the operand request unit 2 and instruction request unit 4 also request exclusive control of the main memory.

排他制御終了要求を出すことができる。オペランド要求
部2または命令要求部4から出された排他制御要求は、
セレクタ6、レジスタ7、セレクタ8を経てレジスタ9
にロードされる0通常の主記憶要求では、要求がシステ
ム制御装置23に受け取られた段階でセレクタ8は次の
要求を受け付けるべくレジスタ7を選択するが、排他1
1114要求の場合はその要求がシステム制御装置23
に受け付けられたことが確認されるまでレジスタ9に排
他111J要求が留まっている。
A request to terminate exclusive control can be issued. The exclusive control request issued from the operand request unit 2 or the instruction request unit 4 is
Register 9 via selector 6, register 7, selector 8
In a normal main memory request, when the request is received by the system controller 23, the selector 8 selects the register 7 to accept the next request.
In the case of a 1114 request, the request is sent to the system controller 23.
The exclusive 111J request remains in register 9 until it is confirmed that it has been accepted.

排他制御要求の受け付は可否はシステム制御装置23か
ら信号線11を経てレジスタ10にロードされる。排他
制御1g求が受け付けられていれば、セレクタ8はレジ
スタ7を選択して次の要求の受け付けを可能とし、排他
制御要求が受け付けられていなければ、再度レジスタ9
からシステム制御装置23に対し排他制御要求が送出さ
れる。以後、排他制御要求がシステム制御装置23に受
け付けられるまで同様の動作を繰り返す。
Whether or not the exclusive control request is accepted is loaded from the system control device 23 into the register 10 via the signal line 11. If the exclusive control request 1g has been accepted, selector 8 selects register 7 to enable acceptance of the next request; if no exclusive control request has been accepted, selector 8 selects register 9 again.
An exclusive control request is sent from the system controller 23 to the system controller 23. Thereafter, similar operations are repeated until the exclusive control request is accepted by the system control device 23.

オペランド要求部2または命令要求部4は、排他制御要
求を出しそれが受け付けられると、排他制御処理に入る
。この排他制御処理とはシステムの共有メモリに対して
行われる厳密な排他制御を必要とする処理、例えばマシ
ンのハードウェア資源の再分配等の処理のことである。
The operand requesting unit 2 or the instruction requesting unit 4 issues an exclusive control request and, when the request is accepted, enters exclusive control processing. This exclusive control process is a process that requires strict exclusive control over the system's shared memory, such as redistribution of machine hardware resources.

排他制御処理を終了したオペランド要求部2または命令
要求部4は、主記憶装置I!24の共有領域の排他制御
権を他の処理装置に譲るために、排他制御終了要求を出
す、この排他制御終了要求は、排他制御要求と同一の経
路を通ってシステム制御装置23に伝えられる。
The operand requesting unit 2 or instruction requesting unit 4 that has completed the exclusive control processing transfers the main storage device I! In order to transfer the exclusive control right of the shared area of 24 to another processing device, an exclusive control termination request is issued. This exclusive control termination request is transmitted to the system control device 23 through the same route as the exclusive control request.

今、実行処理装置1のオペランド要求部2から出された
排他制御要求がシステム制御装置23に受け付けられ、
排他制御処理を行なっている最中に、同じ実行処理装置
1の命令要求部4から前記排他制御要求と同一ロック単
位に排他制御要求が出された場合を想定してみる。この
場合、命令要求部4が排他制御要求を行なったロック単
位は、既に同一実行処理装置1のオペランド要求部2に
よってロックされているため、命令要求部4から出され
た排他制御要求はシステム制御装置23に受け付けられ
ない。
Now, the exclusive control request issued from the operand request unit 2 of the execution processing device 1 is accepted by the system control device 23,
Let us assume that while exclusive control processing is being performed, an exclusive control request is issued from the command requesting unit 4 of the same execution processing device 1 for the same lock unit as the exclusive control request. In this case, the lock unit for which the instruction requesting unit 4 made an exclusive control request has already been locked by the operand requesting unit 2 of the same execution processing unit 1, so the exclusive control request issued by the instruction requesting unit 4 is It is not accepted by the device 23.

一方、オペランド要求部2はやがて排他制御処理を終了
し、排他側?11終了要求を出す0通常の主記憶要求が
オペランド要求部2から出されたとしても、レジスタ9
にある排他制御要求がシステム制御装置23に至る信号
線16を専有しているため、オペランド要求部2から出
された通常の主記憶要求はレジスタ7で待たされる。し
かし、排他制御終了要求の場合には、オペランド要求部
2内に設けられた排他制御要求部3から信号線13を通
してロックアツプ検出部17に排他制御終了要求が出さ
れたことが報告される。そして、ロックアツプ検出部1
7は、排他制御終了要求の送出が報告され、レジスタ9
に排他制御要求が留まっており、且つシステム制御装置
23から排他制御要求の失敗が報告されていることをレ
ジスタ10の内容から判別すると、信号線18によりレ
ジスタ9の排他制御要求、を無効にすると共に、信号線
15により命令要求部4に対して命令の再取り出し要求
を通知する。この結果、レジスタ7に留まっていた排他
制御終了要求は、セレクタ8で選択されてレジスタ9に
ロードされ、システム制御装置23に対し送出される。
On the other hand, the operand requesting unit 2 eventually ends the exclusive control process and returns to the exclusive side? 11 Issue a termination request 0 Even if a normal main memory request is issued from the operand request unit 2, the register 9
Since the exclusive control request located in the register 7 occupies the signal line 16 leading to the system control device 23, the normal main memory request issued from the operand request section 2 is made to wait in the register 7. However, in the case of an exclusive control termination request, the exclusive control request section 3 provided in the operand request section 2 reports to the lockup detection section 17 through the signal line 13 that the exclusive control termination request has been issued. Then, the lockup detection section 1
7, the sending of the exclusive control termination request is reported, and register 9
If it is determined from the contents of the register 10 that the exclusive control request remains and that the failure of the exclusive control request has been reported from the system control device 23, the exclusive control request of the register 9 is invalidated by the signal line 18. At the same time, a request for re-fetching the instruction is notified to the instruction requesting section 4 via the signal line 15. As a result, the exclusive control end request remaining in the register 7 is selected by the selector 8, loaded into the register 9, and sent to the system control device 23.

また、命令の再取り出し要求を受けた命令要求部4は、
それに応じて再度排他制御要求を出す、このとき、オペ
ランド要求部2の排他制御終了要求は既にシステム制御
装置23に送出済であるから、命令要求部4から出され
た排他制御要求は受け付けられることになる。
Further, the instruction requesting unit 4 that has received the instruction re-fetching request,
In response, an exclusive control request is issued again. At this time, since the exclusive control end request from the operand request unit 2 has already been sent to the system control device 23, the exclusive control request issued from the command request unit 4 is accepted. become.

また、実行処理装置1の命令要求部4から出された排他
制御要求がシステム制御装置23に受け付けられ、排他
制御要求を行なっている最中に、同じ実行処理装置1の
オペランド要求部2から前記排他制御要求と同一ロック
単位に排他制御要求が出された場合、オペランド要求部
2からの排他制御要求はレジスタ9を一時的に専有する
ことになる。しかし、この場合も命令要求部4から排他
制御終了要求が出されると、その旨が命令要求部4内の
排他制御要求部5から信号線14を通してロックアンプ
検出部17に通知され、ロックアツプ検出部17はレジ
スタ9に排他制御要求が留まっており、且つその排他制
御要求が失敗していることを検出すると、前述と同様に
信号線18を介してレジスタ9の排他制御要求を無効に
し、且つ信号線19を介してオペランド要求部2にオペ
ランドの再取り出し要求を発するので、デッドロックは
回避されることになる。
Further, an exclusive control request issued from the command requesting section 4 of the execution processing device 1 is received by the system control device 23, and while the exclusive control request is being made, the operand requesting section 2 of the same execution processing device 1 sends the When an exclusive control request is issued for the same lock unit as the exclusive control request, the exclusive control request from the operand request unit 2 temporarily occupies the register 9. However, in this case as well, when an exclusive control termination request is issued from the command requesting section 4, the exclusive control requesting section 5 in the command requesting section 4 notifies the lock amplifier detection section 17 through the signal line 14, and the lock-up detection section When detecting that the exclusive control request remains in the register 9 and that the exclusive control request has failed, the controller 17 invalidates the exclusive control request in the register 9 via the signal line 18 as described above, and also outputs the signal. Since an operand re-fetching request is issued to the operand request unit 2 via the line 19, deadlock is avoided.

なお、以上の実施例では、命令要求部4からの排他制御
要求がレジスタ9に留まることによってオペランド要求
部2からの排他制御終了要求が送出困難となる場合、お
よびオペランド要求部2からの排他制御要求がレジスタ
9に留まることによって命令要求部4からの排他制御終
了要求が送出困難となる場合の双方を想定したが、計算
機のアーキテクチャによっては、前者または後者の何れ
か一方が起こり得ない場合も考えられる。そのようなシ
ステム例えば後者が起こり得ないシステムでは第1図の
制御部5.信号線14.15を省略し、前者の場合のみ
のデッドロックを回避する構成とすれば良い。
Note that in the above embodiment, when the exclusive control request from the instruction requesting section 4 remains in the register 9 and it becomes difficult to send the exclusive control termination request from the operand requesting section 2, and when the exclusive control request from the operand requesting section 2 Although we have assumed both cases in which the exclusive control end request from the instruction request unit 4 is difficult to send due to the request remaining in the register 9, depending on the computer architecture, either the former or the latter may not occur. Conceivable. In such a system, for example in a system where the latter cannot occur, the controller 5 of FIG. The signal lines 14 and 15 may be omitted to avoid deadlock only in the former case.

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

以上説明したように、本発明によれば、一つの処理装置
内のある主記憶要求元から出された排他制御要求が受け
付けられている最中に、同一処理装置内の別の主記憶要
求元から排他制御要求が発生し、一つしかない伝送手段
が専有され排他制御終了要求の送出が困難な事態になる
と、その伝送手段に保持された排他制御要求が無効にさ
れ、排他制御終了要求を主記憶装置側に送出することが
可能となるので、デッドロックを回避できる。また、無
効にされた排他制御要求を発した主記憶要求元に対して
は排他制御要求の再発行が指示されるので、指示を受け
た主記憶要求元は再度排他制御要求を送出することで排
他制御要求を受け付けてもらうことができる。
As explained above, according to the present invention, while an exclusive control request issued by a main memory request source in one processing device is being accepted, another main memory request source in the same processing device When an exclusive control request is generated from a single transmission means and it becomes difficult to send an exclusive control termination request because only one transmission means is occupied, the exclusive control request held in that transmission means is invalidated and the exclusive control termination request is not sent. Since it is possible to send the data to the main storage device side, deadlock can be avoided. In addition, the main memory request source that issued the invalidated exclusive control request is instructed to reissue the exclusive control request, so the main memory request source that received the instruction can send the exclusive control request again. The exclusive control request can be accepted.

更に、処理装置内に現在排他制御処理中であるか否かを
検出する手段を設け、排他制御処理中であれば、各主記
憶要求元から新たな排他制御要求を出さないようにする
方法によれば、前述したように排他制御要求の対象とな
るロック単位が各々別々であっても後の排他制御要求は
先の排他制御処理が終了するまで抑止されるという問題
が生じるが、本発明によれば、各主記憶要求元からの排
他制御要求の発生は抑止していないので、ロック単位の
異なる排他制御要求は直ちに受け付けられることが可能
であり、性能を高めることができる。
Furthermore, a method is provided in which a means for detecting whether exclusive control processing is currently in progress is provided in the processing device, and if exclusive control processing is in progress, no new exclusive control requests are issued from each main memory request source. According to the above method, even if the lock units subject to exclusive control requests are different from each other, subsequent exclusive control requests are suppressed until the previous exclusive control processing is completed. According to the above, since generation of exclusive control requests from each main memory request source is not suppressed, exclusive control requests in different lock units can be immediately accepted, and performance can be improved.

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

第1図は本発明の主記憶アクセス方式を実施するデータ
処理システムの一例を示すブロック図および、 第2図は従来の主記憶アクセス方式を実施するデータ処
理システムの一例を示すブロック図である。 図において、1,20は実行処理装置、2はオペランド
要求部、4は命令要求部、21.22は入出力処理装置
、23はシステム制御装置、24は主記憶装置である。 特許出願人日本電気株式会社>墨、’ 、;、、 、1
−11・・  A 代理人弁理士 内 原  晋(し′ 本発明の実施例のブロック図 第1図
FIG. 1 is a block diagram showing an example of a data processing system implementing the main memory access method of the present invention, and FIG. 2 is a block diagram showing an example of a data processing system implementing the conventional main memory access method. In the figure, 1 and 20 are execution processing units, 2 is an operand request unit, 4 is an instruction request unit, 21 and 22 are input/output processing units, 23 is a system control unit, and 24 is a main storage device. Patent Applicant: NEC Co., Ltd.>Sumi,',;, , , 1
-11...A Representative Patent Attorney Susumu Uchihara Figure 1: Block diagram of an embodiment of the present invention

Claims (1)

【特許請求の範囲】 複数の主記憶要求元を有し、各要求元から出された排他
制御要求を共通の伝送手段により主記憶装置に送出し、
該送出された排他制御要求が受け付けられなかった場合
は該受け付けられなかった排他制御要求を前記伝送手段
に保持せしめて受け付けられるまで繰り返し前記主記憶
装置に送出するように構成された処理装置における主記
憶アクセス方式において、 前記伝送手段に保持された排他制御要求が受け付けられ
ない間に他の主記憶要求元から排他制御終了要求が出さ
れたとき前記伝送手段を専有する排他制御要求を無効に
して前記排他制御終了要求の送出を可能とし、且つ、該
無効にされた排他制御要求を発した主記憶要求元に排他
制御要求の再発行を指示するようにしたことを特徴とす
る主記憶アクセス方式。
[Scope of Claims] A system having a plurality of main storage request sources, and transmitting exclusive control requests issued from each request source to the main storage device through a common transmission means,
When the transmitted exclusive control request is not accepted, the main unit in the processing device is configured to cause the transmission means to retain the exclusive control request and repeatedly transmit it to the main storage device until the exclusive control request is accepted. In the storage access method, when an exclusive control termination request is issued from another main memory request source while the exclusive control request held in the transmission means is not accepted, the exclusive control request for exclusive use of the transmission means is invalidated. A main memory access method characterized in that the exclusive control termination request can be sent, and the main memory request source that issued the invalidated exclusive control request is instructed to reissue the exclusive control request. .
JP16873985A 1985-07-30 1985-07-30 Main memory access system Pending JPS6227837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16873985A JPS6227837A (en) 1985-07-30 1985-07-30 Main memory access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16873985A JPS6227837A (en) 1985-07-30 1985-07-30 Main memory access system

Publications (1)

Publication Number Publication Date
JPS6227837A true JPS6227837A (en) 1987-02-05

Family

ID=15873513

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16873985A Pending JPS6227837A (en) 1985-07-30 1985-07-30 Main memory access system

Country Status (1)

Country Link
JP (1) JPS6227837A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01268590A (en) * 1988-04-19 1989-10-26 Pegasus Sewing Mach Mfg Co Ltd Sewing method and its device
JPH01305457A (en) * 1988-06-02 1989-12-08 Fujitsu Ltd Main storage access request control system
JPH0838768A (en) * 1995-07-20 1996-02-13 Kyushu M I Shii:Kk Automatic sewing machine
JP2003038294A (en) * 2001-07-31 2003-02-12 Araco Corp Seating device for vehicle
CN1105089C (en) * 1995-07-05 2003-04-09 住友电气工业株式会社 Optical fiber drawing furnace

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01268590A (en) * 1988-04-19 1989-10-26 Pegasus Sewing Mach Mfg Co Ltd Sewing method and its device
JPH01305457A (en) * 1988-06-02 1989-12-08 Fujitsu Ltd Main storage access request control system
CN1105089C (en) * 1995-07-05 2003-04-09 住友电气工业株式会社 Optical fiber drawing furnace
JPH0838768A (en) * 1995-07-20 1996-02-13 Kyushu M I Shii:Kk Automatic sewing machine
JP2003038294A (en) * 2001-07-31 2003-02-12 Araco Corp Seating device for vehicle

Similar Documents

Publication Publication Date Title
US5293500A (en) Parallel processing method and apparatus
CA1224572A (en) Fast path means for storage accesses
JP3636871B2 (en) Parallel processor system
JP2761506B2 (en) Main memory controller
EP1569091A2 (en) Vector processing apparatus with instruction re-ordering
JP2706602B2 (en) Interrupt retry reduction device
US5696939A (en) Apparatus and method using a semaphore buffer for semaphore instructions
US5339397A (en) Hardware primary directory lock
JPH06131244A (en) Asynchronous access system for shared memory
JPS6227837A (en) Main memory access system
US5129065A (en) Apparatus and methods for interface register handshake for controlling devices
JP2813182B2 (en) Multiprocessor computer multifunction device
EP0206335B1 (en) Interruption method for a data processing system
KR0136111B1 (en) Apparatus and method for synhcronization of access to main memory signal groups in a multiprocessor data processing
EP1071020A2 (en) Information processing system
JPS6228866A (en) Main memory access system
US5201052A (en) System for transferring first and second ring information from program status word register and store buffer
JP2637320B2 (en) Buffer storage control method
JP2825589B2 (en) Bus control method
KR900001999B1 (en) Multi processor system
JPS62177653A (en) Control system for shared memory
JP2723412B2 (en) Main memory pre-port control method
EP0382529A2 (en) Microprocessor having store buffer
JPH0376501B2 (en)
JPH07234850A (en) Device and method for multiprocessor system