JPH04336334A - Time slice value setting system - Google Patents

Time slice value setting system

Info

Publication number
JPH04336334A
JPH04336334A JP3106294A JP10629491A JPH04336334A JP H04336334 A JPH04336334 A JP H04336334A JP 3106294 A JP3106294 A JP 3106294A JP 10629491 A JP10629491 A JP 10629491A JP H04336334 A JPH04336334 A JP H04336334A
Authority
JP
Japan
Prior art keywords
time slice
slice value
cpu
program
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
JP3106294A
Other languages
Japanese (ja)
Inventor
Hiroshi Hotta
浩史 堀田
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.)
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe Ltd
Original Assignee
KOBE NIPPON DENKI SOFTWARE KK
NEC Software Kobe 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 KOBE NIPPON DENKI SOFTWARE KK, NEC Software Kobe Ltd filed Critical KOBE NIPPON DENKI SOFTWARE KK
Priority to JP3106294A priority Critical patent/JPH04336334A/en
Publication of JPH04336334A publication Critical patent/JPH04336334A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the processing performance of the system since the frequency of CPU dispatching is decreased by automatically varying a time slice value to an effective time slice value. CONSTITUTION:A time slice control part 1 controls time slice values of respective programs. A CPU dispatch part 2 allows other programs to be executed when a program in execution fully use its time slice value or comes to wait for an input/output request. A detection part 3 detects CPU dispatch being performed because of the full use of the time slice value and requests the time slice control part 1 to increase the time slice value of the program which is fully used.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はタイムスライス値設定方
式に関し、特に各プログラム毎に設定されたタイムスラ
イス値にしたがって、CPUディスパッチを行うマルチ
プログラミングシステムのタイムスライス値設定方式に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a time slice value setting method, and more particularly to a time slice value setting method for a multiprogramming system that dispatches a CPU according to a time slice value set for each program.

【0002】0002

【従来の技術】従来のマルチプログラミングシステムの
タイムスライス値設定方式では、各プログラムが、その
プログラムに設定されたタイムスライス値の間に、CP
Uを使用した後に、CPUをディスパッチングして、他
のプログラムにCPUの実行権を与えるようにしており
、このタイムスライス値が、通常一定であり、外部から
ユーザ等により変更要求がなされない限り変更されなか
った。
2. Description of the Related Art In a conventional multi-programming system time slice value setting method, each program has a CP value set during the time slice value set for that program.
After using U, the CPU is dispatched to give other programs the right to execute the CPU, and this time slice value is usually constant and unless a change request is made from outside by a user etc. Not changed.

【0003】また、CPUのディスパッチングは、タイ
ムスライス値を使い切る前でも、入出力装置に対する入
出力要求待ちや特定のイベント待ち状態になれば行われ
る。しかし、CPUのディスパッチングがどのような理
由で行われたのかを判断する方法はなかった。
Further, dispatching of the CPU is performed even before the time slice value is used up, if the CPU is waiting for an input/output request to an input/output device or waiting for a specific event. However, there was no way to determine the reason for CPU dispatching.

【0004】0004

【発明が解決しようとする課題】上述した従来のマルチ
プログラミングシステムのタイムスライス値設定方式で
は、入出力装置に対する入出力要求が頻繁に行われるよ
うなプログラムは、入出力要求待ちが発生する間隔より
少し大きめのタイムスライス値に設定しておいたほうが
、CPUディスパッチの回数が少なくてすむ。
[Problems to be Solved by the Invention] In the time slice value setting method of the conventional multiprogramming system described above, programs that frequently make input/output requests to input/output devices are Setting a slightly larger time slice value will reduce the number of CPU dispatches.

【0005】なぜなら、小さすぎるとタイムスライス値
使い切りによるものと、入出力要求待ちによる二つのC
PUディスパッチが行われてしまうからである。
[0005] If it is too small, two types of C
This is because PU dispatch will be performed.

【0006】逆に、殆ど毎回タイムスライス値を使い切
って実行されるようなプログラムは、タイムスライス値
を大きくすればするほど、CPUのディスパッチング処
理の回数が少なくなる。
On the other hand, for a program that is executed almost every time by using up the time slice value, the larger the time slice value is, the fewer times the CPU needs to perform dispatching processing.

【0007】ただし、あまりタイムスライス値を大きく
すると、そのプログラムがCPUを占有するということ
になってしまう。したがって、ほど良い値をタイムスラ
イス値に設定するのが望ましい。
However, if the time slice value is increased too much, the program will occupy the CPU. Therefore, it is desirable to set the time slice value to a moderate value.

【0008】しかし、従来のタイムスライス値の設定や
変更は、外部からの手操作によるものであり、実際にそ
のタイムスライス値が適切なものかどうかを判断する方
法がないので、タイムスライス値の適切な変更ができず
、その値がシステムにとって有効なものがどうかが判ら
ないという欠点がある。
[0008] However, in the conventional setting and changing of time slice values, manual operations are performed from outside, and there is no way to judge whether the time slice values are actually appropriate. The disadvantage is that you cannot make appropriate changes and do not know whether the value is valid for your system.

