JPH1165859A - Method and device for managing operation program and storage medium where program for operation program management is recorded - Google Patents

Method and device for managing operation program and storage medium where program for operation program management is recorded

Info

Publication number
JPH1165859A
JPH1165859A JP21622297A JP21622297A JPH1165859A JP H1165859 A JPH1165859 A JP H1165859A JP 21622297 A JP21622297 A JP 21622297A JP 21622297 A JP21622297 A JP 21622297A JP H1165859 A JPH1165859 A JP H1165859A
Authority
JP
Japan
Prior art keywords
program
cpu
business
business program
priority
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
JP21622297A
Other languages
Japanese (ja)
Inventor
Mitsuhiro Kuroda
光洋 黒田
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.)
TEC CORP
Original Assignee
TEC 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 TEC CORP filed Critical TEC CORP
Priority to JP21622297A priority Critical patent/JPH1165859A/en
Publication of JPH1165859A publication Critical patent/JPH1165859A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent such trouble that the execution of an operation program of high priority is impeded and to greatly improve the system performance by setting operation priority by operation programs to be managed and assigning a CPU to an operation program of high priority more than an operation program of low priority. SOLUTION: A computer device which executes a plurality of operation programs 22 by sharing a CPU 1 set the operation priority by the operation programs 22 in advance and also sets the target use rate of the CPU 1. The load state of the CPU is checked at predetermined check intervals, stop times in periods at the check intervals are calculated by the operation programs according to the target use rate of the CPU 1 and the operation priority of the respective operation programs, and the operation stop and restart of each operation program are controlled according to the stop times. Consequently, the CPU 1 is assigned to the operation programs of high priority more than those of low priority.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、コンピュータ装置
においてCPU(Central Processing Unit )を共用し
て同時に実行される複数の異なる業務プログラムを自動
的に管理する方法及び装置並びに業務プログラム管理用
プログラムを記録した記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for automatically managing a plurality of different business programs that are simultaneously executed by sharing a CPU (Central Processing Unit) in a computer device, and to record a business program management program. Related to a recorded medium.

【0002】[0002]

【従来の技術】CPUを共用して同時に複数の異なる業
務プログラムを実行可能なマルチプログラミング方式の
コンピュータ装置では、従来、動作中のプログラムを一
時的に停止させることは可能であった。しかし、CPU
の負荷状態や各業務プログラムの優先度を意識して各業
務プログラムの起動,停止を管理するようなことは行っ
ていなかった。このため、CPUが高負荷状態で動作し
ているときに緊急を要する即時性の高い業務プログラム
の起動要求がなされても要求が受け付けられない場合が
あった。
2. Description of the Related Art Conventionally, in a multi-programming type computer device capable of simultaneously executing a plurality of different business programs by sharing a CPU, it has been possible to temporarily stop a running program. But CPU
The management of the start and stop of each business program has not been performed in consideration of the load status of each program and the priority of each business program. For this reason, when the CPU is operating under a high load state, even if a start request for an urgent business program that requires urgency is made, the request may not be accepted.

【0003】[0003]

【発明が解決しようとする課題】このように従来のマル
チプログラミング方式のコンピュータ装置においては、
CPUの負荷状態や各業務プログラムの優先度を意識し
て各業務プログラムの起動,停止を管理していなかった
ので、優先度の低い業務プログラムの実行により優先度
の高い業務プログラムの実行が妨げられ、システム性能
に支障を来すおそれがあった。そこで本発明は、優先度
の高い業務プログラムにCPUの割当てが多くなるよう
にしてシステム性能の向上を図ることを目的とするもの
である。
As described above, in the conventional multi-programming type computer apparatus,
Since the start and stop of each business program were not managed in consideration of the load state of the CPU and the priority of each business program, the execution of the low-priority business program hindered the execution of the high-priority business program. However, there is a risk that the system performance will be affected. Therefore, an object of the present invention is to improve system performance by increasing the allocation of CPUs to business programs with high priority.

【0004】[0004]

【課題を解決するための手段】本発明のプログラム管理
方法は、予め業務プログラム毎に動作の優先度を設定す
るとともにCPUの目標使用率を設定する。そして、所
定のチェック間隔を空けてCPUの負荷状態をチェック
し、その都度、CPUの目標使用率と各業務プログラム
の動作優先度とに基づいて業務プログラム毎にチェック
間隔の期間内での停止時間を算出して、この停止時間に
従い各業務プログラムの動作停止,再開を制御するよう
にした方法である。
According to the program management method of the present invention, the priority of operation is set in advance for each business program and the target usage rate of the CPU is set. The CPU load status is checked at predetermined check intervals, and each time the stop time within the check interval period is determined for each business program based on the target CPU usage rate and the operation priority of each business program. Is calculated, and the operation stop and restart of each business program are controlled in accordance with the stop time.

【0005】本発明のプログラム管理装置は、業務プロ
グラム毎に設定される動作の優先度に関する情報を記憶
するプログラム情報記憶手段と、CPUの目標使用率を
記憶する目標使用率記憶手段とを設ける。また、CPU
の負荷状態を検出する負荷状態検出手段を設ける。しか
して、検出手段により検出されるCPUの負荷状態を所
定のチェック間隔を空けてチェックし、その都度、目標
使用率記憶手段により記憶したCPUの目標使用率とプ
ログラム情報記憶手段により記憶した各業務プログラム
の動作優先度に関する情報とに基づいて業務プログラム
毎にチェック間隔の期間内での停止時間を算出して、こ
の業務プログラム毎の停止時間に応じてチェック間隔の
期間内で各業務プログラムの動作停止,再開を制御する
機能を備えた装置である。
[0005] The program management device of the present invention is provided with a program information storage means for storing information relating to the priority of operation set for each business program, and a target usage rate storage means for storing a target usage rate of the CPU. Also, CPU
And a load state detecting means for detecting the load state. The load state of the CPU detected by the detection means is checked at predetermined check intervals, and each time the CPU utilization stored by the target utilization storage means and each task stored by the program information storage means are checked. The stop time within the check interval period is calculated for each business program based on the information on the operation priority of the program, and the operation time of each business program within the check interval period is calculated according to the stop time for each business program. This device has a function to control stop and restart.

【0006】本発明のコンピュータ読取可能な記録媒体
は、CPUを共用して同時に複数の異なる業務プログラ
ムを実行可能なコンピュータ装置に、所定のチェック間
隔を空けてCPUの負荷状態をチェックする機能と、C
PUの負荷状態をチェックする毎に予め設定されたCP
Uの目標使用率と各業務プログラムの動作優先度とに基
づいて業務プログラム毎にチェック間隔の期間内での停
止時間を算出する機能と、業務プログラム毎に算出され
た停止時間に従い各業務プログラムの動作停止,再開を
制御する機能とを実現させる業務プログラム管理用プロ
グラムを記録したものである。
A computer-readable recording medium according to the present invention has a function of checking the load state of a CPU at predetermined check intervals in a computer device capable of simultaneously executing a plurality of different business programs while sharing a CPU; C
Each time the load status of the PU is checked, a preset CP
A function of calculating the stop time within the check interval period for each business program based on the target usage rate of U and the operation priority of each business program, and a function of calculating the stop time of each business program according to the stop time calculated for each business program. It records a business program management program for realizing a function of controlling operation stop and restart.

【0007】[0007]

【発明の実施の形態】以下、本発明の一実施の形態を図
面を用いて説明する。図1はこの一実施の形態における
コンピュータ装置の要部構成を機能的に示すブロック図
である。図示するように、かかるコンピュータ装置は、
制御部本体としてCPU1を搭載し、このCPU1に、
プログラム記憶部2,RAM(RandomAccess Memoly)
3,補助記憶部4,時計部5及びインタフェース部6を
バスライン7で接続している。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram functionally showing a main configuration of a computer device according to the embodiment. As shown, such a computer device comprises:
A CPU 1 is mounted as a control unit main body, and the CPU 1
Program storage unit 2, RAM (RandomAccess Memoly)
3, an auxiliary storage unit 4, a clock unit 5, and an interface unit 6 are connected by a bus line 7.

【0008】プログラム記憶部2は、このコンピュータ
装置の基本的な機能を制御するOS(Operating Syste
m)21と、このコンピュータ装置にて実行可能な各種
の業務を制御する複数の異なる業務プログラム22とを
記憶する。ここで、OS21は、前記CPU1を共用し
て同時に複数の異なる業務プログラム22を実行可能な
マルチプログラミング方式を実現するものである。ま
た、CPU1の現在の使用率(%)を取得する機能を有
する。
The program storage unit 2 stores an operating system (OS) for controlling basic functions of the computer device.
m) 21 and a plurality of different business programs 22 for controlling various businesses executable by the computer device. Here, the OS 21 implements a multi-programming method capable of simultaneously executing a plurality of different business programs 22 while sharing the CPU 1. Further, it has a function of acquiring the current usage rate (%) of the CPU 1.

【0009】RAM3は、各種のデータを書換自在に記
憶する領域であり、特に後述するプログラム管理メモリ
30が作成される。補助記憶部4は、例えばFD(Flop
py Disk )などの磁気ディスクやCD(Compact Disc)
−ROM,DVD(Digital Video Disc)などの光ディ
スクなどの記録媒体から読取った情報を格納する領域で
あり、特に後述する業務プログラム管理用プログラム4
1と管理情報ファイル42とが記録媒体から読取られて
格納される。
The RAM 3 is an area for storing various data in a rewritable manner, and in particular, a program management memory 30 described later is created. The auxiliary storage unit 4 stores, for example, an FD (Flop
py Disk) and other magnetic disks and CDs (Compact Discs)
An area for storing information read from a recording medium such as an optical disk such as a ROM and a DVD (Digital Video Disc);
1 and the management information file 42 are read from the recording medium and stored.

【0010】時計部5は、システム時刻を計時するもの
で、このシステム時刻が1秒を計時する毎にカウントア
ップするタイマ10を前記CPU1が有している。イン
タフェース部6は、キーボード,マウスなどの入力装置
やディスプレイ,プリンタなどの出力装置とのデータ授
受を行うものである。
The clock section 5 measures the system time, and the CPU 1 has a timer 10 that counts up each time the system time measures 1 second. The interface unit 6 exchanges data with input devices such as a keyboard and a mouse, and output devices such as a display and a printer.

【0011】かかる構成のコンピュータ装置は、OS2
1の制御下において、記録媒体に記録された業務プログ
ラム管理用プログラム41及び管理情報ファイル42を
読取り、補助記憶部4に格納した状態で、自動若しくは
オペレーションにより上記業務プログラム管理用プログ
ラム41が起動されると、CPU1が図2の流れ図に示
す処理を開始するようになっている。
[0011] The computer device having such a configuration is provided with an OS 2
Under the control of 1, the business program management program 41 and the management information file 42 recorded on the recording medium are read and stored in the auxiliary storage unit 4, and the business program management program 41 is started automatically or by operation. Then, the CPU 1 starts the processing shown in the flowchart of FIG.

【0012】すなわちCPU1は、先ず、ST1として
補助記憶部4に格納された管理情報ファイル42を読込
みRAM3に一時記憶する。この管理情報ファイル42
は、図3に示すように、CPU1の負荷状態をチェック
する間隔(秒)と、CPU1の目標使用率(%)と、プ
ログラム記憶部2に格納された管理対象の各業務プログ
ラム22にそれぞれ割当てられた動作優先度(%)の各
情報を予め設定したデータファイルである。
That is, the CPU 1 first reads the management information file 42 stored in the auxiliary storage unit 4 as ST1 and temporarily stores it in the RAM 3. This management information file 42
As shown in FIG. 3, an interval (second) for checking the load state of the CPU 1, a target usage rate (%) of the CPU 1, and an assignment to each of the business programs 22 to be managed stored in the program storage unit 2. This is a data file in which each piece of information on the assigned operation priority (%) is set in advance.

【0013】CPU1の使用率は100%に近いほどシ
ステム効率が上がる。ただし、使用率が100%に近い
状態では突然の処理要求に対して即時に処理を実行する
余裕がなくなる。また、使用率が常に100%であると
どれだけCPU1が不足しているのかもわからない。こ
の点を考慮して、CPU1の目標使用率を設定すればよ
い。
As the usage rate of the CPU 1 approaches 100%, the system efficiency increases. However, in a state where the usage rate is close to 100%, there is no room to execute the processing immediately for a sudden processing request. Further, it is not known how much the CPU 1 is insufficient if the usage rate is always 100%. The target usage rate of the CPU 1 may be set in consideration of this point.

【0014】また、管理対象となる各業務プログラム2
2は、緊急を要する即時性の高い処理を実行するもの
と、緊急を要さず即時性の低い処理を実行するものとに
区分される。即時性のレベルも個々に異なる。そこで、
即時性の高い処理の業務プログラムほど優先的にCPU
1を使用できるように、各業務プログラムの優先度を決
定する。因みに、動作優先度は、基準となる業務プログ
ラムに対するCPU使用割当てを100(%)とした場
合の各業務プログラム毎のCPU使用割当ての割合であ
って、例えば動作優先度が150%の業務プログラムは
動作優先度が100%の業務プログラムよりも50%
(1.5倍)だけ多く、CPU1の使用が割当てられる
ことを意味している。なお、管理対象の業務プログラム
22はn(n≧2)個存在し、各々に1,2,…,nの
プログラム番号を付して管理している。
Each business program 2 to be managed
No. 2 is divided into those that execute urgent and high-immediate processing and those that execute urgent and low-immediate processing. The level of immediacy also varies from one individual to another. Therefore,
The higher the immediateness of the business program, the higher the CPU priority
The priority of each business program is determined so that 1 can be used. Incidentally, the operation priority is a ratio of the CPU use allocation for each business program when the CPU use allocation to the reference business program is set to 100 (%). 50% higher than business programs with 100% operation priority
(1.5 times), which means that the use of the CPU 1 is allocated. There are n (n ≧ 2) business programs 22 to be managed, each of which is managed by assigning a program number of 1, 2,..., N.

【0015】CPU1は、次に、ST2としてRAM3
にプログラム管理メモリ30を作成し、このプログラム
管理メモリ30の初期化を行う。ここで、プログラム管
理メモリ30は、図4に示すように、CPU1の現在使
用率(%)の記憶領域31と、CPU1の目標使用率
(%)の記憶領域32と、前回基準停止時間(秒)の記
憶領域33と、今回停止基準時間(秒)の記憶領域34
と、チェック間隔(秒)の記憶領域35と、管理対象で
ある各業務プログラム22それぞれの停止時間(秒)の
記憶領域36と、上記各業務プログラム22それぞれの
動作状況を示すフラグ(0=停止中,1=動作中,2=
中断中)の記憶領域37とからなる。そして、初期化が
行われると、各記憶領域31〜37がすべて[0]にク
リアされる。
Next, the CPU 1 proceeds to step ST2 where the RAM 3
Then, the program management memory 30 is created, and the program management memory 30 is initialized. Here, as shown in FIG. 4, the program management memory 30 includes a storage area 31 for the current usage rate (%) of the CPU 1, a storage area 32 for the target usage rate (%) of the CPU 1, ) And a storage area 34 for the current stop reference time (second).
Storage area 35 for the check interval (second), storage area 36 for the stop time (second) of each business program 22 to be managed, and a flag (0 = stop) indicating the operation status of each business program 22 Medium, 1 = Working, 2 =
(Suspended) storage area 37. When the initialization is performed, all the storage areas 31 to 37 are cleared to [0].

