JPH0449427A - Periodic start control method - Google Patents
Periodic start control methodInfo
- Publication number
- JPH0449427A JPH0449427A JP16031690A JP16031690A JPH0449427A JP H0449427 A JPH0449427 A JP H0449427A JP 16031690 A JP16031690 A JP 16031690A JP 16031690 A JP16031690 A JP 16031690A JP H0449427 A JPH0449427 A JP H0449427A
- Authority
- JP
- Japan
- Prior art keywords
- period
- processing
- program
- activation
- 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.)
- Pending
Links
Abstract
Description
【発明の詳細な説明】
〔概要〕
所定の処理を周期的に実行する情報処理システムにおけ
る周期起動制御方式に関し、
処理装置が特定の処理により占有され、他の処理が実行
不可能となることを極力防止することを目的とし、
周期起動処理部が処理を完了するに要する時間を計測す
る計測手段と、計測手段の計測値と、予め定められてい
る基準値とを比較する比較手段と、比較手段が計測値を
基準値より長いと判定した場合に、周期起動処理部の起
動周期を予め定められた周期より延長させる周期変更手
段とを設ける様に構成し、また周期変更手段は、比較手
段が計測値を基準値より長いと判定した場合に、周期起
動処理部の起動周期を、予め定められた周期の整数倍に
延長させる様に構成する。[Detailed Description of the Invention] [Summary] Regarding a periodic startup control method in an information processing system that periodically executes a predetermined process, it is possible to prevent a processing unit from being occupied by a specific process and making it impossible to execute other processes. The purpose is to prevent this as much as possible, and includes a measuring means for measuring the time required for the periodic activation processing unit to complete the process, a comparing means for comparing the measured value of the measuring means with a predetermined reference value, and a comparing means. A period changing means for extending the activation period of the periodic activation processing section beyond a predetermined period when the means determines that the measured value is longer than the reference value, and the period changing means is configured to include a comparing means. When the measured value is determined to be longer than the reference value, the activation period of the periodic activation processing section is configured to be extended to an integral multiple of a predetermined period.
本発明は、所定の処理を周期的に実行する情報処理シス
テムにおける周期起動制御方式に関する。The present invention relates to a periodic activation control method in an information processing system that periodically executes predetermined processing.
例えば電子交換機等の如く、通信処理、障害処理等の複
数の実時間処理を実行する情報処理システムにおいては
、各種実時間処理をそれぞれ所定の周期で起動し、実行
している。For example, in an information processing system such as an electronic switching system that executes a plurality of real-time processes such as communication processing and failure processing, various real-time processes are activated and executed at predetermined intervals.
〔従来の技術]
第4図はこの種の情報処理システムにおける従来ある周
期起動制御方式の一例を示す図であり、第5図は第4図
における処理過程の一例を示す図である。[Prior Art] FIG. 4 is a diagram showing an example of a conventional periodic activation control method in this type of information processing system, and FIG. 5 is a diagram showing an example of the processing process in FIG. 4.
第4図および第5図において、当該情報処理システムは
、図示されぬ処理装置が、図示されぬ記憶装置に格納さ
れている図示されぬ所定のプログラムを実行することに
より、所要の処理を実行するものとする。4 and 5, the information processing system executes required processing by a processing device (not shown) executing a predetermined program (not shown) stored in a storage device (not shown). shall be taken as a thing.
前記各プログラムには、それぞれプログラム番号j(第
4図においてはj=0乃至31)が付与されている。以
後各プログラムをプログラム番号jによりプログラム(
j=0乃至31)と称する。Each of the programs is assigned a program number j (j=0 to 31 in FIG. 4). From now on, program each program using program number j (
j=0 to 31).
アクト表1には、各プログラム(j)に対応してアクト
情報A、が登録されており、前記処理装置が実行対象と
するプログラム(例えばj=31)に対応するアクト情
報A 31は論理パ1°゛に設定され、処理装置が実行
対象としないプログラム(例えばj−0)に対応するア
クト情報A。は論理“0”に設定される。In the act table 1, act information A is registered corresponding to each program (j), and act information A 31 corresponding to the program to be executed by the processing device (for example, j=31) is a logical pattern. Act information A corresponding to a program (for example, j-0) that is set to 1° and is not to be executed by the processing device. is set to logic "0".
またエントリ登録表2には、各プログラム(j)に対応
してエントリej、即ち各プログラムが格納されている
前記記憶装置上の先頭番地が登録されている。Further, in the entry registration table 2, an entry ej, that is, a starting address on the storage device where each program is stored is registered corresponding to each program (j).
更に周期登録表3には、各プログラム(j)の起動周期
を示す起動情報S ijが、周期起動制御部4に設けら
れている起動タイマカウンタ41の計数値iとプログラ
ム番号jとに対応して登録されている。Furthermore, in the periodic registration table 3, activation information Sij indicating the activation cycle of each program (j) corresponds to the count value i of the activation timer counter 41 provided in the periodic activation control unit 4 and the program number j. is registered.
起動タイマカウンタ41は、一定周期(例えば8ミリ秒
周期)のクロック信号CKを計数し、計数値iをO乃至
11の範囲内で繰返し歩進させる。The activation timer counter 41 counts the clock signal CK with a constant period (for example, 8 millisecond period), and repeatedly increments the count value i within the range of 0 to 11.
例えば前記処理装置に、プログラム(j−31)を16
ミリ秒周期で実行させる場合には、周期登録表3上の領
域(i、j)=(0,31)、(2,31)、(4,3
1)、・・・ (10,31)に登録される起動情報S
os+ −、5211,5az0、・・・、Sl。31
を論理“l゛に設定し、領域(i、j)−(1,31)
、(3,31)、・・・ (11,31)に登録される
3131.3331 、・・・、S、13を論理“O゛
に設定する。For example, 16 programs (j-31) are installed in the processing device.
When executing with a millisecond cycle, the area (i, j) on the periodic registration table 3 = (0, 31), (2, 31), (4, 3
1), ... Startup information S registered in (10, 31)
os+ −, 5211,5az0,..., Sl. 31
is set to logic "l", and the area (i, j) - (1, 31)
, (3,31),... 3131.3331,..., S, 13 registered in (11,31) is set to logic "O".
周期起動制御部4は、アクト表1と、クロック信号CK
を計数する起動タイマカウンタ41の計数値iに従って
周期登録表3とを参照し、例えば起動タイマカウンタ4
1の計数値i−0の場合には、アクト表1にアクト情報
A、−”1”が登録されており、且つ周期登録表3の領
域(0、j)に起動情報5o7−”1″が登録されてい
るプログラム(例えばj=31)を検出すると、エント
リ登録表2からプログラム(j=31)のエントリe3
1を抽出し、前記処理装置にエントリe3+を通知して
該当プログラムの実行を開始させる。The periodic activation control unit 4 uses the act table 1 and the clock signal CK.
For example, by referring to the cycle registration table 3 according to the count value i of the startup timer counter 41 that counts
In the case of count value i-0 of 1, act information A, -"1" is registered in act table 1, and activation information 5o7-"1" is registered in area (0, j) of periodic registration table 3. When detecting a program (for example, j=31) in which is registered, entry e3 of the program (j=31)
1 and notifies the processing device of the entry e3+ to start execution of the corresponding program.
前記処理装置は、前記記憶装置のエントリe31から該
当プログラム(j=31)を順次抽出して実行すること
より、所要の処理を実行する。The processing device executes the required processing by sequentially extracting and executing the corresponding program (j=31) from the entry e31 of the storage device.
更に16ミリ秒経過し、起動タイマカウンタ41の計数
値i=2に歩進すると、周期起動制御部4は周期登録表
3から起動情報5Z31−“1”を検出することにより
、再びエントリe31を前記処理装置に通知し、実行さ
せる。When another 16 milliseconds have elapsed and the count value i of the activation timer counter 41 reaches 2, the periodic activation control unit 4 detects activation information 5Z31-“1” from the periodic registration table 3 and writes the entry e31 again. The processing device is notified and executed.
ここで、前記処理装置がプログラム(j−31)を実行
するに要する時間(以後走行時間Tと称する)が、第5
図に例示される如く起動周期(前例では16ミリ秒)に
充分近いと、処理装置の総処理時間がプログラム(j=
31)の実行に殆ど占有されることとなり、他の処理を
実行することが不可能となる。Here, the time required for the processing device to execute the program (j-31) (hereinafter referred to as running time T) is the fifth
As exemplified in the figure, if the activation period is sufficiently close to the startup period (16 milliseconds in the example), the total processing time of the processing device will be reduced to the program (j =
31), and it becomes impossible to execute other processes.
以上の説明から明らかな如く、従来ある周期起動制御方
式においては、周期起動制御部4がアクト表1および周
期登録表3における登録内容に基づき、処理装置に実行
させるプログラムを無条件に指定していた為、走行時間
Tの長い特定の処理が処理装置を占有し、他の処理が実
行不可能となる問題があった。As is clear from the above explanation, in the conventional periodic activation control method, the periodic activation control unit 4 unconditionally specifies the program to be executed by the processing device based on the registered contents in the act table 1 and the periodic registration table 3. Therefore, there is a problem in that a specific process with a long running time T occupies the processing device, making it impossible to execute other processes.
本発明は、処理装置が特定の処理により占有され、他の
処理が実行不可能となることを極力防止することを目的
とする。An object of the present invention is to prevent as much as possible a processing device from being occupied by a specific process and becoming unable to execute other processes.
第1図は本発明の原理を示す図である。 FIG. 1 is a diagram showing the principle of the present invention.
第1図において、100は情報処理システムが具備する
周期起動処理部である。In FIG. 1, 100 is a periodic activation processing unit included in the information processing system.
200は、本発明により情報処理システムに設けられた
た計測手段である。200 is a measuring means provided in the information processing system according to the present invention.
300は、本発明により情報処理システムに設けられた
た比較手段である。300 is a comparison means provided in the information processing system according to the present invention.
400は、本発明により情報処理システムに設けられた
だ周期変更手段である。Reference numeral 400 denotes a period changing means provided in the information processing system according to the present invention.
周期起動処理部100は、予め定められた周期で起動さ
れ、所定の処理を実行する。The periodic activation processing unit 100 is activated at a predetermined period and executes a predetermined process.
計測手段200は、周期起動処理部100が前記処理を
完了するに要する時間を計測する。The measuring means 200 measures the time required for the periodic activation processing section 100 to complete the processing.
比較手段300は、計測手段200の計測値と、予め定
められている基準値T0とを比較する。The comparing means 300 compares the measured value of the measuring means 200 and a predetermined reference value T0.
周期変更手段400は、比較手段300が計測値を基準
値T0より長いと判定した場合に、周期起動処理部10
0の起動周期を予め定められた周期より延長させる。The cycle change unit 400 changes the cycle activation processing unit 10 when the comparison unit 300 determines that the measured value is longer than the reference value T0.
To extend the activation cycle of 0 from a predetermined cycle.
なお周期変更手段400による起動周期の延長方法とし
ては、比較手段300が計測値を基準値T0より長いと
判定した場合に、周期起動処理部100の起動周期を、
予め定められた周期の整数倍に延長させることが考慮さ
れる。Note that, as a method for extending the activation period by the period changing means 400, when the comparison means 300 determines that the measured value is longer than the reference value T0, the activation period of the periodic activation processing section 100 is changed to
It is considered to extend the period to an integral multiple of a predetermined period.
従って、長時間を要する処理の起動周期は延長されるこ
ととなり、処理装置が特定の処理により占有され、他の
処理が実行不可能となる恐れは無くなる。Therefore, the startup cycle of processes that require a long time is extended, and there is no possibility that the processing device will be occupied by a specific process and other processes will become impossible to execute.
以下、本発明の一実施例を図面により説明する。 An embodiment of the present invention will be described below with reference to the drawings.
第2図は本発明の一実施例による周期起動制御方式を示
す図であり、第3図は第2図における処理過程の一例を
示す図である。なお、企図を通して同一符号は同一対象
物を示す。また処理装置、処理装置が実行するプログラ
ム、並びにプログラムを格納する記憶装置は、第2図に
おいても図示されていない。FIG. 2 is a diagram showing a periodic activation control method according to an embodiment of the present invention, and FIG. 3 is a diagram showing an example of the processing process in FIG. 2. Note that the same reference numerals indicate the same objects throughout the plan. Furthermore, the processing device, the program executed by the processing device, and the storage device that stores the program are not shown in FIG. 2 either.
第2図においては、第1図における周期起動処理部10
0としてアクト表1、エントリ登録表2、通常周期登録
表3.および周期起動制御部4.内の起動タイマカウン
タ41が示され、また第1図における計測手段200と
して走行時間カウンタ7が設けられ、また第1図におけ
る比較手段300として基準値レジスタ6および超過判
定部8が設けられ、また第1図における周期変更手段4
00として延長周期登録表3b、周期起動制御部48内
の周期延長制御部42および周期延長設定表5が設けら
れている。In FIG. 2, the periodic activation processing unit 10 in FIG.
0 as Act table 1, Entry registration table 2, Normal cycle registration table 3. and periodic activation control section 4. A running time counter 7 is provided as the measuring means 200 in FIG. 1, a reference value register 6 and an excess determination section 8 are provided as the comparing means 300 in FIG. Period changing means 4 in Fig. 1
00, an extension period registration table 3b, a period extension control section 42 in the period start control section 48, and a period extension setting table 5 are provided.
なお第2図においては、アクト表1、エントリ登録表2
、通常周期登録表31、延長周期登録表35、周期起動
制御部4□および周期延長設定表5を含む部分を周期可
変制御部10と称し、また基準値レジスタ6、走行時間
カウンタ7および超過判定部8を含む部分を走行状態監
視部20と称する。In addition, in Figure 2, act table 1 and entry registration table 2 are shown.
, the part including the normal cycle registration table 31, the extended cycle registration table 35, the cycle start control unit 4□, and the cycle extension setting table 5 is referred to as the cycle variable control unit 10, and also includes the reference value register 6, running time counter 7, and excess judgment. A portion including the section 8 will be referred to as a driving state monitoring section 20.
第2図および第3図においても、前記処理装置にプログ
ラム(j=31)を16ミリ秒周朋で実行させる為に、
プログラム(j=31)に対応するアクト情報A3.−
’“1°°をアクト表1に登録し、またプログラム(j
=31)のエントリe31をエン) IJ登録表2に登
録し、また通常周期登録表3、上に起動情報S。311
1s 5231a、S J311・、S1゜sea =
” 1″と、3131m、”’ff31m、・・・、
8.311=“0”とを登録する。In FIGS. 2 and 3, in order to cause the processing device to execute the program (j=31) in 16 milliseconds,
Act information A3 corresponding to the program (j=31). −
'“1°° is registered in act table 1, and the program (j
Entry e31 of =31) is registered in IJ registration table 2, and startup information S is added to the top of normal cycle registration table 3. 311
1s 5231a, S J311・, S1゜sea =
"1", 3131m, "'ff31m,..."
8. Register 311="0".
更に、16ミリ秒周期で起動されるプログラム(j=3
1)の走行時間Tが、予め定められた基準値T0より長
い場合には、プログラム(j−31)の起動周期を二倍
に延長する為に、延長周期登録表3.上に、起動情報S
osIb−、S a3+bおよび図示されぬ5R31
b=“1°“と、その他の起動情報S i3+b=°“
0“とを登録する。Furthermore, a program (j=3
If the running time T of 1) is longer than the predetermined reference value T0, in order to double the startup cycle of the program (j-31), the extension cycle registration table 3. Above, startup information S
osIb-, S a3+b and 5R31 not shown
b=“1°” and other startup information S i3+b=°“
0” is registered.
なお延長周期登録表3b上で論理゛°1°゛が登録され
ている起動情報5llllb、3431bおよび5af
f、は、通常周期登録表3.上で論理” 1 ”が登録
されている起動情報S03.a、S!31as S43
+ms・・・Sl031mから一つ置きに選んだものに
一致する。Note that the activation information 5llllb, 3431b, and 5af for which the logic "°1°" is registered on the extended cycle registration table 3b
f, is the normal periodic registration table 3. Activation information S03. in which logic "1" is registered above. a.S! 31as S43
+ms: Matches every other selection from Sl031m.
また周期延長設定表5上の、各プログラム(j)に対応
する延長情報Ljは、初期状態においては何れも論理“
0°゛に設定されている。In addition, in the initial state, the extension information Lj corresponding to each program (j) on the cycle extension setting table 5 is logic "
It is set to 0°.
周期起動制御部4.は、前述と同様に、アクト表1と、
周期延長設定表5と、クロック信号CKを計数する起動
タイマカウンタ41の計数値jに従って通常周期登録表
31および延長周期登録表3、とを参照し、アクト表I
にアクト情報A、 −“1゛°が登録されており、且つ
周期延長設定表5に延長情報し、−“°0゛が登録され
ているプログラム(例えばj−31)に対しては、例え
ば起動タイマカウンタ41の計数値i=0において、通
常周期登録表31から抽出した起動情報SO3Im(−
“1°゛)と、延長周期登録表3.から抽出した起動情
報S。31b(−“1”)との論理和が論理“′1”と
なる、即ち起動情報8031mが論理“1°“であるこ
とを検出すると、エントリ登録表2からプログラム(j
=31)のエントリeIIを抽出し、前記処理装置にエ
ントリf、l+を通知して該当プログラムの実行を開始
させると共に、基準値レジスタ6にプログラム(j=3
1)に対応して定められている基準値T0を設定する。Periodic activation control section 4. As before, act table 1 and
According to the cycle extension setting table 5 and the count value j of the start timer counter 41 that counts the clock signal CK, the normal cycle registration table 31 and the extension cycle registration table 3 are referred to, and the act table I is
For a program (for example, j-31) in which act information A, -“1゛° is registered, and extension information is registered in the period extension setting table 5, and -“°0゛ is registered, When the count value i of the startup timer counter 41 is 0, the startup information SO3Im(-
The logical sum of “1°゛) and the activation information S.31b (-“1”) extracted from the extended cycle registration table 3. becomes logical “1”, that is, the activation information 8031m becomes logical “1°”. If it is detected that the program (j
= 31), notifies the processing device of the entries f and l+ to start execution of the corresponding program, and writes the program (j = 3) in the reference value register 6.
A reference value T0 defined in accordance with 1) is set.
前記処理装置は、前記記憶装置のエントリe31から該
当プログラム(j=31)を順次抽出して実行すること
より、所要の処理を実行する。The processing device executes the required processing by sequentially extracting and executing the corresponding program (j=31) from the entry e31 of the storage device.
また周期起動制御部4.は、前記処理装置によ1す
るプログラム(j=31)の実行状況を監視しており、
前記処理装置がプログラム(j=31)を実行開始する
と走行時間カウンタ7に走行時間Tの計測を開始させ、
実行終了すると計測を停止させることにより、プログラ
ム(j=31)を実行する前記処理装置の走行時間Tを
計測させる。Also, the periodic activation control section 4. monitors the execution status of a program (j=31) executed by the processing device,
When the processing device starts executing the program (j=31), it causes the running time counter 7 to start measuring the running time T,
When the execution is completed, measurement is stopped to measure the running time T of the processing device that executes the program (j=31).
超過判定部8は、走行時間カウンタ7の計測値もと、基
準値レジスタ6番こ設定されている基準値T0とを比較
し、比較結果を周期起動制御部41に通知する。The excess determination section 8 compares the measured value of the running time counter 7 with a reference value T0 set in the reference value register No. 6, and notifies the periodic activation control section 41 of the comparison result.
例えばプログラム(j−31)を実行する前記処理装置
の走行時間Tが、第3図におけるT1の如き場合には、
走行時間カウンタ7の計測値tは基準(i T oを越
えることは無い。For example, if the running time T of the processing device that executes the program (j-31) is T1 in FIG.
The measured value t of the running time counter 7 never exceeds the standard (iTo).
かかる場合には、周期起動制御部43内の周期延長制御
部42は、周期延長設定表5のプログラム(j=31)
に対応する延長情報L31を論理“o”の侭とする。In such a case, the cycle extension control unit 42 in the cycle activation control unit 43 executes the program (j=31) in the cycle extension setting table 5.
Let the extension information L31 corresponding to the logical "o" side.
従って周期起動制御部48は、更に16ミリ秒経過し、
起動タイマカウンタ41の計数値i=2に歩進した段階
で、前述と同様に、通常周期登録表3.から抽出した起
動情報S t3+a (=“1″)と、延長周期登録表
3.から抽出した起動情報8231b (−“0°゛)
との論理和が論理“1”となる、即ち起動情報SB+a
が論理“′I”であることを検出すると、再びエントリ
eatを前記処理装置に通知し、実行させる。Therefore, the periodic activation control unit 48 waits for another 16 milliseconds to elapse.
At the stage when the count value i of the startup timer counter 41 reaches i=2, the normal cycle registration table 3. The activation information S t3+a (="1") extracted from the extended cycle registration table 3. Startup information 8231b extracted from (-“0°゛)
The logical sum with SB+a becomes logical "1", that is, the startup information SB+a
When it is detected that the entry eat is the logic "'I", the entry eat is notified to the processing device again and the processing device is executed.
一方、プログラム(j=31)を実行する前記処理装置
の走行時間Tが、第3図におけるT2の如き場合には、
走行時間カウンタ7の計測値tは基準値T0を越えるこ
ととなる。On the other hand, if the running time T of the processing device that executes the program (j=31) is T2 in FIG.
The measured value t of the running time counter 7 exceeds the reference value T0.
かかる場合には、周期起動制御部4.内の周期延長制御
部42は、周期延長設定表5のプログラム(j=31)
に対応する延長情報L31を論理″″1”に設定変更す
る。In such a case, the periodic activation control section 4. The cycle extension control unit 42 in the cycle extension setting table 5 program (j=31)
The setting of extension information L31 corresponding to is changed to logic ""1".
以後周期起動制御部48は、更に16ミリ秒経過し、計
数値i=2に歩進した段階で、アクト表1、通常周期登
録表31、延長周期登録表3.および周期延長設定表5
を参照し、アクト表1にアクト情報AJ=“1′°が登
録されており、且つ周期延長設定表5に延長情報し、=
“1゛°が登録されているプログラム(例えばj=31
)に対しては、通常周期登録表3.から抽出した起動情
報SzsIm (−“1”)と、延長周期登録表3.か
ら抽出した起動情報Szs+b (−”O” )との論
理積が論理“1″とならない、即ち起動情報3231b
が論理“1”ではないことを検出すると、前記処理装置
にエントリe31を通知せず、更に16ミリ秒経過した
後、即ち前回処理装置にプログラム(j−31)のエン
トリeil+を通知した場合から32ミリ秒間経過し、
計数値i=4に達した段階で、再びアクト表1、通常周
期登録表38、延長周期登録表3.および周期延長設定
表5を参照し、前述と同様の過程で、通常周期登録表3
.から抽出した起動情報S a3I* (=“1”)と
、延長周期登録表3.から抽出した起動情報S a、+
b (=“1゛°)との論理積が論理“1°゛となる、
即ち起動情報5431、が論理“1°°であることを検
出すると、エントリ登録表2からプログラム番号j−3
1に対応して登録されているエントリe31を抽出し、
前記処理装置にエントリe31を通知して該当プログラ
ムの実行を開始させると共に、基準値レジスタ6にプロ
グラム(j=31)に対応して定められている基準値T
0を設定し、更に走行時間カウンタ7を初期設定して時
間の計測を開始させる。Thereafter, after another 16 milliseconds have elapsed and the count value i=2, the periodic activation control unit 48 updates the act table 1, the normal period registration table 31, the extended period registration table 3. and cycle extension setting table 5
, act information AJ="1'° is registered in act table 1, extension information is registered in period extension setting table 5, and =
“A program in which 1゛° is registered (for example, j=31
), the normal periodic registration table 3. The activation information SzsIm (-“1”) extracted from the extended cycle registration table 3. The logical AND with the startup information Szs+b (-”O”) extracted from the startup information 3231b does not become logical “1”, that is, the startup information 3231b
If it detects that is not logic "1", it does not notify the processing device of the entry e31, and after another 16 milliseconds have elapsed, that is, from the time when the previous processing device was notified of the entry eil+ of the program (j-31). 32 milliseconds have passed,
When the count value i=4 is reached, act table 1, normal cycle registration table 38, extended cycle registration table 3. and cycle extension setting table 5, and in the same process as above, normal cycle registration table 3.
.. The activation information S a3I* (="1") extracted from the extended cycle registration table 3. Startup information extracted from S a,+
The logical product with b (= “1゛°) becomes logical “1°”,
That is, when it is detected that the startup information 5431 is logical "1°°," the program number j-3 is entered from the entry registration table 2.
Extract the entry e31 registered corresponding to 1,
The entry e31 is notified to the processing device to start execution of the corresponding program, and the reference value T defined corresponding to the program (j=31) is stored in the reference value register 6.
0, and further initializes the running time counter 7 to start measuring time.
以上の説明から明らかな如く、本実施例によれば、周期
起動制御部48は図示されぬ処理装置にプログラム(j
=31)を実行させた場合に、走行時間カウンタ7によ
り前記処理装置の走行時間Tを計測させ、超過判定部8
により計測値tを基準値T0と比較させ、計測値tが基
準値T0を越えた場合には、起動周期を16ミリ秒から
32ミリ秒に二倍に延長させる為、板金プログラム(j
=31)を実行する前記処理装置の走行時間T2が基準
値T0以上に長くとも、32ミリ秒間に対する占有率は
半減する為、前記処理装置が特定処理の実行により占有
され、他の処理を実行不可能となる恐れは無くなる。As is clear from the above description, according to this embodiment, the periodic activation control unit 48 sends the program (j
=31), the running time counter 7 measures the running time T of the processing device, and the excess determination unit 8
The measured value t is compared with the reference value T0, and if the measured value t exceeds the reference value T0, the sheet metal program (
=31) Even if the running time T2 of the processing device that executes the process is longer than the reference value T0, the occupancy rate for 32 milliseconds is halved, so the processing device is occupied by executing the specific process and executes other processes. The fear of something impossible disappears.
なお、第2図および第3図はあく迄本発明の一実施例に
過ぎず、例えばプログラム(j=31)の起動周期は通
常16ミリ秒に限定されることは無く、他に幾多の変形
が考慮されるが、何れの場合にも本発明の効果は変わら
ない。またプログラム(j=31)の延長情報り、1=
論理“1 ”に設定された場合の起動周期は、通常の起
動周期の二倍に延長するものに限定されることは無く、
任意の整数倍に延長することが考慮されるが、何れの場
合にも本発明の効果は変わらない。また図示されぬ処理
装置が実行するプログラムはプログラム番号j−31に
限定されることは無く、他に幾多の変形が考慮されるが
、何れの場合にも本発明の効果は変わらない。更に本発
明の対象となる周期起動処理部100、計測手段200
、比較手段300および周期変更手段400は図示され
るものに限定されぬことは言う迄も無い。Note that FIGS. 2 and 3 are only one embodiment of the present invention, and for example, the startup cycle of the program (j=31) is not normally limited to 16 milliseconds, and there are many other variations. However, the effects of the present invention remain the same in either case. Also, the extension information of the program (j=31) is 1=
The activation cycle when set to logic “1” is not limited to extending twice the normal activation cycle;
Although extension to an arbitrary integer multiple is considered, the effect of the present invention remains the same in either case. Further, the program executed by the processing device (not shown) is not limited to program number j-31, and many other modifications may be considered, but the effects of the present invention remain the same in any case. Furthermore, the periodic activation processing section 100 and the measuring means 200 which are the object of the present invention
, the comparing means 300 and the period changing means 400 are not limited to those illustrated.
以上、本発明によれば、前記情報処理システムにおいて
、長時間を要する処理の起動周期は延長されることとな
り、処理装置が特定の処理により占有され、他の処理が
実行不可能となる恐れは無くなる。As described above, according to the present invention, in the information processing system, the startup cycle of processes that require a long time is extended, and there is no possibility that the processing device will be occupied by a specific process and other processes will not be able to be executed. It disappears.
第1図は本発明の原理を示す図、第2図は本発明の一実
施例による周期起動制御方式を示す図、第3図は第2図
における処理過程の一例を示す図、第4図は従来ある周
期起動制御方式の一例を示す図、第5図は第4図におけ
る処理過程の一例を示す図である。
図において、1はアクト表、2はエントリ登録表、3は
周期登録表、38は通常周期登録表、3、は延長周期登
録表、4および4.は周期起動制御部、5は周期延長設
定表、6は基準値レジスタ、7は走行時間カウンタ、8
は超過判定部、lOは周期可変制御部、20は走行状態
監視部、41は起動タイマカウンタ、42は周期延長制
御部、100は周期起動処理部、200は計測手段、3
00は比較手段、400は周期変更手段、を示す。Fig. 1 is a diagram showing the principle of the present invention, Fig. 2 is a diagram showing a periodic activation control method according to an embodiment of the present invention, Fig. 3 is a diagram showing an example of the processing process in Fig. 2, and Fig. 4 is a diagram showing an example of the processing process in Fig. 2. 5 is a diagram showing an example of a conventional periodic activation control method, and FIG. 5 is a diagram showing an example of the processing process in FIG. 4. In the figure, 1 is an act table, 2 is an entry registration table, 3 is a periodic registration table, 38 is a regular periodic registration table, 3 is an extended periodic registration table, 4 and 4. is a cycle start control unit, 5 is a cycle extension setting table, 6 is a reference value register, 7 is a running time counter, 8
3 is an excess determination unit, IO is a cycle variable control unit, 20 is a running state monitoring unit, 41 is a start timer counter, 42 is a cycle extension control unit, 100 is a cycle start processing unit, 200 is a measuring means, 3
00 indicates a comparison means, and 400 indicates a cycle change means.
Claims (2)
行する周期起動処理部(100)を具備する情報処理シ
ステムにおいて、 前記周期起動処理部(100)が前記処理を完了するに
要する時間を計測する計測手段(200)と、 前記計測手段(200)の計測値と、予め定められてい
る基準値(T_0)とを比較する比較手段(300)と
、 前記比較手段(300)が前記計測値を前記基準値(T
_0)より長いと判定した場合に、前記周期起動処理部
(100)の起動周期を前記予め定められた周期より延
長させる周期変更手段(400)とを設けることを特徴
とする周期起動制御方式。(1) In an information processing system comprising a periodic activation processing section (100) that is activated at a predetermined period and executes a predetermined process, the time required for the periodic activation processing section (100) to complete the processing. a measuring means (200) for measuring the measured value of the measuring means (200); a comparing means (300) for comparing the measured value of the measuring means (200) with a predetermined reference value (T_0); The measured value is set to the reference value (T
_0) A periodic activation control method comprising: a period changing means (400) for extending the activation period of the periodic activation processing unit (100) beyond the predetermined period when it is determined that the activation period is longer than the predetermined period.
300)が前記計測値を前記基準値(T_0)より長い
と判定した場合に、前記周期起動処理部(100)の起
動周期を、前記予め定められた周期の整数倍に延長させ
ることを特徴とする請求項1記載の周期起動制御方式。(2) The period changing means (400) includes the comparing means (
300) determines that the measured value is longer than the reference value (T_0), the activation period of the periodic activation processing unit (100) is extended to an integral multiple of the predetermined period. The periodic activation control method according to claim 1.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16031690A JPH0449427A (en) | 1990-06-19 | 1990-06-19 | Periodic start control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16031690A JPH0449427A (en) | 1990-06-19 | 1990-06-19 | Periodic start control method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0449427A true JPH0449427A (en) | 1992-02-18 |
Family
ID=15712320
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16031690A Pending JPH0449427A (en) | 1990-06-19 | 1990-06-19 | Periodic start control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0449427A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0724084A (en) * | 1993-07-08 | 1995-01-27 | Bridgestone Sports Co Ltd | Three-piece solid golf ball |
| JP2007206008A (en) * | 2006-02-06 | 2007-08-16 | Yokogawa Electric Corp | Period control device and period control method |
| WO2011114495A1 (en) * | 2010-03-18 | 2011-09-22 | 富士通株式会社 | Multi-core processor system, thread switching control method, and thread switching control program |
-
1990
- 1990-06-19 JP JP16031690A patent/JPH0449427A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0724084A (en) * | 1993-07-08 | 1995-01-27 | Bridgestone Sports Co Ltd | Three-piece solid golf ball |
| JP2007206008A (en) * | 2006-02-06 | 2007-08-16 | Yokogawa Electric Corp | Period control device and period control method |
| WO2011114495A1 (en) * | 2010-03-18 | 2011-09-22 | 富士通株式会社 | Multi-core processor system, thread switching control method, and thread switching control program |
| JP5376042B2 (en) * | 2010-03-18 | 2013-12-25 | 富士通株式会社 | Multi-core processor system, thread switching control method, and thread switching control program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5828821A (en) | Checkpoint restart method and apparatus utilizing multiple log memories | |
| US5860002A (en) | System for assigning boot strap processor in symmetric multiprocessor computer with watchdog reassignment | |
| US20020116670A1 (en) | Failure supervising method and apparatus | |
| US10379931B2 (en) | Computer system | |
| JPH0449427A (en) | Periodic start control method | |
| US6321289B1 (en) | Apparatus for automatically notifying operating system level applications of the occurrence of system management events | |
| JP2001318807A (en) | Method and device for controlling task switching | |
| JP5517301B2 (en) | Data processing system | |
| JPH0259955A (en) | Operation monitoring method in multiprocessor system | |
| CN113886039B (en) | Scheduling table synchronization method and device, electronic equipment and storage medium | |
| JPH064354A (en) | System for mutually monitoring microprocessors | |
| JPS60258656A (en) | Microprocessor reset circuit | |
| JPH05257748A (en) | Microprocessor device | |
| JP2005031724A (en) | Anomaly detection device | |
| JPH11134209A (en) | Fault tolerant controler | |
| JP2000122900A (en) | Runaway monitoring method of microcontroller | |
| JPH0354644A (en) | Cpu abnormality processing method | |
| JPH02101540A (en) | System for detecting runaway of cpu | |
| JPH04259045A (en) | Watchdog timer monitoring method | |
| JPS62175840A (en) | Multi-level watchdog timer system | |
| WO2016098142A1 (en) | Industrial controller and industrial controller system | |
| JPH0635756A (en) | Operating state monitor system for program | |
| JPS62143141A (en) | Detecting system for down of processor | |
| JPH0279135A (en) | System for monitoring running of program | |
| JPS62293436A (en) | Task managing device |