JPS63282818A - Timer control system by rb table classified by timer value - Google Patents

Timer control system by rb table classified by timer value

Info

Publication number
JPS63282818A
JPS63282818A JP62118224A JP11822487A JPS63282818A JP S63282818 A JPS63282818 A JP S63282818A JP 62118224 A JP62118224 A JP 62118224A JP 11822487 A JP11822487 A JP 11822487A JP S63282818 A JPS63282818 A JP S63282818A
Authority
JP
Japan
Prior art keywords
timer
time
processing
timeout
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP62118224A
Other languages
Japanese (ja)
Inventor
Toshiki Kiyono
清野 俊樹
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
Original Assignee
NEC Corp
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 filed Critical NEC Corp
Priority to JP62118224A priority Critical patent/JPS63282818A/en
Publication of JPS63282818A publication Critical patent/JPS63282818A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To suppress the load quantity by timer control processing even if the number of starting timers is increased by executing timer starting processing, time-out processing and timer cancel processing by using an RB table formed in each timer value and a time-out counter. CONSTITUTION:The titled system is provided with the RB table 11 to be formed in each timer and the time-out counter 12. The table 1 instructs timer starting, time-out and timer cancel and the time-out counter 12 is driven together with the table 11 and manages the timer start, timer time-out and timer canceling time. Even if the number of requests for the timer and the number of RBs are increased, an RB queue is not extended.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はタイマ制御方式に関し、特にタイマ値別RBテ
ーブルおよびタイムアウトカウンタを使用したタイマ制
御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a timer control method, and particularly to a timer control method using an RB table by timer value and a timeout counter.

(従来の技術) 従来、タイマ制御方式の処理は第5図、および第6図に
示すようにして実行されていた。第5図においては、R
B?!がnであってn個のタイマが起動しているものと
している。
(Prior Art) Conventionally, processing using a timer control method has been executed as shown in FIGS. 5 and 6. In Figure 5, R
B? ! It is assumed that n is n and n timers are activated.

まず、タイマ制御テーブルのRBポインタを基点とし、
要求さnたタイマのRB (リクエストブロック)ヲキ
ューイングすることによりタイマが起動される。
First, using the RB pointer of the timer control table as the base point,
The timer is started by queuing the requested timer's RB (request block).

第5図を例に説明すると、図示された状態から新しくひ
とつのタイマ起動要求金かけると、タイマ要求RBがR
Hnの次にキューイングさnることになる。
Taking FIG. 5 as an example, if one new timer start request is added from the state shown in the figure, the timer request RB changes to R.
It will be queued next to Hn.

