JPH02138632A - Information saving/restoring system - Google Patents

Information saving/restoring system

Info

Publication number
JPH02138632A
JPH02138632A JP29261988A JP29261988A JPH02138632A JP H02138632 A JPH02138632 A JP H02138632A JP 29261988 A JP29261988 A JP 29261988A JP 29261988 A JP29261988 A JP 29261988A JP H02138632 A JPH02138632 A JP H02138632A
Authority
JP
Japan
Prior art keywords
information
task
interrupt processing
interrupt
execution control
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
JP29261988A
Other languages
Japanese (ja)
Inventor
Yasushi Ogura
康司 小倉
Masayoshi Mizutani
当良 水谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP29261988A priority Critical patent/JPH02138632A/en
Publication of JPH02138632A publication Critical patent/JPH02138632A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the information saving/restoring time when an interruption process is carried out by saving all information only when it is required to execute a task produced through the interruption process with preference. CONSTITUTION:An execution control part start means 200 checks whether or not a preferential task production information setting means 102 set the preferential task production information when an interruption process part 100 completes an interruption process. When it is confirmed that the preferential task production information is set, an execution control part 300 is started. A full saving means 301 saves all information set in an information process system before the part 300 starts to execute a new task. Thus it is possible to save and restore the information at occurrence of an interruption without deteriorating the response of the information process system.

Description

【発明の詳細な説明】 〔概要〕 割込処理機能を具備する情報処理システムにおける情報
退避・復元方式の改良に関し、情報処理システムの情報
処理能力、並びに実時間性を強く要求される情報処理シ
ステムのレスポンスを低下させること無く割込みの際の
情報退避・復元を可能とすることを目的とし、 複数の割込要因に対応してそれぞれ割込処理部を具備し
、且つ複数のタスクの実行順序を優先度に基づき制御す
る実行制御部を具備する情報処理システムにおいて、各
割込処理部に、割込処理を開始する際に、被割込タスク
が情報処理システム内に設定中の情報の内、予め定めら
れた一部の情報のみを退避し、割込処理を終了する際に
、退避中の前記一部の情報を復元する部分退避・復元手
段と、割込処理を実行中に被割込タスクより優先度の高
いタスクを生成したことを示す優先タスク生成情報を設
定する優先タスク生成情報設定手段とを設け、割込処理
部が割込処理を終了した際に、優先タスク生成情報設定
手段が優先タスク生成情報を設定したか否かを分析し、
優先タスク生成情報が設定されていることを識別した場
合に、実行制御部を起動する実行制御部起動手段を情報
処理システムに設け、実行制御部に、新たにタスクを実
行開始させるに先立ち、情報処理システム内に設定中の
総ての情報を退避させる全退避手段を設ける様に構成す
る。
[Detailed Description of the Invention] [Summary] Regarding the improvement of the information saving and restoring method in an information processing system equipped with an interrupt processing function, an information processing system that is strongly required to have high information processing ability and real-time performance. The purpose is to make it possible to save and restore information in the event of an interrupt without degrading the response of the system.It is equipped with an interrupt processing unit for each of multiple interrupt factors, and also controls the execution order of multiple tasks. In an information processing system that includes an execution control unit that performs control based on priority, when starting interrupt processing, each interrupt processing unit receives information that is set in the information processing system by the task to be interrupted. A partial save/restore means for saving only a predetermined part of information and restoring the part of the information being saved when finishing the interrupt process; a priority task generation information setting means for setting priority task generation information indicating that a task with a higher priority than the task has been generated; Analyzes whether or not has set priority task generation information,
The information processing system is provided with an execution control unit activation means that activates the execution control unit when it is identified that priority task generation information has been set, and the execution control unit is configured to generate information before starting execution of a new task. The processing system is configured to have a total saving means for saving all the information being set.

〔産業上の利用分野〕 本発明は割込処理機能を具備する情報処理システムにお
ける情報退避・復元方式の改良に関する。
[Industrial Application Field] The present invention relates to an improvement of an information saving/restoring method in an information processing system having an interrupt processing function.

複数のタスクと称される処理単位を、各タスクが与えら
れている優先度に応じた実行順序で実行する情報処理シ
ステムにおいて、現在実行中のタスクより優先度の高い
タスクが生起すると、実行中のタスクを一時中断して高
優先度のタスクを実行した後、中断したタスクを実行再
開する、割込処理が採用されている。
In an information processing system that executes processing units called multiple tasks in an execution order according to the priority given to each task, when a task with a higher priority than the currently executing task occurs, the currently executing task Interrupt processing is used to temporarily suspend a task, execute a high-priority task, and then resume execution of the suspended task.

