JPH0438529A - Information processor - Google Patents
Information processorInfo
- Publication number
- JPH0438529A JPH0438529A JP2145814A JP14581490A JPH0438529A JP H0438529 A JPH0438529 A JP H0438529A JP 2145814 A JP2145814 A JP 2145814A JP 14581490 A JP14581490 A JP 14581490A JP H0438529 A JPH0438529 A JP H0438529A
- Authority
- JP
- Japan
- Prior art keywords
- program
- cpu
- register
- task
- central 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
Links
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
[産業上の利用分野〕
本発明は情報処理装置にあって、マルチタスクシステム
の中央制御部動作環境の動的管理を行なう装置に関する
。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an information processing apparatus, and relates to an apparatus for dynamically managing the operating environment of a central control unit of a multitasking system.
中央制御部の動作環境とは動作速度、割り込み制am境
、アドレス空間等、CPU上で動作するプログラムがう
けるハードウェア上の制約を意味している。本発明は好
ましくは動作速度の動的管理装置に関する。The operating environment of the central control unit refers to hardware constraints imposed on programs running on the CPU, such as operating speed, interrupt control, and address space. The present invention preferably relates to an apparatus for dynamic management of operating speed.
し従来の技術]
中央制御装置(以降CPUと呼ぶ)は年々その動作速度
を速くすることで、その処理能力を飛躍的に増大させて
きている。しかしながら、そこで実行されるソフトウェ
アの一部には動作速度の向上を好まないものも存在する
。いわゆるゲームソフトやソフトウェアタイマーがそれ
である。又、一部のメモリや外部装置にもCPUの動作
速度の上昇に追従できないものが存在している。BACKGROUND ART] A central control unit (hereinafter referred to as a CPU) has been increasing its operating speed year by year, thereby dramatically increasing its processing capacity. However, some of the software executed there does not like the improvement in operating speed. This includes so-called game software and software timers. Additionally, there are some memories and external devices that cannot keep up with the increase in CPU operating speed.
第4図に示される電子計算機400はIMHzのクロッ
クが入力されていてCPU401の動作速度はどの命令
に対しても一定で1秒間の命令処理数を百万個(以降I
Mipsと称する)と仮定する。又、デバイス403は
入出力装置でCPU401からの命令に対してやはりI
MHzで同期動作できるものとする。The electronic computer 400 shown in FIG. 4 is inputted with an IMHz clock, and the operating speed of the CPU 401 is constant for any instruction, and the number of instructions processed per second is one million (hereinafter referred to as IMHz).
Mips). Also, the device 403 is an input/output device that also responds to instructions from the CPU 401.
It is assumed that synchronous operation is possible at MHz.
電子計算機400はどのプログラムを実行してもIMi
psで実行することができる。The computer 400 has IMi no matter which program it executes.
It can be executed with ps.
ところで、電子計算機400内部のCPU401の動作
速度が2MHzに向上したと仮定する場合、当然ながら
その処理能力は2M1psになる。By the way, if it is assumed that the operating speed of the CPU 401 inside the computer 400 has been improved to 2 MHz, its processing capacity will naturally be 2M1 ps.
しかし、デバイス403を利用しようとするプログラム
は、デバイス403の動作速度が2MHzではない為、
そのままでは実行不可能である。However, the program that attempts to use the device 403 cannot run at the operating speed of the device 403, which is not 2MHz.
It cannot be executed as is.
第5図は第4図で示す電子計算機400のうち、C−P
U 401を2MH2でも動作可能なCPU501に
したものである。また。クロック発生器504は発信器
505より得るクロックから外部スイッチ508に基づ
きIMH2のクロックと2MHzのクロックを選択して
CPU501へ伝送する回路を追加したものでデバイス
503はデバイス403と同等の1MHzでしか動作し
得ないものとする。FIG. 5 shows C-P of the electronic computer 400 shown in FIG.
The U 401 is replaced by a CPU 501 that can operate even at 2MH2. Also. The clock generator 504 has an additional circuit that selects the IMH2 clock and 2 MHz clock based on the external switch 508 from the clock obtained from the oscillator 505 and transmits it to the CPU 501. The device 503 only operates at 1 MHz, which is the same as the device 403. shall not be possible.
これにより、デバイス503を使用しないプログラムは
電子計算機400で実行するのに比べ2倍のパフォーマ
ンスを得ることができる。また、スイッチによりIMH
zのクロックを選択しさえすれば電子計算機400と同
等動作を行なうことができ、デバイス503自体とそれ
を使用するソフトウェアの資産継承を計ることができる
。As a result, a program that does not use the device 503 can achieve twice the performance as compared to when it is executed on the computer 400. In addition, the IMH
By simply selecting the clock of z, it is possible to perform the same operation as the electronic computer 400, and it is possible to inherit the assets of the device 503 itself and the software that uses it.
第6図は電子計算機500で動作をするプログラムのス
テップ数とその実行時間を模式化したものである。プロ
グラム600は601〜604の4個のタスクに分割さ
れているとする。説明の便宜上、タスク601〜604
は同一ステップ数で構成されIMipsで実行した場合
の各々の実行時間は全てTで同じとする。FIG. 6 schematically shows the number of steps and the execution time of a program that runs on the computer 500. It is assumed that the program 600 is divided into four tasks 601 to 604. For convenience of explanation, tasks 601 to 604
are composed of the same number of steps, and the execution time of each when executed by IMips is all T, which is the same.
さらに、タスク601はイニシャルプログラム、タスク
603は演算プログラムで低速デバイス503をアクセ
スしないと仮定する。又、タスク602はオペレターか
らの入力を得るプログラム、タスク604はオペレータ
への出力プログラムで各々がデバイス503を使用する
と仮定し、601から順に602.603.604と実
行されるものとする。Furthermore, it is assumed that the task 601 is an initial program and the task 603 is an arithmetic program that does not access the low-speed device 503. Further, it is assumed that task 602 is a program for obtaining input from the operator, and task 604 is an output program for the operator, and that each uses the device 503, and that they are executed in order from 601 to 602, 603, and 604.
したがって、タスク601と603はCPU501上で
本来なら2M1psの能力で動作が可能であり、タスク
602とタスク604はIMipSでしか動作ができな
いことになる。Therefore, tasks 601 and 603 can normally operate on the CPU 501 with a capacity of 2M1 ps, and tasks 602 and 604 can only operate with IMipS.
ここで、計算機500でプログラム600をIMips
で実行した場合、その実行時間610は各タスクの各々
の実行時間611〜614の総和4Tで表わすことがで
きる。説明の便宜上、第6図ではその大きさをプログラ
ムのステップ数と同じサイズで表わしている。Here, the program 600 is converted to IMips on the computer 500.
When executed, the execution time 610 can be expressed as the sum of 4T of the execution times 611 to 614 of each task. For convenience of explanation, the size is shown in FIG. 6 as the same size as the number of steps in the program.
計算機500のスイッチ506を2MH2のクロックが
選択される側に変え、そのCPU501の性能を2M1
pBにした上でプログラム600を実行すると仮定する
。Change the switch 506 of the computer 500 to select the 2MH2 clock, and increase the performance of the CPU 501 to 2M1.
Assume that the program 600 is executed after setting the value to pB.
タスク601は仮定どおり2M1psで動作しその動作
時間621はT/2で終了する。しかし、タスク602
は低速デバイス503を実行するため2M1psでは動
作できない。よって、プログラム600はこの時点で障
害が発生し中断する。The task 601 operates at 2M1 ps as assumed, and its operating time 621 ends at T/2. However, task 602
cannot operate at 2M1ps because it executes a low-speed device 503. Therefore, the program 600 encounters a failure at this point and is interrupted.
[発明が解決しようとする課題]
従来技術ではあるプログラムの使用する最も低速な周辺
装置(メモリやオペレータとの操作環境を含む)に合わ
せてCPUの動作速度をその都度決定しなくてはならな
い。さらに、各ユーザは使用しようとするプログラムの
動作環境を常に把握していなくてはならない。[Problems to be Solved by the Invention] In the prior art, the operating speed of the CPU must be determined each time according to the slowest peripheral device (including memory and operator operating environment) used by a certain program. Furthermore, each user must always be aware of the operating environment of the program he/she intends to use.
又、そのプログラムの全体的な効率は周辺装置が改善さ
れない限りCPtJの動作速度アップの恩恵を受けるこ
とができない。場合によっては、部あるいは全てをつく
り直す必要性が発生する。Also, the overall efficiency of the program cannot benefit from the increased operating speed of CPtJ unless the peripherals are improved. In some cases, it may be necessary to rebuild parts or all of them.
[課題を解決するための手段]
本発明は、中央制御部と、前記中央制御部の動作環境を
決定することのできるレジスタ部と、前記レジスタ部に
前記中央制御部が直接書き込みを行なうことができる回
路手段と、前記中央制御部が実行しようとするジョブの
待行列からひとつのジョブの実行開始を行なおうとする
時に、前記ジョブが持つ固有の前記中央制御部の動作環
境の情報を前記レジスタ部に書き込みを行なうことがで
きる手段とを備えていることを特徴とし、さらに、前記
実行しようとするジョブが前記レジスタ部に指定を行な
わない場合は、前記中央制御部の動作環境を指定するた
めの外部スイッチ手段が備えられていることを特徴とす
る。[Means for Solving the Problems] The present invention includes a central control unit, a register unit that can determine the operating environment of the central control unit, and a register unit that allows the central control unit to directly write to the register unit. When the central control unit attempts to start execution of one job from the queue of jobs to be executed, information on the operating environment of the central control unit unique to the job is stored in the register. and means for specifying an operating environment of the central control section when the job to be executed does not specify the register section. The invention is characterized in that it is equipped with an external switch means.
[実施例]
第1図は特許請求範囲第1項で示す電子計算機100で
従来の技術の項で説明した電子計算機500とほぼ同等
であるが、スイッチ506の代わりにレジスタ106と
その書き込み手段107を持つ。[Embodiment] FIG. 1 shows an electronic computer 100 shown in claim 1, which is almost the same as the electronic computer 500 described in the prior art section, except that the switch 506 is replaced by a register 106 and its writing means 107. have.
レジスタ106に書かれた内容はクロック発生器104
に伝達されCPU100に渡すクロックを決定すること
ができる。The contents written in the register 106 are sent to the clock generator 104.
The clock to be transmitted to the CPU 100 can be determined.
又、レジスタ106はCPUl0Iから書き込み手段1
07を介して任意のタイミングにて書換えが可能で、こ
れにより、CPUl0Iは自らの動作速度を自ら設定で
きることになる。Also, the register 106 is written from the CPUl0I to the writing means 1.
It is possible to rewrite at any timing via the CPU 07, thereby allowing the CPU 10I to set its own operating speed by itself.
第2図は電子計算機100で動作をするプログラムのス
テップ数を模式化したもので第6図で説明したプログラ
ム600と同じ構成をなすものである。プログラム20
0は201〜204の4個のタスクに分割されていて、
かつ、同一サイズで201から202.203.204
へと順に実行されるものとする。FIG. 2 schematically shows the number of steps of a program that runs on the computer 100, and has the same configuration as the program 600 described in FIG. 6. Program 20
0 is divided into four tasks 201 to 204,
And the same size from 201 to 202.203.204
It shall be executed in order.
但し、各々のタスクの先頭にはそれ自身の動作速度を指
定する情報と第1図で示すレジスタ106へ書き込む命
令221〜224を持っているものとする。However, it is assumed that each task has at the beginning information specifying its own operating speed and instructions 221 to 224 to be written to the register 106 shown in FIG.
叉、第6図と同様にタスク201はイニシャルプログラ
ム、タスク203は演算プログラムであって、201と
203の各々のタスクは低速デバイス103の使用しな
いと仮定する。又、タスク202はオペレターからの入
力を得るプログラム、タスク204はオペレータへの出
力プログラムであって、202と204の各々のタスク
はデバイス103を使用すると仮定する。Similarly to FIG. 6, it is assumed that task 201 is an initial program, task 203 is an arithmetic program, and that each of tasks 201 and 203 does not use the low-speed device 103. Further, it is assumed that task 202 is a program for obtaining input from the operator, task 204 is a program for outputting to the operator, and that each of the tasks 202 and 204 uses the device 103.
今、プログラム200が電子計算機100上で動作を開
始した場合、まずタスク201が呼び出される。タスク
201の先頭にはCPUl0Iの動作速度を2MHzに
設定するための命令221があって、第1図で示す10
7を介してレジスタ106へ情報が書き込まれる。よっ
て、CPUl01は2M1psの能力でタスク201を
実行し、その実行時間は第2図の211で表わすことが
でき、第6図で示すI M i p Sで実行した場合
の実行時間611のTに比べ半分の時間T/2となる。Now, when the program 200 starts operating on the computer 100, the task 201 is called first. At the beginning of the task 201 there is an instruction 221 for setting the operating speed of the CPU I0I to 2MHz,
Information is written to register 106 via 7. Therefore, the CPU 101 executes the task 201 with a capacity of 2M1 ps, and the execution time can be expressed as 211 in FIG. 2. Compared to this, it takes half the time T/2.
次に、タスク202が呼び出されるとCPUl01のク
ロックは命令222が実行されCPUの動作速度はIM
HzとなりCPUl0IはIMipsで実行される。こ
れによりタス・り202の実行時間212は第6図のタ
スク602が必要とした実行時間612の1時間と同じ
である。Next, when the task 202 is called, the clock of the CPU101 executes the instruction 222, and the operating speed of the CPU is set to IM.
Hz and CPU10I is executed at IMips. As a result, the execution time 212 of task 202 is the same as the execution time 612 of one hour required by task 602 in FIG.
以下同様にタスク203は命令223により再度2MH
zのクロックが選択されて、その実行時間213は61
3の半分のT/2時間となり、タスク204の命令22
4によりIMHzクロックが選択されその実行時間21
4は614と同じ1時間となる。In the same way, the task 203 returns to 2MH by instruction 223.
z clock is selected and its execution time 213 is 61
The time is T/2, which is half of 3, and the instruction 22 of task 204
4 selects the IMHz clock and its execution time 21
4 is the same as 614, which is one hour.
入出力タスク202と204の実行時間212.214
は従来の動作速度と同じなのでオペレータは従来の電子
計算機と同じ感覚で扱うことができるであろう。叉、オ
ペレータの実質上の待ち時間となるタスク203の実行
時間213はCPUの性能アップ分と同じ半分のT/2
時間となる。全体の動作時間和210は動作速度アップ
の効果が表れて3T時間となり、従来技術の4T時間に
比べ25%の性能アップが可能となる。Execution time 212.214 of input/output tasks 202 and 204
Since the operating speed is the same as that of a conventional computer, the operator will be able to use it in the same way as a conventional electronic computer. Furthermore, the execution time 213 of the task 203, which is the operator's actual waiting time, is T/2, which is half the amount of CPU performance improvement.
It's time. The total operating time 210 becomes 3T hours due to the effect of increasing the operating speed, which makes it possible to improve performance by 25% compared to 4T hours of the conventional technology.
従来の実行時間を、比較のために第2図の左側に611
.612.613.614として示しである。The conventional execution time is shown at 611 on the left side of Figure 2 for comparison.
.. 612.613.614.
又、ユーザは動作速度や設定スイッチを意識しなくでも
、CPUの運用効率を高める事が可能となり、従来技術
の項で説明した誤った動作速度の選択によるプログラム
の中断などは起こらない。Furthermore, the user can improve the operating efficiency of the CPU without being aware of the operating speed or setting switches, and the interruption of the program due to incorrect selection of the operating speed as described in the prior art section does not occur.
ところで、プログラムやタスクは固有の実行速度を必ず
持っているものとは限らないため、特許請求の範囲第1
項で示すレジスタに指定する情報が不定となる場合があ
る。この場合はCPUの動作速度を従来技術で示す電子
計算機500の様にオペレータが直接設定できるスイッ
チを設ける方が望ましい。By the way, since programs and tasks do not necessarily have a specific execution speed, the first claim
The information specified in the register shown in section may become undefined. In this case, it is preferable to provide a switch that allows the operator to directly set the operating speed of the CPU, as in the electronic computer 500 shown in the prior art.
第3図は電子計算機100に特許請求の範囲第2項で示
す補助回路手段を加えた電子計算機300である。電子
計算機100のレジスタ106にあたる306の内容と
、スイッチ308の内容を、R−Sフリップフロップ3
09の出力状態により、レジスタ・スイッチ選択回路が
選択を行なう。これにより、CPU301の動作速度を
CPU301自身とスイッチ308双方より指定可能と
なる。FIG. 3 shows an electronic computer 300 in which an auxiliary circuit means shown in claim 2 is added to the electronic computer 100. The contents of the register 306 of the computer 100 and the contents of the switch 308 are transferred to the R-S flip-flop 3.
The register/switch selection circuit makes a selection depending on the output state of 09. This allows the operating speed of the CPU 301 to be specified by both the CPU 301 itself and the switch 308.
R−Sフリップフロップ309の出力はイニシャル時に
はLに設定されレジスタ・スイッチ選択回路310はス
イッチ308を選択している。この時、CPU300の
動作速度はオペレータがスイッチ308を介して指定す
ることができる。The output of the R-S flip-flop 309 is initially set to L, and the register/switch selection circuit 310 selects the switch 308. At this time, the operating speed of the CPU 300 can be specified by the operator via the switch 308.
その後、前と実施例で行なわれるレジスタ306への書
き込みが行なわれるとR−Sフリップフロップ309の
出力はHとなってレジスタ306の内容をレジスタ・ス
イッチ選択回路310が選択し、電子計算機100のク
ロック選択回路1゜4にあたる304に伝送する。Thereafter, when writing to the register 306 is performed as in the previous example and in the embodiment, the output of the R-S flip-flop 309 becomes H, and the register/switch selection circuit 310 selects the contents of the register 306. It is transmitted to the clock selection circuit 304 corresponding to 1°4.
[発明の効果]
特にCPUの動作速度の上昇はシステム全体の動作効率
を高めることとなる。しかしながら、その製品化におい
て周辺装置までを含め、同時に動作速度を合わせる事は
困難なことである。従来技術では一部のソフトウェアが
一部の周辺装置の影響により、CPUの効率アップを生
かしきれない。[Effects of the Invention] In particular, an increase in the operating speed of the CPU increases the operating efficiency of the entire system. However, in commercializing the product, it is difficult to simultaneously match the operating speeds of peripheral devices. In the conventional technology, some software cannot take advantage of the increased efficiency of the CPU due to the influence of some peripheral devices.
本発明はCPUの高速化等に対しCPUの動作環境を動
的に変化させることにより、オペレータが意識する事な
く、従来資産の効率のいい運用と継承を計ることができ
る。By dynamically changing the operating environment of the CPU in response to increased CPU speed, the present invention enables efficient operation and inheritance of conventional assets without the operator being aware of it.
第1図は本発明による情報処理装置を示す図。
第2図は本発明で動作するプログラムとその実行時間を
示す略図。
第3図は本発明による補助回路をさらに備えた情報処理
装置を示す略図。
第4図は従来の電子計算機を示す図。
第5図は従来技術により一部変更した電子計算機を示す
図。
第6図は従来技術による第5図の電子計算機で実行され
るプログラムとその実行時間を示す略図。
101、301: cpu
102.302:メモリおよび周辺装置103.303
:低速デバイス
104.304: CPUクロック選択回路105.3
05:発振器
106.306:クロック選択レジスタ107.307
:書き込み回路
308: スイッチ
309:
310:
120.
201:
202:
203:
204:
R−Sフリップフロップ
レジスタ・スイッチ選択回路
320:共通パス
タスク1、イニシャルプログラム
タスク2、入力プログラム
タスク3、演算プログラム
タスク4、出力プログラム
以
上FIG. 1 is a diagram showing an information processing apparatus according to the present invention. FIG. 2 is a schematic diagram showing a program that operates according to the present invention and its execution time. FIG. 3 is a schematic diagram showing an information processing device further comprising an auxiliary circuit according to the present invention. FIG. 4 is a diagram showing a conventional electronic computer. FIG. 5 is a diagram showing an electronic computer partially modified according to the prior art. FIG. 6 is a schematic diagram showing a program executed by the electronic computer of FIG. 5 and its execution time according to the prior art. 101, 301: cpu 102.302: memory and peripherals 103.303
:Low speed device 104.304: CPU clock selection circuit 105.3
05: Oscillator 106.306: Clock selection register 107.307
:Write circuit 308: Switch 309: 310: 120. 201: 202: 203: 204: R-S flip-flop register/switch selection circuit 320: Common path task 1, initial program task 2, input program task 3, arithmetic program task 4, output program and above
Claims (2)
することのできるレジスタ部と、前記レジスタ部に前記
中央制御部が直接書き込みを行なうことができる回路手
段と、前記中央制御部が実行しようとするジョブの待行
列からひとつのジョブの実行開始を行なおうとする時に
、前記ジョブが持つ固有の前記中央制御部の動作環境の
情報を前記レジスタ部に書き込みを行なうことができる
手段とを備えていることを特徴とする情報処理装置。(1) A central control unit, a register unit that can determine the operating environment of the central control unit, circuit means that allows the central control unit to directly write to the register unit, and means for writing information on the operating environment of the central control unit unique to the job to the register unit when attempting to start execution of one job from a queue of jobs to be executed; An information processing device comprising:
指定を行なわない場合は、前記中央制御部の動作環境を
指定するための外部スイッチ手段が備えられていること
を特徴とする請求項1記載の情報処理装置。(2) If the job to be executed does not specify the register section, an external switch means is provided for specifying the operating environment of the central control section. information processing equipment.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2145814A JPH0438529A (en) | 1990-06-04 | 1990-06-04 | Information processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2145814A JPH0438529A (en) | 1990-06-04 | 1990-06-04 | Information processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0438529A true JPH0438529A (en) | 1992-02-07 |
Family
ID=15393760
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2145814A Pending JPH0438529A (en) | 1990-06-04 | 1990-06-04 | Information processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0438529A (en) |
-
1990
- 1990-06-04 JP JP2145814A patent/JPH0438529A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0193837A (en) | Microprocessor for debug | |
| JPH07104830B2 (en) | Computer system and method of operating a computer system | |
| JPS63279328A (en) | Control system for guest execution of virtual computer system | |
| JPH0438529A (en) | Information processor | |
| EP0301707A2 (en) | Apparatus and method for providing an extended processing environment on nonmicrocoded data processing system | |
| JPS6290728A (en) | Interruption processing method | |
| JPH04227547A (en) | Information processor | |
| JP2004287618A (en) | Operating system activation control method, program for causing a computer to execute the method, and operating system activation control device | |
| JPS6097440A (en) | Virtual multiprocessor device | |
| JP3163196B2 (en) | Instruction interruption information storage control method in virtual storage control | |
| JPH06324861A (en) | System and method for controlling cpu | |
| JPS62168497A (en) | Data base processing system for exchange-processing program | |
| JPH0887481A (en) | Multiprocessor board startup method | |
| JPS6048770B2 (en) | Information processing method | |
| JPH0740224B2 (en) | Micro program control system | |
| JPH04195316A (en) | power saving circuit | |
| JPS60193046A (en) | Instruction exception detection method | |
| JPS60140440A (en) | Central processing unit | |
| JPS61184644A (en) | Virtual computer system control method | |
| Neumann | Disk-based program swapping in 8080-based microcomputers | |
| JPH10240569A (en) | Computer tracing equipment | |
| JPH07175661A (en) | User program load system | |
| JPS6212555B2 (en) | ||
| JP2000010899A (en) | Input/output processing system and its peripheral device control method, and recording medium where its control program is recorded | |
| JPH0481934A (en) | Information processor |