タイムアウトのチェックは第6図のフローチャート全参
照して説明すると、クロックからのタイマインターバル
単位の割込みの都度、タイマ制御テーブルのRBポイン
タを基点とし、RBキューの先頭のRBから順に、全R
B内のワーク用のタイマ([flつつカウントダウンし
てゆく。その際、タイマ値が0とな扛ばタイムアウトの
発生とみなし、6当するRBt−デキュー処理するとと
もにポスト処理全実行してタイムアウト全通知する。キ
ャンセル要求が発生した場合には、該当する凡Bl)L
Bキューからデキュー処理するとともにポスト処理し、
キャンセルの完了を通知する。
The timeout check will be explained with reference to the flowchart in FIG. 6. Every time there is an interrupt from the clock in units of timer intervals, all R
The work timer in B ([fl) counts down.At this time, if the timer value becomes 0, it is assumed that a timeout has occurred, and the 6-hit RBt-dequeue processing is performed, and all post processing is executed to complete the timeout. We will notify you.If a cancellation request occurs, we will notify you of the applicable cancellation request.
Dequeue processing from B queue and post processing,
Notify completion of cancellation.

(発明が解決しようとする問題点) 上述した従来のタイマ制御方式は、n個のタイマが起動
されている場合にn個のRBが1本のキューによって連
結さnている。しかも、各RB内にタイマ値カウント用
のワークエリアをもっていて、クロックからの割込みが
発生する都度、タイマ制御テーブルの凡Bポインタヲ基
漬とし、キューイングさnている全RBに対して、ワー
クエリア内のタイマイ直ヲカウントダウンするとともに
タイムアウトチェックを実行する。もし、タイムアウト
に該当するRBがあるときには、そのRB’iRBキュ
ーよpデキュー処理し、ポスト処理すると云う処理を実
行する。
(Problems to be Solved by the Invention) In the conventional timer control method described above, when n timers are activated, n RBs are connected by one queue. Moreover, each RB has a work area for counting the timer value, and each time an interrupt from the clock occurs, the B pointer of the timer control table is used as the base, and the work area is used for all RBs in the queue. The hawksbill inside counts down and performs a timeout check. If there is an RB corresponding to the timeout, the RB'iRB queue is subjected to p-dequeue processing and post processing is executed.

従って、タイマ要求数が増加してRB数が権力口するほ
どRBキューが長くなジ、RB内のタイマ値のカウント
処理、およびキューイング処理の負荷が非常に大きくな
ると云う欠点がある。
Therefore, as the number of timer requests increases and the number of RBs increases, the RB queue becomes longer, and the load on counting timer values in RBs and queuing processing becomes extremely large.

本発明の目的は、タイマ制御においてタイマ傳別RBテ
ーブルおよびタイムアウトカウンタ金量いてタイマ起動
、タイマタイムアウト、およびタイマキャンセルなどの
処理を実行することにより上記欠点を除去し、タイマ要
求数が増加してRB数が増加してもRHキューの長くな
ることがないように構成したタイマ値別RBテーブルに
よるタイマ制御方式全提供することにある。
An object of the present invention is to eliminate the above drawbacks by executing processes such as timer activation, timer timeout, and timer cancellation using a timer-specific RB table and a timeout counter value in timer control, and the number of timer requests increases. An object of the present invention is to provide an entire timer control method using a timer value-specific RB table configured so that an RH queue does not become long even when the number of RBs increases.

(問題点1に解決するための手段) 本発明のタイマ値別kLBテーブルによるタイマ制御方
式は、タイマ値別几Bテーブルとタイムアウトカウンタ
とを具備して構成したものである。
(Means for Solving Problem 1) The timer control method using the timer value-specific kLB table of the present invention is configured to include a timer value-specific kLB table and a timeout counter.

タイマ値別RBテーブルはタイマ起動、タイマタイムア
ウト、およびタイマキャンセルを指示するためのもので
ある。
The RB table by timer value is used to instruct timer activation, timer timeout, and timer cancellation.

タイムアウトカウンタはタイマ別RBテーブルとともに
動作し、タイマ起動、タイマタイムアウト、およびタイ
マキャンセルの時間全管理するためのものである。
The timeout counter operates together with the RB table for each timer, and is used to manage all the times of timer activation, timer timeout, and timer cancellation.

(実 施 例) 次に、本発明について図面を参照して説明する。(Example) Next, the present invention will be explained with reference to the drawings.

第1図は、本発明におけるタイマ値別RBテーブル、タ
イムアウトカウンタ、およびタイマ要求孔Bの一実施例
1示す説明図である。第1囚において、11はタイマ値
別凡Bテーブル、12はタイムアウトカウンタ、13は
タイマ要求RBである。
FIG. 1 is an explanatory diagram showing an embodiment 1 of an RB table by timer value, a timeout counter, and a timer request hole B according to the present invention. In the first prisoner, 11 is a timer value specific B table, 12 is a timeout counter, and 13 is a timer request RB.

タイマft1T別RBテーブル11のサイズNは、クロ
ック割込みの発生するタイマインターバルを最小単位と
したときに、タイマ要求金かけることのできる最大のタ
イマ値よりも大きいものとする。タイムアウトカウンタ
12は、クロック割込みの発生するごとにlづつカウン
トアツプさn1値がN以上になったときにNを差引くこ
とによりクリアさn、以後、同様にカウントアツプさj
るものとする。
It is assumed that the size N of the RB table 11 for each timer ft1T is larger than the maximum timer value that can be multiplied by the timer request amount when the minimum unit is the timer interval in which a clock interrupt occurs. The timeout counter 12 is incremented by l each time a clock interrupt occurs, and when the n1 value becomes greater than or equal to N, it is cleared by subtracting N. From then on, the timeout counter 12 is incremented in the same way.
shall be

第2図は、第1図においてタイマ起動要求時の処理を示
すフローチャートである。
FIG. 2 is a flowchart showing the process in FIG. 1 when a timer activation request is made.

第1図および第2図全参照すると、タイムアウトカウン
タ12がt(=mの時点でタイマ値Xによるタイマ起動
要求がかかったとした場合。
Referring to FIGS. 1 and 2, it is assumed that a timer activation request is made based on the timer value X when the timeout counter 12 reaches t(=m).

m+x(Nであるならば y = m + x          (1)とし、
m+x≧Nであるならば y=m+x−N       (21 トシてタイマ値別RBテーブル11の相対y番目のRB
ポインタに要求孔Bにキューイングする。
m + x (if N, then y = m + x (1),
If m+x≧N, then y=m+x−N (21) Relative y-th RB of RB table 11 by timer value
The pointer is queued to request hole B.

第1図では、m + x (Nの場合を示しである。In FIG. 1, the case of m + x (N is shown).

タイマ要求孔Bがタイマ値別8Bテーブル11にキュー
イングされ、タイマ要求が完了する。
Timer request hole B is queued in the 8B table 11 by timer value, and the timer request is completed.

第3図は、第1図におけるクロック割込み時+7)タイ
マタイムアウトチェックの処理の流fLを示すフローチ
ャートである。
FIG. 3 is a flowchart showing the processing flow fL of the timer timeout check at clock interrupt +7) in FIG.

次に、第1図および第3図を参照してタイマタイムアウ
トチェックを説明する。
Next, the timer timeout check will be explained with reference to FIGS. 1 and 3.

クロック割込みが発生した場合、タイムアウトカウンタ
12がカウントアンプさ几る。
When a clock interrupt occurs, the timeout counter 12 is counted down.

前述したようにtc≧Nとなった場合にはtc==tc
−Nとする。ここで、タイマ値別RBチー7’ルの相対
10番目のポインタをチェックし、NしLLではないな
らばタイマ要求RBがキューイングさnているので、そ
のポインタにキューイングさnているI(Bはすべてタ
イムアウト発生としてデキュー処理とポスト処理とを行
い、タイムアウトの発生を通知する。これが、クロック
割込み時ごとに行わするタイムアウトチェックの処理と
なる。
As mentioned above, when tc≧N, tc==tc
-N. Here, check the relative 10th pointer of the RB chain for each timer value, and if it is N and not LL, the timer request RB is queued, so the I queued at that pointer. (B performs dequeue processing and post processing on the assumption that a timeout has occurred, and notifies the occurrence of a timeout. This is the timeout check processing that is performed every time a clock interrupt occurs.

第4図は、第1図におけるタイマキャンセル要求時の処
理金量すフローチャートである。
FIG. 4 is a flowchart showing the processing amount when requesting timer cancellation in FIG. 1.

タイマキャンセル要求が発生した場合には、該当するR
Byタイマ値別RBテーブルよりデキュー処理するとと
もにポスト処理し、キャンセルの完了全通知する。
When a timer cancellation request occurs, the corresponding R
Dequeue processing is performed from the RB table for each By timer value, post processing is performed, and the completion of cancellation is fully notified.

(発明の効果) 以上説明したように本発明は、タイマ制御においてタイ
マ値別RBテーブルお:びタイムアウトカウンタ全相い
てタイマ起動処理、タイマタイムアウト処理、およびタ
イマキャンセル処F!全実行することにより、複数のタ
イマ要求がかかつていてもRBのキューは複数に分散さ
1、タイムアウトのチェックにはタイムアウトカウンタ
にもとずくひとつのポインタのみをチェックすnばよい
ので、起焚タイマ数が多くなってもタイマ制御処理によ
る負荷が少なくてすむと云う効果がある。
(Effects of the Invention) As explained above, the present invention uses the RB table for each timer value and the timeout counter in timer control to perform timer activation processing, timer timeout processing, and timer cancellation processing F! By executing all the timer requests, the RB queue is distributed among multiple timers even if multiple timer requests occur, and only one pointer based on the timeout counter needs to be checked to check for timeout. This has the effect that even if the number of timers increases, the load due to timer control processing can be reduced.

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

第1図は、本発明によるタイマ11別14Bテーブルに
よるタイマ制御方式を実現する一実施例金量すブロック
図である。 第2因は、第1図のタイマ起@要求時の処理に示すフロ
ーチャートである。 第3図は、第1因のクロック割込み時のタイマタイムア
ウトチェック?示すフローチャートである。 第4図は、第1図のタイマキャンセル要求時の処理を示
すフローチャートである。 第5図は、従来技術によるタイマ制御テーブルおよびタ
イマ要求凡Bの処理を示す説明図である。 第6図は、第5図のクロック割込み時のタイマタイムア
ウトチェック金示すフローチャートである。 11・・・タイマ値別)LBテーブル 12・・・タイムアウトカウンタ 13・・・タイマ要求)LB 特許出願人  日本宅気株式会社 代理人 弁理士 井 ノ ロ    壽才2図 24図 才5図
FIG. 1 is a block diagram of an embodiment of a timer control method using a 14B table for each timer 11 according to the present invention. The second cause is the flowchart shown in FIG. 1 for the timer activation@request processing. Figure 3 shows the timer timeout check at the time of the first cause of clock interrupt? FIG. FIG. 4 is a flowchart showing the processing when requesting timer cancellation in FIG. 1. FIG. 5 is an explanatory diagram showing the timer control table and timer request processing according to the prior art. FIG. 6 is a flowchart showing the timer timeout check at the time of clock interrupt in FIG. 11...By timer value) LB table 12...Timeout counter 13...Timer request) LB Patent applicant Nippon Takuki Co., Ltd. Agent Patent attorney Inoro Jusai 2 Figure 24 Figure 5

Claims (1)

【特許請求の範囲】[Claims] タイマ起動、タイマタイムアウト、およびタイマキャン
セルを指示するためのタイマ値別RBテーブルと、前記
タイマ別RBテーブルとともに動作し、前記タイマ起動
、前記タイマタイムアウト、および前記タイマキャンセ
ルの時間を管理するためのタイムアウトカウンタとを具
備して構成したことを特徴とするタイマ値別RBテーブ
ルによるタイマ制御方式。
a timer value-specific RB table for instructing timer activation, timer timeout, and timer cancellation; and a timeout for managing the timer activation, timer timeout, and timer cancellation times by operating together with the timer-specific RB table. 1. A timer control method using an RB table for each timer value, characterized in that it is configured by comprising a counter.
JP62118224A 1987-05-15 1987-05-15 Timer control system by rb table classified by timer value Pending JPS63282818A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62118224A JPS63282818A (en) 1987-05-15 1987-05-15 Timer control system by rb table classified by timer value

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62118224A JPS63282818A (en) 1987-05-15 1987-05-15 Timer control system by rb table classified by timer value

Publications (1)

Publication Number Publication Date
JPS63282818A true JPS63282818A (en) 1988-11-18

Family

ID=14731294

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62118224A Pending JPS63282818A (en) 1987-05-15 1987-05-15 Timer control system by rb table classified by timer value

Country Status (1)

Country Link
JP (1) JPS63282818A (en)

Similar Documents

Publication Publication Date Title
JPS63282818A (en) Timer control system by rb table classified by timer value
JPS6386035A (en) Stack pool managing system
JPS63300326A (en) Transaction execution schedule system
JPH03255512A (en) Interval timer control system
JPH0644234B2 (en) Task management device
JPH02311916A (en) Waiting time controller
JPH0640315B2 (en) Central processing unit allocation control method
JPS60238938A (en) Operating method of computer system
JPS5931730B2 (en) Timer control method
JPS6329848A (en) Timing control method for computer system
JPH03232046A (en) Input control system from terminal equipment in computer system
JPH05151120A (en) Priority managing system for communication control process
JPH06332724A (en) Mounting system and execution muliplicity control system and execution priority control system for logical unit for object directing type system
JP3169905B2 (en) Load balancing timer control method
JPH03142531A (en) Task multiple start control system
JPH0449426A (en) Method for controlling abort of program execution
JPH02311917A (en) Waiting time controller
JPH0250726A (en) Working area setting system
JPH03202911A (en) Communication managing timer control system
JPH01194698A (en) File constituting system for electronic exchange system
JPH0485610A (en) Cyclic timer controller
JPH01246636A (en) Central processing unit management system for virtual computer system
JPH04209031A (en) Resources control method for computer system
JPH09146771A (en) Exceptional event processor
JPH04372042A (en) Input/output interrupt processing management system