JPH064175A - Timer managing system - Google Patents

Timer managing system

Info

Publication number
JPH064175A
JPH064175A JP4157185A JP15718592A JPH064175A JP H064175 A JPH064175 A JP H064175A JP 4157185 A JP4157185 A JP 4157185A JP 15718592 A JP15718592 A JP 15718592A JP H064175 A JPH064175 A JP H064175A
Authority
JP
Japan
Prior art keywords
timer
interval value
timer interrupt
interrupt interval
load
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.)
Withdrawn
Application number
JP4157185A
Other languages
Japanese (ja)
Inventor
Akihiro Anezaki
章博 姉崎
Takashi Tsuji
隆史 辻
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 Corp
NEC Solution Innovators Ltd
Original Assignee
NEC Corp
NEC Software Kyushu 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 Corp, NEC Software Kyushu Ltd filed Critical NEC Corp
Priority to JP4157185A priority Critical patent/JPH064175A/en
Publication of JPH064175A publication Critical patent/JPH064175A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To prevent burden on a computer system due to the execution of timer interrupt from being increased in timer management. CONSTITUTION:A burden decision means 7 decides burden information on the computer system. A timer interrupt interval value decision means 3 decides a timer interrupt interval value to reduce the burden on the computer system based on the burden information. The timer interrupt can be applied to a timer 8 at the interval of the timer interrupt interval value.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、タイマ管理システムに
関し、特に、コンピュータシステムにおけるタイマ管理
を行うタイマ管理システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a timer management system, and more particularly to a timer management system for managing a timer in a computer system.

【0002】[0002]

【従来の技術】従来のタイマ管理システムは、例えば、
1秒,30秒,5分などと、タイマの利用者側からタイ
マ値を設定して要求を行うと、100ミリ秒間隔毎にタ
イマ割込みをもらい、タイマ値を100ミリ秒毎に減算
して0秒以下になったときに、タイムアウトになったこ
とを通知する方式であった。
2. Description of the Related Art A conventional timer management system is, for example,
When the user sets a timer value such as 1 second, 30 seconds, and 5 minutes and makes a request, a timer interrupt is received at intervals of 100 milliseconds, and the timer value is subtracted every 100 milliseconds. It is a method of notifying that the time-out has occurred when the time becomes 0 seconds or less.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のタイマ
管理システムは、タイマの割込み間隔値を一定の値にし
たまま、タイマ割込みが行われるために、システムに高
い負荷がかかった場合でも、そのままタイマ割込み処理
を続行してしまい、システムの負荷を更に高めてしまう
という欠点を有している。
The above-mentioned conventional timer management system does not change the interrupt interval value of the timer even when the system is under heavy load because the timer interrupt is performed while the interrupt interval value is kept constant. It has a drawback that the timer interrupt processing is continued and the system load is further increased.

【0004】[0004]

【課題を解決するための手段】本発明のタイマ管理シス
テムは、タイマを利用する時に必要な情報を登録してお
くタイマ管理テーブルと、前記タイマ管理テーブルの登
録を行うタイマ要求手段と、システムの負荷状況を判定
する負荷判定手段と、前記負荷判定手段から受け取った
負荷情報によってタイマ割込み間隔値を決定するタイマ
割込み間隔値決定手段と、そのタイマ割込み間隔値をタ
イマに設定してタイマを起動するタイマ起動手段と、そ
のタイマ割込み間隔値の時間経過後にタイマ割込みを発
生させるタイマと、前記タイマ管理テーブルを更新して
再度タイマ要求を継続するかどうかを判定するタイマ更
新手段とを有して構成されている。
A timer management system of the present invention includes a timer management table for registering information required when a timer is used, a timer requesting means for registering the timer management table, and a system of the system. Load determining means for determining the load status, timer interrupt interval value determining means for determining the timer interrupt interval value based on the load information received from the load determining means, and setting the timer interrupt interval value in the timer to start the timer. A timer starting unit, a timer for generating a timer interrupt after the timer interrupt interval value has elapsed, and a timer updating unit for updating the timer management table and determining whether to continue the timer request again. Has been done.

