JPH04148460A - Method and mechanism for interruption processing in multiprocessor system - Google Patents

Method and mechanism for interruption processing in multiprocessor system

Info

Publication number
JPH04148460A
JPH04148460A JP27431190A JP27431190A JPH04148460A JP H04148460 A JPH04148460 A JP H04148460A JP 27431190 A JP27431190 A JP 27431190A JP 27431190 A JP27431190 A JP 27431190A JP H04148460 A JPH04148460 A JP H04148460A
Authority
JP
Japan
Prior art keywords
processor
interrupt
event type
control means
processing
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
JP27431190A
Other languages
Japanese (ja)
Inventor
Chieko Takahashi
高橋 千恵子
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 JP27431190A priority Critical patent/JPH04148460A/en
Publication of JPH04148460A publication Critical patent/JPH04148460A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To perform interruption processing according to the contents of allocation registered in an event registration queue by discriminating the presence of a processor in an idle state and kicking the processor when processor in the idle state exists. CONSTITUTION:When the allocation for the reading end of the contents of a disk required by the other program which has no relation to the program on execution on an arithmetic processor 20-1 occurs in the calculation processor 20-1, an interruption processing control means 1 on the arithmetic processor 20-1 passes the control to an event type discrimination control means 2 on its own arithmetic processor 20-1 immediately, and the event type discrimination control means 2 discriminates the event type of the interruption for this time. It discriminates this case as the system event type, and immediately passes the control to a system event type interruption processing control means 4 on its own arithmetic processor 20-1. Thus, the interruption processing is performed by the processor in the idle state, and the processing before interruption is restarted in the processor.

Description

【発明の詳細な説明】 〔産業上の利用分野] 本発明はコンピュータシステムにおける割り込み処理に
関し、特にマルチプロセッサシステムにおける劃り込み
処理方法とその機構ムこ関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to interrupt processing in a computer system, and particularly to an interrupt processing method and mechanism in a multiprocessor system.

(従来の技術〕 −tCに、コンピュータシステムではシステム動作中に
ハードウェアやソフトウェアから非同期事象である割り
込みが多り発生する。このような割り込みが成るプロセ
ッサ上で発生した場合、マルチプロセッサシステムにお
ける従来の割り込ろ処理方式では、その割り込みが割り
込み処理制御手段に通知され、この手段によりその後直
ちにその割り込みの内容に応じた割り込み処理を行う割
り込み処理ルーチンに制御が渡され、当該割り込みの発
生したプロセッサ上で上記割り込み処理ルーチンが実行
されるようになっていた。
(Prior art) - In computer systems, many interrupts, which are asynchronous events, occur from hardware or software during system operation.When such interrupts occur on a processor, conventional technology in multiprocessor systems In the interrupt processing method, the interrupt is notified to the interrupt processing control means, which immediately passes control to the interrupt processing routine that handles the interrupt according to the contents of the interrupt, and the processor where the interrupt occurred The above interrupt handling routine was executed.

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

ところで、割り込みは、その割り込みが発生したブロモ
・7す上で必ず処理をする必要のある割り込み(本明細
書では、このような割り込みをプロセッサ事象型割り込
みという)と、必ずしも割り込みが発生したプロセッサ
上で処理する必要のない割り込みC本明細書では、この
ような割り込みをシステム事象型割り込みという)との
2種類に分類することができる。前者のプロセッサ事象
型割り込みとしては、例えばプロセスのタイムスライス
切れにがかる割り込みがあり、後者のシステム事象型割
り込みとしては、当該プロセッサ上で実行中であるプロ
グラムとは関連のない他のプロダラムが要求したディス
クの内容の読み込み完了にかかる割り込みがある。
By the way, interrupts are categorized into two types: interrupts that must be processed on the processor in which the interrupt occurs (in this specification, such interrupts are referred to as processor event-type interrupts), and interrupts that must be processed on the processor in which the interrupt occurs. Interrupts that do not need to be processed can be classified into two types: C (in this specification, such interrupts are referred to as system event type interrupts); The former type of processor event type interrupt includes, for example, an interrupt related to the expiration of a process's time slice, while the latter type of system event type interrupt includes an interrupt requested by another program unrelated to the program running on the processor. There is an interrupt required to complete reading the contents of the disk.

上述のように、割り込みはプロセッサ事象型とシステム
事象型の2種類に大別できるが、従来の割り込み処理方
式はそのような区別を行うことなく、前述したように割
り込みの発生したプロセッサ上で常に割り込み処理を行
っていた。このため、システム事象型割り込みが発生し
たとき、他にアイドル状態のプロセッサが存在するにも
かかわらず、そのプロセッサを有効に活用していないと
いう問題点があった。
As mentioned above, interrupts can be roughly divided into two types: processor event type and system event type, but conventional interrupt handling methods do not make such a distinction, and as mentioned above, interrupts are always processed on the processor where the interrupt occurs. It was handling interrupts. Therefore, when a system event type interrupt occurs, there is a problem in that even though there are other idle processors, that processor is not utilized effectively.

そこで、本発明の目的は、システム事象型割り込みが発
生した場合、他にアイドル状態のプロセッサが存在すれ
ば、そのプロセッサ上で割り込み処理を実行するという
新規な割り込み処理方法とその機構を提供することにあ
る。
SUMMARY OF THE INVENTION An object of the present invention is to provide a novel interrupt processing method and mechanism in which when a system event type interrupt occurs, if there is another idle processor, the interrupt processing is executed on that processor. It is in.

〔課題を解決するための手段] 本発明のマルチプロセッサシステムにおける割り込み処
理方法は、上記の目的を達成するために、割り込みの発
生したプロセッサで、その割り込みがブロモ、す事象型
割り込みか、システム事象型割り込みかを識別し、 プロセッサ事象型割り込みの場合は、自プロセッサで割
り込み処理を行い、 システム事象型割り込みの場合は、アイドル状態のプロ
セッサが存在することにより、そのアイドル状態のプロ
セッサに前記発生した割り込みにかかる処理を行わせる
ようにしている。
[Means for Solving the Problems] In order to achieve the above object, the interrupt handling method in a multiprocessor system of the present invention is implemented in such a way that the interrupt processing method in a multiprocessor system is implemented by a processor in which an interrupt occurs, whether the interrupt is a Bromo, event-type interrupt, or a system event-type interrupt. In the case of a processor event type interrupt, the interrupt is handled by the own processor. In the case of a system event type interrupt, the presence of an idle processor causes the idle processor to handle the interrupt. I am trying to have the processing related to interrupts performed.

そして、このような割り込み処理方法を実施する本発明
の割り込み処理機構は、 動くべきプロセスを登録しておく実行待ちキュを各プロ
セッサで共通に使用する資源として備え、各ブロモ、す
は前記実行待ちキューへ−Hプロセスの登録を行った後
に前記実行待ちキューから自プロセッサで実行するプロ
セスを選択するマルチプロセッサシステムにおける割り
込み処理機構において、 割り込みの内容を登録しておく事象登録キューと、 この事象登録キューに登録された割り込みの内容に応じ
た処理を行うための割り込み処理プロセスとを、 各プロセッサで共通に使用する資源として備え、自プロ
セッサで発生した割り込みがプロセッサ事象型割り込み
か、システム事象型割り込みかを識別する事象型識別制
御手段と、 この事象型識別制御手段によりプロセッサ事象型と識別
された割り込みにかかる処理を自プロセッサで行うプロ
セッサ事象型割り込み処理制御手段と、 前記事象型識別制御手段によりシステム事象型と識別さ
れたとき、その割り込みの内容を前記事象登録キューへ
登録すると共に前記割り込み処理プロセスを最高優先度
で前記実行待ちキューへ登録し、且つ、アイドル状態の
プロセッサが存在するか否かを判別して存在するときは
そのアイドル状態のプロセッサをキ、りし、存在しない
ときは自プロセッサで前記割り込み処理プロセスが実行
されるようにするシステム事象型割り込み処理制御手段
とを、 前記各プロセッサ毎に備えている。
The interrupt processing mechanism of the present invention that implements such an interrupt processing method is provided with an execution queue in which processes to be run are registered as a resource commonly used by each processor, In an interrupt handling mechanism in a multiprocessor system that selects a process to be executed by its own processor from the execution queue after registering an H process to the queue, there is an event registration queue for registering the contents of an interrupt, and an event registration queue for registering the contents of an interrupt. An interrupt handling process for processing according to the contents of interrupts registered in the queue is provided as a resource commonly used by each processor, and interrupts generated in the own processor are processor event-type interrupts or system event-type interrupts. event type identification control means for identifying a processor event type; processor event type interrupt processing control means for causing its own processor to perform processing related to an interrupt identified as a processor event type by the event type identification control means; and said event type identification control means When the interrupt is identified as a system event type by system event-based interrupt processing control means that determines whether or not the processor exists, and if the processor exists, kills the idle processor, and if the processor does not exist, causes the interrupt processing process to be executed by the own processor; Each of the processors is provided with one.

(作用〕 本発明においては、成るプロセッサに割り込みが発生す
ると、そのプロセッサ上の事象型識別制御手段がその割
り込みがプロセッサ事象型割り込みか、システム事象型
割り込みかを識別し、プロセッサ事象型割り込みのとき
は、そのプロセッサ上のプロセッサ事象型割り込み処理
制御手段がその割り込みにかかる処理を行う。他方、シ
ステム事象型割り込みの場合は、そのプロセッサ上のシ
ステム事象型割り込み処理制御手段が、その割り込みの
内容を事象登録キューへ登録すると共に割り込み処理プ
ロセスを最高優先度で実行待ちキューへ登録し、且つ、
アイドル状態のプロセッサが存在するか否かを判別して
存在するときはそのアイドル状態のプロセッサをキック
する。これによってアイドル状態であったプロセッサは
前記実行待ちキューに最高優先度で登録された割り込み
処理プロセス上で前記事象登録キューに登録された割り
込みの内容に応じた劃り込み処理を行う。他方、アイド
ル状態のプロセッサが存在しないときは、前記システム
事象型割り込み処理制御手段が、自プロセッサで前記割
り込み処理プロセスが実行されるようにする。
(Operation) In the present invention, when an interrupt occurs in a processor, the event type identification control means on the processor identifies whether the interrupt is a processor event type interrupt or a system event type interrupt, and if it is a processor event type interrupt, In the case of a system event-type interrupt, the processor event-type interrupt processing control means on the processor handles the interrupt.On the other hand, in the case of a system event-type interrupt, the system event-type interrupt processing control means on the processor Registering the interrupt processing process in the event registration queue and registering the interrupt processing process in the execution queue with the highest priority, and
It is determined whether or not there is an idle processor, and if there is, the idle processor is kicked. As a result, the processor in the idle state performs interrupt processing according to the contents of the interrupt registered in the event registration queue on the interrupt processing process registered with the highest priority in the execution queue. On the other hand, when there is no idle processor, the system event type interrupt processing control means causes the own processor to execute the interrupt processing process.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して詳細に説
明する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は本発明の一実施例の構成を、第2図は本発明の
割り込み処理方法を実施するマルチプロセッサンステム
の一例をそれぞれ示す。
FIG. 1 shows the configuration of an embodiment of the present invention, and FIG. 2 shows an example of a multiprocessor system implementing the interrupt processing method of the present invention.

第2図に示したマルチプロセッサシステムは、演算プロ
セッサをマルチプロセッサ構成としたもので、図では4
台の演算プロセッサ20−1〜20−4がシステム制御
装置21に接続され、このシステム制御装置21に制御
プロセッサ223人出力処理プロセッサ23.主記憶装
置24が接続されている。また、各演算プロセッサ20
−1〜20−4はシステム制御装置21経由以外にそれ
を経由せずに主記憶装置24の所定の領域をアクセスで
きるようになっている。更に、入出力処理プロセッサ2
3の配下には図示しない人出力装!等が接続されるよう
になっている。
The multiprocessor system shown in Figure 2 has a multiprocessor configuration with arithmetic processors, and the figure shows four processors.
Arithmetic processors 20-1 to 20-4 are connected to a system control device 21, which includes a control processor 223, an output processing processor 23. A main storage device 24 is connected. In addition, each arithmetic processor 20
-1 to 20-4 can access a predetermined area of the main storage device 24 without going through the system control device 21. Furthermore, input/output processing processor 2
There is a human output device (not shown) under No. 3! etc. are now connected.

第1図に示される構成要素のうち、割り込み処理制御手
段1.事象型識別制御手段2.プロセッサ事象型割り込
み処理制御手段3.システム事象型割り込み処理制御手
段4.プロセススケジューリング制御手段5および実行
待ちキュー登録手段6は第2図の各演算プロセッサ20
−1〜204上で個別に動作する手段であり、実行待ち
キュー7、事象登録キュー8およびりjり込み処理プロ
セス9はシステムに1つ存在し、liXプロセッサ20
−1〜20−4で共通に使用される資源である。各々は
、おおよそ次のような働きをする。
Among the components shown in FIG. 1, interrupt processing control means 1. Event type identification control means 2. Processor event type interrupt processing control means 3. System event type interrupt processing control means 4. The process scheduling control means 5 and the execution queue registration means 6 are connected to each arithmetic processor 20 shown in FIG.
-1 to 204, one execution queue 7, one event registration queue 8, and one entry processing process 9 exist in the system, and one liX processor 20
-1 to 20-4 are commonly used resources. Each of them functions roughly as follows.

○割り込み処理制御手段1 ハードウェアまたはソフトウェアからの割り込み通知を
受は付ける等の処理を行う。
○Interrupt processing control means 1 Performs processing such as accepting and accepting interrupt notifications from hardware or software.

O事象型識別制御手段2 割り込み処理制御手段1で受は付けられた割り込みの事
象型を例えば割り込みステータスピントの内容に基づい
て識別する処理を行う。
O Event type identification control means 2 Performs processing for identifying the event type of an interrupt accepted by the interrupt processing control means 1, based on, for example, the contents of the interrupt status focus.

○プロセッサ事象型割り込み処理制御手段3事象型識別
制御手段2でプロセッサ事象型と識別された割り込みの
処理を自プロセッサ上で行う際の制御を行う。
○Processor event type interrupt processing control means 3 Controls when processing of interrupts identified as processor event type by the event type identification control means 2 is performed on its own processor.

○システム事象型割り込み処理制御手段4事象型識別制
御手段2でシステム事象型と識別された割り込みの処理
にかかる制御を行う。
System event type interrupt processing control means 4 The event type identification control means 2 controls the processing of interrupts identified as system event types.

Oプロセススケグ1−リング制御手段5CPU割り当て
を行うプロセスを選択し起動をかける等の処理を行う手
段であり、自ブロセ/すで次に実行すべきプロセスの選
択方法としては、実行待ちキュー7に登録されたプロセ
スのうち最も優先度の高いプロセスを選択する方法を採
用している。
O process skeg 1 - ring control means 5 This is a means for performing processing such as selecting and starting a process to which a CPU is to be allocated. A method is used to select the process with the highest priority from among the registered processes.

○実行待ちキュー登録手段6 システムで実行すべきプロセスを実行待ちキュー7へ登
録する処理を行う。
○ Execution queue registration means 6 Performs processing for registering processes to be executed in the system in the execution queue 7.

○実行待ちキュー7 動くべきプロセスが登録されるキューであり、例えば第
2図の主記憶装置24上に設けられる。
Execution queue 7 This is a queue in which processes to be run are registered, and is provided, for example, on the main storage device 24 in FIG. 2.

○事象登録キュー8 割り込み処理プロセス9上で実行すべき割り込みの内容
が登録されるキューであり、例えば第2図の主記憶装置
24上に設けられる。
Event Registration Queue 8 This is a queue in which the contents of an interrupt to be executed on the interrupt handling process 9 are registered, and is provided, for example, on the main storage device 24 in FIG. 2.

O割り込み処理プロセス9 事象登録キュー8に登録された内容に応じた割り込み処
理を行うためのプロセスであり、いずれの演算プロセッ
サ20−1〜20−4上でも実行可能である。
O Interrupt processing process 9 This is a process for performing interrupt processing according to the contents registered in the event registration queue 8, and can be executed on any of the arithmetic processors 20-1 to 20-4.

第3図および第4図は第1図に示した実施例の処理の流
れ図であり、以下、本実施例の動作を、プロセッサ事象
型NJlり込みが発生した場合とシステム事象型割り込
みが発生した場合とに分け、各回を参照して説明する。
FIGS. 3 and 4 are flowcharts of the processing of the embodiment shown in FIG. The explanation will be divided into cases and explained with reference to each case.

〔プロセッサ事象型割り込み発li時の動作〕例えば第
2図の演算プロセッサ20〜1に、その上で実行中であ
るプロセスのタイムスライス切れを通知する割り込みが
発生すると(S 1 ) 、演算プロセッサ20−1上
の割り込み処理制御手段1は直ちに自演算プロセッサ2
0−1上の事象型識別制御手段2に制御を渡し、事象型
識別制御手段2は、今回の割り込みの事象型を識別する
(S2)、そし°ζ、今の場合はプロセッサ事象型であ
ると識別しくS3で’i’ES)、直ちに自演算プロセ
ッサ20−1上のプロセッサ$象型割り込み処理制御手
段3に制御を渡す。
[Operation when a processor event-type interrupt is issued] For example, when an interrupt occurs in the arithmetic processors 20 to 1 in FIG. The interrupt processing control means 1 on -1 immediately interrupts its own processor 2.
Control is passed to the event type identification control means 2 on 0-1, and the event type identification control means 2 identifies the event type of the current interrupt (S2), and °ζ, in this case, is the processor event type. ('i'ES) in S3), control is immediately passed to the processor $ elephant type interrupt processing control means 3 on the own processor 20-1.

