JPH0789322B2 - Program start method in computer system - Google Patents
Program start method in computer systemInfo
- Publication number
- JPH0789322B2 JPH0789322B2 JP59262873A JP26287384A JPH0789322B2 JP H0789322 B2 JPH0789322 B2 JP H0789322B2 JP 59262873 A JP59262873 A JP 59262873A JP 26287384 A JP26287384 A JP 26287384A JP H0789322 B2 JPH0789322 B2 JP H0789322B2
- Authority
- JP
- Japan
- Prior art keywords
- program
- computer system
- load
- execution management
- cycle
- 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.)
- Expired - Lifetime
Links
- 238000000034 method Methods 0.000 title claims description 13
- 230000000737 periodic effect Effects 0.000 claims description 7
- 230000015654 memory Effects 0.000 description 14
- 125000004122 cyclic group Chemical group 0.000 description 9
- 230000004913 activation Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- GVGLGOZIDCSQPN-PVHGPHFFSA-N Heroin Chemical compound O([C@H]1[C@H](C=C[C@H]23)OC(C)=O)C4=C5[C@@]12CCN(C)[C@@H]3CC5=CC=C4OC(C)=O GVGLGOZIDCSQPN-PVHGPHFFSA-N 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Description
【発明の詳細な説明】 (産業上の利用分野) 本発明は,コンピュータシステムにおいて,中央制御装
置が,周期的に実行するように定められたプログラムを
順次に起動していくプログラム起動方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program start-up method in which a central control unit in a computer system sequentially starts programs that are set to be executed periodically.
(従来の技術) コンピュータシステムでプログラムを周期的に起動する
場合は,第4図に示すように,記憶装置20のプログラム
は実行管理プログラムMと周期起動プラグラムP1〜Pnに
分けられており,中央制御装置10は実行管理プログラム
Mに,クロックパルスにて周期的に割込み,実行管理プ
ログラムMは割込まれた回数をカウントし,適当な周期
を作り出して,今回の周期に起動すべきプログラムを順
次に起動する。(Prior Art) When a program is cyclically started in a computer system, the program in the storage device 20 is divided into an execution management program M and cyclic start programs P 1 to P n as shown in FIG. The central control unit 10 periodically interrupts the execution management program M with a clock pulse, and the execution management program M counts the number of interrupts, creates an appropriate cycle, and starts the program in this cycle. Are started in sequence.
従来,その起動方法は,第5図に示すようなデーターメ
モリを有し,実行管理プログラムMはクロックパルスに
て割込まれる都度に,起動タイマー21を更新し,更新さ
れた値mにより,起動タイムテーブル22のメモリm1〜mn
のどのメモリを今周期に処理するかを決定する。メモリ
m1〜mnのビットb1〜bnは1ビットが1プログラムに相当
し,このビットに“1"が記憶されている場合は,今周期
に該当プログラムが起動されるべきことを示している。
ここでビットb1が“1"の場合は,そのビット位置の相対
値nにより,起動ジャンプテーブル23のメモリn1に記憶
してあるプログラムP1先頭アドレスにより,プログラム
P1を起動する。ビットb1〜bnが全て“1"が記憶されてい
る場合は,今周期に全てのプログラムを起動し,又全て
“0"が記憶されている場合は,今周期は何もプログラム
を起動しないことになる。Conventionally, the activation method has a data memory as shown in FIG. 5, and the execution management program M updates the activation timer 21 each time it is interrupted by a clock pulse, and activates it with the updated value m. Timetable 22 memory m 1 to m n
Determine which memory of this is to be processed in this cycle. memory
Bit b 1 ~b n of m 1 ~m n is equivalent to 1 bit is one program, if the "1" to this bit is stored in the current period corresponding program indicates that it should be started There is.
If the bit b 1 is "1", the relative value n of the bit position causes the program P 1 start address stored in the memory n 1 of the start jump table 23
Start P 1 . If bit b 1 ~b n are all "1" is stored, starts all programs current period, and if all "0" is stored, the current period is started anything Program Will not do.
該プログラムの起動周期は,クロックパルスの割込み周
期と,起動タイムテーブル22の該当するビットに“1"が
記憶されている間隔で定まり,クロックパルスが10ms周
期とすると,メモリm1〜mnのビットb1が全て“1"が記憶
されていればプログラムP1は10ms周期で起動されること
になり,ビットb2がメモリm1〜mnの1メモリ毎に“1"が
記憶されていればプログラムP2は20ms周期に起動され
る。起動タイマー21の値mが起動タイムテーブル22のメ
モリmnの所まで更新したら,起動タイマー21の値を初期
値に戻せば,連続的に周期起動プログラムを起動し続け
ることができる。The start cycle of the program is determined by the interrupt cycle of the clock pulse and the interval in which "1" is stored in the corresponding bit of the start time table 22. If the clock pulse is a 10 ms cycle, the memory m 1 to m n If all "1" s are stored in the bit b 1, the program P 1 is started in a cycle of 10ms, and "1" is stored in each bit b 2 of the memories m 1 to m n. If so, program P 2 is started every 20 ms. When the value m of the startup timer 21 is updated to the memory m n of the startup time table 22, the cyclic startup program can be continuously started by returning the value of the startup timer 21 to the initial value.
従来から種々の起動方法がとられているが,基本的には
以上に記した通りである。Although various startup methods have been used in the past, they are basically as described above.
さて,コンピュータシステムには多数の端末機が接続さ
れ,これら端末機と中央制御装置の間に,ランダムに発
生する制御処理をリアルタイムに処理することが要求さ
れる場合が多い。このコンピュータシステムで最大の問
題となるのは中央制御装置10の処理能力であり,これは
中央制御装置10がプログラムの1命令を演算処理する平
均時間とプログラム量によって基本的には定まるが,第
3図に示すように中央制御装置10の負荷として,周期起
動プログラムを実行している時間を固定分負荷とし,端
末との入出力制御処理を実行している時間を変動分負荷
とすれば,コンピュータシステムの処理能力は変動分負
荷をどれだけ多く処理できるかということで決まる。In many cases, a large number of terminals are connected to a computer system, and it is often required to control randomly generated control processing in real time between these terminals and the central controller. The biggest problem in this computer system is the processing capacity of the central control unit 10. This is basically determined by the average time and the amount of programming for which the central control unit 10 processes one instruction of the program. As shown in FIG. 3, as the load of the central controller 10, if the time during which the cyclic start program is executed is a fixed load and the time during which input / output control processing with the terminal is executed is a variable load, The processing capacity of a computer system is determined by how much variable load can be processed.
(発明が解決しようとする問題点) このため,従来のように周期起動プログラムの起動周期
が固定されてしまうと,固定分負荷の大きさによってコ
ンピュータシステムの変動分負荷である端末処理の能力
は限定されてしまうことになり,逆に変動分負荷の処理
時間を一定以上確保しておかねばならないため,固定分
負荷である周期起動プログラムの時間的な量が限定され
てしまうという欠点があった。(Problems to be solved by the invention) Therefore, if the start cycle of the cyclic start program is fixed as in the conventional case, the terminal processing capability, which is the variable load of the computer system, is increased due to the size of the fixed load. However, there is a drawback in that the processing time of the variable load must be secured for a certain amount or more, and thus the time amount of the periodic start program that is the fixed load is limited. .
(問題点を解決するための手段及び作用) 本発明のプログラム起動方法は、中央制御装置内で実行
管理プログラムがクロックパルスにて周期的に起動さ
れ、この実行管理プログラムにて複数の周期プログラム
が起動されるコンピュータシステムにおいて、前記実行
管理プログラムが前記中央制御装置にかかる負荷の変動
に合わせて前記周期プログラムの起動周期を変動させる
手段を設けたことを特徴とする。(Means and Actions for Solving Problems) In the program starting method of the present invention, the execution management program is cyclically started by clock pulses in the central controller, and a plurality of periodic programs are executed by this execution management program. In the activated computer system, the execution management program is provided with means for varying the activation period of the periodic program in accordance with the variation of the load applied to the central controller.
(実施例) 次に本発明の実施例について図面を参照して説明する。(Example) Next, the Example of this invention is described with reference to drawings.
第2図の負荷率24のメモリの値aは,第4図の中央制御
装置10にかかる負荷率であり,一定時間毎に負荷率算出
専用の周期起動プログラムにより算出されて,その都度
に記憶は更新される。この負荷率とは第3図の固定分負
荷と変動分負荷を加えたものと,無負荷の空の部分との
比率を一定時間毎に計算したものであるが,プログラム
による算出方法は公知のことなので説明は省く。The memory value a of the load factor 24 in FIG. 2 is the load factor applied to the central control unit 10 in FIG. 4, and is calculated by a periodic start program dedicated to the load factor calculation at fixed time intervals and stored each time. Will be updated. This load factor is calculated by adding the fixed load and the variable load shown in FIG. 3 to the unloaded empty portion at regular intervals. Since it is a matter, I will omit the explanation.
さて,第2図では起動タイムテーブル22−1〜22−nが
設けてあり,実行管理プログラムMでは負荷率24の値a
により,今回の周期に処理すべき起動タイムテーブルを
選択する。起動タイムテーブルが決まれば,プログラム
を起動するまでの手順は従来と同様に起動タイマー21の
値mにより起動タイムテーブルのメモリm1〜mnから1メ
モリを読出して,“1"が記憶されているビットb1〜bnの
相対値nにより,起動ジャンプテーブル23の該当プログ
ラム先頭アドレスを読み出して該当する周期起動プログ
ラムを起動する。In FIG. 2, startup timetables 22-1 to 22-n are provided, and in the execution management program M, the value a of the load factor 24 is set.
Selects the startup timetable to be processed in this cycle. Once the start timetable is determined, the procedure until the program is started is the same as in the conventional method, one memory is read from the memories m 1 to m n of the start timetable by the value m of the start timer 21, and "1" is stored. the relative values of n bits b 1 ~b n which are, to start the appropriate cyclic program reads the corresponding program start address of the boot jump table 23.
この制御手順を第1図に示す。クロック割込みが来た時
点で実行管理プログラムMは先頭アドレスから実行され
るが,ここでフロー1により,第2図に示す起動タイマ
ー21の値mが加算される。この値mが起動タイムテーブ
ルの長さをオーバーした時は初期値に設定する。次にフ
ロー2で第2図に示す負荷率24の値aを読出し,この値
aにより起動タイムテーブル22−1〜22−nの中から今
周期に処理する起動タイムテーブルを決定し,その起動
タイムテーブルの先頭アドレスを算出しておく。次にフ
ロー3では起動タイムテーブルの先頭アドレスに,起動
タイマー21の値mを加算して,今周期に処理すべきビッ
トb1〜bnを読出す。次にフロー4で最初に“1"が記憶さ
れているビット位置の相対値nを算出して,相対値nの
値により,起動ジャンプテーブル23の該当するプログラ
ム先頭アドレスを読出す。そして今回処理したビットを
除いて残りのビットをセーブメモリに保存しておく。こ
れは該周期起動プログラムが実行終了後に順次全ビット
を処理するためである。フロー5では,フロー4で読出
された起動プログラム先頭アドレスにより,プログラム
P1〜Pnのどれかにジャンプすることになる。This control procedure is shown in FIG. When the clock interrupt arrives, the execution management program M is executed from the head address. Here, the value m of the start timer 21 shown in FIG. 2 is added according to the flow 1. When this value m exceeds the length of the startup timetable, it is set to the initial value. Next, in a flow 2, the value a of the load factor 24 shown in FIG. 2 is read, and from this value a, the start time table to be processed in this cycle is determined from the start time tables 22-1 to 22-n, and the start thereof is started. Calculate the start address of the timetable. Next to the head address of the start time table in flow 3 adds the value m of the activation timer 21 reads the bit b 1 ~b n to be processed a current cycle. Next, in flow 4, the relative value n of the bit position where "1" is first stored is calculated, and the corresponding program start address of the start jump table 23 is read according to the value of the relative value n. Then, except for the bit processed this time, the remaining bits are saved in the save memory. This is because the cyclic starting program sequentially processes all the bits after the execution is completed. In Flow 5, the program is executed according to the start program start address read in Flow 4.
You will jump to one of P 1 to P n .
起動された周期プログラムでは,フロー6又はフロー8
で該プログラム特有の処理を行ない,それが終了すると
フロー7又はフロー9により実行管理プログラムMのフ
ロー4にジャンプして戻って来る。戻って来たフロー4
では,前記の残りビットを保存したセーブメモリを読出
して,次に起動すべきプログラムを決定するが,全ての
起動が完了した場合は,実行管理プログラムMは今周期
実行完了となり,次のクロックパルス割込みを待つこと
になる。In the started periodic program, flow 6 or flow 8
Then, the processing peculiar to the program is performed, and when the processing is completed, the processing jumps to the flow 4 of the execution management program M by the flow 7 or the flow 9 and returns. Flow 4 came back
Then, the save memory in which the remaining bits are stored is read out and the program to be started next is determined. However, when all the start-ups have been completed, the execution management program M has completed the current cycle execution and the next clock pulse has been completed. Waiting for an interrupt.
ただし,この実行管理プログラム完了から次のクロック
パルス割込みまでの時間は,空時間ではなく,端末機制
御等の処理プログラムが実行されることは言うまでもな
い。However, it goes without saying that the time from the completion of the execution management program to the next clock pulse interrupt is not idle time, and the processing program for terminal control or the like is executed.
このようにすることで,負荷の変動に合わせて,周期起
動プログラムの起動周期を長く(短かくもできる)した
り,停止させてしまったりすることができる。どのプロ
グラムの起動周期をどのように変えるかは該プログラム
のシステム全体から見た優先度に応じて決めれば良いこ
とである。By doing so, the start cycle of the cyclic start program can be lengthened (it can be shortened) or stopped according to the change in load. Which program has a different start cycle may be determined according to the priority of the program from the viewpoint of the entire system.
単に起動を停止してしまうだけの場合は,起動タイムテ
ーブルを複数設置しなくても,ビットb1〜bnに対応す
る,起動停止スマクビットを1メモリ用意する方法もあ
るし,各周期プログラムの頭のルーチンで負荷率のメモ
リを読出して,プログラム毎に固定されたデータと比較
して処理を続行するか否かを決定する等,種々の方法が
あるが,負荷によって処理続行の判定処理を適当するプ
ログラムルーチンに入れることにより本発明は実現でき
る。If you just want to stop the start-up, there is also a method to prepare one start-stop smack bit corresponding to bits b 1 to b n without installing multiple start-up timetables. There are various methods such as reading the memory of the load factor with the routine at the beginning and comparing it with the data fixed for each program to determine whether to continue the process. The present invention can be implemented by putting it in an appropriate program routine.
さらに,本実施例で示した負荷とは別に,端末機からの
処理要求発生個数,又は端末機の処理待合せ中個数等の
中央制御装置10にかかる負荷率とほぼ比例する値を負荷
に換算しても,本発明の目的は達成することができる。In addition to the load shown in the present embodiment, a value that is approximately proportional to the load factor applied to the central control unit 10, such as the number of processing requests generated from the terminal or the number of terminals waiting for processing, is converted into a load. However, the object of the present invention can be achieved.
以上の実施例でも理解できるように,コンピュータシス
テムの中央制御装置10の処理空時間を,優先順位の低い
周期起動プログラムで有効に使い,端末機制御処理等の
変動分負荷が多くなった時間帯には,連動させて,固定
分負荷である周期起動プログラムの優先順位の低いもの
から起動周期を長くしたり,又は停止して端末機制御の
時間を確保することができるので,組合せによっては中
央制御装置10の処理空時間を皆無にすることも可能であ
る。As can be understood from the above embodiment, the processing idle time of the central control unit 10 of the computer system is effectively used by the cyclic start program having a low priority, and the load is increased during the period when the fluctuation load of the terminal control processing or the like increases. Can be linked to increase the start cycle from the one with a lower priority of the cyclic start program that is a fixed load, or can stop it to secure the time for terminal control, so depending on the combination, It is also possible to eliminate the processing idle time of the control device 10.
(発明の効果) 以上説明したように,本発明を実施することにより,コ
ンピュータシステムの中央制御装置の処理空時間を優先
順位の低い周期起動プログラムで有効に使え,端末機制
御等の変動分負荷が多くなるに連動してその処理時間を
確保できるので,中央制御装置の処理能力を飛躍的に向
上させることができるものである。(Effects of the Invention) As described above, by carrying out the present invention, the processing idle time of the central control unit of a computer system can be effectively used by a cyclic start program having a low priority, and a variable load such as terminal control can be utilized. Since the processing time can be secured in tandem with the increase in the number of devices, the processing capacity of the central controller can be dramatically improved.
第1図は本発明の実施例の処理フローを示す図,第2図
は本発明の実施例を説明する図,第3図は本発明を説明
するための図,第4図は本発明の適用されるコンピュー
タシステムのブロック図,第5図は従来の実施例を説明
する図である。 10……中央制御装置,20……記憶装置,M……実行管理プ
ログラム,P1〜Pn……周期起動プログラム,21……起動タ
イマー,22−1〜22−n……起動タイムテーブル,23……
起動ジャンプテーブル,24……負荷率。FIG. 1 is a diagram showing a processing flow of an embodiment of the present invention, FIG. 2 is a diagram illustrating an embodiment of the present invention, FIG. 3 is a diagram for explaining the present invention, and FIG. FIG. 5 is a block diagram of an applied computer system, and FIG. 5 is a diagram for explaining a conventional embodiment. 10 ...... central controller, 20 ...... storage device, M ...... execution management program, P 1 to P n ...... cyclic program, 21 ...... activation timer, 22-1 to 22-n ...... launch timetable, twenty three……
Start jump table, 24 …… Load factor.
Claims (1)
ロックパルスにて周期的に起動され、この実行管理プロ
グラムにて複数の周期プログラムが起動されるコンピュ
ータシステムにおいて、前記実行管理プログラムが前記
中央制御装置にかかる負荷の変動に合わせて前記周期プ
ログラムの起動周期を変動させる手段を設けたことを特
徴とするプログラム起動方法。1. A computer system in which an execution management program is periodically activated by a clock pulse in a central control unit, and a plurality of periodic programs are activated by the execution management program, wherein the execution management program is the central control. A program start-up method comprising means for changing the start-up cycle of the periodic program according to a change in load applied to the apparatus.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59262873A JPH0789322B2 (en) | 1984-12-14 | 1984-12-14 | Program start method in computer system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59262873A JPH0789322B2 (en) | 1984-12-14 | 1984-12-14 | Program start method in computer system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61141041A JPS61141041A (en) | 1986-06-28 |
| JPH0789322B2 true JPH0789322B2 (en) | 1995-09-27 |
Family
ID=17381815
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59262873A Expired - Lifetime JPH0789322B2 (en) | 1984-12-14 | 1984-12-14 | Program start method in computer system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0789322B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0642205B2 (en) * | 1988-02-25 | 1994-06-01 | 株式会社日立製作所 | Processor |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5437443A (en) * | 1977-08-29 | 1979-03-19 | Hitachi Ltd | Computer interrution control system |
-
1984
- 1984-12-14 JP JP59262873A patent/JPH0789322B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61141041A (en) | 1986-06-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6401155B1 (en) | Interrupt/software-controlled thread processing | |
| US5504869A (en) | High speed processing system capable of executing strings of instructions in order without waiting completion of previous memory access instruction | |
| JP3215438B2 (en) | Method for regulating the performance of application programs in digital computers | |
| USRE39252E1 (en) | Instruction dependent clock scheme | |
| JPH0789322B2 (en) | Program start method in computer system | |
| US6360328B1 (en) | Plural sampling frequency signal processing by performing designated routines during sub-multiple time slots of each period | |
| JPS62266625A (en) | Programmable controller | |
| JPS6148743B2 (en) | ||
| JPH0462093B2 (en) | ||
| JP2002278774A (en) | Method and apparatus for generating an instruction word when controlling a functional unit in a processor | |
| JPH06259115A (en) | Programmable controller | |
| JPH1165624A (en) | Programmable controller | |
| JPH04287234A (en) | Process multiplicity control system | |
| JPS6423337A (en) | Data driving type data processor | |
| CA1217566A (en) | Real-time data processing system for processing time period commands | |
| JP3736123B2 (en) | Power control circuit | |
| JPS6010342A (en) | Reload control system of general-purpose register | |
| JPS61264465A (en) | Data transfer control method | |
| EP0266799A2 (en) | Single chip microcomputer having multi-timer function | |
| JPH09179611A (en) | Process control equipment | |
| JPS61170831A (en) | Instruction execution control device of central processor | |
| JPH0635757A (en) | CPU abnormality detection device | |
| JPS6146532A (en) | Microprogram control circuit | |
| JPH03246603A (en) | Rapid counter | |
| JPH1124941A (en) | Instruction execution control method and apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| EXPY | Cancellation because of completion of term |