JP2969814B2 - Program execution time adjustment method and method - Google Patents

Program execution time adjustment method and method

Info

Publication number
JP2969814B2
JP2969814B2 JP16162690A JP16162690A JP2969814B2 JP 2969814 B2 JP2969814 B2 JP 2969814B2 JP 16162690 A JP16162690 A JP 16162690A JP 16162690 A JP16162690 A JP 16162690A JP 2969814 B2 JP2969814 B2 JP 2969814B2
Authority
JP
Japan
Prior art keywords
program
time
execution
cpu usage
adjustment
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 - Fee Related
Application number
JP16162690A
Other languages
Japanese (ja)
Other versions
JPH0451325A (en
Inventor
雅典 加藤
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
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラム実行時間調整方法および方式に関
し、特にプログラムの実行処理に対する実行時間の調整
を行うプログラム実行時間調整方法および方式に関す
る。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program execution time adjusting method and method, and more particularly to a program execution time adjusting method and method for adjusting an execution time for a program execution process.

〔従来の技術〕[Conventional technology]

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

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

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

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

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

第1の発明のプログラム実行時間調整方法は、 (A)あらかじめプログラムの実行時間に対する調整比
率の調整方法を指示し、 (B)それぞれのプログラムを起動するとともに、実行
中のプログラムのCPU使用時間の測定を開始し、 (C)実行を終了したプログラムの実行終了通知を受け
て、終了したプログラムのCPU使用時間を検出し、 (D)終了したプログラムのCPU使用時間を得て、指示
された調整方法により算定した調整時間を経てから、終
了したプログラムを停止させる、 ことにより構成されている。
The program execution time adjusting method according to the first invention includes: (A) instructing a method of adjusting an adjustment ratio with respect to a program execution time in advance; (B) activating each program and determining a CPU usage time of a program being executed. Start the measurement, (C) receive the end-of-execution notification of the program that has finished executing, detect the CPU usage time of the ended program, and (D) obtain the CPU usage time of the ended program, and make the specified adjustment. After the adjustment time calculated by the method, the finished program is stopped.

また、第2の発明のプログラム実行時間調整方法は、 (A)あらかじめプログラムの実行時間に対する調整比
率の調整方法を指示する実行時間調整方法指示手段、 (B)それぞれのプログラムを起動して、起動したプロ
グラムのCPU使用時間の測定を開始させるプログラム開
始手段、 (C)前記プログラム開始手段により起動したプログラ
ムを実行するプログラム実行手段、 (D)前記プログラム実行手段により実行して終了した
プログラムの実行終了通知を発生するプログラム終了手
段、 (E)前記プログラム終了手段から実行終了通知を受け
て、終了したプログラムのCPU使用時間を検出するCPU使
用時間検出手段、 (F)前記CPU使用時間検出手段から終了したプログラ
ムのCPU使用時間を得て、前記実行時間調整方法指示手
段から指示された調整方法により算定して調整時間を経
てから、終了したプログラムを前記プログラム終了手段
により停止させる実行時間調整手段、 を備えて構成されている。
A program execution time adjusting method according to a second aspect of the present invention includes: (A) an execution time adjustment method instructing means for instructing a method of adjusting an adjustment ratio with respect to a program execution time in advance; and (B) starting and starting each program. Means for starting the measurement of the CPU usage time of the program, (C) program execution means for executing the program started by the program start means, and (D) execution termination of the program executed and terminated by the program execution means (E) CPU usage time detecting means for receiving the execution completion notification from the program ending means and detecting the CPU usage time of the ended program, (F) ending from the CPU usage time detecting means Obtain the CPU usage time of the executed program, and instruct the execution time adjustment method instruction means. From via an adjustment method adjusting time computed using is configured to include the execution time adjusting means for stopping by the end of the program means a program has been completed.

〔実施例〕〔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 a program execution time adjusting method according to the present invention.

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

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

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

また、プログラム終了手段4は、プログラム実行手段
3により実行して終了したプログラムの実行終了通知を
発生している。
The program ending means 4 generates an execution end notification of the program that has been executed and ended by the program executing means 3.

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

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

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

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

区間K1では、T:t=1:0.2 区間K2では、T:t=1:0.0 区間K3では、T:t=1:0.5 そこで、各プログラムA,B,C,D,E,Fの使用時間TA,TB,T
C,TD,TE,TFと調整時間tA,tB,tC,tD,tE,tFとが、次のよ
うになっている。
In section K1, T: t = 1: 0.2 In section K2, T: t = 1: 0.0 In section K3, T: t = 1: 0.5 So use each program A, B, C, D, E, F Time T A , T B , T
C , T D , T E , T F and adjustment times t A , t B , t C , t D , t E , t F are as follows.

区間K1で終了したプログラムA,Bでは、 TA:tA=1:0.2 TB:tB=1:0.2 区間K2で終了したプログラムC,Dでは、 TC:tC=1:0.0 TD:tD=1:0.0 区間K3で終了したプログラムE,Fでは、 TE:tE=1:0.5 TF:tF=1:0.5 〔発明の効果〕 以上説明したように、本発明のプログラム実行時間調
整方式は、システムの性能としてのCPU性能について、
調整の程度を指示することにより、プログラムの実行に
対するCPU性能を動的に調整することができるという効
果を有している。
T A : t A = 1: 0.2 T B : t B = 1: 0.2 for programs A and B completed in section K1 T C : t C = 1: 0.0 T for programs C and D completed in section K2 D : t D = 1: 0.0 In the programs E and F completed in the section K3, T E : t E = 1: 0.5 TF : t F = 1: 0.5 [Effect of the Invention] As described above, the present invention Program execution time adjustment method, CPU performance as a system performance,
Instructing the degree of adjustment has the effect of dynamically adjusting CPU performance for program execution.

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

第1図は本発明のプログラム実行時間調整方式の一実施
例を示すブロック図、第2図は本実施例における各プロ
グラムのCPU使用時間と調整時間との一例を示すタイム
チャートである。 1……実行時間調整方法指示手段、2……プログラム開
始手段、3……プログラム実行手段、4……プログラム
終了手段、5……CPU使用時間検出手段、6……実行時
間調整手段、A,B,C,D,E,F……プログラム、K1……、K2
……、K3……区間、TA,TB,TC,TD,TE,TF……使用時間、t
A,tB,tE,tF……調整時間。
FIG. 1 is a block diagram showing an embodiment of a program execution time adjusting method according to the present invention, and FIG. 2 is a time chart showing an example of CPU use time and adjustment time of each program in the present embodiment. 1 ... execution time adjustment method instruction means, 2 ... program start means, 3 ... program execution means, 4 ... program end means, 5 ... CPU usage time detection means, 6 ... execution time adjustment means, A, B, C, D, E, F …… Program, K1 ……, K2
…, K3… section, T A , T B , T C , T D , T E , T F … Usage time, t
A , t B , t E , t F ...... Adjustment time.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】(A)あらかじめプログラムの実行時間に
対する調整比率の調整方法を指示し、 (B)それぞれのプログラムを起動するとともに、実行
中のプログラムのCPU使用時間の測定を開始し、 (C)実行を終了したプログラムの実行終了通知を受け
て、終了したプログラムのCPU使用時間を検出し、 (D)終了したプログラムのCPU使用時間を得て、指示
された調整方法により算定した調整時間を経てから、終
了したプログラムを停止させる、 ことを特徴とするプログラム実行時間調整方法。
(A) instructing in advance how to adjust the adjustment ratio with respect to the execution time of a program; (B) starting each program and starting measurement of the CPU usage time of the program being executed; ) Upon receiving the execution end notification of the program that has finished executing, detecting the CPU usage time of the ended program, and (D) obtaining the CPU usage time of the ended program, and calculating the adjustment time calculated by the specified adjustment method. A program execution time adjustment method characterized by stopping a program after the completion of the program execution time.
【請求項2】(A)あらかじめプログラムの実行時間に
対する調整比率の調整方法を指示する実行時間調整方法
指示手段、 (B)それぞれのプログラムを起動して、起動したプロ
グラムのCPU使用時間の測定を開始させるプログラム開
始手段、 (C)前記プログラム開始手段により起動したプログラ
ムを実行するプログラム実行手段、 (D)前記プログラム実行手段により実行して終了した
プログラムの実行終了通知を発生するプログラム終了手
段、 (E)前記プログラム終了手段から実行終了通知を受け
て、終了したプログラムのCPU使用時間を検出するCPU使
用時間検出手段、 (F)前記CPU使用時間検出手段から終了したプログラ
ムのCPU使用時間を得て、前記実行時間調整方法指示手
段から指示された調整方法により算定して調整時間を経
てから、終了したプログラムを前記プログラム終了手段
により停止させる実行時間調整手段、 を備えることを特徴とするプログラム実行時間調整方
式。
(A) execution time adjustment method instructing means for instructing a method of adjusting an adjustment ratio with respect to the execution time of a program in advance; (B) starting each program and measuring the CPU usage time of the started program. (C) a program executing means for executing the program started by the program starting means, (D) a program ending means for generating an execution end notification of the program executed and ended by the program executing means, E) CPU usage time detecting means for receiving the execution completion notification from the program ending means and detecting the CPU usage time of the finished program; and (F) obtaining the CPU usage time of the finished program from the CPU usage time detecting means. , Calculated by the adjustment method instructed by the execution time adjustment method instructing means and passed through the adjustment time. From program execution time adjustment method characterized by comprising the execution time adjusting means for stopping by the end of the program means a program has been completed.
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 JPH0451325A (en) 1992-02-19
JP2969814B2 true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010001434A1 (en) 2008-06-30 2010-01-07 富士通株式会社 Performance adjusting device and performance adjusting method of information processor

