JPH0451325A - Program execution time adjusting system - Google Patents

Program execution time adjusting system

Info

Publication number
JPH0451325A
JPH0451325A JP16162690A JP16162690A JPH0451325A JP H0451325 A JPH0451325 A JP H0451325A JP 16162690 A JP16162690 A JP 16162690A JP 16162690 A JP16162690 A JP 16162690A JP H0451325 A JPH0451325 A JP H0451325A
Authority
JP
Japan
Prior art keywords
program
time
execution
adjustment
cpu usage
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.)
Granted
Application number
JP16162690A
Other languages
Japanese (ja)
Other versions
JP2969814B2 (en
Inventor
Masanori Kato
加藤 雅典
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 JP16162690A priority Critical patent/JP2969814B2/en
Publication of JPH0451325A publication Critical patent/JPH0451325A/en
Application granted granted Critical
Publication of JP2969814B2 publication Critical patent/JP2969814B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To dynamically adjust the CPU performance to the execution of a program by instructing the degree of adjustment with regard to the CPU performance at the performance of a system. CONSTITUTION:An execution time adjusting method instructing means 1 instructs in advance an adjusting method for an adjustment ratio, etc., to the execution time of a program. A program starting means 2 actuates a program, and starts the measurement of a CPU utilizing time of the program. When an execution end notice from a program finishing means 4 is received, a CPU utilizing time detecting means 5 detects a CPU utilizing time of the finished program. An execution time adjusting means 6 obtains the CPU utilizing time of the finished program from the CPU utilizing time detecting means 5, and stops the finished program by the program finishing means 4, after the lapse of the adjustment time calculated by an adjusting method instructed from the execution time adjusting method instruction means 1.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラム実行時間調整方式に関し、特にプロ
グラムの実行処理に対する実行時間の調整を行うプログ
ラム実行時間調整方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a program execution time adjustment method, and particularly to a program execution time adjustment method for adjusting the execution time of a program execution process.

〔従来の技術〕[Conventional technology]

従来のプログラム実行時間調整方式は、それぞれのプロ
グラムの内部でタイマなどの利用により終了時間を調整
するか、ハードウェア性能を物理的に調整して落すかす
ることによって、プログラムの実行時間の調整を実現し
ていた。
Conventional program execution time adjustment methods adjust the program execution time by adjusting the end time within each program using a timer or by physically adjusting the hardware performance. It had come true.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のプログラム実行時間調整方式は、それぞ
れのプログラムの内部でタイマなどの利用により終了時
間を調整するか、ハードウェア性能を物理的に調整して
落すかを行っているので、データ蛍やトランザクション
量などの負荷状況に応じて、システム性能の調整を動的
に行うことができないという欠点を有している。
The conventional program execution time adjustment method described above either adjusts the end time using a timer or the like within each program, or physically adjusts the hardware performance to reduce the performance. This method has the disadvantage that system performance cannot be dynamically adjusted according to load conditions such as the amount of transactions.

本発明の目的は、システムの性能としてのCPU性能に
ついて、調整の程度を指示することにより、プログラム
の実行に対するC P−U性能を動的に調整することが
できるプログラム実行時間調整方式を提供することにあ
る。
An object of the present invention is to provide a program execution time adjustment method that can dynamically adjust CPU performance for program execution by instructing the degree of adjustment regarding CPU performance as system performance. There is a particular thing.

〔課題を解決するための手段〕[Means to solve the problem]

第1の発明のプログラム実行時間調整方式は、(A)あ
らかじめプログラムの実行時間に対する調整比率などの
調整方法を指示し、 (B)それぞれのプログラムを起動してするとともに、
実行中のプログラムのCPU使用時間の測定を開始し、 (C)実行を終了したプログラムの実行終了通知を受け
て、終了したプログラムのCPU使用時間を検出し、 (D)終了したプログラムのCPU使用時間を得て、指
示された調整方法により算定した調整時間を経てから、
終了したプログラムを停止させる、 ことにより構成されている。
The program execution time adjustment method of the first invention includes (A) instructing in advance an adjustment method such as an adjustment ratio for the program execution time, (B) starting each program, and
Start measuring the CPU usage time of the program being executed; (C) Upon receiving the notification of completion of the program that has finished running, detect the CPU usage time of the finished program; (D) Measure the CPU usage time of the finished program. After obtaining time and completing the adjustment time calculated by the specified adjustment method,
It consists of stopping the program when it has finished.

また、第2の発明のプログラム実行時間調整方式は、 (A)あらかじめプログラムの実行時間に対する調整比
率などの調整方法を指示する実行時間調整方法指示手段
、 (B)それぞれのプログラムを起動して、起動したプロ
グラムのCPU使用時間の測定を開始させるプログラム
開始手段、 (C)前記プログラム開始手段により起動したプログラ
ムを実行するプログラム実行手段、(D)前記プログラ
ム実行手段により実行して終了したプログラムの実行終
了通知を発生するプログラム終了手段、 (E)前記プログラム終了手段からの実行終了通知を受
けて、終了したプログラムのCPU使用時間を検出する
CPU使用時間検出手段、 (F)前記CPU使用時間検出手段から終了したプログ
ラムのCPU使用時間を得て、前記実行時間調整方法指
示手段から指示された調整方法により算定した調整時間
を経てから、終了したプログラムを前記プログラム終了
手段により停止させる実行時間調整手段、 を備えて構成されている。
Further, the program execution time adjustment method of the second invention includes: (A) execution time adjustment method instructing means for instructing in advance an adjustment method such as an adjustment ratio for the program execution time; (B) starting each program; Program starting means for starting measurement of CPU usage time of the started program; (C) Program execution means for executing the program started by the program starting means; (D) Execution of the program executed and completed by the program execution means. a program terminating means for generating an end notification; (E) a CPU usage time detecting means for detecting the CPU usage time of the terminated program upon receiving the execution end notification from the program terminating means; (F) the CPU usage time detecting means. Execution time adjustment means that obtains the CPU usage time of the terminated program from and causes the program termination means to stop the terminated program after the adjustment time calculated by the adjustment method instructed by the execution time adjustment method instruction means; It is configured with.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明のプログラム実行時間調整方式の一実施
例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of the program execution time adjustment method of the present invention.

第1図に示すように、まず、実行時間調整方法指示手段
1は、あらかじめプログラムの実行時間に対する調整比
率などの調整方法を指示している。
As shown in FIG. 1, first, the execution time adjustment method instructing means 1 instructs in advance the adjustment method such as the adjustment ratio for the program execution time.

そこで、プログラム開始手段2は、それぞれのプログラ
ムを起動して、起動したプログラムのCPU使用時間の
測定を開始させている。
Therefore, the program starting means 2 starts each program and starts measuring the CPU usage time of the started programs.

そして、プログラム実行手段3は、プログラム開始手段
2により起動したプログラムを実行している。
The program execution means 3 executes the program started by the program start means 2.

また、プログラム終了手段4は、プログラム実行手段3
により実行して終了したプログラムの実行終了通知を発
生している。
Further, the program termination means 4 is the program execution means 3.
An execution completion notification is generated for a program that was executed and terminated.

このため、プログラム終了手段4からの実行終了通知を
受けて、CPU使用時間検出手段5は、終了したプログ
ラムのCPU使用時間を検出している。
Therefore, upon receiving the execution completion notification from the program termination means 4, the CPU usage time detection means 5 detects the CPU usage time of the terminated program.

そして、実行時間調整手段6は、CPU使用時間検出手
段5から終了したプログラムのCPU使用時間を得て、
実行時間調整方法指示手段1から指示された調整方法に
より算定した調整時間を経てから、終了したプログラム
をプログラム終了手段4により停止させている。
Then, the execution time adjustment means 6 obtains the CPU usage time of the completed program from the CPU usage time detection means 5,
After the adjustment time calculated by the adjustment method instructed by the execution time adjustment method instruction means 1 has elapsed, the terminated program is stopped by the program termination means 4.

第2図は本実施例における各プログラムのCPU使用時
間と調整時間との一例を示すタイムチャートである。
FIG. 2 is a time chart showing an example of the CPU usage time and adjustment time of each program in this embodiment.

本実施例のプログラム実行時間調整方式では、実行時間
調整方法指示手段1による動的な時間調整が可能であり
、第2図は、それぞれの区間Kl、に2.に3でCPU
使用時間Tと調整時間tとの調整比率を次のようにした
場合を示している。
In the program execution time adjustment method of this embodiment, dynamic time adjustment is possible by the execution time adjustment method instruction means 1, and FIG. CPU at 3
A case is shown in which the adjustment ratio between the usage time T and the adjustment time t is set as follows.

区間に1では、T:t=1:0.2 区間に2では、T:t=に0.0 区間に3では、T:t=に0.5 そこで、各プログラムA、B、C,D、E、Fの使用時
間TA 、 Tn 、 Tc 、 To 、 TE 、
 Tpと調整時間tA+  jB+  tc、tD、j
E+  tpとが、次のようになっている。
For interval 1, T:t=1:0.2 For interval 2, T:t=0.0 For interval 3, T:t=0.5 Therefore, each program A, B, C, Usage time of D, E, F TA, Tn, Tc, To, TE,
Tp and adjustment time tA+ jB+ tc, tD, j
E+tp is as follows.

区間に1で終了したプログラムA、Bでは、TA:tA
=1:0.2 T、3: tB=1 :0.2 区間に2で終了したプログラムC,Dでは、Tc : 
tc ”1 :Q、O TD : tD=1 :0.0 区間に3で終了したプログラムE、Fでは、T、 : 
tp =1 :0.5 T、  :  tp  =1  :0. 5〔発明の効
果〕 以上説明したように、本発明のプログラム実行時間調整
方式は、システムの性能としてのCPU性能について、
調整の程度を指示することにより、プログラムの実行に
対するCPU性能を動的に調整することができるという
効果を有している。
In programs A and B that ended with 1 in the interval, TA:tA
= 1: 0.2 T, 3: tB = 1: 0.2 In programs C and D that ended in section 2, Tc:
tc "1: Q, O TD: tD=1:0.0 For programs E and F that ended at 3 in the interval, T, :
tp = 1 : 0.5 T, : tp = 1 : 0. 5 [Effects of the Invention] As explained above, the program execution time adjustment method of the present invention improves CPU performance as system performance.
By instructing the degree of adjustment, the CPU performance for program execution can be dynamically adjusted.

TE−TF・・・・・・使用時間、tA、tB、tE。TE-TF...Usage time, tA, tB, tE.

tF・・・・・・調整時間。tF・・・Adjustment time.

Claims (1)

【特許請求の範囲】 1、(A)あらかじめプログラムの実行時間に対する調
整比率などの調整方法を指示し、 (B)それぞれのプログラムを起動してするとともに、
実行中のプログラムのCPU使用時間の測定を開始し、 (C)実行を終了したプログラムの実行終了通知を受け
て、終了したプログラムのCPU使用時間を検出し、 (D)終了したプログラムのCPU使用時間を得て、指
示された調整方法により算定した調整時間を経てから、
終了したプログラムを停止させる、 ことを特徴とするプログラム実行時間調整方式。 2、(A)あらかじめプログラムの実行時間に対する調
整比率などの調整方法を指示する実行時間調整方法指示
手段、 (B)それぞれのプログラムを起動して、起動したプロ
グラムのCPU使用時間の測定を開始させるプログラム
開始手段、 (C)前記プログラム開始手段により起動したプログラ
ムを実行するプログラム実行手段、(D)前記プログラ
ム実行手段により実行して終了したプログラムの実行終
了通知を発生するプログラム終了手段、 (E)前記プログラム終了手段からの実行終了通知を受
けて、終了したプログラムのCPU使用時間を検出する
CPU使用時間検出手 段、 (F)前記CPU使用時間検出手段から終了したプログ
ラムのCPU使用時間を得て、前記実行時間調整方法指
示手段から指示された調整方法により算定した調整時間
を経てから、終了したプログラムを前記プログラム終了
手段により停止させる実行時間調整手段、 を備えることを特徴とするプログラム実行時間調整方式
[Claims] 1. (A) Instructing in advance how to adjust the adjustment ratio for the execution time of the program, (B) Starting each program, and
Start measuring the CPU usage time of the program being executed; (C) Upon receiving the notification of completion of the program that has finished running, detect the CPU usage time of the finished program; (D) Measure the CPU usage time of the finished program. After obtaining time and completing the adjustment time calculated by the specified adjustment method,
A program execution time adjustment method characterized by stopping a program that has finished. 2. (A) Execution time adjustment method instruction means for instructing in advance an adjustment method such as an adjustment ratio for the program execution time; (B) Starting each program and starting measuring the CPU usage time of the started program. (C) Program execution means for executing the program started by the program initiation means; (D) Program termination means for generating an execution completion notification for the program executed and terminated by the program execution means; (E) CPU usage time detection means for detecting the CPU usage time of the terminated program upon receiving an execution completion notification from the program termination means; (F) obtaining the CPU usage time of the terminated program from the CPU usage time detection means; A program execution time adjustment method comprising: execution time adjustment means for causing the program termination means to stop the terminated program after the adjustment time calculated by the adjustment method instructed by the execution time adjustment method instruction means has elapsed. .
JP16162690A 1990-06-20 1990-06-20 Program execution time adjustment method and method Expired - Fee Related JP2969814B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16162690A JP2969814B2 (en) 1990-06-20 1990-06-20 Program execution time adjustment method and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16162690A JP2969814B2 (en) 1990-06-20 1990-06-20 Program execution time adjustment method and method

Publications (2)

Publication Number Publication Date
JPH0451325A true JPH0451325A (en) 1992-02-19
JP2969814B2 JP2969814B2 (en) 1999-11-02

Family

ID=15738763

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16162690A Expired - Fee Related JP2969814B2 (en) 1990-06-20 1990-06-20 Program execution time adjustment method and method

Country Status (1)

Country Link
JP (1) JP2969814B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8464042B2 (en) 2008-06-30 2013-06-11 Fujitsu Limited Performance adjustment apparatus and method of information processing apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8464042B2 (en) 2008-06-30 2013-06-11 Fujitsu Limited Performance adjustment apparatus and method of information processing apparatus

Also Published As

Publication number Publication date
JP2969814B2 (en) 1999-11-02

Similar Documents

Publication Publication Date Title
CN104778167B (en) A kind of webpage load progress control method, device and terminal
JPH0451325A (en) Program execution time adjusting system
US7673166B2 (en) Computation of processor clock frequency ratios
JPS6027960A (en) Measuring method of use rate of processor
JP2581764B2 (en) Pedometer
JP2708779B2 (en) AC load power control device
JPS63217425A (en) Automatic loop adjusting system
JPH02280237A (en) System for controlling transaction processing time
JP2906254B2 (en) Programmable controller
JPS59214569A (en) Screw clamping control method
JPH09114541A (en) Interruption generation time confirming circuit and processor
JPS6339792Y2 (en)
JPS6052989A (en) General-use tape residual quantity display device
JPH0683274B2 (en) Communication control method in optical communication
JPS63156247A (en) Program controller
JP3487406B2 (en) Autonomous operation function confirmation method
JPH02219139A (en) Measurement system for process-used memory capacity
JP2598583Y2 (en) Travel detection device
JP2591690Y2 (en) Runaway monitoring device for CPU
JPH0876878A (en) Timer processing method
JPH04275635A (en) Constant cycle processing system
JPH09223391A (en) Forced refresh device
JPS638939A (en) Program synchronizing system
JPS6263346A (en) Method for measuring idle time of processor
JPH05257830A (en) Method and device for monitoring input/output processing completion

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070827

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080827

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees