JPS6277652A - Interruption processing system - Google Patents

Interruption processing system

Info

Publication number
JPS6277652A
JPS6277652A JP21724185A JP21724185A JPS6277652A JP S6277652 A JPS6277652 A JP S6277652A JP 21724185 A JP21724185 A JP 21724185A JP 21724185 A JP21724185 A JP 21724185A JP S6277652 A JPS6277652 A JP S6277652A
Authority
JP
Japan
Prior art keywords
interrupt
interruption
processing
vector
interrupt 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
JP21724185A
Other languages
Japanese (ja)
Inventor
Mitsuo Kamimura
上村 光生
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP21724185A priority Critical patent/JPS6277652A/en
Publication of JPS6277652A publication Critical patent/JPS6277652A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To accept plural requests for interruption processing without altering an existent interruption processing program by supplying an address of interruption processing to an interruption processing part with the signal from an interruption control scheduler. CONSTITUTION:When a request for interruption is generated, control is passed to the interruption control scheduler KS through an actual interruption vector part VT 1 to check whether the interruption processing part FP is already used or not. When so, it is put in a queue and the processing is finished. When not, on the other hand, a flag is set to an in-use state and an interruption vector in a dummy interruption vector part VT 2 is started and the interruption processing part FP performs the interruption processing. When this interruption processing is finished, the control returns to a next instruction in the vector part VT 2, the in-use flag is turned off, and it is checked whether or not there is a request in the queue; when there is the request, the in-use flag is set again to repeat said procedure and when not,the processing is finished.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、計算機システムにおける割込処理方式に関す
る。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an interrupt processing method in a computer system.