割込処理が終了した時点で、被割込タスクを中断点から
実行再開可能とする為に、中断時に情報処理システム内
に設定されている情報を退避させて保持して置き、実行
再開する時点で再び情報処理システム内に復元すること
が要求される。
When interrupt processing is completed, in order to be able to resume execution of the interrupted task from the point of interruption, the information set in the information processing system at the time of interruption is saved and retained, and the point at which execution is resumed. It is then required to restore the data into the information processing system again.

〔従来の技術〕[Conventional technology]

第7図は従来ある情報処理システムの一例を示す図であ
り、第8図は従来ある割込処理過程を例示する図である
FIG. 7 is a diagram showing an example of a conventional information processing system, and FIG. 8 is a diagram illustrating a conventional interrupt processing process.

第7図において、情報処理システムはプロセッサ1およ
びメモリ2を具備している。
In FIG. 7, the information processing system includes a processor 1 and a memory 2.

プロセッサ1は、各タスクを実行する際に必要となる各
種情報を蓄積する制御レジスタ111乃至11mおよび
汎用レジスタ121乃至12nを具備している。
The processor 1 includes control registers 111 to 11m and general-purpose registers 121 to 12n that store various information necessary for executing each task.

一部メモリ2内には、プロセッサ1により実行される処
理プログラムP、およびPbと、各タスクの実行順序を
優先度に基づき制御する為にプロセッサ1が実行する実
行制御プログラムP6と、割込要因に対応する割込処理
をプロセッサ1に実行させる為に、k種類の割込要因に
対応するに種類の割込処理プログラムPit乃至Pik
とが記憶されており、また割込処理の際に、制御レジス
タ111乃至11mおよび汎用レジスタ121乃至12
nの蓄積内容を退避させる退避領域211乃至21mお
よび退避領域221乃至22nが設けられている。
Part of the memory 2 contains processing programs P and Pb executed by the processor 1, an execution control program P6 executed by the processor 1 to control the execution order of each task based on priority, and interrupt factors. In order to cause the processor 1 to execute interrupt processing corresponding to k types of interrupt processing programs Pit to Pik corresponding to k types of interrupt causes,
are stored in the control registers 111 to 11m and general registers 121 to 12m during interrupt processing.
Evacuation areas 211 to 21m and evacuation areas 221 to 22n are provided for evacuating the accumulated contents of n.

第7図および第8図において、プロセッサ1が処理プロ
グラムP、による情報処理を実行中に、成る要因の割込
みが生起すると、プロセッサ1は実行中のタスクを一時
中断し、割込要因を分析すると、割込要因に対応する割
込処理プログラムPix(但しXは1乃至にの何れか)
を実行開始する。
In FIGS. 7 and 8, when an interrupt occurs due to the following causes while the processor 1 is executing information processing by the processing program P, the processor 1 temporarily suspends the task being executed and analyzes the cause of the interrupt. , interrupt processing program Pix corresponding to the interrupt factor (where X is 1 to 1)
Start execution.

割込処理プログラムp ixを実行開始したプロセッサ
1は、先ず中断時点における総ての制御レジスタ111
乃至11mの蓄積内容をメモリ2内の退避領域211乃
至21mに退避し、また中断時点における総ての汎用レ
ジスタ121乃至12nの蓄積内容をメモリ2内の退避
領域221乃至22nに退避する(第8図ステップSl
)。
The processor 1 that starts executing the interrupt processing program pix first stores all the control registers 111 at the time of interruption.
The accumulated contents of all the general registers 121 to 11m are saved to the save areas 211 to 21m in the memory 2, and the accumulated contents of all general-purpose registers 121 to 12n at the time of interruption are saved to the save areas 221 to 22n in the memory 2 (8th Figure step Sl
).

なお退避領域211乃至21mおよび221乃至22n
は、タスクに対応して複数組設けられている。
In addition, the evacuation areas 211 to 21m and 221 to 22n
A plurality of sets are provided corresponding to the tasks.

次に割込処理プログラムp ixを実行するプロセッサ
1は、割込みの分析を実行した後(ステップS2)、割
込処理プログラムp ixによる割込処理を実行する(
ステップS3)。
Next, the processor 1 that executes the interrupt processing program p ix analyzes the interrupt (step S2), and then executes the interrupt processing by the interrupt processing program p ix (
Step S3).