【0005】[0005]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。図1は、本発明のタイマ管理システムの一
実施例を示すブロック図である。図1を参照すると、本
実施例は、タイマ利用プログラム1とタイマ管理システ
ム9のタイマ要求手段2,タイマ割込み間隔値決定手段
3,タイマ起動手段4,タイマ更新手段5,タイマ管理
テーブル6,負荷判定手段7,タイマ8とから構成され
ている。
Embodiments of the present invention will now be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a timer management system of the present invention. Referring to FIG. 1, in the present embodiment, the timer utilization program 1, the timer request means 2 of the timer management system 9, the timer interrupt interval value determination means 3, the timer starting means 4, the timer updating means 5, the timer management table 6, and the load. It is composed of a judging means 7 and a timer 8.

【0006】図2は、タイマ要求手段2の動作の一例を
示す流れ図である。図2を参照すると、タイマ要求手段
2は、タイマ管理テーブル6を登録し(ステップ2
1)、タイマ起動状態か否かを判定し(ステップ2
2)、起動フラグのセットを行っている(ステップ2
3)。
FIG. 2 is a flow chart showing an example of the operation of the timer requesting means 2. Referring to FIG. 2, the timer request means 2 registers the timer management table 6 (step 2
1), it is determined whether the timer is in the activated state (step 2
2), the start flag is set (step 2)
3).

【0007】図3は、タイマ割込み間隔値決定手段3の
動作の一例を示す流れ図である。図3を参照すると、タ
イマ割込み間隔値決定手段3は、負荷情報を入力し(ス
テップ31)、タイマ割込み間隔値を決定している(ス
テップ32)。
FIG. 3 is a flow chart showing an example of the operation of the timer interrupt interval value determining means 3. Referring to FIG. 3, the timer interrupt interval value determining means 3 inputs the load information (step 31) and determines the timer interrupt interval value (step 32).

【0008】図4は、タイマ起動手段4の動作の一例を
示す流れ図である。図4を参照すると、タイマ起動手段
4は、タイマ割込み間隔値を設定し(ステップ41)、
タイマ8を起動している(ステップ42)。
FIG. 4 is a flow chart showing an example of the operation of the timer starting means 4. Referring to FIG. 4, the timer starting means 4 sets a timer interrupt interval value (step 41),
The timer 8 has been started (step 42).

【0009】図5は、タイマ更新手段5の動作の一例を
示す流れ図である。図5を参照するとタイマ更新手段5
は、タイマ管理テーブル6を更新し(ステップ51)、
タイマ値の正負を判定し(ステップ52)、タイマ管理
テーブル6の削除(ステップ53)、タイムアウトの通
知処理(ステップ54)、タイマ管理テーブル6の有無
判定(ステップ55)、タイマ割込み間隔値決定手段3
の呼び出し(ステップ56)、起動フラグのリセット
(ステップ57)を行っている。
FIG. 5 is a flow chart showing an example of the operation of the timer updating means 5. Referring to FIG. 5, timer updating means 5
Updates the timer management table 6 (step 51),
Whether the timer value is positive or negative is determined (step 52), the timer management table 6 is deleted (step 53), timeout notification processing (step 54), presence / absence determination of the timer management table 6 (step 55), timer interrupt interval value determination means. Three
Is called (step 56) and the activation flag is reset (step 57).

【0010】図6は、タイマ管理テーブル6の一例を示
すテーブルレイアウト図である。図6を参照すると、タ
イマ管理テーブル6は、タイマ値61およびタイムアウ
ト処理プログラムアドレス62を有している。
FIG. 6 is a table layout diagram showing an example of the timer management table 6. Referring to FIG. 6, the timer management table 6 has a timer value 61 and a timeout processing program address 62.

【0011】次に、本実施例の動作について、図面を参
照して説明する。まず、タイマ利用プログラム1は、タ
イムアウトを起こさせるまでの時間及びタイムアウト発
生時に起動させるプログラムのアドレスをタイマ要求手
段2に渡し、タイマ要求手段2を動作させる。タイマ要
求手段2は、タイマ管理テーブル6の登録(ステップ2
1)によって、タイムアウトを起こさせるまでの時間を
タイマ管理テーブル6にタイマ値61として、タイムア
ウト発生時に起動させるプログラムのアドレスをタイマ
管理テーブル6にタイムアウト処理プログラムアドレス
62として登録する。次に、タイマ起動状態の判定(ス
テップ22)にて、タイマ8が起動しているかいないか
を判定し、タイマ8が起動されていない場合には、起動
フラグのセット(ステップ23)にて、起動フラグをセ
ットする。
Next, the operation of this embodiment will be described with reference to the drawings. First, the timer using program 1 passes the time until the time-out occurs and the address of the program to be activated when the time-out occurs to the timer requesting means 2 to operate the timer requesting means 2. The timer request means 2 registers the timer management table 6 (step 2
According to 1), the time until the timeout occurs is registered in the timer management table 6 as the timer value 61, and the address of the program to be activated when the timeout occurs is registered in the timer management table 6 as the timeout processing program address 62. Next, it is determined whether or not the timer 8 is activated in the determination of the timer activation state (step 22). If the timer 8 is not activated, the activation flag is set (step 23). Set the boot flag.

【0012】次に、タイマ要求手段2からタイマ割込み
間隔値決定手段3を動作させる。タイマ割込み間隔値決
定手段3は、負荷状態の入力(ステップ31)によっ
て、負荷判定手段7から負荷情報を受け取る。そして、
タイマ割込み間隔値の決定(ステップ32)によって、
システムの負荷が低い場合には、タイマ割込み間隔が短
くなるように、システムの負荷が高い場合には、タイマ
割込み間隔が長くなるように、タイマ割込み間隔値を決
定する。例えば、0.01秒間隔でタイマ割込みをかけ
ると、1秒間当たり100回もタイマ8を利用すること
になる。ところが、タイマ割込み間隔値を10秒とする
と、1秒間当たりのタイマ8の利用が1000分の1に
減りシステムの負荷を軽減させることができる。
Next, the timer requesting means 2 operates the timer interrupt interval value determining means 3. The timer interrupt interval value determining means 3 receives the load information from the load determining means 7 by inputting the load state (step 31). And
By determining the timer interrupt interval value (step 32),
The timer interrupt interval value is determined so that the timer interrupt interval is short when the system load is low, and the timer interrupt interval is long when the system load is high. For example, if a timer interrupt is made at intervals of 0.01 seconds, the timer 8 will be used 100 times per second. However, if the timer interrupt interval value is 10 seconds, the use of the timer 8 per second is reduced to 1/1000, and the load on the system can be reduced.

【0013】次に、タイマ割込み間隔値決定手段3から
タイマ起動手段4を動作させる。タイマ起動手段4は、
タイマ割込み間隔値の設定(ステップ41)によってタ
イマ8にタイマ割込み間隔値を設定し、タイマ8の起動
(ステップ42)によってタイマ8を起動させる。タイ
マ起動手段4によって起動させられたタイマ8は、タイ
マ割込み間隔値だけ時間が経過すると、タイマ割込みを
発生させる。
Next, the timer interrupt interval value determining means 3 causes the timer starting means 4 to operate. The timer starting means 4 is
The timer interrupt interval value is set in the timer 8 by setting the timer interrupt interval value (step 41), and the timer 8 is started by starting the timer 8 (step 42). The timer 8 activated by the timer activation means 4 generates a timer interrupt when the time passes by the timer interrupt interval value.