【0016】CPU1は、次に,ST3として自動若し
くはオペレーションにより業務プログラム22の起動要
求が発生しているか否かをチェックする。そして起動要
求が発生している場合には(ST4のYES)、ST5
として起動要求のあった業務プログラム22を起動す
る。また、ST6としてプログラム管理メモリ30の記
憶領域37に記憶した業務プログラム別の動作状況フラ
グのうち、起動した業務プログラム22に対応する動作
状況フラグを“1”(動作中)にする。しかる後,ST
3に戻り、他の業務プログラム22の起動要求が発生し
ているか否かをチェックする。なお、起動した業務プロ
グラムが終了すると、業務プログラム22に対応する動
作状況フラグを“0”(停止中)に戻す。
Next, the CPU 1 checks whether or not a request to start the business program 22 has been issued automatically or by operation as ST3. If the activation request has been issued (YES in ST4), ST5
The business program 22 that has been requested to start is started. In step ST6, among the operation status flags for each application program stored in the storage area 37 of the program management memory 30, the operation status flag corresponding to the activated application program 22 is set to "1" (operating). After a while, ST
Returning to step 3, it is checked whether or not an activation request for another business program 22 has occurred. When the started business program ends, the operation status flag corresponding to the business program 22 is returned to “0” (stopped).

【0017】ST3のチェックにより業務プログラム2
2の起動要求が発生していない場合には(ST4のN
O)、ST7としてCPU1の現在の負荷状態に相当す
る現在使用率(%)をOS21より取得し、プログラム
管理メモリ30の記憶領域31に書込む。また、動作情
報ファイル9から読取ったCPU1の目標使用率をプロ
グラム管理メモリ30の記憶領域32に書込む。ただ
し、業務プログラム管理用プログラム41の起動直後で
CPU1の使用率が100%のときには、目標使用率を
50%とする。こうすることにより、CPU1の使用率
を速く適正な値にすることができる。
The business program 2 is checked by checking ST3.
2 has not been issued (ST4 N
O) Then, as ST7, the current usage rate (%) corresponding to the current load state of the CPU 1 is obtained from the OS 21 and written into the storage area 31 of the program management memory 30. Further, the target usage rate of the CPU 1 read from the operation information file 9 is written in the storage area 32 of the program management memory 30. However, when the usage rate of the CPU 1 is 100% immediately after the start of the business program management program 41, the target usage rate is set to 50%. This makes it possible to quickly set the usage rate of the CPU 1 to an appropriate value.

【0018】CPU1は、次に、ST8としてプログラ
ム管理メモリ30の記憶領域31,32,33,35に
それぞれ格納されたCPU現在使用率(%),CPU目
標使用率(%),前回基準停止時間(秒)及びチェック
間隔(秒)の各データを読出す。そして、下記[1]式
により今回のチェック期間における基準停止時間(秒)
を計算する。 今回基準停止時間=前回基準停止時間+ (CPU現在使用率−CPU目標使用率)× (チェック間隔−前回基準停止時間) …[1] (ただし今回基準停止時間<0の場合、今回基準停止時
間=0とする)CPU1は、今回基準停止時間(秒)を
算出したならば、プログラム管理メモリ30における記
憶領域34の内容(今回基準停止時間)を記憶領域33
に転送して前回基準停止時間を更新した後、算出した今
回基準停止時間を記憶領域34に書込む。
The CPU 1 then proceeds to step ST8, where the CPU current usage rate (%), the CPU target usage rate (%) stored in the storage areas 31, 32, 33, and 35 of the program management memory 30, respectively, (Seconds) and check interval (seconds). Then, the reference stop time (second) in the current check period is calculated by the following equation [1].
Is calculated. Current reference stop time = Previous reference stop time + (CPU current usage rate-CPU target usage rate) x (check interval-Previous reference stop time) ... [1] (However, if the current reference stop time <0, the current reference stop time After calculating the current reference stop time (seconds), the CPU 1 stores the contents of the storage area 34 (the current reference stop time) in the program management memory 30 in the storage area 33.
And updates the previous reference stop time, and then writes the calculated current reference stop time into the storage area 34.

【0019】次に、ST9としてプログラム管理メモリ
30の記憶領域34,35にそれぞれ格納された今回基
準停止時間(秒)及びチェック間隔(秒)の各データを
読出す。そして、動作情報ファイル42から読取った各
業務プログラム毎の動作優先度(%)を用いて、下記
[2]式により今回のチェック期間における各業務プロ
グラム22の停止時間(秒)を業務プログラム毎に計算
する。 プログラム停止時間=チェック間隔− (チェック間隔−今回基準停止時間)×動作優先度 …[2] (ただしプログラム停止時間<0の場合、プログラム停
止時間=0とする)CPU1は、各業務プログラム22
のプログラム停止時間を業務プログラム毎に算出したな
らば、その各プログラム停止時間をプログラム管理メモ
リ30の記憶領域36にプログラム別に書込む。
Next, as ST9, each data of the current reference stop time (second) and the check interval (second) stored in the storage areas 34 and 35 of the program management memory 30 are read. Then, using the operation priority (%) of each business program read from the operation information file 42, the stop time (second) of each business program 22 in the current check period is calculated for each business program by the following equation (2). calculate. Program stop time = check interval− (check interval−current reference stop time) × operation priority (2) (however, if program stop time <0, program stop time = 0)
Is calculated for each business program, the program stop time is written into the storage area 36 of the program management memory 30 for each program.

【0020】次に、ST10として時計部5にて計時さ
れているシステム時刻をチェック開始時刻として読込み
RAM3に記憶するとともに、タイマ10を一旦リセッ
トして再スタートさせる。しかる後、このタイマ10の
カウント値がプログラム管理メモリ30の記憶領域35
に格納されたチェック間隔の値に達するまでの間、つま
りはチェック開始時刻からチェック間隔に相当する時間
が経過するまでの間に、ST11として業務プログラム
22毎に算出した停止時間に従い各業務プログラムの動
作停止,再開を制御する。そして、この動作停止・再開
制御処理を管理対象のすべての業務プログラム22につ
いて実行し、かつチェック開始時刻からチェック間隔に
相当する時間が経過したことを確認したならば(ST1
2のYES)、ST3に戻り、再び、業務プログラム2
2の起動要求をチェックする。ここで起動要求があれば
ST5,6の処理を実行し、起動要求がなければST
7,8,9,10,11,12の処理を再び実行する。
Next, at ST10, the system time measured by the clock unit 5 is read as a check start time, stored in the RAM 3, and the timer 10 is once reset and restarted. Thereafter, the count value of the timer 10 is stored in the storage area 35 of the program management memory 30.
Until the value of the check interval stored in the service program is reached, that is, until the time corresponding to the check interval elapses from the check start time, each of the business programs according to the stop time calculated for each business program 22 in ST11. Controls operation stop and restart. Then, if this operation stop / restart control process is executed for all the business programs 22 to be managed, and it is confirmed that the time corresponding to the check interval has elapsed from the check start time (ST1).
2 YES), returning to ST3, again in business program 2
Check the start request of 2. If there is a start request, the processing of ST5 and ST6 is executed.
The processes of 7, 8, 9, 10, 11, and 12 are executed again.