割込処理プログラムP、Xによる割込処理において、処
理プログラムP、による情報処理が要求される場合には
、プロセッサlは情報処理に必要とするタスクを生成す
る。
In the interrupt processing by the interrupt processing programs P and X, when information processing by the processing program P is requested, the processor l generates a task necessary for the information processing.

所要の割込処理が終了すると、割込処理プログラムP 
iXを実行するプロセッサ1は実行制御プログラムP4
を実行開始し、続いて実行するタスクを選択させる(ス
テップS4)。
When the required interrupt processing is completed, the interrupt processing program P
The processor 1 that executes iX runs the execution control program P4.
, and a task to be executed subsequently is selected (step S4).

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

以上の説明から明らかな如く、従来ある情報処理システ
ムにおいては、プロセッサ1が割込要因に対応した割込
処理プログラムP ixを実行することにより、被割込
タスクが中断時点で総ての制御レジスタ111乃至11
mおよび汎用レジスタ121乃至12nに蓄積していた
蓄積内容を、無条件に退避領域211乃至21mおよび
221乃至22nに退避させていた為、割込みの頻発す
る情報処理システムにおいては、情報処理能力を低下さ
せる恐れがあり、また実時間性を強く要求される交換処
理系の如き情報処理システムにおいては、実時間性の低
下を招く恐れがあった。
As is clear from the above explanation, in a conventional information processing system, the processor 1 executes the interrupt processing program Pix corresponding to the interrupt cause, so that when the interrupted task is interrupted, all control registers are 111 to 11
Since the contents accumulated in m and general-purpose registers 121 to 12n were unconditionally saved to save areas 211 to 21m and 221 to 22n, the information processing capacity is reduced in an information processing system where interrupts occur frequently. In addition, in information processing systems such as exchange processing systems that strongly require real-time performance, there is a risk that real-time performance may deteriorate.

本発明は、情報処理システムの情報処理能力、並びに実
時間性を強く要求される情報処理システムのレスポンス
を低下させること無く割込みの際の情報退避・復元を可
能とすることを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to make it possible to save and restore information in the event of an interrupt without deteriorating the information processing capacity of an information processing system and the response of an information processing system that is strongly required to be real-time.

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

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

第1図において、100は、情報処理システムが複数の
割込要因に対応してそれぞれ具備する割込処理部、30
0は、複数のタスクの実行順序を優先度に基づき制御す
る為に情報処理システムが具備する実行制御部である。
In FIG. 1, reference numeral 100 denotes an interrupt processing unit 30 that the information processing system includes in response to a plurality of interrupt factors.
0 is an execution control unit included in the information processing system to control the execution order of a plurality of tasks based on priorities.

101は、本発明により各割込処理部100に設けられ
た部分退避・復元手段である。
Reference numeral 101 denotes a partial save/restore means provided in each interrupt processing section 100 according to the present invention.

102は、本発明により各割込処理部100に設けられ
た優先タスク生成情報設定手段である。
Reference numeral 102 denotes priority task generation information setting means provided in each interrupt processing section 100 according to the present invention.

200は、本発明により情報処理システムに設けられた
実行制御部起動手段である。
Reference numeral 200 denotes execution control unit starting means provided in the information processing system according to the present invention.

301は、本発明により実行制御部300に設けられた
全退避手段である。
Reference numeral 301 denotes a total saving means provided in the execution control unit 300 according to the present invention.

〔作用〕[Effect]

情報処理システムが割込処理を実行しても、被割込タス
クが情報処理システム内に設定していた情報の一部しか
破壊されず、残る情報は破壊されること無く保持されて
いる。
Even when the information processing system executes interrupt processing, only part of the information set in the information processing system by the interrupted task is destroyed, and the remaining information is retained without being destroyed.

本発明はかかる特性を利用して、情報の退避・復元処理
の迅速化を意図するものである。
The present invention aims to speed up information saving and restoring processing by utilizing such characteristics.

部分退避・復元手段101は、各割込処理部100が割
込処理を開始する際に、被割込タスクが情報処理システ
ム内に設定中の情報の内、予め定められた一部の情報の
みを退避し、割込処理を終了する際に、退避中の一部の
情報を復元する。
The partial save/restore means 101 saves only a predetermined part of the information set in the information processing system by the interrupted task when each interrupt processing unit 100 starts interrupt processing. When interrupt processing is finished, some of the information being saved is restored.