(従来の技術) 従来より81算機システムには、割込如理I!10ピが
ある。第5図は、通常の単純な割込処理の構成概念図で
ある。割込要求は割込ベクトル部VTを介して、割込処
理部FPに与えられる。割込ベクトル部VTには、該当
する割込処理のアドレスが設定されており、割込処理部
FPのアドレスを指定(る。
(Prior Art) Conventionally, 81 computer systems have an interrupt control system called I! There are 10 pins. FIG. 5 is a conceptual diagram of the structure of normal simple interrupt processing. The interrupt request is given to the interrupt processing section FP via the interrupt vector section VT. In the interrupt vector section VT, the address of the corresponding interrupt processing is set, and the address of the interrupt processing section FP is specified.

(発明が解決しようとする問題点) このような構成の割込処理方式においては、割込処理中
に次の要求が行われると、その動作が確実に実行される
かどうか分らない。動作が確実に実行されることを保証
するためには、割込処理の動作条件を複数の割込要求を
受付可能なように変更勺る必要があり、既存の割込処理
811(ハードウェア又はソフトウェア)を改造しなく
てはならないという問題点がある。
(Problems to be Solved by the Invention) In the interrupt processing system configured as described above, if the next request is made during interrupt processing, it is not known whether the operation will be executed reliably. In order to ensure that the operation is executed reliably, it is necessary to change the operating conditions of the interrupt processing so that it can accept multiple interrupt requests, and the existing interrupt processing 811 (hardware or The problem is that the software must be modified.

本発明は、このような問題点に鑑みてなされたもので、
その目的は、同時には1つの要求しか処理できないよう
に設81された既存の割込処理プDグラムを、改造ジる
ことなく複数の割込処理の要求を受付可能な割込処理方
式を提供することにある。
The present invention was made in view of these problems, and
The purpose is to provide an interrupt processing method that can accept multiple interrupt processing requests without modifying an existing interrupt processing program that is designed to process only one request at a time. It's about doing.

く問題点を解決するための手段〉 前記した問題点を解決する本発明は、同時に1つの割込
要求しか処理できないように構成された割込処理部を右
するit i機システムにおける割込処理方式において
、割込要求を受ける実割込ベク[−ル部と、この実割込
ベクトル部からの信号を受ける割込管理スケジューラと
、この割込管理スケジコーラからの信号を受け前記割込
処理部に割込処理のアドレスを与える擬似割込ベクトル
部とを設け、前記割込管理スケジューラは割込要求が発
生スると前記割込処理部が既に使用中であるかどうか調
べ、使用中であれば待ち行列中にキューイングし、割込
処理部が使用中でなければ前記擬似割込ベクトル部にあ
る割込ベクトルの起動を行い、。
Means for Solving the Problems The present invention solves the problems described above. The method includes a real interrupt vector block that receives an interrupt request, an interrupt management scheduler that receives a signal from the real interrupt vector block, and an interrupt processing section that receives a signal from the interrupt management schedule caller. and a pseudo-interrupt vector section that gives an address for interrupt processing, and when an interrupt request occurs, the interrupt management scheduler checks whether the interrupt processing section is already in use, and if it is in use. If the interrupt processing unit is not in use, the interrupt vector in the pseudo interrupt vector unit is activated.

割込98理部において当該割込処理を実行さぜるにうに
したことを特徴とするものである。
This system is characterized in that the interrupt processing is executed in the interrupt 98 management department.

(実施例) 第1図は、本発明の一実施例の構成概念図である。本発
明においては、割込要求を受ける実割込ヘク1〜/L、
 部V T 1と、この実割込ベクトル部VT1からの
信号を受ける割込管理スケジューラKSと、この割込管
理スケジューラKSからの信号を受け、割込処理部FP
に割込処理のアドレスを与える擬似割込ベクトル部VT
2とを設【プたものである。ここで、実割込ベクトル部
VT1には、割込管理スケジューラKSのアドレスが設
定されており、又、擬似割込ベクトル部VT2には、割
込処理部FPのアドレスが設定されている。割込処理部
FPは、複数の要求を同時には処理できない構造のもの
であり、割込管理スケジコーラKSは、複数の割込処理
の要求を受付可能とするために設(ブである。
(Embodiment) FIG. 1 is a conceptual diagram of the configuration of an embodiment of the present invention. In the present invention, the actual interrupt hexes 1 to /L that receive the interrupt request,
an interrupt management scheduler KS which receives a signal from this real interrupt vector part VT1, and an interrupt processing part FP which receives a signal from this interrupt management scheduler KS.
Pseudo interrupt vector section VT that gives the address of interrupt processing to
2 was established. Here, the address of the interrupt management scheduler KS is set in the real interrupt vector part VT1, and the address of the interrupt processing part FP is set in the pseudo interrupt vector part VT2. The interrupt processing unit FP has a structure that cannot process multiple requests at the same time, and the interrupt management schedule caller KS is designed to be able to accept multiple requests for interrupt processing.

第2図は、第1図における割込管理スケジューラKSの
動作の一例を示すフローチャートである。
FIG. 2 is a flowchart showing an example of the operation of the interrupt management scheduler KS in FIG. 1.

先ず、割込要求が発生すると、実割込ベクトル部VT1
を介して、割込管理スケジューラKSに#llI御が渡
る。この割込管理スケジューラKSは、割込処理部FP
が既に使用中であるかどうか調べ、使用中であれば待ち
行列中にキューイングして終了する。割込処m部FPが
使用中でなければ、フラッグを使用中(オン)とし、擬
似割込ムク1−ル部VT2にある割込ベクトルの起動を
行い、割込処理部FPにおいてその割込処理を実行する
。尚、第2図において、破線で囲んだ部分は、割込禁廿
でflJ作する。
First, when an interrupt request occurs, the actual interrupt vector section VT1
#llI control is passed to the interrupt management scheduler KS via. This interrupt management scheduler KS includes an interrupt processing unit FP.
Checks whether it is already in use, and if so, queues it in the queue and exits. If the interrupt processing unit FP is not in use, the flag is set to in use (on), the interrupt vector in the pseudo interrupt control unit VT2 is activated, and the interrupt processing unit FP handles the interrupt. Execute processing. In FIG. 2, the portion surrounded by broken lines is created by flJ with no interruptions.

この割込処理が終了づると、割込ベクトル部VT2にあ
る次の命令に戻ってくるので、使用中フラッグをオフと
し、続いて処理を待っているものがあるかどうか調べ、
有れば再び使用中フラッグをオンとじて上記の手順を繰
返す。もし、持っているものがない場合、処理を終了す
る。
When this interrupt processing is finished, the process returns to the next instruction in the interrupt vector section VT2, so turn off the in-use flag, and then check whether there is anything waiting for processing.
If there is, turn on the in-use flag again and repeat the above procedure. If there is none, the process ends.

割込管理スケジューラKSは、以上のような動作を行う
ことによって、割込処理部FPを改造することなしで、
複数の割込処理の要求を受付可能としている。又、ぜ[
ち行列の作り方により優先度をつけた使い方や、先着順
等の実行順序の制御を可能としている。
By performing the operations described above, the interrupt management scheduler KS can operate without modifying the interrupt processing unit FP.
It is possible to accept multiple requests for interrupt processing. Also, ze [
By creating a matrix, it is possible to prioritize usage and control the execution order, such as on a first-come, first-served basis.

第3図は、本発明の伯の実施例を示す構成R倉口である
。この実施例では、擬似割込ベクトル部VT3を介して
2つの割込管理スケジューラKS1とKS2とを設ける
ようにし、割込処理部FPのレスポンス・タイムを改良
したものである。ここで、割込処理部FPは、複数の機
能要求を処理可能であり、その中には一定時間内で処理
が可能なものと、事象発生迄、処理を終えられないもの
く例えば同期型の入力)が混在しているものとする。こ
のような割込処理においては、通常、後者の処理中には
前者の処理要求を処理可能なものもあるが、それにもか
かわらず持Iζされることとなってレスポンスタイムの
悪化要因になっていた。
FIG. 3 shows a configuration R Kuraguchi showing an embodiment of the present invention. In this embodiment, two interrupt management schedulers KS1 and KS2 are provided via a pseudo-interrupt vector section VT3 to improve the response time of the interrupt processing section FP. Here, the interrupt processing unit FP can process multiple function requests, some of which can be processed within a certain period of time, and some which cannot be completed until an event occurs, such as synchronous type requests. input) are mixed. In such interrupt processing, normally some of the former processing requests can be processed during the latter processing, but they are still held and become a factor that worsens the response time. Ta.

この実施例は、このような不具合を改善したものであっ
て、v84図に割込管理スケジューラKS2の動作のフ
ローチャートを示す。
This embodiment is an improvement on such a problem, and a flowchart of the operation of the interrupt management scheduler KS2 is shown in the v84 diagram.

全ての割込要求は、一旦割込ベクトル部VTIに入り、
ここから割込管理スケジューラKS2に制御が渡る。こ
の割込管理スケジューラKS2で(J、レスポンス・タ
イムを悪化さける要因である機能については、処理が完
了し得るものであるかどうか、先読み等の手法によって
確認する。ここで処理が行える状態でないならば、処理
が行える状態まで持たせる。そして、事象が発生して処
理が行える状態になったならば、次の割込管理スケジュ
ーラKSIを、擬似割込ベクトル部VT3を介して起a
−6る。割込包・理スケジューラKSIで(J、割込処
理部FPが使用中でなければ、直ちにこれが起動される
。この割込処理が終了すると、一旦、割込管理スケジュ
ーラKS1へ戻り、次に割込管理スケジューラKS2へ
戻る。割込管理スケジコーラKS2では、他に処理待ち
のものがあわばそれを同様の手順で起動する。又、事象
に関係しない機能については、直ちに擬似割込ベクトル
部VT3を介して、割込管理スケジューラKS1に制御
を渡す。以後の動作は、第1図実施例と同様の手順とな
る。
All interrupt requests once enter the interrupt vector section VTI,
From here, control passes to the interrupt management scheduler KS2. This interrupt management scheduler KS2 (J) uses methods such as lookahead to check whether the processing can be completed for the functions that are a factor in reducing the response time.If the processing is not possible at this point, If an event occurs and the state is ready for processing, the next interrupt management scheduler KSI is activated via the pseudo interrupt vector unit VT3.
-6ru. If the interrupt processing unit FP is not in use, it is activated immediately by the interrupt management scheduler KSI.When this interrupt processing is completed, the process returns to the interrupt management scheduler KS1, and then the interrupt processing unit FP is activated. Return to the interrupt management scheduler KS2.In the interrupt management scheduler KS2, if there are other items waiting to be processed, they are activated using the same procedure.Furthermore, for functions that are not related to events, the pseudo interrupt vector unit VT3 is activated immediately. Control is passed to the interrupt management scheduler KS1 via the interrupt management scheduler KS1.The subsequent operations are the same as those in the embodiment of FIG.

以上のように、割込管理スケジ1−ラKS2は、処理可
能なもののみを優先的に処理するもので、無制限なレス
ポンス・タイムの悪化を無くすことができる。
As described above, the interrupt management scheduler 1-RA KS2 preferentially processes only those that can be processed, and can eliminate unlimited deterioration of response time.

尚、上記の説明において、割込筐埋スケジューラKSは
、ソフ[−ウェア或いはハードウェアの何れによっても
実現づることがでさる。又、管理スケジューラにお(プ
るスケジューリング手法は、割込処理の竹穎−ウ目的と
するシステム構成に応じて最適なものが用いられる。
In the above description, the interrupt scheduler KS can be realized by either software or hardware. Furthermore, the scheduling method used by the management scheduler is the most appropriate one depending on the intended system configuration for interrupt processing.

(発明の効!!り 以上説明したように、本発明によれば、割込管理スケジ
ューラを付加づることににって、既存の割込処理部を改
35づることなしで、複数の割込処理の要求を受付ける
ことができる。又、割込処理が複数の機能をサポートし
ている場合には、機能単位のスケジユーリングにより処
理パフォーマンスを向上でいる。
(Effects of the Invention!!) As explained above, according to the present invention, by adding an interrupt management scheduler, multiple interrupts can be handled without modifying the existing interrupt processing section. Processing requests can be accepted.Furthermore, when interrupt processing supports multiple functions, processing performance can be improved by scheduling in units of functions.

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

第1図は本発明の一実施例の構成概念図、第2図(J第
1区における割込管理スケジューラの動作の一例を示す
フローチャート、第3図は本発明の他の実施例の構成概
念図、第4図は第3図にお(プる割込管理スケジューラ
KS2の動作の一例を示づフローチャート、第5図は従
来の割込処理の構成概念図である。 VTl・・・実割込ベクトル部 VT2・・・擬似割込ベクトル部 KS・・・割込管理スケジューラ FP・・・割込処理部 第1図 FP;II艶あ連部 第2図 第3図 VTl  i実部bΔベクトノA VT2 i擬似割込ベクトル部 にS;割込義理スクジューラ FP ;’A扉よジ助曝 第4図
FIG. 1 is a conceptual diagram of the configuration of one embodiment of the present invention, FIG. 2 is a flowchart showing an example of the operation of the interrupt management scheduler in the J-1 area, and FIG. 3 is a conceptual diagram of the configuration of another embodiment of the present invention. Figure 4 is a flowchart showing an example of the operation of the interrupt management scheduler KS2 similar to that shown in Figure 3, and Figure 5 is a conceptual diagram of the configuration of conventional interrupt processing. Interrupt vector part VT2... Pseudo interrupt vector part KS... Interrupt management scheduler FP... Interrupt processing part FP; A VT2 i Pseudo-interrupt vector part S; Interrupt scheduler FP; 'A door 4.

Claims (1)

【特許請求の範囲】[Claims] 同時に1つの割込要求しか処理できないように構成され
た割込処理部を有する計算機システムにおける割込処理
方式において、割込要求を受ける実割込ベクトル部と、
この実割込ベクトル部からの信号を受ける割込管理スケ
ジューラと、この割込管理スケジューラからの信号を受
け前記割込処理部に割込処理のアドレスを与える擬似割
込ベクトル部とを設け、前記割込管理スケジューラは割
込要求が発生すると前記割込処理部が既に使用中である
かどうか調べ、使用中であれば待ち行列中にキューイン
グし、割込処理部が使用中でなければ前記擬似割込ベク
トル部にある割込ベクトルの起動を行い、割込処理部に
おいて当該割込処理を実行させるようにしたことを特徴
とする割込処理方式。
In an interrupt processing method in a computer system having an interrupt processing unit configured to process only one interrupt request at a time, an actual interrupt vector unit that receives an interrupt request;
An interrupt management scheduler that receives a signal from this real interrupt vector section and a pseudo interrupt vector section that receives a signal from this interrupt management scheduler and gives an interrupt processing address to the interrupt processing section are provided. When an interrupt request occurs, the interrupt management scheduler checks whether the interrupt processing section is already in use, and if it is in use, it queues it in the queue, and if the interrupt processing section is not in use, it queues it in the queue. An interrupt processing method characterized in that an interrupt vector in a pseudo interrupt vector section is activated, and the interrupt processing is executed in an interrupt processing section.
JP21724185A 1985-09-30 1985-09-30 Interruption processing system Pending JPS6277652A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21724185A JPS6277652A (en) 1985-09-30 1985-09-30 Interruption processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21724185A JPS6277652A (en) 1985-09-30 1985-09-30 Interruption processing system

Publications (1)

Publication Number Publication Date
JPS6277652A true JPS6277652A (en) 1987-04-09

Family

ID=16701061

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21724185A Pending JPS6277652A (en) 1985-09-30 1985-09-30 Interruption processing system

Country Status (1)

Country Link
JP (1) JPS6277652A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51113435A (en) * 1975-03-28 1976-10-06 Hitachi Ltd Offering processor
JPS56124964A (en) * 1979-12-11 1981-09-30 Cii Device for assigning andsynchronizing execution proposed process between plural processing units for information processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS51113435A (en) * 1975-03-28 1976-10-06 Hitachi Ltd Offering processor
JPS56124964A (en) * 1979-12-11 1981-09-30 Cii Device for assigning andsynchronizing execution proposed process between plural processing units for information processor

Similar Documents

Publication Publication Date Title
US5666523A (en) Method and system for distributing asynchronous input from a system input queue to reduce context switches
US7926062B2 (en) Interrupt and exception handling for multi-streaming digital processors
EP0685791A2 (en) User controllable concurrent functionality
JPS6275739A (en) Assigning method for task
JPH07105156A (en) Scalable system interrupt structure for multiprocessing system
US20040117793A1 (en) Operating system architecture employing synchronous tasks
EP1031925A2 (en) Cooperative processing of tasks in multi-threaded computing system
JPH077379B2 (en) Interrupt selection method for multi-processing system
JP3644042B2 (en) Multitask processing device
JP2636722B2 (en) Multitask execution management method
JPS6277652A (en) Interruption processing system
JP2866410B2 (en) How to test the program
JPH0266640A (en) Debugger task scheduling system
JPS5922146A (en) Task scheduling circuit
JP2000353100A (en) Task processing system
EP1249757B1 (en) Interrupt throttling for inter-processor communications
JPH03188531A (en) Time-division multitask executing device
KR100241356B1 (en) Multilevel scheduling structure for dynamic synchronization in distributed system
Chelini et al. An example of event-driven asynchronous scheduling with Ada
JPH01161444A (en) Virtual machine system
JPS6027950A (en) Preferential dispatch control system
JPH02113363A (en) Time slice controlling system for multiprocessor system
Pocock et al. A Real-Time Operating System for Robots
JPH01154266A (en) Protecting device for input/output memory space
Tulpule et al. Event driven executive