【0021】図5は、図2中ST11の各業務プログラ
ム22の動作停止,再開制御処理を具体的に示す流れ図
であって、CPU1は、管理対象の業務プログラム22
の数だけこの処理を繰り返す。なお、この処理において
使用する各種の時間に関する項目A〜Eについては図6
にそのタイミングを示す。
FIG. 5 is a flowchart specifically showing the operation stop / restart control processing of each business program 22 in ST11 in FIG. 2. The CPU 1 controls the business program 22 to be managed.
This process is repeated by the number of times. Items A to E relating to various times used in this processing are shown in FIG.
Shows the timing.

【0022】初めに、この動作停止,再開制御処理は、
チェック間隔を分割数=X(図6ではX=4)で等分に
区分し、業務プログラム22毎に1区分の中で1回の停
止期間を作成して、それに従い停止、再開を制御する。
この場合において、管理対象のすべての業務プログラム
22の停止期間Eが1区分の最初からに集中すると、区
分内の前半はすべての業務プログラム22が停止してい
て、後半は起動要求のあった業務プログラムがすべて再
開しているという現象が起きてしまう。そこで本実施の
形態では、管理対象の業務プログラム数nで1区分をさ
らに分割し、各業務プログラム22の停止期間Eを少し
ずつシフトすることで、ある程度バランスよくCPU1
の使用をふり分けるようにしている。
First, the operation stop / restart control processing is as follows.
The check interval is equally divided by the number of divisions = X (X = 4 in FIG. 6), one stop period is created in one section for each business program 22, and stop and restart are controlled accordingly. .
In this case, if the suspension periods E of all the business programs 22 to be managed are concentrated from the beginning of one section, all the business programs 22 are stopped in the first half of the section, and the second half of the section is the task for which the start request was issued. The phenomenon that all the programs are restarted occurs. Therefore, in the present embodiment, one division is further divided by the number n of business programs to be managed, and the stop period E of each business program 22 is shifted little by little, so that the CPU 1
We are trying to separate out the use of.

【0023】すなわちCPU1は、先ず、ST1として
CPU内蔵のカウンタNを[0]にリセットする。次
に、ST2として上記カウンタNを+1だけカウントア
ップしたならば、ST3として上記カウンタNが管理対
象の業務プログラム22の数nを超えたか否かを判断す
る。そして超えていない場合には、ST4として時計部
5からシステム時刻を読込み、図2中ST10の処理で
取得したチェック開始時刻からの経過時間Aを算出す
る。
That is, the CPU 1 first resets a counter N built in the CPU to [0] as ST1. Next, if the counter N is incremented by +1 in ST2, it is determined in ST3 whether the counter N has exceeded the number n of the business programs 22 to be managed. If not exceeded, the system time is read from the clock unit 5 as ST4, and the elapsed time A from the check start time acquired in the process of ST10 in FIG. 2 is calculated.

【0024】次に、ST5としてプログラム管理メモリ
30の記憶領域35からチェック間隔を読出し、このチ
ェック間隔を分割数Xで除算した商を求める。そして、
上記経過時間Aをこの商で除算し、その余りを1区分中
の経過時間Bとして取得する。また、ST6として上記
チエック間隔を分割数Xで除算した商をさらに管理対象
の業務プログラム22の数nで除算し、その商を1区分
中のプログラムシフト時間Cとして算出する。さらに、
ST7として上記プログラムシフト時間にカウンタNか
ら1を引いた値を乗算し、その積をプログラム番号がカ
ウンタNに一致する業務プログラムの1区分中における
停止開始時間Dとして算出する。
Next, at ST5, the check interval is read from the storage area 35 of the program management memory 30, and the quotient obtained by dividing the check interval by the number of divisions X is obtained. And
The elapsed time A is divided by this quotient, and the remainder is obtained as the elapsed time B in one section. In ST6, the quotient obtained by dividing the check interval by the number of divisions X is further divided by the number n of the business programs 22 to be managed, and the quotient is calculated as the program shift time C in one section. further,
In ST7, the program shift time is multiplied by a value obtained by subtracting 1 from the counter N, and the product is calculated as the stop start time D in one section of the business program whose program number matches the counter N.

【0025】しかる後、ST8としてプログラム管理メ
モリ30の記憶領域36からプログラム番号がカウンタ
Nに一致する業務プログラムの停止時間Eを読出し、下
記の評価式1が成立するか否かを判断する。 評価式1:(プログラム停止時間E÷分割数X)< (チェック間隔÷分割数X)−停止開始時間D すなわち、当該業務プログラムが1分割中に停止すべき
時間Eがその区分中の停止開始時間Dからその区分が終
了するまでの時間より小さいか否かを判断する。そし
て、小さい場合にはST9に進み、大きい場合にはST
10に進む。
Thereafter, as ST8, the stop time E of the business program whose program number matches the counter N is read from the storage area 36 of the program management memory 30, and it is determined whether the following evaluation formula 1 is satisfied. Evaluation formula 1: (program stop time E / division number X) <(check interval / division number X) -stop start time D That is, the time E that the business program should stop during one division is the stop start during the division. It is determined whether the time is smaller than the time from the time D to the end of the division. If it is smaller, the process proceeds to ST9, and if it is larger, ST9
Go to 10.

【0026】ST9及びST10ではいずれも下記の評
価式2が成立するか否かを判断する。 評価式2:1区分中の経過時間B≧停止開始時間D すなわち、1区分中の現在時間がその区分中の停止開始
時刻を過ぎているか否かを否かを判断する。そして、S
T9にて過ぎていると判断した場合にはST12に進
み、過ぎていないと判断した場合にはST13に進む。
また,ST10にて過ぎていると判断した場合にはST
12に進み、過ぎていないと判断した場合にはST11
に進む。
In both ST9 and ST10, it is determined whether or not the following evaluation formula 2 is satisfied. Evaluation Formula 2: Elapsed time B in one section ≧ stop start time D That is, it is determined whether or not the current time in one section has passed the stop start time in that section. And S
If it is determined at T9 that the time has passed, the process proceeds to ST12, and if it is determined that the time has not passed, the process proceeds to ST13.
If it is determined in ST10 that the time has passed, ST
Proceed to step 12 and if it is determined that the time has not passed, ST11
Proceed to.

【0027】ST11ではプログラム管理メモリ30の
記憶領域36からプログラム番号がカウンタNに一致す
る業務プログラムの停止時間Eを再度読出し、下記の評
価式3が成立するか否かを判断する。 評価式3:1区分中の経過時間B< (チェック間隔÷分割数X)−(プログラム停止時間E÷分割数X) すなわち、1区分中の経過時間Bがその区分中の停止開
始時間Dからその区分が終了するまでの時間を超える時
間より小さいか否かを判断する。そして、小さいと判断
した場合にはST12に進み、大きいと判断した場合に
はST13に進む。
In ST11, the stop time E of the business program whose program number matches the counter N is read from the storage area 36 of the program management memory 30 again, and it is determined whether or not the following evaluation formula 3 is satisfied. Evaluation formula 3: Elapsed time B in one section <(check interval ÷ division number X) − (program stop time E ÷ division number X) That is, elapsed time B in one section is calculated from stop start time D in that section. It is determined whether or not the time is shorter than the time until the end of the classification. If it is determined to be smaller, the process proceeds to ST12, and if it is determined to be larger, the process proceeds to ST13.