優先タスク生成情報設定手段102は、割込処理を実行
中に被割込タスクより優先度の高いタスクを生成したこ
とを示す優先タスク生成情報を設定する。
The priority task generation information setting unit 102 sets priority task generation information indicating that a task with a higher priority than the interrupted task was generated during execution of the interrupt process.

実行制御部起動手段200は、割込処理部100が割込
処理を終了した際に、優先タスク生成情報設定手段10
2が優先タスク生成情報を設定したか否かを分析し、優
先タスク生成情報が設定されていることを識別した場合
に、実行制御部300を起動する。
The execution control unit starting means 200 activates the priority task generation information setting means 10 when the interrupt processing unit 100 finishes interrupt processing.
2 analyzes whether or not priority task generation information has been set, and when it is identified that priority task generation information has been set, the execution control unit 300 is activated.

全退避手段301は、実行制御部300が新たにタスク
を実行開始させるに先立ち、情報処理システl、内に設
定中の総ての情報を退避させる。
The total saving means 301 saves all information currently being set in the information processing system 1, before the execution control unit 300 starts executing a new task.

従って、各割込処理部は割込処理を開始する際に、予め
定められている一部の情報のみを退避させ、また割込処
理を終了する際に、退避させた一部の情報を復元し、割
込処理の結果生成されたタスクを優先して実行させる必
要が生じた場合に、初めて総ての情報を退避する為、割
込処理に伴う情報の退避・復元に要する時間が短縮され
、当該情報処理システムの処理能力の低下と、実時間性
を強く要求される情報処理システムにおける実時間性の
低下とが防止される。
Therefore, each interrupt processing section saves only a predetermined part of the information when starting the interrupt processing, and restores the saved part of the information when finishing the interrupt processing. However, when a task generated as a result of interrupt processing needs to be executed with priority, all information is saved for the first time, reducing the time required to save and restore information associated with interrupt processing. This prevents a decrease in the processing capacity of the information processing system and a decrease in real-time performance in an information processing system that is strongly required to have real-time performance.

〔実施例〕〔Example〕

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

第2図は本発明の一実施例による情報処理システムを示
す図であり、第3図は第2図における割込処理過程を例
示する図であり、第4図は第2図における中断状態語分
析過程を例示する図であり、第5図は第2図における実
行制御過程を例示する図であり、第6図は本発明の一実
施例による中断状態語を示す図である。なお、全図を通
じて同一符号は同一対象物を示す。
FIG. 2 is a diagram showing an information processing system according to an embodiment of the present invention, FIG. 3 is a diagram illustrating the interrupt processing process in FIG. 2, and FIG. 5 is a diagram illustrating an analysis process, FIG. 5 is a diagram illustrating an execution control process in FIG. 2, and FIG. 6 is a diagram illustrating a suspended state word according to an embodiment of the present invention. Note that the same reference numerals indicate the same objects throughout the figures.

第2図においては、第1図における割込処理部100と
して、プロセッサエが各割込要因に対応する割込処理プ
ログラムPil“乃至p、klを実行することにより、
第3図に示す如き割込処理過程を実現し、また第1図に
おける部分退避・復元手段101に第3図におけるステ
ップSllおよびSi2が対応し、また第1図における
優先タスク生成情報設定手段102に第3図におけるス
テップS14および517が対応し、また第1図におけ
る実行制御部起動手段200として中断状態語Wを蓄積
する中断状態語レジスタ131と、第4図に示す如き中
断状態語分析過程を実行する中断状態語分析部132と
がプロセッサl内に設けられ、また第1図における全退
避手段301として第5図におけるステップS31を実
行する退避部pdsが、プロセッサ1が実行する実行制
御プログラムPd ′内に設けられている。
In FIG. 2, as the interrupt processing unit 100 in FIG. 1, a processor executes interrupt processing programs Pil" to p, kl corresponding to each interrupt cause,
The interrupt processing process as shown in FIG. 3 is realized, steps Sll and Si2 in FIG. 3 correspond to the partial save/restore means 101 in FIG. 1, and the priority task generation information setting means 102 in FIG. Steps S14 and 517 in FIG. 3 correspond to steps S14 and 517 in FIG. 3, and a suspension state word register 131 for storing a suspension state word W as the execution control unit starting means 200 in FIG. 1, and a suspension state word analysis process as shown in FIG. An interruption state word analysis unit 132 that executes step S31 in FIG. It is provided within Pd'.

