JPH03189826A - System for switching plural programs - Google Patents

System for switching plural programs

Info

Publication number
JPH03189826A
JPH03189826A JP32986889A JP32986889A JPH03189826A JP H03189826 A JPH03189826 A JP H03189826A JP 32986889 A JP32986889 A JP 32986889A JP 32986889 A JP32986889 A JP 32986889A JP H03189826 A JPH03189826 A JP H03189826A
Authority
JP
Japan
Prior art keywords
request
program switching
program
execution
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
JP32986889A
Other languages
Japanese (ja)
Inventor
Atsuko Suzuki
厚子 鈴木
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 Platforms Ltd
Original Assignee
NEC AccessTechnica 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 NEC AccessTechnica Ltd filed Critical NEC AccessTechnica Ltd
Priority to JP32986889A priority Critical patent/JPH03189826A/en
Publication of JPH03189826A publication Critical patent/JPH03189826A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the processing performance by constituting a system so that generation of a program switching requirement is detected, and when it is decided that its requirement is not an execution request of the program switching request, its requirement is accumulated and executed after the processing of the program switching requirement. CONSTITUTION:When generation of a program switching request to other program is detected by a detecting means 3 at the time of operation of a program, whether it is an execution requirement or not is decided. Subsequently, a requirement decided to be other request than the execution request by a deciding means 4 is stored in a store means 5, and it is executed after the program switching processing executed by the execution requirement. Accordingly, the processing can be executed to the operating program, and the processing whose execution is unnecessary comes not to enter. In such a manner, the processing performance can be improved.

Description

【発明の詳細な説明】 技術分野 本発明は複数プログラム切換え方式に関し、特に複数の
プログラムを同時に動作させるマルチジョブオペレーテ
ィングシステムの複数プログラム切換え処理に関する。
TECHNICAL FIELD The present invention relates to a multiple program switching method, and more particularly to multiple program switching processing in a multi-job operating system that runs multiple programs simultaneously.

従来技術 従来、マルチジョブオペレーティングシステムの複数プ
ログラム切換え方式においては、第3図に示すように、
他のプログラム1からの要求を要求受付は部21で受付
けると、該要求を受付けた順序で要求処理部22により
処理が行われていた。
Prior Art Conventionally, in the multiple program switching method of a multi-job operating system, as shown in FIG.
When requests from other programs 1 are received by the request reception unit 21, the requests are processed by the request processing unit 22 in the order in which the requests are received.

すなわち、第4図に示すように、CRT (図示せず)
の画面上に表示されるのはフォアグランドにあるジョブ
Aのみで、バックグランドにあるジョブB、CはCRT
の画面上には表示されない。
That is, as shown in FIG.
Only job A in the foreground is displayed on the screen, and jobs B and C in the background are displayed on the CRT screen.
is not displayed on the screen.

よって、要求11の「ジョブAに0を表示」や要求13
の「ジョブAに★を表示」はCRTに反映されるが、要
求12の「ジョブBにΔを表示」、はCRTに反映され
ない。
Therefore, request 11 "Display 0 for job A" and request 13
``Display ★ for job A'' is reflected on the CRT, but request 12 ``Display Δ for job B'' is not reflected on the CRT.

この要求12は要求14の「ジョブBをフォアにする」
が実行され、ジョブBがフォアグランドに切換えられて
からCRTに反映されることになる。
This request 12 is the request 14 “Make job B the foreground”
is executed, job B is switched to the foreground, and then reflected on the CRT.

このような従来の複数プログラム切換え方式では、他の
プログラム1からの要求が要求受付は部21で受付けた
順序で要求処理部22により処理されているので、該プ
ログラムがバックグランドに存在した場合、要求12な
どのような行う必要のない表示処理を行うことがあり、
無駄な処理が入るために性能が低下するという欠点があ
る。
In such a conventional multiple program switching method, requests from other programs 1 are processed by the request processing unit 22 in the order in which the requests are received by the request reception unit 21. Therefore, if the program exists in the background, Display processing that does not need to be performed, such as request 12, may be performed.
This has the disadvantage that performance deteriorates due to unnecessary processing.

発明の目的 本発明は上記のような従来のものの欠点を除去すべくな
されたもので、処理性能を向上させることができる複数
プログラム切換え方式の提供を目的とする。
OBJECTS OF THE INVENTION The present invention has been made to eliminate the above-mentioned drawbacks of the conventional methods, and an object of the present invention is to provide a multiple program switching method that can improve processing performance.

発明の構成 本発明による複数プログラム切換え方式は、複数のプロ
グラムを同時に動作させる機構の複数プログラム切換え
方式であって、前記プログラムの動作時に他のプログラ
ムへのプログラム切換え要求の発生を検出する検出手段
と、前記検出手段により前記プログラム切換え要求の発
生が検出されたとき、前記プログラム切換え要求の実行
要求か否かを判定する判定手段と、前記判定手段により
前記実行要求以外の要求と判定された要求を格納する格
納手段とを有し、前記格納手段に格納された前記要求を
、前記実行要求により実行されたプログラム切換え処理
の後に実行するようにしたことを特徴とする。
Structure of the Invention The multiple program switching method according to the present invention is a multiple program switching method with a mechanism for simultaneously operating multiple programs, and includes a detection means for detecting the occurrence of a program switching request to another program when the program is operating. and determining means for determining whether or not the program switching request is an execution request when the detection means detects the occurrence of the program switching request; and storage means for storing the request, and the request stored in the storage means is executed after the program switching process executed by the execution request.

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

第1図は本発明の一実施例の構成を示すブロック図であ
る。図において、要求受付は部2は他のプログラム1か
らの処理要求を受付けると、該要求をプログラム切換え
発生判別部3に送出する。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, upon receiving a processing request from another program 1, a request reception section 2 sends the request to a program switching occurrence determination section 3.

プログラム切換え発生判別部3ては該要求の前にすでに
プログラム切換えが発生しているか否かを判別し、プロ
グラム切換えが発生していれば該要求をプログラム切換
え実行要求判別部4に送出し、プログラム切換えが発生
していなければ該要求を要求処理部6に送出する。
The program switching occurrence determining unit 3 determines whether a program switching has already occurred before the request, and if a program switching has occurred, sends the request to the program switching execution request determining unit 4, and sends the request to the program switching execution request determining unit 4. If no switching has occurred, the request is sent to the request processing section 6.

プログラム切換え実行要求判別部4はプログラム切換え
発生判別部3から送られてきた要求がプログラム切換え
実行要求であるか否かを判別し、プログラム切換え実行
要求であれば該要求を要求処理部6に送出し、プログラ
ム切換え実行要求でなければ該要求を要求蓄積部5に送
出する。
The program switching execution request determining unit 4 determines whether the request sent from the program switching occurrence determining unit 3 is a program switching execution request or not, and if it is a program switching execution request, sends the request to the request processing unit 6. However, if it is not a program switching execution request, the request is sent to the request storage section 5.

要求蓄積部5はプログラム切換え実行要求判別部4から
送られてきた要求を図示せぬ記憶部に蓄積する。
The request storage section 5 stores the requests sent from the program switching execution request determination section 4 in a storage section (not shown).

要求処理部6はプログラム切換え発生判別部3およびプ
ログラム切換え実行要求判別部4から送られてきた要求
の処理を行い、プログラム切換え実行要求判別部4から
送られてきたプログラム切換え実行要求を処理すると、
プログラム切換え処理の終了を蓄積要求処理部7に通知
する。
The request processing unit 6 processes the requests sent from the program switching occurrence determination unit 3 and the program switching execution request determination unit 4, and processes the program switching execution request sent from the program switching execution request determination unit 4.
The storage request processing unit 7 is notified of the end of the program switching process.