プロセッサ事象型割り込み処理制御手段3は制御を引き
取ると、自演算プロセッサ20−1上で割り込み処理を
実行する(S4)。すなわち今の場合、実行中プロセス
のタイムスライス切れによる11り込みのため、次に動
くプロセスと上記プロセスとの切り換えを行い、従って
次のステップS6では切り換え後のプロセスの処理再開
となる。
When the processor event type interrupt processing control means 3 takes over control, it executes the interrupt processing on its own processor 20-1 (S4). That is, in this case, the process is switched to the next process because the time slice of the currently executing process has expired, so the above process is switched, and therefore, in the next step S6, processing of the switched process is restarted.

以上のように、プロセッサ事象型割り込みが発生した場
合には、その割り込みが発生した演算プロセッサ上で割
り込み処理が行われる。
As described above, when a processor event type interrupt occurs, the interrupt processing is performed on the arithmetic processor where the interrupt occurred.

〔システム事象型割り込み発生時の動作〕例えば第2図
の演算ブロモ、す2o−1に、その演算プロセッサ20
−1上で実行中のプログラムとは関連のない他のプログ
ラムが要求したディスクの内容の読み込み完了にかかる
割り込みが発生ずると(Sl)、演算プロセッサ20−
1上の割り込み処理制御手段1は直ちに自演算ブロセ。
[Operation when a system event type interrupt occurs] For example, in the arithmetic processor 20-1 of FIG. 2, the arithmetic processor 20
When an interrupt occurs (Sl) related to the completion of reading the contents of the disk requested by another program unrelated to the program being executed on the processor 20-1,
The interrupt processing control means 1 above immediately performs its own processing.