第2図乃至第6図において、プロセッサlが処理プログ
ラムP、による情報処理を実行中に、成る要因の割込み
が生起すると、プロセッサlは実行中のタスクを一時中
断し、割込要因を分析すると、割込要因に対応する割込
処理プログラムPix′を実行開始する。
In FIGS. 2 to 6, when an interrupt occurs due to the following causes while processor l is executing information processing by processing program P, processor l temporarily suspends the task being executed and analyzes the cause of the interrupt. , starts execution of the interrupt processing program Pix' corresponding to the interrupt factor.

割込処理プログラムp、Xlを実行開始したプロセッサ
1は、割込処理プログラムp、Xlの実行の際に退避を
必要とするとして予め定められている一部の汎用レジス
タ121乃至12j (但しjは1乃至n)の蓄積内容
を、メモリ2内の割込まれた退避領域221乃至22j
に退避する(第3図ステップ5ll)。
The processor 1 that has started executing the interrupt processing programs p and Xl saves some general-purpose registers 121 to 12j (however, j is 1 to n) are stored in the interrupted save areas 221 to 22j in the memory 2.
(Step 5ll in FIG. 3).

次に割込処理プログラムP、X′を実行するプロセッサ
lは、割込みの分析を実行した後(ステップ512)、
割込処理プログラムp、Xlによる割込処理を実行する
(ステップ513)。
Next, the processor l that executes the interrupt processing programs P and X' analyzes the interrupt (step 512), and then
Interrupt processing by the interrupt processing programs p and Xl is executed (step 513).

割込処理プログラムP iX“による割込処理において
、処理プログラムP、による情報処理が要求される場合
には、プロセッサ1は情報処理に必要とするタスクを生
成する。
In the interrupt processing by the interrupt processing program P iX, when information processing by the processing program P is requested, the processor 1 generates a task necessary for the information processing.

次に割込処理プログラムP ixoを実行するプロセッ
サ1は、ステップS13による割込処理の結果、被割込
タスクより優先度の高いタスクが生成されたか否かを判
定しくステップ514)、被割込タスクより優先度の高
いタスクが生成されていなかった場合には、ステップS
llにおいて退避領域211乃至21jに退避させた蓄
積内容を、制御レジスタ111乃至11jに復元しくス
テップ515)、被割込タスクの中断点へ復帰させる(
ステップ816)。
Next, the processor 1 executing the interrupt processing program Pixo determines whether or not a task with a higher priority than the interrupted task is generated as a result of the interrupt processing in step S13 (step 514). If a task with a higher priority than the task has not been generated, step S
The accumulated contents saved in the save areas 211 to 21j in step 515) are restored to the control registers 111 to 11j, and the interrupted task is returned to the interruption point (step 515).
step 816).

なおステップS14において、被割込タスクより優先度
の高いタスクを生成した場合には、第6図に示す如き中
断状態語W内に優先タスク生成情報Zを性成状態を示す
符号に設定し、中断状態語レジスタ131に蓄積した後
(ステップSL?)、ステップS15およびS16を実
行する。
Note that in step S14, when a task with a higher priority than the interrupted task is generated, priority task generation information Z is set to a code indicating the generated state in the suspended state word W as shown in FIG. After accumulating in the suspended state word register 131 (step SL?), steps S15 and S16 are executed.

以上により、プロセッサ1内の汎用レジスタ121乃至
12nには、被割込タスクの中断時点における蓄積内容
が復元され、また制御レジスタ111乃至11mには被
割込タスクの中断時点におけると変わらぬ蓄積内容が保
持され続けていたこととなる。
As a result of the above, the general-purpose registers 121 to 12n in the processor 1 are restored with the stored contents at the time of interruption of the interrupted task, and the control registers 111 to 11m are stored with the same contents as at the time of interruption of the interrupted task. This means that it continued to be held.

割込処理プログラムp、X+を実行するプロセッサ1が
中断点へ復帰すると、中断状態語分析部132を起動す
る。
When the processor 1 executing the interrupt processing programs p and X+ returns to the interruption point, it starts the interruption state word analysis section 132.