蓄積要求処理部7は要求処理部6からプログラム切換え
処理の終了が通知されると、要求蓄積部5により蓄積さ
れた要求のうち該プログラム切換えにより切換えられた
プログラムの要求を読出し、該要求の処理を行う。
When the storage request processing unit 7 is notified of the end of the program switching process from the request processing unit 6, it reads out the request of the program switched by the program switching from among the requests accumulated by the request storage unit 5, and processes the request. I do.

第2図は本発明の一実施例の動作を示す図である。これ
ら第1図および第2図を用いて本発明の一実施例の動作
について説明する。
FIG. 2 is a diagram showing the operation of one embodiment of the present invention. The operation of an embodiment of the present invention will be explained using FIG. 1 and FIG. 2.

CRT (図示せず)の画面上に表示されるフォアグラ
ンドにジョブAがあり、CRTの画面上には表示されな
いバックグランドにジョブB、Cがあるとき、要求受付
は部2はジョブBへのプログラム切換え要求を受付ける
と、該プログラム切換え要求をプログラム切換え発生判
別部3に送出する。
When job A is in the foreground displayed on the screen of a CRT (not shown), and jobs B and C are in the background that are not displayed on the CRT screen, part 2 receives the request for job B. When a program switching request is received, the program switching request is sent to the program switching occurrence determining section 3.

プログラム切換え発生判別部3では該プログラム切換え
要求の前に一番優先順位の高いプログラム切換え要求が
発生しているかが確認され、このときには一番優先順位
の高いプログラム切換え要求が発生していないと判断さ
れるので、該プログラム切換え要求が要求処理部6に送
出されて処理される。
The program switching occurrence determination unit 3 checks whether a program switching request with the highest priority has occurred before the program switching request, and in this case, it is determined that a program switching request with the highest priority has not occurred. Therefore, the program switching request is sent to the request processing section 6 and processed.

このとき、プログラム切換え要求の発生が要求処理部6
により図示せぬレジスタなどに保持される。
At this time, the generation of the program switching request is detected by the request processing unit 6.
It is held in a register (not shown) or the like.

ついて、要求11の「ジョブAにOを表示」、要求]2
の「ジョブBにΔを表示」、要求13の「ジョブAに★
を表示」が要求受付は部2で順次受付けられると、これ
らの要求11〜13の前にプログラム切換えが発生して
いるとプログラム切換え発生判別部3て判断されるとと
もに、これらの要求11〜13が一番優先順位の高いプ
ログラム切換え要求の実行要求てないとプログラム切換
え実行要求判別部4で判断されるので、これらの要求1
−1〜13は要求蓄積部5により要求内容退避エリア1
5に蓄積され、それらの処理が保留となる。
Accordingly, request 11 “Display O for job A”, request] 2
``Display Δ for job B'', Request 13 ``Display Δ for job A''
When the requests for "Display" are sequentially received by the unit 2, the program switching occurrence determining unit 3 determines that a program switching has occurred before these requests 11 to 13, and Since the program switching execution request determining unit 4 determines that the program switching request with the highest priority is not the execution request of the program switching request with the highest priority, these requests 1
−1 to 13 are the request content save area 1 by the request storage unit 5.
5, and their processing is put on hold.

ここて、要求11..13が要求受付は部2で受付けら
れたときにはジョブBへの切換え要求が発生しており、
それらの要求it、13か実行されてもすくにCRTの
画面がジョブBに切換えられてしまうため、それらの要
求1.1.13は要求内容退避エリア15に蓄積される
Here, request 11. .. When request number 13 is accepted by department 2, a request to switch to job B has occurred.
Even if requests 1, 1, and 13 are executed, the CRT screen is immediately switched to job B, so requests 1, 1, and 13 are accumulated in the request content save area 15.

よって、要求1.1.13はCRTの画面がジョブBに
切換えられた後に、再度CRTの画面がジョブAに切換
えられてから処理されることになる。
Therefore, request 1.1.13 will be processed after the CRT screen is switched to job B and then again after the CRT screen is switched to job A.