【0028】ST12ではプログラム管理メモリ30の
記憶領域37からプログラム番号がカウンタNに一致す
る業務プログラムの動作状況フラグを読出す。そしてこ
の動作状況フラグが“1”(動作中)の場合には、ST
14としてこの業務プログラムの動作を停止させる。ま
た、ST15としてプログラム管理メモリ30の記憶領
域37に記憶した業務プログラム別の動作状況フラグの
うち、動作を停止させた業務プログラム22に対応する
動作状況フラグを“2”(中断中)にする。ST12に
て該当業務プログラムの動作状況フラグが“0”(停止
中)または“2”(中断中)の場合には、ST14,1
5の処理は行わない。その後、ST2に戻り、カウンタ
Nを+1だけカウントアップする。そして、カウンタN
がまだ業務プログラム数nを超えない場合にはST4以
降の処理を繰り返す。
In ST12, the operation status flag of the business program whose program number matches the counter N is read from the storage area 37 of the program management memory 30. When the operation status flag is "1" (operating), ST
At 14, the operation of the business program is stopped. In ST15, among the operation status flags for each business program stored in the storage area 37 of the program management memory 30, the operation status flag corresponding to the business program 22 whose operation has been stopped is set to “2” (interrupted). If the operation status flag of the relevant business program is “0” (stopped) or “2” (interrupted) in ST12, ST14, ST1
Step 5 is not performed. Thereafter, returning to ST2, the counter N is counted up by +1. And the counter N
If has not yet exceeded the number n of business programs, the processing after ST4 is repeated.

【0029】一方、ST13でもプログラム管理メモリ
30の記憶領域37からプログラム番号がカウンタNに
一致する業務プログラムの動作状況フラグを読出す。そ
してこの動作状況フラグが“2”(中断中)の場合に
は、ST16としてこの業務プログラムの動作を再開さ
せる。また、ST17としてプログラム管理メモリ30
の記憶領域37に記憶した業務プログラム別の動作状況
フラグのうち、動作を再開させた業務プログラム22に
対応する動作状況フラグを“1”(動作中)に戻す。S
T13にて該当業務プログラムの動作状況フラグが
“0”(停止中)または“1”(動作中)の場合には、
ST16,17の処理は行わない。その後、ST2に戻
り、カウンタNを+1だけカウントアップする。そし
て、カウンタNがまだ業務プログラム数nを超えない場
合にはST4以降の処理を繰り返す。
On the other hand, at ST13, the operation status flag of the business program whose program number matches the counter N is read from the storage area 37 of the program management memory 30. If the operation status flag is "2" (interrupted), the operation of the business program is restarted in ST16. Also, as ST17, the program management memory 30
Among the operation status flags for each business program stored in the storage area 37, the operation status flag corresponding to the business program 22 whose operation has been resumed is returned to “1” (in operation). S
If the operation status flag of the relevant business program is “0” (stopped) or “1” (operating) at T13,
The processing of ST16 and ST17 is not performed. Thereafter, returning to ST2, the counter N is counted up by +1. If the counter N has not yet exceeded the number n of business programs, the processing after ST4 is repeated.

【0030】このように構成された本実施の形態のコン
ピュータ装置においては、管理対象としての業務プログ
ラム22に基づいて管理情報ファイル42を別途作成
し、業務プログラム管理用プログラム41とともに記憶
媒体に記録する。そして、この記録媒体を当該コンピュ
ータ装置に読込ませることによって、本発明が実現す
る。なお、管理情報ファイル42と業務プログラム管理
用プログラム41とを別の記憶媒体に記録し、それぞれ
をコンピュータ装置に読込ませるようにしてもよい。
In the computer apparatus according to the present embodiment configured as described above, a management information file 42 is separately created based on the business program 22 to be managed, and recorded on a storage medium together with the business program management program 41. . Then, the present invention is realized by reading the recording medium into the computer device. Note that the management information file 42 and the business program management program 41 may be recorded in different storage media, and each may be read by a computer device.

【0031】今、管理対象としての業務プログラム22
の数を5つとし、管理情報ファイル42に書込まれたプ
ログラム番号1の業務プログラムの動作優先度を120
%、プログラム番号2の業務プログラムの動作優先度を
100%、プログラム番号3の業務プログラムの動作優
先度を150%、プログラム番号4の業務プログラムの
動作優先度を80%、プログラム番号5の業務プログラ
ムの動作優先度を50%とする。また、CPU1の目標
使用率を90%とし、チェック間隔を100秒とする。
The business program 22 to be managed now
And the operation priority of the business program of program number 1 written in the management information file 42 is set to 120.
%, The operation priority of the business program with the program number 2 is 100%, the operation priority of the business program with the program number 3 is 150%, the operation priority of the business program with the program number 4 is 80%, and the business program with the program number 5 Is set to 50%. Further, the target usage rate of the CPU 1 is set to 90%, and the check interval is set to 100 seconds.

【0032】さて、管理対象の5つの業務プログラム1
〜5がすべて起動しており、CPU1の使用率が100
%であったとき、業務プログラム管理用プログラム41
が起動すると、1回目から8回目までのチェック期間の
間に、プログラム管理メモリ30の内容は図8の各レコ
ード81,82,…,88に示すように変化する。
Now, the five business programs 1 to be managed
~ 5 have been activated and the usage rate of CPU1 is 100
%, The business program management program 41
Are activated, the contents of the program management memory 30 change as shown in the records 81, 82,..., 88 in FIG. 8 during the first to eighth check periods.

【0033】すなわち、1回目のチェック期間では、C
PU1の目標使用率が50%と設定され、今回基準停止
時間が前記[1]式により50秒(100秒×50%)
と算出される。また、各業務プログラム22の停止時間
がそれぞれ前記[2]式により以下の如く算出される。 プログラム番号1の業務プログラムの停止時間=100
秒−(100秒−50秒)×120%=40.0秒 プログラム番号2の業務プログラムの停止時間=100
秒−(100秒−50秒)×100%=50.0秒 プログラム番号3の業務プログラムの停止時間=100
秒−(100秒−50秒)×150%=25.0秒 プログラム番号4の業務プログラムの停止時間=100
秒−(100秒−50秒)×80%=60.0秒 プログラム番号5の業務プログラムの停止時間=100
秒−(100秒−50秒)×50%=75.0秒。
That is, in the first check period, C
The target usage rate of PU1 is set to 50%, and the reference stop time this time is 50 seconds (100 seconds × 50%) according to the formula [1].
Is calculated. In addition, the stop time of each business program 22 is calculated as follows by the above equation [2]. Stop time of the business program of program number 1 = 100
Second-(100 seconds-50 seconds) x 120% = 40.0 seconds Stop time of the business program of program number 2 = 100
Second-(100 seconds-50 seconds) x 100% = 50.0 seconds Stop time of the business program of program number 3 = 100
Second− (100 seconds−50 seconds) × 150% = 25.0 seconds Stop time of the business program of program number 4 = 100
Second-(100 seconds-50 seconds) x 80% = 60.0 seconds Stop time of the business program of program number 5 = 100
Sec-(100 sec-50 sec) x 50% = 75.0 sec.