起動された中断状態語分析部132は、中断状態語レジ
スタ131に蓄積されている中断状態語Wを分析しく第
4図ステップ521)、優先タスク生成情報Zが生成状
態に設定されていないと識別した場合には(ステップ5
22)、プロセッサ1は被割込タスクを中断点から実行
再開させる(ステップ523)。
The activated suspended state word analysis unit 132 analyzes the suspended state word W stored in the suspended state word register 131 (step 521 in FIG. 4), and identifies that the priority task generation information Z is not set to the generated state. (Step 5)
22), processor 1 resumes execution of the interrupted task from the interrupted point (step 523).

一部中断状態語分析部132が中断状態語Wを分析した
結果(ステップ521)、優先タスク生成情報2が性成
状態に設定されていると識別した場合には(ステップ5
22)、プロセンサlは実行制御プログラムp、lを実
行開始させ、実行するタスクを選択させる(ステップ5
24)。
As a result of the analysis of the suspended state word W by the partially suspended state word analysis unit 132 (step 521), if it is identified that the priority task generation information 2 is set to the created state (step 5
22), the processor l starts executing the execution control programs p and l and selects the task to be executed (step 5).
24).

プロセッサ1は、先ず実行制御プログラムP。The processor 1 first executes an execution control program P.

°内の退避部P(Isを実行することにより、総ての制
御レジスタ111乃至11mの蓄積内容をメモリ2内の
退避領域211乃至21mに退避し、また総ての汎用レ
ジスタ121乃至12nの蓄積内容をメモリ2内の退避
領域221乃至22nに退避する(第5図ステップ53
1)。
By executing the save part P (Is in The contents are saved to the save areas 221 to 22n in the memory 2 (step 53 in FIG. 5).
1).

続いて実行制御プログラムPd °を実行するプロセッ
サ1は、新たに実行すべきタスクを選択する(ステップ
532)。
Subsequently, the processor 1 that executes the execution control program Pd° selects a new task to be executed (step 532).

選択の結果、割込処理の結果生成されたタスクが被割込
タスクより優先的に選択され、実行される。
As a result of the selection, the task generated as a result of the interrupt processing is selected and executed with priority over the interrupted task.

続いて実行制御プログラムPd ゛を実行するプロセッ
サ1は、制御レジスタ111乃至11mおよび汎用レジ
スタ121乃至12nに、選択したタスクの情報を設定
しくステップ533)、選択したタスクを実行開始させ
る(ステップ534)。
Next, the processor 1 executing the execution control program Pd sets the information of the selected task in the control registers 111 to 11m and the general registers 121 to 12n (step 533), and starts executing the selected task (step 534). .

より優先度の高いタスクが実行し終わると、実行制御プ
ログラムP、  “を実行するプロセッサ1は、ステッ
プ332以降を繰返すことにより、被割込タスクも中断
点から実行再開される。
When the higher-priority task finishes executing, the processor 1 executing the execution control program P,'' repeats steps 332 and subsequent steps, thereby restarting execution of the interrupted task from the interrupted point.

以上の説明から明らかな如く、本実施例によれば、割込
処理プログラムPLX′を実行開始したプロセッサ1は
、割込処理プログラムp 、X′の実行の際に退避を必
要とするとして予め定められている一部の汎用レジスタ
121乃至12jのみの蓄積内容を退避させ、所要の割
込処理が終了した後、再び汎用レジスタ121乃至12
jに復元させ、割込処理過程で、被割込タスクより優先
度の高いタスクを生成し、優先タスク生成情報Zを生成
状態に設定した場合に限り、実行制御プログラムP、°
内の退避部P。を実行するプロセッサlが、総ての制御
レジスタ111乃至11mの蓄積内容を退避する為、退
避・復元する情報量が必要最小限となり、情報退避・復
元に要する時間も短縮される。
As is clear from the above description, according to this embodiment, the processor 1 that has started executing the interrupt processing program After saving the stored contents of only some of the general-purpose registers 121 to 12j, and completing the required interrupt processing, the general-purpose registers 121 to 12j are saved again.
The execution control program P, °
Evacuation part P inside. Since the processor l that executes saves the accumulated contents of all the control registers 111 to 11m, the amount of information to be saved and restored becomes the minimum necessary, and the time required for saving and restoring information is also shortened.