【0009】[0009]

【課題を解決するための手段】本発明のタイムスライス
値設定方式は、各プログラム毎に設定されたタイムスラ
イス値にしたがって、CPUディスパッチを行うマルチ
プログラミングシステムのタイムスライス値設定方式に
おいて、タイムスライス値を使い切った結果のCPUデ
ィスパッチを検出し、使い切ったプログラムのタイムス
ライス値を可能範囲内で自動的に増加させることにより
構成されている。
[Means for Solving the Problems] The time slice value setting method of the present invention is a time slice value setting method for a multiprogramming system that performs CPU dispatch according to a time slice value set for each program. It is configured by detecting CPU dispatch as a result of using up the program, and automatically increasing the time slice value of the program that has been used up within the possible range.

【0010】0010

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

【0011】図1は本発明のタイムスライス値設定方式
の一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of the time slice value setting method of the present invention.

【0012】図1における1は各プログラムのタイムス
ライス値を管理するタイムスライス管理部、2はタイム
スライス値にしたがってCPUのディスパッチングをお
こなうCPUディスパッチ部、3はプログラムがタイム
スライスを使いきっているかどうかを検出し、タイムス
ライス値の変更要求を発行する検出部である。
In FIG. 1, 1 is a time slice management unit that manages the time slice value of each program, 2 is a CPU dispatch unit that dispatches the CPU according to the time slice value, and 3 is a check whether the program has used up the time slice. This is a detection unit that detects whether the time slice value is changed and issues a request to change the time slice value.

【0013】図2は本実施例の動作の一例を説明するフ
ローチャートである。
FIG. 2 is a flowchart illustrating an example of the operation of this embodiment.

【0014】まず、タイムスライス値を使いきるようよ
うなプログラムの場合について説明する。プログラムが
システムに投入されると(ステップ11)、タイムスラ
イス管理部1にそのプログラムのタイムスライス値が格
納される(ステップ12)。
First, a case of a program that can use up the time slice value will be explained. When a program is input into the system (step 11), the time slice value of the program is stored in the time slice management section 1 (step 12).

【0015】次に、CPUディスパッチ部2がそのプロ
グラムにCPUの使用権を与え、CPUがそのプログラ
ムを実行する(ステップ13)。そのプログラムに設定
されているタイムスライス値を使い切った時に、プログ
ラムは、CPUの使用権を放棄する(ステップ14)。
Next, the CPU dispatch unit 2 grants the program the right to use the CPU, and the CPU executes the program (step 13). When the time slice value set for the program is used up, the program relinquishes the right to use the CPU (step 14).

【0016】この時に、検出部3は、CPUディスパッ
チがタイムスライス値の使い切りにより行われたことを
検出(ステップ15)し、そのプログラムのタイムスラ
イス値を増やすように要求をタイムスライス管理部1に
発行する(ステップ16)。
At this time, the detection unit 3 detects that the CPU dispatch is performed by using up the time slice value (step 15), and sends a request to the time slice management unit 1 to increase the time slice value of the program. Issue (step 16).

【0017】要求を受けたタイムスライス管理部1は、
その対応するプログラムのタイムスライス値をある一定
量大きくする(ステップ17)。以上の処理を上限値に
なるまで繰り返す。
[0017] The time slice management unit 1 that received the request,
The time slice value of the corresponding program is increased by a certain amount (step 17). The above process is repeated until the upper limit value is reached.

【0018】このことにより、このプログラムのCPU
連続使用時間が徐々に長くなり、システムからみれば、
CPUのディスパッチング処理をする間隔が長くなる。 つまりその回数が減少することになる。
[0018] As a result, the CPU of this program
As the continuous usage time gradually increases, from the system's point of view,
The interval between CPU dispatching processes becomes longer. In other words, the number of times will decrease.

【0019】次に、頻繁に入出力要求を行うプログラム
の場合について説明する。プログラムがシステムに投入
されると(ステップ11)、タイムスライス管理部1に
そのプログラムのタイムスライス値が格納される(ステ
ップ12)。
Next, the case of a program that frequently makes input/output requests will be explained. When a program is input into the system (step 11), the time slice value of the program is stored in the time slice management section 1 (step 12).

【0020】次に、CPUディスパッチ部2がそのプロ
グラムにCPUの使用権を与え、CPUがそのプログラ
ムを実行する(ステップ13)。
Next, the CPU dispatch unit 2 grants the program the right to use the CPU, and the CPU executes the program (step 13).

【0021】そのプログラムに設定されているタイムス
ライス値を使い切り、CPUの使用権を放棄した(ステ
ップ14)場合は、検出部3が、CPUディスパッチが
タイムスライス値の使い切りにより行われたことを検出
(ステップ15)し、タイムスライス値の増加要求をタ
イムスライス管理部1に出す(ステップ16)。
[0021] When the time slice value set in the program is used up and the right to use the CPU is relinquished (step 14), the detection unit 3 detects that the CPU dispatch is performed by using up the time slice value. (Step 15), and sends a request to increase the time slice value to the time slice management unit 1 (Step 16).