【0034】しかして、1回目のチェック期間において
は、動作優先度が120%のプログラム番号1の業務プ
ログラムはチェック期間100秒中40秒停止し、動作
優先度が100%のプログラム番号2の業務プログラム
はチェック期間100秒中50秒停止し、動作優先度が
150%のプログラム番号3の業務プログラムはチェッ
ク期間100秒中25秒停止し、動作優先度が80%の
プログラム番号4の業務プログラムはチェック期間10
0秒中60秒停止し、動作優先度が50%のプログラム
番号5の業務プログラムはチェック期間100秒中75
秒停止する。
In the first check period, the business program of the program number 1 having the operation priority of 120% is stopped for 40 seconds during the check period of 100 seconds, and the business program of the program number 2 having the operation priority of 100% is performed. The program is stopped for 50 seconds during the check period of 100 seconds, and the business program of the program number 3 with the operation priority of 150% is stopped for 25 seconds during the check period of 100 seconds, and the business program of the program number 4 with the operation priority of 80% is Check period 10
A business program with a program number 5 that stops for 60 seconds in 0 seconds and has an operation priority of 50% is 75 in 100 seconds in the check period.
Pause for seconds.

【0035】ところで、各業務プログラムの動作が停止
するタイミングは、図6に示すようにチェック間隔10
0秒を例えば4分割した25秒の期間毎に、さらに図7
に示すように業務プログラム毎にシフト時間Cだけシフ
トされて停止,再開が制御される。なお、図7中E1は
プログラム番号1の業務プログラムの停止期間を示して
おり、E2はプログラム番号2の業務プログラムの停止
期間を示しており、E3はプログラム番号3の業務プロ
グラムの停止期間を示しており、E4はプログラム番号
4の業務プログラムの停止期間を示しており、E5はプ
ログラム番号5の業務プログラムの停止期間を示してい
る。このように、各業務プログラム22の停止期間E
1,E2,E3,E4,E5を少しずつシフトすること
で、ある程度バランスよくCPU1の使用がふり分けら
れる。
By the way, as shown in FIG. 6, the timing at which the operation of each business program stops is determined by the check interval 10
For example, every 25 seconds obtained by dividing 0 seconds into four, FIG.
As shown in (1), stop and restart are controlled by shifting by the shift time C for each business program. In FIG. 7, E1 indicates the suspension period of the business program of program number 1, E2 indicates the suspension period of the business program of program number 2, and E3 indicates the suspension period of the business program of program number 3. E4 indicates the suspension period of the business program of program number 4, and E5 indicates the suspension period of the business program of program number 5. Thus, the suspension period E of each business program 22
By shifting the E1, E2, E3, E4, and E5 little by little, the use of the CPU 1 can be determined in a somewhat balanced manner.

【0036】ここで、CPU1の使用率が依然として1
00%であるとすると、2回目のチェック期間でも、C
PU1の目標使用率が50%と設定される。これによ
り、今回基準停止時間が75秒と算出される。また、各
業務プログラム22の停止時間がそれぞれプログラム番
号順に70.0秒,75.0秒,62.5秒,80.0
秒,87.5秒と算出される。
Here, the usage rate of the CPU 1 is still 1
If it is 00%, even in the second check period, C
The target usage rate of PU1 is set to 50%. Thus, the current reference stop time is calculated as 75 seconds. The stop time of each business program 22 is 70.0 seconds, 75.0 seconds, 62.5 seconds, 80.0 seconds in the order of the program numbers.
Seconds, 87.5 seconds.

【0037】しかして、2回目のチェック期間において
は、プログラム番号1の業務プログラムはチェック期間
100秒中70秒停止し、プログラム番号2の業務プロ
グラムはチェック期間100秒中75秒停止し、プログ
ラム番号3の業務プログラムはチェック期間100秒中
62.5秒停止し、プログラム番号4の業務プログラム
はチェック期間100秒中80秒停止し、プログラム番
号5の業務プログラムはチェック期間100秒中87.
5秒停止する。
Thus, in the second check period, the business program of the program number 1 stops for 70 seconds in the 100-second check period, the business program of the program number 2 stops for 75 seconds in the 100-second check period, The business program of program No. 3 stops for 62.5 seconds during the check period of 100 seconds, the business program of program number 4 stops for 80 seconds of the check period of 100 seconds, and the business program of program number 5 stops for 87.
Pause for 5 seconds.

【0038】すなわち、各業務プログラム22の停止時
間が1回目のチェック期間の時よりも長くなる。その結
果、CPU1の使用率が70%まで低下したとすると、
3回目のチェック期間では、CPU1の目標使用率が管
理情報ファイル42中の90%と設定される。これによ
り、今回基準停止時間が70秒と算出される。また、各
業務プログラム22の停止時間がそれぞれプログラム番
号順に64.0秒,70.0秒,55.0秒,76.0
秒,85.0秒と算出される。
That is, the stop time of each business program 22 is longer than in the first check period. As a result, if the usage rate of the CPU 1 is reduced to 70%,
In the third check period, the target usage rate of the CPU 1 is set to 90% in the management information file 42. As a result, the current standard stop time is calculated as 70 seconds. The stop time of each business program 22 is 64.0 seconds, 70.0 seconds, 55.0 seconds, 76.0 seconds in the order of the program numbers.
Second, 85.0 seconds.

【0039】しかして、3回目のチェック期間において
は、プログラム番号1の業務プログラムはチェック期間
100秒中64秒停止し、プログラム番号2の業務プロ
グラムはチェック期間100秒中70秒停止し、プログ
ラム番号3の業務プログラムはチェック期間100秒中
55秒停止し、プログラム番号4の業務プログラムはチ
ェック期間100秒中76秒停止し、プログラム番号5
の業務プログラムはチェック期間100秒中85秒停止
する。
Thus, in the third check period, the business program of the program number 1 stops for 64 seconds in the 100-second check period, the business program of the program number 2 stops for 70 seconds in the 100-second check period, The business program No. 3 stops for 55 seconds during the check period 100 seconds, the business program No. 4 stops for 76 seconds during the check period 100 seconds, and the program number 5
Business program stops for 85 seconds during the check period of 100 seconds.

【0040】すなわち、各業務プログラム22の停止時
間が2回目のチェック期間の時よりも短くなる。その結
果、CPU1の使用率が95%まで上昇したとすると、
4回目のチェック期間では、今回基準停止時間が71.
5秒と算出される。また、各業務プログラム22の停止
時間がそれぞれプログラム番号順に65.8秒,71.
5秒,57.3秒,77.2秒,85.8秒と算出され
る。
That is, the stop time of each business program 22 is shorter than in the second check period. As a result, if the usage rate of CPU1 rises to 95%,
In the fourth check period, the current standard stop time is 71.
It is calculated as 5 seconds. Also, the stop time of each business program 22 is 65.8 seconds in the order of the program numbers, and 71.
It is calculated as 5 seconds, 57.3 seconds, 77.2 seconds, and 85.8 seconds.

【0041】しかして、4回目のチェック期間において
は、プログラム番号1の業務プログラムはチェック期間
100秒中65.8秒停止し、プログラム番号2の業務
プログラムはチェック期間100秒中71.5秒停止
し、プログラム番号3の業務プログラムはチェック期間
100秒中57.3秒停止し、プログラム番号4の業務
プログラムはチェック期間100秒中77.2秒停止
し、プログラム番号5の業務プログラムはチェック期間
100秒中85.8秒停止する。
Thus, in the fourth check period, the business program of the program number 1 is stopped for 65.8 seconds during the check period of 100 seconds, and the business program of the program number 2 is stopped for 71.5 seconds during the check period of 100 seconds. The business program of program number 3 is stopped for 57.3 seconds during the check period of 100 seconds, the business program of program number 4 is stopped for 77.2 seconds during the check period of 100 seconds, and the business program of program number 5 is stopped for 100 check periods. 85.8 seconds pause in seconds.