Also Published As

Publication number Publication date
JPH0451325A (en) 1992-02-19

Similar Documents

Publication Publication Date Title
JPH01147656A (en) Microprocessor
JP2969814B2 (en) Program execution time adjustment method and method
JP2000231228A5 (en)
JPS6339792Y2 (en)
JPS63217425A (en) Automatic loop adjusting system
JP2906254B2 (en) Programmable controller
JPH0273201U (en)
JPS6033654A (en) Inter-microprocessor data transferring system
JPH04275635A (en) Constant cycle processing system
JP2003304211A (en) Device and method for detecting abnormality of communication control parameter
JPS63269239A (en) Processor load measuring system
JPH0683274B2 (en) Communication control method in optical communication
JPH01265338A (en) Automatic measuring method for cpu load reference value
JPH0378030A (en) Batch start/end system for program
JPH0742117Y2 (en) AE measuring device
JPS622684Y2 (en)
JPH0581888U (en) Monitor device
JPS6224325A (en) Arithmetic processor
JPS638939A (en) Program synchronizing system
JPH05180855A (en) Speed detector
JPS6263346A (en) Method for measuring idle time of processor
JPH04308941A (en) Method and device for executing program
JPH01147740A (en) Information processing system
JPS61166632A (en) Interruption processor
JPH0863364A (en) Wait time acquiring method

Legal Events

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

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20070827

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

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20080827

LAPS Cancellation because of no payment of annual fees