JPH08314869A - Information processor - Google Patents
Information processorInfo
- Publication number
- JPH08314869A JPH08314869A JP12352595A JP12352595A JPH08314869A JP H08314869 A JPH08314869 A JP H08314869A JP 12352595 A JP12352595 A JP 12352595A JP 12352595 A JP12352595 A JP 12352595A JP H08314869 A JPH08314869 A JP H08314869A
- Authority
- JP
- Japan
- Prior art keywords
- lock
- processor
- buffer
- acquisition
- request
- 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
Links
Landscapes
- Multi Processors (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、情報処理装置に関し、
特に、プロセッサ間通信のロック取得を行う情報処理装
置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing device,
In particular, the present invention relates to an information processing device that acquires a lock for communication between processors.
【0002】[0002]
【従来の技術】従来の情報処理装置のプロセッサ間通信
は、ロックが取得されている場合には、新たにロックは
取得できない。ロックが取得解除したときに、ロック解
除された後に、一番早くロック取得要求を出したプロセ
ッサがロック取得をする。2. Description of the Related Art In inter-processor communication of a conventional information processing apparatus, when a lock is acquired, a new lock cannot be acquired. When the lock is released, the processor that issues the lock acquisition request earliest after the lock is released acquires the lock.
【0003】[0003]
【発明が解決しようとする課題】ロック取得要求をプロ
セッサA,プロセッサB,プロセッサCの順番で出した
場合には、プロセッサAがロックを取得して、続いてプ
ロセッサB,プロセッサCがロック取得失敗をする。プ
ロセッサB,プロセッサCはロックを取得できるまで、
ロック要求を出し続ける。プロセッサAはロック解除を
行った後、ロック取得要求がプロセッサBよりもプロセ
ッサCの方早く出た場合、プロセッサCがロック取得す
る。このように、ロック要求を出した順番でなく、ロッ
クが解除されている状態でロック要求が出た順番で、ロ
ック取得が行われるために、間が悪いプロセッサは、長
時間ロックが取得できない場合があるので、特定のプロ
セッサの性能が低下し、マルチプロセッサ構成の装置全
体の性能低下がおこるという問題がある。When a lock acquisition request is issued in the order of processor A, processor B, and processor C, processor A acquires the lock, and subsequently processor B and processor C fail to acquire the lock. do. Until the processor B and processor C can acquire the lock,
Keep issuing lock requests. After the processor A releases the lock, if the lock acquisition request is issued earlier than the processor B by the processor C, the processor C acquires the lock. In this way, if the lock acquisition is performed in the order in which the lock request is issued in the state where the lock is released, not in the order in which the lock request is issued Therefore, there is a problem in that the performance of a specific processor is degraded and the performance of the entire device having a multiprocessor configuration is degraded.
【0004】[0004]
【課題を解決するための手段】本発明の情報処理装置
は、複数のプロセッサで構成される情報処理装置におい
て、プロセッサ間で通信を行う場合に、通信の排他制御
を行うために、ロック制御を行い、このロックの取得を
失敗したプロセッサ番号を保持するロックバッファを備
え、ロック取得の順番を前記ロックバッファによって決
定する手段を備えることを特徴とする。An information processing apparatus according to the present invention, in an information processing apparatus including a plurality of processors, performs lock control in order to perform exclusive control of communication when communication is performed between the processors. The present invention is characterized by comprising a lock buffer that holds the processor number that has performed this lock acquisition failure, and means for determining the order of lock acquisition by the lock buffer.
【0005】[0005]
【実施例】次に、本発明について図面を参照して説明す
る。Next, the present invention will be described with reference to the drawings.
【0006】図1は本発明による情報処理装置の一実施
例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of an information processing apparatus according to the present invention.
【0007】この情報処理装置は、プロセッサ1,2,
3と、ロック取得中を示すロックフラグ10と、ロック
要求のプロセッサ番号を保持するロック要求レジスタ1
1と、ロック要求を出したプロセッサ番号をバッファす
る先入れ先出しバッファ制御のロックバッファ12と、
ロックバッファ12から最も古いデータを読み出すバッ
ファリードレジスタ13と、ロックフラグ10を制御す
るロックフラグ制御部14とを具備する。This information processing apparatus includes processors 1, 2,
3, a lock flag 10 indicating that the lock is being acquired, and a lock request register 1 that holds the processor number of the lock request
1 and a lock buffer 12 for first-in first-out buffer control that buffers the processor number that issued the lock request,
A buffer read register 13 that reads the oldest data from the lock buffer 12 and a lock flag control unit 14 that controls the lock flag 10 are provided.
【0008】次に、図1に示す情報処理装置の動作につ
いて説明する。はじめに、プロセッサ1がロック要求を
行うと、ロック要求レジスタ11にプロセッサ1の番号
“1”が入る。このとき、他のプロセッサがロック取得
中でなければ、ロックフラグ10は“0”で、バッファ
リードレジスタ13が空であれば、ロックフラグ制御部
14は、ロックフラグ10を値“0”から値“1”にセ
ットし、ロック取得成功となる。次にプロセッサ2から
ロック取得要求が出ると、ロックフラグ10が値“1”
なのでロックバッファ12に、プロセッサ番号“2”を
登録し、ロック失敗となる。プロセッサ1がロックを解
除すると、ロックフラグ10は値“1”から値“0”に
なる。この後、プロセッサ3がロック取得要求を出す
と、ロックフラグ10は“0”なので、ロック要求レジ
スタ11に値“3”が入り、バッファリードレジスタ1
3は値“2”が入っているのでプロセッサ2が先にロッ
ク取得要求を失敗していることが解るので、プロセッサ
3は、ロック取得は失敗になり、プロセッサ3の番号
“3”がロックバッファ12にバッファリングされる。
この後、プロセッサ2がロック取得要求を行うと、ロッ
ク取得でき、ロックバッファからプロセッサ番号“2”
が削除され、次に待っているプロセッサ番号がバッファ
リードレジスタ13に入る。Next, the operation of the information processing apparatus shown in FIG. 1 will be described. First, when the processor 1 makes a lock request, the number “1” of the processor 1 is entered in the lock request register 11. At this time, if another processor is not acquiring the lock, the lock flag 10 is “0”, and if the buffer read register 13 is empty, the lock flag control unit 14 changes the lock flag 10 from the value “0” to the value “0”. Set to "1" and lock acquisition is successful. Next, when a lock acquisition request is issued from the processor 2, the lock flag 10 has the value "1".
Therefore, the processor number "2" is registered in the lock buffer 12, and the lock fails. When the processor 1 releases the lock, the lock flag 10 changes from the value “1” to the value “0”. Thereafter, when the processor 3 issues a lock acquisition request, the lock flag 10 is "0", so the value "3" is entered in the lock request register 11 and the buffer read register 1
Since the value “2” is stored in 3, the processor 2 knows that the lock acquisition request has failed first. Therefore, the processor 3 fails in the lock acquisition and the processor 3 number “3” is the lock buffer. Buffered to 12.
After that, when the processor 2 makes a lock acquisition request, the lock can be acquired, and the processor number “2” is acquired from the lock buffer.
Is deleted and the next waiting processor number enters the buffer read register 13.
【0009】[0009]
【発明の効果】以上説明したように、本発明によれば、
ロック要求した順序でロック取得が行えるため、ロック
待ちの最大待ち時間が減少し、プロセッサのスケジュー
リングが効率よく実行されるため、マルチプロセッサ構
成の装置としての性能が向上する。As described above, according to the present invention,
Since the locks can be acquired in the order in which the locks are requested, the maximum waiting time for the locks is reduced, and the processor scheduling is executed efficiently, so that the performance as a device having a multiprocessor configuration is improved.
【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.
1 プロセッサ 2 プロセッサ 3 プロセッサ 10 ロックフラグ 11 ロック要求レジスタ 12 ロックバッファ 13 バッファリードレジスタ 14 ロックフラグ制御部 1 processor 2 processor 3 processor 10 lock flag 11 lock request register 12 lock buffer 13 buffer read register 14 lock flag control unit
Claims (1)
装置において、プロセッサ間で通信を行う場合に、通信
の排他制御を行うために、ロック制御を行い、このロッ
クの取得を失敗したプロセッサ番号を保持するロックバ
ッファを備え、ロック取得の順番を前記ロックバッファ
によって決定する手段を備えることを特徴とする情報処
理装置。1. An information processing apparatus comprising a plurality of processors, wherein lock control is performed in order to perform exclusive control of communication when communication is performed between the processors, and a processor number that fails in acquisition of this lock is set. An information processing apparatus, comprising: a lock buffer for holding; and means for determining a lock acquisition order by the lock buffer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP12352595A JPH08314869A (en) | 1995-05-23 | 1995-05-23 | Information processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP12352595A JPH08314869A (en) | 1995-05-23 | 1995-05-23 | Information processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH08314869A true JPH08314869A (en) | 1996-11-29 |
Family
ID=14862774
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP12352595A Pending JPH08314869A (en) | 1995-05-23 | 1995-05-23 | Information processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH08314869A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7409506B2 (en) | 2004-12-28 | 2008-08-05 | Fujitsu Limited | Multiprocessor system with high-speed exclusive control |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01280858A (en) * | 1988-05-06 | 1989-11-13 | Fujitsu Ltd | Lock control system for main storage device |
JPH05233531A (en) * | 1992-02-18 | 1993-09-10 | Nippon Telegr & Teleph Corp <Ntt> | Bus control system |
JPH05242046A (en) * | 1991-06-18 | 1993-09-21 | Advanced Micro Devicds Inc | Processing system |
-
1995
- 1995-05-23 JP JP12352595A patent/JPH08314869A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01280858A (en) * | 1988-05-06 | 1989-11-13 | Fujitsu Ltd | Lock control system for main storage device |
JPH05242046A (en) * | 1991-06-18 | 1993-09-21 | Advanced Micro Devicds Inc | Processing system |
JPH05233531A (en) * | 1992-02-18 | 1993-09-10 | Nippon Telegr & Teleph Corp <Ntt> | Bus control system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7409506B2 (en) | 2004-12-28 | 2008-08-05 | Fujitsu Limited | Multiprocessor system with high-speed exclusive control |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20060165109A1 (en) | Data communication device | |
US7007138B2 (en) | Apparatus, method, and computer program for resource request arbitration | |
JP5213485B2 (en) | Data synchronization method and multiprocessor system in multiprocessor system | |
JPH09330237A (en) | Device and method for switching process | |
US5222219A (en) | Pipeline computer system having write order preservation | |
US20140337855A1 (en) | Termination of Requests in a Distributed Coprocessor System | |
US7953962B2 (en) | Multiprocessor system and control method thereof | |
JPH04284548A (en) | Data base exclusive controlling system | |
JP2002530736A5 (en) | ||
JPH08314869A (en) | Information processor | |
CN112767978B (en) | DDR command scheduling method, device, equipment and medium | |
US8307141B2 (en) | Multi-core processor, control method thereof, and information processing apparatus | |
US8694697B1 (en) | Rescindable instruction dispatcher | |
JP2798558B2 (en) | Printer device control method | |
JP2718702B2 (en) | Memory access control method | |
JP3693183B2 (en) | Data processing device | |
JP2814683B2 (en) | Instruction processing unit | |
JP2981618B2 (en) | Write order preservation method in pipeline computer system | |
JPH0666060B2 (en) | Bus priority control method | |
JPH035869A (en) | Information processing device | |
JP2549410B2 (en) | Main memory reference order control method | |
JPH01106158A (en) | Control system for inter-processor data communication | |
JPH01239665A (en) | System for distributing load on multiprocessor | |
JPH05257859A (en) | Information processor | |
JPS6220041A (en) | Asynchronous data transfer circuit for data processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 19980414 |