す20−1上の事象型識別制御手段2に制御を渡し、事
象型識別制御手段2は、今回の割り込みの事象型を識別
する(S2)。そして、今の場合はノステム事象型であ
ると識別しく33でNO)、直ちに自演算プロセッサ2
0−1上のシステム事象型割り込み処理制御手段4に制
御を渡す。
Control is passed to the event type identification control means 2 on the bus 20-1, and the event type identification control means 2 identifies the event type of the current interrupt (S2). In this case, it is identified as a nostem event type (33, NO), and the self-processing processor 2 immediately
Control is passed to the system event type interrupt processing control means 4 on 0-1.

ごれに応答してシステム事象型削り込み処理制御手段4
は、システム事象型処理を行う(S5)。
System event type scraping processing control means 4 in response to dirt
performs system event type processing (S5).

第4図はシステム事象型処理の詳細を示しており、先ず
、システム事象型割り込み処理制御手段4は、今回の割
り込みの内容を割り込み処理プロセス9の事象登録キュ
ー8に登録する(Sll)。次に、割り込み処理プロセ
ス9が休止状態か否かを判定しく512)、休止状態で
なければ即ち何れかの演算プロセッサが既に割り込み処
理プロセス9を実行し”Cいれば、第4図の処理を終了
する(S12でNo)。このとき、ステップSllで事
象登録キュー8に登録された割り込み内容にかかる割り
込み処理は上記割り込み処理プロセス9を実行している
演算プロセッサで行われる。
FIG. 4 shows details of the system event type processing. First, the system event type interrupt processing control means 4 registers the contents of the current interrupt in the event registration queue 8 of the interrupt processing process 9 (Sll). Next, it is determined whether or not the interrupt handling process 9 is in a dormant state (512). The process ends (No in S12). At this time, the interrupt processing related to the interrupt contents registered in the event registration queue 8 in step Sll is performed by the arithmetic processor executing the interrupt processing process 9.

他方、割り込み処理プロセス9が休止状態であれば(S
12でYES)、割り込み処理プロセス9を最高優先度
で実行待ちキュー7に登録するようにプロセススケジュ
ーリング制御手段5に要求して制御を渡す(S13)。
On the other hand, if the interrupt handling process 9 is in a dormant state (S
12), the process scheduling control means 5 is requested to register the interrupt processing process 9 in the execution queue 7 with the highest priority, and control is passed (S13).