なお、第2図乃至第6図はあく迄本発明の一実施例に過
ぎず、例えば部分退避・復元手段101、優先タスク生
成情報設定手段102、実行制御部起動手段200、全
退避手段301は図示されるものに限定されることは無
く、他に幾多の変形が考慮されるが、何れの場合にも本
発明の効果は変わらない。また本発明の対象となる情報
処理システムは、図示されるものに限定されぬことは言
う迄も無い。
Note that FIGS. 2 to 6 are only one embodiment of the present invention, and for example, the partial save/restore means 101, the priority task generation information setting means 102, the execution control unit starting means 200, and the total saving means 301 are shown in FIGS. Although the present invention is not limited to what is shown in the drawings and many other modifications may be considered, the effects of the present invention remain the same in any case. Furthermore, it goes without saying that the information processing system to which the present invention is applied is not limited to what is illustrated.

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

以上、本発明によれば、前記情報処理システムにおいて
、各割込処理部は割込処理を開始する際に、予め定めら
れている一部の情報のみを退避させ、また割込処理を終
了する際に、退避させた一部の情報を復元し、割込処理
の結果生成されたタスクを優先して実行させる必要が生
じた場合に、初めて総ての情報を退避する為、割込処理
に伴う情報の退避・復元に要する時間が短縮され、当該
情報処理システムの処理能力の低下と、実時間性を強く
要求される情報処理システムにおける実時間性の低下と
が防止される。
As described above, according to the present invention, in the information processing system, each interrupt processing section saves only a predetermined part of information when starting interrupt processing, and also ends the interrupt processing. When it becomes necessary to restore some of the saved information and give priority to the task generated as a result of interrupt processing, it is necessary to save all the information for the first time, so The time required to save and restore accompanying information is shortened, and a decline in the processing capacity of the information processing system and a decline in real-time performance in an information processing system that is strongly required to be real-time performance are prevented.

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