次に、要求]4の「ジョブBをフォアにする」が要求受
付は部2で受付けられると、この要求14の前にプログ
ラム切換えが発生しているとプログラム切換え発生判別
部3で判断されるとともに、この要求14が一番優先順
位の高いプログラム切換え要求の実行要求であるとプロ
グラム切換え実行要求判別部4で判断されるので、この
要求14が要求処理部6に送られて処理される。
Next, when the request [4] "Make job B the foreground" is accepted by the request section 2, the program switching occurrence determination section 3 determines that a program switching has occurred before this request 14. At the same time, since the program switching execution request determining section 4 determines that this request 14 is the execution request of the program switching request with the highest priority, this request 14 is sent to the request processing section 6 and processed.

要求処理部6で要求]4が処理されてジョブBがフォア
グランドに切換えられると、要求処理部6はプログラム
切換え処理の終了を蓄積要求処理部7に通知する。
When request]4 is processed by the request processing unit 6 and job B is switched to the foreground, the request processing unit 6 notifies the storage request processing unit 7 of the end of the program switching process.

蓄積要求処理部7では要求処理部6からプログラム切換
え処理の終了が通知されると、要求蓄積部5により要求
内容退避エリア15に蓄積された要求11〜]3のうち
該プログラム切換えにより切換えられたジョブBに対す
る要求12が読出され、該要求12の処理が行われてジ
ョブBにΔが表示される。
When the storage request processing unit 7 is notified of the end of the program switching process from the request processing unit 6, the storage request processing unit 7 stores the requests 11 to 3 stored in the request content save area 15 by the request storage unit 5 that were switched by the program switching. Request 12 for job B is read out, the request 12 is processed, and Δ is displayed for job B.

このように、要求受付は部2で受付けた要求11〜13
の前にすでにプログラム切換え要求が発生しているとプ
ログラム切換え発生判別部3で判断されるとともに、こ
れらの要求11〜1−3が一番優先順位の高いプログラ
ム切換え要求の実行要求てないとプログラム切換え実行
要求判別部4で判断されたとき、これらの要求11〜1
3を要求蓄積部5により要求内容退避エリア15に蓄積
させておき、該プログラム切換え要求を処理した後に実
行するようにすることによって、常に新しくフォアグラ
ンドに存在するプログラム、すなわちCRT上に表示さ
れて動作しているプログラムに対して処理を行うことが
可能となり、行う必要のない表示処理などの無駄な処理
が入らなくなるため、処理性能を向上させることができ
る。
In this way, requests 11 to 13 accepted in section 2 are accepted.
The program switching occurrence determination unit 3 determines that a program switching request has already occurred before the program switching request, and if these requests 11 to 1-3 do not request execution of the program switching request with the highest priority, the program When judged by the switching execution request determination unit 4, these requests 11 to 1
3 is stored in the request content save area 15 by the request storage unit 5, and is executed after the program switching request is processed, so that a new program existing in the foreground, that is, a new program displayed on the CRT is always executed. Processing can be performed on the running program, and wasteful processing such as display processing that does not need to be performed is not included, so processing performance can be improved.

発明の詳細 な説明したように本発明によれば、プログラム切換え要
求の発生が検出され、プログラム切換え要求の実行要求
でないと判定されたとき、該要求を蓄積しておいて該プ
ログラム切換え要求の処理の後に実行するようにするこ
とによって、処理性能を向上させることができるという
効果がある。
DETAILED DESCRIPTION OF THE INVENTION According to the present invention, when the occurrence of a program switching request is detected and it is determined that the program switching request is not an execution request, the request is stored and the program switching request is processed. This has the effect of improving processing performance by executing it after.

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