【0014】そこで、タイマ更新手段5では、タイマ管
理テーブル6の更新(ステップ51)によって、全ての
タイマ管理テーブル6のタイマ値61が、タイマ割込み
間隔値分だけ換算される。また、タイマ値61の正負判
定(ステップ52)によって、減算結果の正負を判定
し、タイマ値61が0以下であった場合には、タイマ管
理テーブル6の削除(ステップ53)によって、そのタ
イマ管理テーブル6が削除される。そして、タイムアウ
トの通知処理(ステップ54)によって、削除されたタ
イマ管理テーブル6のタイムアウト処理プログラムアド
レス62がタイマ利用プログラム1に通知される。さら
に、タイマ更新手段5は、タイマ管理テーブル6の有無
判定(ステップ55)によって、タイマ管理テーブル6
の有無を調べる。タイマ管理テーブル6がまだ残ってい
る場合には、タイマ割込み間隔値決定手段3の呼び出し
(ステップ56)によって、タイマ割込み間隔値決定手
段3を呼出す。タイマ管理テーブル6が残っていない場
合には、起動フラグのリセット(ステップ57)によっ
て、起動フラグをリセットする。
Therefore, the timer updating means 5 updates the timer management tables 6 (step 51) to convert the timer values 61 of all the timer management tables 6 by the timer interrupt interval value. Further, whether the subtraction result is positive or negative is judged by the positive / negative judgment of the timer value 61 (step 52), and when the timer value 61 is 0 or less, the timer management table 6 is deleted (step 53) to perform the timer management. Table 6 is deleted. Then, the time-out notification process (step 54) notifies the timer-using program 1 of the time-out process program address 62 of the deleted timer management table 6. Further, the timer updating means 5 determines whether or not the timer management table 6 is present (step 55), and then the timer management table 6
Check for. If the timer management table 6 still remains, the timer interrupt interval value determining means 3 is called by calling the timer interrupt interval value determining means 3 (step 56). If the timer management table 6 does not remain, the activation flag is reset by resetting the activation flag (step 57).

【0015】以上のようにして、例えば、タイマ管理テ
ーブル6で、タイマ値61に大きな値が設定された場合
や多数のタイマ利用プログラム1によって、多数のタイ
マ管理テーブル6に対する登録が行われた場合でも、タ
イマ割込み間隔値決定手段3が、負荷判定手段7から受
け取ったコンピュータシステムの負荷情報をもとに、そ
れだけ大きなタイマ割込み間隔値を決定するので、タイ
マ8の利用によるコンピュータシステムの負荷の増大を
防ぐことができる。
As described above, for example, when a large value is set for the timer value 61 in the timer management table 6 or when registration is performed for a large number of timer management tables 6 by a large number of timer utilization programs 1. However, since the timer interrupt interval value determining means 3 determines a timer interrupt interval value that is as large as it is based on the load information of the computer system received from the load determining means 7, the load of the computer system is increased by using the timer 8. Can be prevented.

【0016】[0016]

【発明の効果】以上説明したように、本発明のタイマ管
理システムは、コンピュータシステムの負荷状況を基に
して、タイマ割込み間隔値を決定することによって、以
下に示す効果を有している。 コンピュータシステムの負荷の増大を抑えることがで
きる。 コンピュータシステムに高負荷がかかっている場合で
も、問題なくタイマを監視することができる。 利用者がタイマを利用する度にタイマ割込み間隔値を
決定する必要がない。 利用者がタイマを利用する度にタイマ割込み間隔値を
決定する必要がないので、処理を自動化することができ
る。
As described above, the timer management system of the present invention has the following effects by determining the timer interrupt interval value based on the load status of the computer system. It is possible to suppress an increase in load on the computer system. The timer can be monitored without problems even when the computer system is under heavy load. There is no need to determine the timer interrupt interval value each time the user uses the timer. Since it is not necessary for the user to determine the timer interrupt interval value each time the user uses the timer, the process can be automated.

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

【図1】本発明のタイマ管理システムの一実施例を示す
ブロック図である。
FIG. 1 is a block diagram showing an embodiment of a timer management system of the present invention.

【図2】タイマ要求手段2の動作の一例を示す流れ図で
ある。
FIG. 2 is a flowchart showing an example of the operation of timer requesting means 2.

【図3】タイマ割込み間隔値決定手段3の動作の一例を
示す流れ図である。
FIG. 3 is a flowchart showing an example of the operation of the timer interrupt interval value determining means 3.

【図4】タイマ起動手段4の動作の一例を示す流れ図で
ある。
FIG. 4 is a flowchart showing an example of the operation of the timer starting means 4.

【図5】タイマ更新手段5の動作の一例を示す流れ図で
ある。
5 is a flowchart showing an example of the operation of the timer updating means 5. FIG.

【図6】タイマ管理テーブル6の一例を示すテーブルレ
イアウト図である。
FIG. 6 is a table layout diagram showing an example of a timer management table 6.

【符号の説明】[Explanation of symbols]

1 タイマ利用プログラム 2 タイマ要求手段 3 タイマ割込間隔値決定手段 4 タイマ起動手段 5 タイマ更新手段 6 タイマ管理テーブル 7 負荷判定手段 8 タイマ 9 タイマ管理システム 1 Timer Utilization Program 2 Timer Request Means 3 Timer Interrupt Interval Value Determining Means 4 Timer Starting Means 5 Timer Updating Means 6 Timer Management Tables 7 Load Judging Means 8 Timers 9 Timer Management Systems

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 タイマを利用する時に必要な情報を登録
しておくタイマ管理テーブルと、前記タイマ管理テーブ
ルの登録を行うタイマ要求手段と、システムの負荷状況
を判定する負荷判定手段と、前記負荷判定手段から受け
取った負荷情報によってタイマ割込み間隔値を決定する
タイマ割込み間隔値決定手段と、そのタイマ割込み間隔
値をタイマに設定してタイマを起動するタイマ起動手段
と、そのタイマ割込み間隔値の時間経過後にタイマ割込
みを発生させるタイマと、前記タイマ管理テーブルを更
新して再度タイマ要求を継続するかどうかを判定するタ
イマ更新手段とを具備することを特徴とするタイマ管理
システム。
1. A timer management table for registering information required when using a timer, a timer requesting means for registering the timer management table, a load determining means for determining a load condition of a system, and the load. Timer interrupt interval value determining means for determining the timer interrupt interval value based on the load information received from the judging means, timer starting means for setting the timer interrupt interval value in the timer to start the timer, and the time of the timer interrupt interval value A timer management system comprising: a timer that generates a timer interrupt after a lapse of time; and a timer updating unit that updates the timer management table and determines whether to continue the timer request again.
JP4157185A 1992-06-17 1992-06-17 Timer managing system Withdrawn JPH064175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4157185A JPH064175A (en) 1992-06-17 1992-06-17 Timer managing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4157185A JPH064175A (en) 1992-06-17 1992-06-17 Timer managing system

Publications (1)

Publication Number Publication Date
JPH064175A true JPH064175A (en) 1994-01-14

Family

ID=15644057

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4157185A Withdrawn JPH064175A (en) 1992-06-17 1992-06-17 Timer managing system

Country Status (1)

Country Link
JP (1) JPH064175A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6776793B2 (en) 1995-03-01 2004-08-17 Scimed Life Systems, Inc. Longitudinally flexible expandable stent
JP2016095655A (en) * 2014-11-13 2016-05-26 富士通株式会社 Timer control program, timer control method, and information processing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6776793B2 (en) 1995-03-01 2004-08-17 Scimed Life Systems, Inc. Longitudinally flexible expandable stent
JP2016095655A (en) * 2014-11-13 2016-05-26 富士通株式会社 Timer control program, timer control method, and information processing device

Similar Documents

Publication Publication Date Title
CN111949368A (en) Application program control method and device
RU2134446C1 (en) Method for controlling primitive program overflow by messages in multiprocessor control system (versions)
JPH10214208A (en) System for monitoring abnormality of software
US6321289B1 (en) Apparatus for automatically notifying operating system level applications of the occurrence of system management events
JPH064175A (en) Timer managing system
US6463492B1 (en) Technique to automatically notify an operating system level application of a system management event
JP2004213122A (en) Stable operation method of control system by client/server and program therefor
JPH064318A (en) Error detecting system
JPH06103142A (en) Distributed data base control system
JP2566002B2 (en) Task dispatching method
JPS60164852A (en) Monitor system of program runaway
JP2500446B2 (en) Collective message processing system with intermittent operation function
JPH05204665A (en) Method for automatically starting succeeding job
JPH0581041A (en) Information processor
KR100244195B1 (en) The method of detection error in wireless local loop
KR100315401B1 (en) Interrupt handling method in real-time OS
JPH0652105A (en) Online operation management system by key-in/key-out simulation processing
JPH05197593A (en) Loop/stall monitor device for application program
JPS62293436A (en) Task managing device
JPH0784786A (en) Program execution control method
JPH08297587A (en) Automatic restart processor of ain system on unix
JPH03164940A (en) Computer having plural interruption periods
JPH03113639A (en) Microprocessor system
JP2007179304A (en) Exclusive control method of batch processing and online processing by number of execution users
JPH064320A (en) Timer control system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990831