第1図は本発明の原理を示す図、第2図は本発明の一実
施例による情報処理システムを示す図、第3図は第2図
における割込処理過程を例示する図、第4図は第2図に
おける中断状態語分析過程を例示する図、第5図は第2
図における実行制御過程を例示する図、第6図は本発明
の一実施例による中断状態語を示す図、第7図は従来あ
る情報処理システムの一例を示す図、第8図は従来ある
割込処理過程を例示する図である。 図において、1はプロセッサ、2はメモリ、100は割
込処理部、101は部分退避・復元手段、102は優先
タスク生成情報設定手段、111乃至11mは制御レジ
スタ、121乃至12nは汎用レジスタ、131は中断
状態語レジスタ、132は中断状態語分析部、200は
実行制御11部起動手段、201.211乃至21m、
221乃至22nは退避領域、300は実行制御部、3
01は杢発8月1;よろ惰租又す里システム ! 2 図 第 図 漆発e月1ぼろ中1牟第11語 算 6 口 笛2回12δ1ブろ劃へ処理道程 好 3 図 纂 軸板あろ+[【処述システム ¥ 7 図
FIG. 1 is a diagram showing the principle of the present invention, FIG. 2 is a diagram showing an information processing system according to an embodiment of the present invention, FIG. 3 is a diagram illustrating the interrupt processing process in FIG. 2, and FIG. is a diagram illustrating the interrupted state word analysis process in Figure 2;
6 is a diagram illustrating an execution control process according to an embodiment of the present invention, FIG. 7 is a diagram illustrating an example of a conventional information processing system, and FIG. 8 is a diagram illustrating a conventional FIG. In the figure, 1 is a processor, 2 is a memory, 100 is an interrupt processing unit, 101 is a partial save/restore means, 102 is a priority task generation information setting means, 111 to 11m are control registers, 121 to 12n are general-purpose registers, 131 132 is an interruption state word register; 200 is an execution control unit starting means; 201.211 to 21m;
221 to 22n are save areas, 300 is an execution control unit, 3
01 is from Mokura on August 1; Yoroina Seimatasu Sato system! 2 Fig. Fig. Urushi e Month 1 Boro Medium 1 Mo. 11th word calculation 6 Whistle 2 times 12 δ1 Processing process to Broken 3 Fig. Coated axis board Aro + [[Processing system\ 7 Fig.

Claims (1)

【特許請求の範囲】 複数の割込要因に対応してそれぞれ割込処理部(100
)を具備し、且つ複数のタスクの実行順序を優先度に基
づき制御する実行制御部(300)を具備する情報処理
システムにおいて、前記各割込処理部(100)に、 割込処理を開始する際に、被割込タスクが前記情報処理
システム内に設定中の情報の内、予め定められた一部の
情報のみを退避し、前記割込処理を終了する際に、退避
中の前記一部の情報を復元する部分退避・復元手段(1
01)と、 割込処理を実行中に前記被割込タスクより優先度の高い
タスクを生成したことを示す優先タスク生成情報を設定
する優先タスク生成情報設定手段(102)とを設け、 前記割込処理部(100)が前記割込処理を終了した際
に、前記優先タスク生成情報設定手段(102)が前記
優先タスク生成情報を設定したか否かを分析し、前記優
先タスク生成情報が設定されていることを識別した場合
に、実行制御部(300)を起動する実行制御部起動手
段(200)を前記情報処理システムに設け、 前記実行制御部(300)に、 新たにタスクを実行開始させるに先立ち、前記情報処理
システム内に設定中の総ての情報を退避させる全退避手
段(301)を設けることを特徴とする情報退避・復元
方式。
[Claims] Each interrupt processing unit (100
) and an execution control unit (300) that controls the execution order of a plurality of tasks based on priorities, the information processing system having each of the interrupt processing units (100) start interrupt processing. At this time, the interrupted task saves only a predetermined part of the information set in the information processing system, and when the interrupt processing ends, the part of the information being saved is saved. Partial save/restore means to restore information (1)
01), and priority task generation information setting means (102) for setting priority task generation information indicating that a task with a higher priority than the interrupted task was generated during execution of the interrupt process, When the interrupt processing unit (100) finishes the interrupt processing, the priority task generation information setting means (102) analyzes whether or not the priority task generation information has been set, and determines whether the priority task generation information has been set. The information processing system is provided with an execution control unit activating means (200) for activating the execution control unit (300) when the execution control unit (300) is identified as having been executed, and the execution control unit (300) is provided with: An information saving/restoring method characterized in that a total saving means (301) is provided for saving all the information being set in the information processing system before setting the information.
JP29261988A 1988-11-18 1988-11-18 Information saving/restoring system Pending JPH02138632A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29261988A JPH02138632A (en) 1988-11-18 1988-11-18 Information saving/restoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29261988A JPH02138632A (en) 1988-11-18 1988-11-18 Information saving/restoring system

Publications (1)

Publication Number Publication Date
JPH02138632A true JPH02138632A (en) 1990-05-28

Family

ID=17784146

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29261988A Pending JPH02138632A (en) 1988-11-18 1988-11-18 Information saving/restoring system

Country Status (1)

Country Link
JP (1) JPH02138632A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0764906A2 (en) * 1995-09-25 1997-03-26 Siemens Aktiengesellschaft Method of operating a real time computer system controlled by a real time operating system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0764906A2 (en) * 1995-09-25 1997-03-26 Siemens Aktiengesellschaft Method of operating a real time computer system controlled by a real time operating system
EP0764906A3 (en) * 1995-09-25 1999-07-21 Siemens Aktiengesellschaft Method of operating a real time computer system controlled by a real time operating system

Similar Documents

Publication Publication Date Title
US6006247A (en) Method and system for scheduling threads and handling exceptions within a multiprocessor data processing system
US7739685B2 (en) Decoupling a central processing unit from its tasks
US5161226A (en) Microprocessor inverse processor state usage
US6820155B1 (en) Interruption managing device and interruption managing method
US5526521A (en) Method and system for process scheduling from within a current context and switching contexts only when the next scheduled context is different
WO2006043040A1 (en) Interrupt control function adapted to control the execution of interrupt requests of differing criticality
US7401335B2 (en) Single stack kernel
JP2001256062A (en) Interruption processing method and operation processor using the same
JPH02138632A (en) Information saving/restoring system
JPH07191863A (en) Multitask execution managing system
JPS63636A (en) Task control system
JPH01258135A (en) Transaction execution control system
JPH0449426A (en) Method for controlling abort of program execution
JPH0451329A (en) Context switching device
JPH0836553A (en) Multiprocessor system and task scheduling method therein
US20210141661A1 (en) Lightweight Context For CPU Idling Using A Real Time Kernel
JPH04195539A (en) System call processing system
JPH0778091A (en) Multitask managing method
JPH0495137A (en) Context switching method for operating system
JPH076045A (en) Memory managing method of multi-processing system
CN114443257A (en) Task scheduling method, device and system based on thread pool
JPS59144955A (en) Information processor
JPH01216432A (en) Multitask system
JPS6121532A (en) Scheduling method
JPH05143370A (en) Multi-task computer