【0022】もし、タイムスライス値を使い切る前に、
入出力要求待ち状態になり、CPUの使用権を放棄した
(ステップ14)場合には、検出部3が、タイムスライ
ス値使い切りによるCPUディスパッチではないことを
検出(ステップ15)し、タイムスライス値の増加要求
を出さない。
[0022] If before the time slice value is used up,
When the CPU enters the waiting state for an input/output request and relinquishes the right to use the CPU (step 14), the detection unit 3 detects that the CPU dispatch is not due to the time slice value being used up (step 15), and the time slice value is used up. Do not request an increase.

【0023】以上の処理を繰り返すことにより、タイム
スライス値は、入出力要求待ち状態の発行間隔より大き
めに設定されて行き、このタイプのプログラムのCPU
使用権の放棄は、主に入出力要求待ちによるCPUディ
スパッチだけになる。
By repeating the above process, the time slice value is set to be larger than the issuance interval of the I/O request waiting state, and the CPU of this type of program
The usage rights are relinquished mainly by CPU dispatch due to waiting for input/output requests.

【0024】そして、システムからみれば、CPUのデ
ィスパッチング処理をする回数が減ってくる。
[0024] From the system's point of view, the number of times the CPU performs dispatching processing is reduced.

【0025】[0025]

【発明の効果】以上説明したように、本発明のタイムス
ライス値設定方式は、有効なタイムスライス値に自動的
に変更されて行き、ディスパッチング処理の削減が行わ
れ、有効なCPUの使用形態を実現できるという効果を
有している。
As explained above, the time slice value setting method of the present invention automatically changes the time slice value to an effective time slice value, reduces dispatching processing, and provides an effective CPU usage pattern. This has the effect of realizing the following.

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

【図1】本発明のタイムスライス値設定方式の一実施例
を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a time slice value setting method of the present invention.

【図2】本実施例の動作の一例を説明するフローチャー
トである。
FIG. 2 is a flowchart illustrating an example of the operation of this embodiment.

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

1    タイムスライス管理部 2    CPUディスパッチ部 3    検出部 1 Time slice management department 2 CPU dispatch section 3 Detection section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  各プログラム毎に設定されたタイムス
ライス値にしたがって、CPUディスパッチを行うマル
チプログラミングシステムのタイムスライス値設定方式
において、タイムスライス値を使い切った結果のCPU
ディスパッチを検出し、使い切ったプログラムのタイム
スライス値を可能範囲内で自動的に増加させることを特
徴とするタイムスライス値設定方式。
Claim 1: In a time slice value setting method for a multi-programming system that performs CPU dispatch according to a time slice value set for each program, the CPU as a result of using up the time slice value.
A time slice value setting method that detects a dispatch and automatically increases the time slice value of an exhausted program within a possible range.
JP3106294A 1991-05-13 1991-05-13 Time slice value setting system Pending JPH04336334A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3106294A JPH04336334A (en) 1991-05-13 1991-05-13 Time slice value setting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3106294A JPH04336334A (en) 1991-05-13 1991-05-13 Time slice value setting system

Publications (1)

Publication Number Publication Date
JPH04336334A true JPH04336334A (en) 1992-11-24

Family

ID=14430028

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3106294A Pending JPH04336334A (en) 1991-05-13 1991-05-13 Time slice value setting system

Country Status (1)

Country Link
JP (1) JPH04336334A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021092904A (en) * 2019-12-09 2021-06-17 Necソリューションイノベータ株式会社 CPU resource management device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021092904A (en) * 2019-12-09 2021-06-17 Necソリューションイノベータ株式会社 CPU resource management device

Similar Documents

Publication Publication Date Title
JPS63163912A (en) Microcomputer system
JPS5638542A (en) Controlling method for engine
US20070011661A1 (en) Process control system and control method therefor
US20080307248A1 (en) Cpu Clock Control Device, Cpu Clock Control Method, Cpu Clock Control Program, Recording Medium, and Transmission Medium
JPH05108218A (en) Computer system
JPS61223950A (en) Scheduler
JP2566002B2 (en) Task dispatching method
JPH04309110A (en) information processing equipment
JPH05173807A (en) Job schedule system
JP3097873B2 (en) Transaction control method
JPH03244067A (en) Dynamic program loading system for selecting optimum processor
JPH01180641A (en) Balancing system for cpu source
JPH01196633A (en) Task control system
JPH03260838A (en) Limiting system for cpu using time
JPH05197593A (en) Loop/stall monitor device for application program
JPH04340135A (en) Cpu time distribution control system between plural processing types
JPS61202258A (en) Channel processing system
JP2591211B2 (en) High-speed interrupt processing device
JPWO2024024102A5 (en)
JPH0359730A (en) Job abort control method
JPH0683652A (en) Micro computer system
JPH02208741A (en) Peripheral equipment control system
JPS6316317A (en) Resetting device for computer system
JP3331235B2 (en) Power saving control method and apparatus for computer system
JPH06332693A (en) Issuing method of sleep instruction with timeout function