【0042】すなわち、各業務プログラム22の停止時
間が3回目のチェック期間の時よりも若干長くなる。そ
の結果、CPU1の使用率が目標値の90%に一致した
とすると、5回目のチェック期間では4回目のチェック
期間と同様な結果が得られる。以後、同様にして、6回
目,7回目,8回目のチェックが定期的に行われ、その
都度、業務プログラム22毎にチェック期間内の停止時
間が算出されて、動作中のプログラムの停止、再開制御
が行われる。
That is, the stop time of each business program 22 is slightly longer than that in the third check period. As a result, if the usage rate of the CPU 1 matches 90% of the target value, the same result as the fourth check period is obtained in the fifth check period. Thereafter, in the same manner, the sixth, seventh, and eighth checks are periodically performed. Each time, the stop time within the check period is calculated for each business program 22, and the running program is stopped and restarted. Control is performed.

【0043】このように、本実施の形態によれば、CP
U1を共用して同時に複数の異なる業務プログラム22
を実行可能なコンピュータ装置において、予め業務プロ
グラム22毎に動作優先度を設定するとともにCPU1
の目標使用率を設定する。そして、所定のチェック間隔
を空けてCPU1の負荷状態をチェックし、その都度C
PU1の目標使用率と各業務プログラムの動作優先度と
に基づいて業務プログラム毎にチェック間隔の期間内で
の停止時間を算出し、この停止時間に従い各業務プログ
ラムの動作停止,再開を制御するようにしている。
As described above, according to the present embodiment, the CP
A plurality of different business programs 22 sharing U1 at the same time
In the computer device capable of executing the operations, the operation priority is set in advance for each business program 22 and the CPU 1
Set a target usage rate for Then, the CPU 1 checks the load state of the CPU 1 at predetermined check intervals.
A stop time within a check interval period is calculated for each business program based on the target usage rate of the PU1 and the operation priority of each business program, and operation stop and restart of each business program are controlled according to the stop time. I have to.

【0044】その結果、優先度の高い業務プログラムに
対するCPU1の割当てが、優先度の低い業務プログラ
ムよりも多くなる。したがって、優先度の低い業務プロ
グラムの実行により優先度の高い業務プログラムの実行
が妨げられるような不具合がなくなり、システム性能の
向上を図り得る。また、業務プログラムのバグや異常動
作によってCPU1の負荷が増大するのを防止できる効
果も奏する。
As a result, the assignment of the CPU 1 to the high-priority business program is larger than that of the low-priority business program. Therefore, there is no problem that the execution of the low-priority business program prevents the execution of the high-priority business program, and the system performance can be improved. Further, there is an effect that the load on the CPU 1 can be prevented from increasing due to a bug or an abnormal operation of the business program.

【0045】なお、前述した業務プログラム管理用プロ
グラム41は、CPU1の負荷状態を常に監視し、高負
荷時のみに自動的に実行するようにシステム構成すると
好都合である。
The business program management program 41 described above is conveniently configured to always monitor the load state of the CPU 1 and to automatically execute the program only when the load is high.

【0046】[0046]

【発明の効果】以上詳述したように、本発明によれば、
管理対象の業務プログラムの動作優先度をプログラム毎
に設定するだけで、優先度の高い業務プログラムに対す
るCPU1の割当てを優先度の低い業務プログラムより
も多くすることができ、これにより優先度の低い業務プ
ログラムの実行により優先度の高い業務プログラムの実
行が妨げられるような不具合を防止でき、システム性能
を大幅に向上できる、という優れた効果を奏し得る。
As described in detail above, according to the present invention,
Only by setting the operation priority of the business program to be managed for each program, the assignment of the CPU 1 to the high-priority business program can be made larger than that of the low-priority business program. It is possible to prevent a problem that the execution of a program with a high priority is hindered by the execution of the program, and to achieve an excellent effect that the system performance can be greatly improved.

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

【図1】 本発明の一実施の形態であるコンピュータ装
置の要部構成を示す機能ブロック図。
FIG. 1 is a functional block diagram showing a main configuration of a computer device according to an embodiment of the present invention.

【図2】 同実施の形態における業務プログラム管理用
プログラムの処理手順を示す流れ図。
FIG. 2 is a flowchart showing a processing procedure of a business program management program according to the embodiment.

【図3】 同実施の形態における管理情報ファイルのデ
ータ構造を示す図。
FIG. 3 is an exemplary view showing a data structure of a management information file according to the embodiment;

【図4】 同実施の形態におけるプログラム管理メモリ
の領域構造を示す図。
FIG. 4 is an exemplary view showing an area structure of a program management memory according to the embodiment;

【図5】 図2における業務プログラム毎の停止・再開
制御処理を具体的に示す流れ図。
FIG. 5 is a flowchart specifically showing stop / restart control processing for each business program in FIG. 2;

【図6】 図5における処理手順の中で使用する時間の
関する項目の説明に用いる図。
FIG. 6 is a diagram used to explain items related to time used in the processing procedure in FIG. 5;

【図7】 各業務プログラムの停止・再開制御のタイミ
ングの一例を示す図。
FIG. 7 is a diagram showing an example of the timing of stop / resume control of each business program.

【図8】 プログラム管理メモリに格納されるレコード
変遷の一例を示す図。
FIG. 8 is a diagram showing an example of transition of records stored in a program management memory.

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