プロセススケジューリング制御手段5は制御を引き取る
と、割り込み処理プロセス9が次に動くべき対象プロセ
スとなるように、実行待ちキュー登録手段6を使用して
割り込み処理プロセス9を最高優先度で実行待ちキュー
7に登録する(S14)。そして、プロセススケジュー
リング制御手段5は、自演算プロセッサ20−1以外の
演算プロセッサ20−2〜20−4の中にアイドル状態
のプロセッサが存在するか否かを調べる(515)この
とき、第2図の演算プロセッサ20−2がアイドル状態
であったとすると、プロセススケジューリング制御手段
5は、その演算プロセッサ20−2をキックする(51
6)、即ち、割り込み処理プロセス9を演算ブロセ・ノ
サ20−2で実行するようにその演算プロセッサ20−
2に対してその旨の要求を発行する。そして、プロセス
スケジューリング制御手段5は、今回の割り込みの処理
を自プロセッサ20−1で実行しないため、割り込みが
発生する前に動作していたプロセスの処理を再開させる
制御を行う(S6)。他方、上記キックされた演算プロ
セッサ20〜2では、その上で動作するプロセススケジ
ューリング制御手段5により実行待ちキュー7が参照さ
れ、そこに最高優先度で登録されている割り込み処理プ
ロセス9を自プロセッサで実行すべきプロセスとして選
択し、実行する。即ち、事象登録キュー8に登録されて
いる割り込みの内容を取り出し、割り込み処理プロセス
9上でその割り込みの内容に応じた割り込み処理を行う
。これによって、演算プロセッサ20−1で発生した割
り込みに対する処理が演算プロセッサ20−2で実行さ
れたことになる。
When the process scheduling control means 5 takes over control, it uses the pending queue registration means 6 to place the interrupt processing process 9 in the pending queue 7 with the highest priority so that the interrupt processing process 9 becomes the target process to move next. (S14). Then, the process scheduling control means 5 checks whether there is an idle processor among the processors 20-2 to 20-4 other than the own processor 20-1 (515). At this time, as shown in FIG. If the arithmetic processor 20-2 is in an idle state, the process scheduling control means 5 kicks the arithmetic processor 20-2 (51).
6), that is, the arithmetic processor 20-2 executes the interrupt processing process 9 in the arithmetic processor 20-2.
Issue a request to that effect to 2. Then, since the process of the current interrupt is not executed by the own processor 20-1, the process scheduling control means 5 performs control to restart the process that was running before the interrupt occurred (S6). On the other hand, in the kicked arithmetic processors 20 to 2, the process scheduling control means 5 operating thereon refers to the execution queue 7, and the interrupt processing process 9 registered therein with the highest priority is assigned to the own processor. Select the process to be executed and execute it. That is, the contents of the interrupt registered in the event registration queue 8 are retrieved, and the interrupt processing process 9 performs interrupt processing according to the contents of the interrupt. This means that the processing for the interrupt that occurred in the arithmetic processor 20-1 is executed by the arithmetic processor 20-2.

なお、事象登録キュー8に割り込みの内容が複数登録さ
れている場合には、順次に各内容が取り出されて処理さ
れる。
Note that if a plurality of interrupt contents are registered in the event registration queue 8, each contents are sequentially retrieved and processed.

マタ、演算プロセッサ20−■上のプロセススケジュー
リング制御手段5が第4関のステップ5154こてアイ
ドル状態のプロセッサが存在しないと判断したときは、
自プロセッサ20−1にυjり込み処理プロセス9を実
行するような要求を上げておく(S17)。この結果、
演算プロセッサ20−1では実行待ちキュー7に登録し
た割り込み処理プロセス9が次に実行すべきプロセスと
して選択され、第3図のステ、プS6では、事象登録キ
ュー8に登録されている割り込みの内容が取り出されて
割り込み処理プロセス9上で処理が行われる。
When the process scheduling control means 5 on the arithmetic processor 20-1 determines that there is no idle processor in step 5154 of the fourth step,
A request is made to the own processor 20-1 to execute the υj import processing process 9 (S17). As a result,
In the arithmetic processor 20-1, the interrupt processing process 9 registered in the execution queue 7 is selected as the next process to be executed, and in step S6 of FIG. is extracted and processed by the interrupt processing process 9.

以上のように、システム事象型割り込みが発生した場合
には、他にアイドル状態の演算プロセッサが存在すれば
その演算プロセッサ上で割り込み処理が行われ、アイド
ル状態の演算プロセッサが存在しなければ自プロセッサ
上で割り込み処理が行われる。
As described above, when a system event type interrupt occurs, if there is another processor in the idle state, the interrupt processing is performed on that processor, and if there is no processor in the idle state, the interrupt is handled by the own processor. Interrupt processing is performed above.

〔発明の効果] 以上説明したように、本発明は、割り込み処理プロセス
およびそのプロセス上で行わせる割り込みの内容を登録
しておく事象登録キューを各プロセッサ共通の資源とし
て設け、且つ、発生した割り込みがブロセ、す事象型か
或いはシステム事象型かを識別する事象型識別制御手段
と、この手段でプロセッサ事象型と識別された割り込み
にかかる処理を自プロセッサ上で行うプロセッサ事象型
割り込み処理制御手段と、前記事象型識別制御手段でシ
ステム事象型と識別された劃り込みにかかる処理を前記
割り込み処理プロセスおよび事象登録キューを使用して
他のアイドル状態のプロセッサに行わせるシステム事象
型割り込み処理制御手段とを各ブロセ、す上に設けたこ
とにより、システム事象型割り込みが発生した場合、他
にアイドル状態のプロセッサが存在すれば、そのアイド
ル状態のプロセッサに割り込み処理を行わせ、自プロセ
ッサでは割り込み発生前の処理を直ちに再開することが
可能となる。よって、アイドル状態のプロセッサの有効
活用が可能となり、システム全体のスループットが向上
し、システムのより効率の良い運用が可能となる。
[Effects of the Invention] As explained above, the present invention provides an event registration queue as a resource common to each processor in which the interrupt handling process and the contents of the interrupt to be performed on the process are registered, and an event type identification control means for identifying whether the interrupt is a general event type or a system event type, and a processor event type interrupt processing control means for performing processing on its own processor for the interrupt identified as a processor event type by this means. , a system event type interrupt handling control that causes another idle processor to perform processing related to an interrupt identified as a system event type by the event type identification control means using the interrupt handling process and the event registration queue; By providing a means on each processor, when a system event type interrupt occurs, if there is another processor in the idle state, that processor in the idle state handles the interrupt, and the own processor handles the interrupt. It becomes possible to immediately resume the process that was in place before the occurrence. Therefore, it becomes possible to effectively utilize idle processors, improve the throughput of the entire system, and enable more efficient operation of the system.

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