第1図は本発明の一実施例の構成を示すブロック図、第
2図は本発明の一実施例の動作を示す図、第3図は従来
例の構成を示すブロック図、第4図は従来例の動作を示
す図である。 主要部分の符号の説明 2・・・・・要求受付は部 3・・・・・・プログラム切換え発生判別部4・・・・
・プログラム切換え実行要求判別部5・・・・・・要求
蓄積部 6・・・・・・要求処理部 7・・・・・・蓄積要求処理部 15・・・・・・要求内容退避エリア
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a diagram showing the operation of an embodiment of the present invention, FIG. 3 is a block diagram showing the configuration of a conventional example, and FIG. 4 is a block diagram showing the configuration of a conventional example. It is a figure which shows the operation|movement of a conventional example. Explanation of symbols of main parts 2...Request reception part 3...Program switching occurrence determination part 4...
・Program switching execution request determination unit 5...Request storage unit 6...Request processing unit 7...Storage request processing unit 15...Request content save area

Claims (1)

【特許請求の範囲】[Claims] (1)複数のプログラムを同時に動作させる機構の複数
プログラム切換え方式であって、前記プログラムの動作
時に他のプログラムへのプログラム切換え要求の発生を
検出する検出手段と、前記検出手段により前記プログラ
ム切換え要求の発生が検出されたとき、前記プログラム
切換え要求の実行要求か否かを判定する判定手段と、前
記判定手段により前記実行要求以外の要求と判定された
要求を格納する格納手段とを有し、前記格納手段に格納
された前記要求を、前記実行要求により実行されたプロ
グラム切換え処理の後に実行するようにしたことを特徴
とする複数プログラム切換え方式。
(1) A multiple program switching system of a mechanism that operates multiple programs simultaneously, the detection means detecting the occurrence of a program switching request to another program when the program is operating, and the detection means detects the program switching request. a determination means for determining whether or not the program switching request is an execution request when the occurrence of the program switching request is detected; and a storage means for storing a request determined by the determination means to be a request other than the execution request; A plurality of program switching method characterized in that the request stored in the storage means is executed after the program switching process executed by the execution request.
JP32986889A 1989-12-20 1989-12-20 System for switching plural programs Pending JPH03189826A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32986889A JPH03189826A (en) 1989-12-20 1989-12-20 System for switching plural programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32986889A JPH03189826A (en) 1989-12-20 1989-12-20 System for switching plural programs

Publications (1)

Publication Number Publication Date
JPH03189826A true JPH03189826A (en) 1991-08-19

Family

ID=18226141

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32986889A Pending JPH03189826A (en) 1989-12-20 1989-12-20 System for switching plural programs

Country Status (1)

Country Link
JP (1) JPH03189826A (en)

Similar Documents

Publication Publication Date Title
US6820155B1 (en) Interruption managing device and interruption managing method
US20110078702A1 (en) Multiprocessor system
JP3970609B2 (en) Processor system
JPH03189826A (en) System for switching plural programs
JPH11345121A (en) Instruction fetch device and method for program control unit
JP2580072B2 (en) Interrupt processing device
JP2795312B2 (en) Inter-process communication scheduling method
JP3093714B2 (en) Multitasking execution priority determination system
JPS5971555A (en) Performance monitoring system
JPH05108374A (en) Multitask execution device
JPH04373018A (en) Process end processing system
US20060101239A1 (en) Program-controlled unit having a prefetch unit
CN121326409A (en) Processor system and interrupt response method
JPH05324416A (en) System error history saving system
GB2300496A (en) Data processing system
JPH07210459A (en) Data storage processing method
JPH0314146A (en) High speed address converting mechanism control system
JPH0644087A (en) Scheduling control system of computer system
JPH09274610A (en) Event reporting system
JPH0520101A (en) Arithmethic register information monitoring system
JPS593076B2 (en) Subscriber circuit scanning method
JPH0764805A (en) Real-time multitask system
JPH0285933A (en) Information processor
JPH05101018A (en) Network file shared system
JPH01248239A (en) Waiting processing system for competitive task