1…CPU 2…プログラム記憶部 21…OS 22…業務プログラム 3…RAM 30…プログラム管理メモリ 4…補助記憶部 41…業務プログラム管理用プログラム 42…管理情報ファイル 5…時計部 DESCRIPTION OF SYMBOLS 1 ... CPU 2 ... Program storage part 21 ... OS 22 ... Business program 3 ... RAM 30 ... Program management memory 4 ... Auxiliary storage part 41 ... Business program management program 42 ... Management information file 5 ... Clock part

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 CPUを共用して同時に複数の異なる業
務プログラムを実行可能なコンピュータ装置の業務プロ
グラム管理方法であって、 予め前記業務プログラム毎に動作の優先度を設定すると
ともに前記CPUの目標使用率を設定し、所定のチェッ
ク間隔を空けて前記CPUの負荷状態をチェックし、そ
の都度前記CPUの目標使用率と各業務プログラムの動
作優先度とに基づいて業務プログラム毎に前記チェック
間隔の期間内での停止時間を算出し、この停止時間に従
い各業務プログラムの動作停止,再開を制御するように
したことを特徴とする業務プログラム管理方法。
1. A business program management method for a computer device capable of simultaneously executing a plurality of different business programs by sharing a CPU, wherein a priority of operation is set in advance for each of the business programs and a target use of the CPU is controlled. A load rate of the CPU is checked at predetermined check intervals, and a period of the check interval is set for each business program based on the target usage rate of the CPU and the operation priority of each business program each time. A method of managing business programs, comprising calculating a stop time in a computer, and controlling operation stop and restart of each business program according to the stop time.
【請求項2】 請求項1記載の業務プログラム管理方法
において、算出された一定停止時間に従い各業務プログ
ラムの動作を停止させる際に、チェック間隔の期間内で
業務プログラム毎に動作停止のタイミングをずらすよう
にしたことを特徴とする業務プログラム管理方法。
2. The business program management method according to claim 1, wherein when the operation of each business program is stopped according to the calculated fixed stop time, the operation stop timing is shifted for each business program within a check interval. A business program management method, characterized in that:
【請求項3】 CPUを共用して同時に実行される複数
の異なる業務プログラムを管理する業務プログラム管理
装置において、 前記業務プログラム毎に設定される動作の優先度に関す
る情報を記憶するプログラム情報記憶手段と、 前記CPUの目標使用率を記憶する目標使用率記憶手段
と、 前記CPUの負荷状態を検出する負荷状態検出手段と、 前記検出手段により検出される前記CPUの負荷状態を
所定のチェック間隔を空けてチェックしその都度前記目
標使用率記憶手段により記憶した前記CPUの目標使用
率と前記プログラム情報記憶手段により記憶した各業務
プログラムの動作優先度に関する情報とに基づいて業務
プログラム毎に前記チェック間隔の期間内での停止時間
を算出する演算手段と、 この演算手段により算出される業務プログラム毎の停止
時間に応じて前記チェック間隔の期間内で前記各業務プ
ログラムの動作停止,再開を制御するプログラム動作制
御手段と、を具備したことを特徴とする業務プログラム
管理装置。
3. A business program management device which manages a plurality of different business programs executed simultaneously by sharing a CPU, wherein: a program information storage means for storing information relating to an operation priority set for each business program; A target usage rate storage means for storing a target usage rate of the CPU; a load status detection means for detecting a load status of the CPU; a predetermined check interval for the load status of the CPU detected by the detection means. The check interval is set for each business program based on the target usage rate of the CPU stored by the target usage rate storage means and the information on the operation priority of each business program stored by the program information storage means each time. Calculation means for calculating the stop time within the period, and work calculated by the calculation means Wherein within a period of the check interval in response to the stop time of each program operation stop of the service program, business program management apparatus characterized by comprising a program operation control means for controlling restart.
【請求項4】 CPUを共用して同時に複数の異なる業
務プログラムを実行可能なコンピュータ装置に、 所定のチェック間隔を空けて前記CPUの負荷状態をチ
ェックする機能と、 前記CPUの負荷状態をチェックする毎に予め設定され
た前記CPUの目標使用率と各業務プログラムの動作優
先度とに基づいて業務プログラム毎に前記チェック間隔
の期間内での停止時間を算出する機能と、 業務プログラム毎に算出された停止時間に従い各業務プ
ログラムの動作停止,再開を制御する機能と、を実現さ
せる業務プログラム管理用プログラムを記録したコンピ
ュータ読取可能な記録媒体。
4. A function of checking the load status of the CPU at predetermined check intervals in a computer device that can execute a plurality of different business programs simultaneously while sharing a CPU, and checks the load status of the CPU. A function of calculating a stop time within the period of the check interval for each business program based on a target usage rate of the CPU and an operation priority of each business program preset for each business program; A computer-readable recording medium for recording a business program management program for realizing the function of controlling the operation stop and restart of each business program according to the stop time.
JP21622297A 1997-08-11 1997-08-11 Method and device for managing operation program and storage medium where program for operation program management is recorded Pending JPH1165859A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21622297A JPH1165859A (en) 1997-08-11 1997-08-11 Method and device for managing operation program and storage medium where program for operation program management is recorded

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21622297A JPH1165859A (en) 1997-08-11 1997-08-11 Method and device for managing operation program and storage medium where program for operation program management is recorded

Publications (1)

Publication Number Publication Date
JPH1165859A true JPH1165859A (en) 1999-03-09

Family

ID=16685197

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21622297A Pending JPH1165859A (en) 1997-08-11 1997-08-11 Method and device for managing operation program and storage medium where program for operation program management is recorded

Country Status (1)

Country Link
JP (1) JPH1165859A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7917905B2 (en) 2005-07-07 2011-03-29 Lenovo (Singapore) Pte. Ltd. Process control system and control method therefor
JP2012522320A (en) * 2009-03-31 2012-09-20 マイクロソフト コーポレーション System and method for managing priority-based system load levels
US10949634B2 (en) 2005-06-03 2021-03-16 Hand Held Products, Inc. Apparatus having hybrid monochrome and color image sensor array
US11317050B2 (en) 2005-03-11 2022-04-26 Hand Held Products, Inc. Image reader comprising CMOS based image sensor array
US11968464B2 (en) 2022-04-29 2024-04-23 Hand Held Products, Inc. Image reader comprising CMOS based image sensor array

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11317050B2 (en) 2005-03-11 2022-04-26 Hand Held Products, Inc. Image reader comprising CMOS based image sensor array
US11863897B2 (en) 2005-03-11 2024-01-02 Hand Held Products, Inc. Image reader comprising CMOS based image sensor array
US11323649B2 (en) 2005-03-11 2022-05-03 Hand Held Products, Inc. Image reader comprising CMOS based image sensor array
US11323650B2 (en) 2005-03-11 2022-05-03 Hand Held Products, Inc. Image reader comprising CMOS based image sensor array
US10949634B2 (en) 2005-06-03 2021-03-16 Hand Held Products, Inc. Apparatus having hybrid monochrome and color image sensor array
US11238251B2 (en) 2005-06-03 2022-02-01 Hand Held Products, Inc. Apparatus having hybrid monochrome and color image sensor array
US11238252B2 (en) 2005-06-03 2022-02-01 Hand Held Products, Inc. Apparatus having hybrid monochrome and color image sensor array
US11604933B2 (en) 2005-06-03 2023-03-14 Hand Held Products, Inc. Apparatus having hybrid monochrome and color image sensor array
US11625550B2 (en) 2005-06-03 2023-04-11 Hand Held Products, Inc. Apparatus having hybrid monochrome and color image sensor array
US7917905B2 (en) 2005-07-07 2011-03-29 Lenovo (Singapore) Pte. Ltd. Process control system and control method therefor
US9274844B2 (en) 2009-03-31 2016-03-01 Microsoft Technology Licensing, Llc Priority-based management of system load level
JP2012522320A (en) * 2009-03-31 2012-09-20 マイクロソフト コーポレーション System and method for managing priority-based system load levels
US11968464B2 (en) 2022-04-29 2024-04-23 Hand Held Products, Inc. Image reader comprising CMOS based image sensor array

Similar Documents

Publication Publication Date Title
US8151102B2 (en) System and methods for booting electronic devices
JPH02249055A (en) Multiprocessor system, multiprocessing method and work allocation method
JP4841632B2 (en) Method, apparatus, and program for assigning processors to logical partitions
US7752620B2 (en) Administration of locks for critical sections of computer programs in a computer that supports a multiplicity of logical partitions
JP4871174B2 (en) Virtual computer system
EP0671691B1 (en) Storage controller and bus control method for use therewith
US7739685B2 (en) Decoupling a central processing unit from its tasks
US8332611B2 (en) Method and system for managing memory
EP2881864A1 (en) Computer system, storage management computer, and storage management method
US9396353B2 (en) Data allocation among devices with different data rates
JP2008535040A (en) System and method for counting instructions for logging and playback of deterministic event sequences
US20050278722A1 (en) System for correct distribution of hypervisor work
US20080216078A1 (en) Request scheduling method, request scheduling apparatus, and request scheduling program in hierarchical storage management system
JPH03257644A (en) Main memory control method
JPH1165859A (en) Method and device for managing operation program and storage medium where program for operation program management is recorded
JPH0981424A (en) Information processor
JP3175764B2 (en) Memory scheduling method and storage medium for storing memory scheduling program
JP2010026828A (en) Method for controlling virtual computer
US5440712A (en) Database input/output control system having nonvolatile storing unit for maintaining the database
JPH07225694A (en) Virtual computer system
JP5335625B2 (en) Computer program that reduces boot time
JP4045482B2 (en) Periodic automatic backup schedule method and apparatus
CN112835521B (en) Storage space allocation method and device
JP2975253B2 (en) Multiplexed volume device
KR102544755B1 (en) Distributed storage method and device, electronic apparatus, computer-readable medium and computer program product