第1図は本発明の一実施例の構成図、 第2図は本発明を適用したマルチプロセッサシステムの
一例を示す図、 第3図および第4図は第1図の実施例の処理の流れ図τ
ある。 図において、 I・・・割り込み処理制御手段 2・・・事象型識別制御手段 3・・・プロセッサ事象型割り込み処理制御手段4・・
・システム事象型割り込み処理制御手段5・・・プロセ
ススケジューリング制御手段6・・・実行待ちキュー登
録手段 7・・・実行待ちキュー 8・・・事象登録キュー 9・・・割り込み処理プロセス 本発明の実科涜1jの構成 佑 閉 実錨i列の処理のうんれ 竺占 [月 実棒例の処理の流れ
FIG. 1 is a block diagram of an embodiment of the present invention. FIG. 2 is a diagram showing an example of a multiprocessor system to which the present invention is applied. FIGS. 3 and 4 are flowcharts of processing of the embodiment of FIG. 1. τ
be. In the figure, I...Interrupt processing control means 2...Event type identification control means 3...Processor event type interrupt processing control means 4...
- System event type interrupt processing control means 5... Process scheduling control means 6... Execution queue registration means 7... Execution queue 8... Event registration queue 9... Interrupt processing process Practical section of the present invention The composition of 1j and the processing of the closing fruit anchor i column [Processing flow of the monthly fruit bar example]

Claims (2)

【特許請求の範囲】[Claims] (1)マルチプロセッサシステムにおける割り込み処理
方法において、 割り込みの発生したプロセッサで、該割り込みがプロセ
ッサ事象型割り込みか、システム事象型割り込みかを識
別し、 プロセッサ事象型割り込みの場合は、自プロセッサで割
り込み処理を行い、 システム事象型割り込みの場合は、アイドル状態のプロ
セッサが存在することにより、そのアイドル状態のプロ
セッサに前記発生した割り込みにかかる処理を行わせる
ことを特徴とするマルチプロセッサシステムにおける割
り込み処理方法。
(1) In the interrupt handling method in a multiprocessor system, the processor where the interrupt occurs identifies whether the interrupt is a processor event type interrupt or a system event type interrupt, and if it is a processor event type interrupt, the interrupt is handled by the own processor. and in the case of a system event type interrupt, the presence of an idle processor causes the idle processor to perform processing related to the generated interrupt.
(2)動くべきプロセスを登録しておく実行待ちキュー
を各プロセッサで共通に使用する資源として備え、各プ
ロセッサは前記実行待ちキューへ一旦プロセスの登録を
行った後に前記実行待ちキューから自プロセッサで実行
するプロセスを選択するマルチプロセッサシステムにお
ける割り込み処理機構において、 割り込みの内容を登録しておく事象登録キューと、 該事象登録キューに登録された割り込みの内容に応じた
処理を行うための割り込み処理プロセスとを、 各プロセッサで共通に使用する資源として備え、自プロ
セッサで発生した割り込みがプロセッサ事象型割り込み
か、システム事象型割り込みかを識別する事象型識別制
御手段と、該事象型識別制御手段によりプロセッサ事象
型と識別された割り込みにかかる処理を自プロセッサで
行うプロセッサ事象型割り込み処理制御手段と、 前記事象型識別制御手段によりシステム事象型と識別さ
れたとき、その割り込みの内容を前記事象登録キューへ
登録すると共に前記割り込み処理プロセスを最高優先度
で前記実行待ちキューへ登録し、且つ、アイドル状態の
プロセッサが存在するか否かを判別して存在するときは
そのアイドル状態のプロセッサをキックし、存在しない
ときは自プロセッサで前記割り込み処理プロセスが実行
されるようにするシステム事象型割り込み処理制御手段
とを、 前記各プロセッサ毎に備えることを特徴とするマルチプ
ロセッサシステムにおける割り込み処理機構。
(2) A pending queue in which processes to be run are registered is provided as a resource commonly used by each processor, and each processor registers a process in the pending queue, and then selects its own processor from the pending queue. In the interrupt handling mechanism in a multiprocessor system that selects a process to execute, there is an event registration queue that registers the contents of interrupts, and an interrupt handling process that performs processing according to the contents of the interrupts registered in the event registration queue. are provided as resources commonly used by each processor, and event type identification control means for identifying whether an interrupt occurring in the own processor is a processor event type interrupt or a system event type interrupt; Processor event type interrupt processing control means for performing processing related to an interrupt identified as an event type in its own processor, and when the interrupt is identified as a system event type by the event type identification control means, the contents of the interrupt are registered in the event registration. At the same time as registering the interrupt processing process in the execution queue with the highest priority, it is determined whether or not an idle processor exists, and if so, kicks the idle processor. , and a system event type interrupt processing control means for causing the interrupt processing process to be executed by the own processor when the interrupt processing process does not exist, for each of the processors.
JP27431190A 1990-10-12 1990-10-12 Method and mechanism for interruption processing in multiprocessor system Pending JPH04148460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27431190A JPH04148460A (en) 1990-10-12 1990-10-12 Method and mechanism for interruption processing in multiprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27431190A JPH04148460A (en) 1990-10-12 1990-10-12 Method and mechanism for interruption processing in multiprocessor system

Publications (1)

Publication Number Publication Date
JPH04148460A true JPH04148460A (en) 1992-05-21

Family

ID=17539882

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27431190A Pending JPH04148460A (en) 1990-10-12 1990-10-12 Method and mechanism for interruption processing in multiprocessor system

Country Status (1)

Country Link
JP (1) JPH04148460A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008186136A (en) * 2007-01-29 2008-08-14 Hitachi Ltd Computer system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008186136A (en) * 2007-01-29 2008-08-14 Hitachi Ltd Computer system
JP4705051B2 (en) * 2007-01-29 2011-06-22 株式会社日立製作所 Computer system

Similar Documents

Publication Publication Date Title
US6330583B1 (en) Computer network of interactive multitasking computers for parallel processing of network subtasks concurrently with local tasks
US5187802A (en) Virtual machine system with vitual machine resetting store indicating that virtual machine processed interrupt without virtual machine control program intervention
US6061710A (en) Multithreaded processor incorporating a thread latch register for interrupt service new pending threads
JPS60225943A (en) Exceptional interruption processing system
JPH04148460A (en) Method and mechanism for interruption processing in multiprocessor system
JPS59167756A (en) Dispatch control system of virtual computer
JPH11184828A (en) Test system for multiprocessor system
JPH07160650A (en) Task execution controller
JPH04362745A (en) Instruction tracing device
JPH04302353A (en) Timer interrupting system for symmetrical multi processor computer
JPH04288625A (en) Microcomputer
JPS6122818B2 (en)
JP2575761B2 (en) Job management method
JP2581327B2 (en) Virtual machine I / O interrupt handling method
JPS60225944A (en) Virtual machine system
JPH0752393B2 (en) Data processing device
JPS58221447A (en) Data processor
JPS6125249A (en) Exclusive control system
JPS62217326A (en) Computer capable of storing and switching plural os
JPH02113363A (en) Time slice controlling system for multiprocessor system
JPH0378034A (en) Program parallel execution device
JPH02201543A (en) Processing system for privileged instruction of virtual computer
JPH05313916A (en) Electronic computer and its interruption processing method
JPS61288232A (en) Output instruction control system
Pocock et al. A Real-Time Operating System for Robots