JPH09160792A - Data processor - Google Patents

Data processor

Info

Publication number
JPH09160792A
JPH09160792A JP34542195A JP34542195A JPH09160792A JP H09160792 A JPH09160792 A JP H09160792A JP 34542195 A JP34542195 A JP 34542195A JP 34542195 A JP34542195 A JP 34542195A JP H09160792 A JPH09160792 A JP H09160792A
Authority
JP
Japan
Prior art keywords
time
task
processing
tasks
parameter
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
JP34542195A
Other languages
Japanese (ja)
Inventor
Hiroyoshi Onodera
弘悦 小野寺
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP34542195A priority Critical patent/JPH09160792A/en
Publication of JPH09160792A publication Critical patent/JPH09160792A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To shorten the processing time of an optional task so as to finish it within a desired time while plural tasks are processed in time division and in parallel to each other. SOLUTION: A multitask management table 15-1 stores the assigned use ratio to show the processing rate of every task per unit time among those tasks which are processed in time division and in parallel to each other. A CPU 11 refers to the table 15-1 to process the tasks in time division and in parallel to each other according to every assigned use ratio of the tasks. When the input is designated for the processing request time to request the processing end time point of the corresponding task at its starting time, the CPU 11 increases the assigned use ratio of every task in order to complete the processing of the relevant task.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は、複数のタスクを
時分割に並行処理するデータ処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device which processes a plurality of tasks in parallel in a time division manner.

【0002】[0002]

【従来の技術】従来、オートプログラム起動を行うスケ
ジューラ機能を備えたデータ処理装置において、業務処
理の開始時刻に到達すると、当該業務処理を実行するよ
うにしている。この場合、あるタスクの実行中にスケジ
ューラ機能によって他の業務処理が起動されると、複数
のタスクを時分割に並行処理するようにしている。この
ように複数のタスクが時分割に並行処理されると、各タ
スクの終了時点はタスクの処理内容やタスクの数に応じ
て大きく変動することになる。
2. Description of the Related Art Conventionally, in a data processing device having a scheduler function for starting an automatic program, when a start time of a business process is reached, the business process is executed. In this case, when another task process is started by the scheduler function during execution of a task, a plurality of tasks are processed in parallel in a time-sharing manner. When a plurality of tasks are time-divisionally processed in parallel in this way, the end point of each task greatly varies depending on the processing content of the task and the number of tasks.

【0003】[0003]

【発明が解決しようとする課題】ところで、複数のタス
クが時分割に並行処理されている場合、各タスクの重み
(緊急度合)は必ずも一様ではなく、業務内容によって
は緊急性を要する処理もある。例えば、データファイル
の更新が終了するまで次の業務処理(例えば、帳票印刷
処理)を開始することができないため、ファイル更新処
理のスピード化が要求される。このような場合、並行処
理中の他の処理を中断させるようにしているが、業務内
容によっては必ずしも最善な方法とは言えず、特に、ホ
ストコンピュータと複数のターミナル装置との間でデー
タの送受信を行うデータ通信システムにおいて、ホスト
コンピュータは各ターミナルの要求に応じて多種多様の
処理を時分割に並行処理するようにしているが、ある処
理を中断するとそのターミナル側では業務がストップし
てしまい、運用上大きな問題を生ずることがある。この
発明の課題は、複数のタスクが時分割に並行処理されて
いる状態のまま任意のタスクについいて所望する時間内
に終了するようにその処理時間を短縮できるようにする
ことである。
By the way, when a plurality of tasks are processed in parallel in a time-sharing manner, the weight (urgent level) of each task is not always uniform, and some tasks require urgent processing depending on the business content. There is also. For example, the next business process (for example, the form printing process) cannot be started until the update of the data file is completed, and therefore the speed of the file update process is required. In such a case, other processing during parallel processing is interrupted, but it is not always the best method depending on the business content. Especially, data transmission / reception between the host computer and multiple terminal devices In the data communication system that performs the above, the host computer performs various kinds of processing in parallel in a time-divisional manner in response to the request of each terminal, but if a certain processing is interrupted, the business on the terminal side stops, May cause major operational problems. An object of the present invention is to be able to shorten the processing time so that a plurality of tasks can be completed within a desired time with respect to an arbitrary task while being concurrently processed in a time-sharing manner.

【0004】[0004]

【課題を解決するための手段】この発明の手段は次の通
りである。複数のタスクを時分割に並行処理するデータ
処理装置において、 (1)、使用率記憶手段は時分割に並行処理される各タ
スク毎に、単位時間当たりどの程度の割合で処理されて
いるかの割り当て使用率を記憶する。 (2)、処理実行手段はこの使用率記憶手段に記憶され
ているタスク毎の割り当て使用率に応じて複数のタスク
を時分割に並行処理する。 (3)、入力手段は任意のタスクに対応付けてその処理
終了時点を要求するための終了タイミング情報を入力す
る。なお、終了タイミング情報とは終了時刻や処理終了
までの時間である。 (4)、判別手段はこの入力手段から入力された終了タ
イミング情報と現在までの処理進行状態とに基づいて当
該タスクが終了タイミング情報によって示される時点ま
でに終了するか否かを判別する。 (5)、タスク制御手段はこの判別手段によって終了し
ないことが判別された際に、当該タスクに対する現在の
割り当て使用率を上げると共に、他のタスクの割り当て
使用率をそれに応じて変更する。なお、前記入力手段は
ターミナル装置から送信されて来た終了タイミング情報
を受信する通信制御手段であってもよい。いま、例え
ば、タスク起動時に、その処理終了時点を要求するため
の終了タイミング情報が入力されると、判別手段はこの
入力手段から入力された終了タイミング情報と現在まで
の処理進行状態とに基づいて当該タスクが終了タイミン
グ情報によって示される時点までに終了するか否かを判
別する。この結果、終了しないことが判別されると、タ
スク制御手段は当該タスクに対する現在の割り当て使用
率を上げると共に、他のタスクの割り当て使用率を変更
する。したがって、複数のタスクが時分割に並行処理さ
れている状態のまま任意のタスクについて所望する時間
内に終了するようにその処理時間を短縮することができ
る。
The means of the present invention are as follows. In a data processing device that processes a plurality of tasks in parallel in a time-sharing manner, (1) the usage rate storage means allocates to each task that is concurrently processed in a time-sharing manner, at what rate it is being processed per unit time. Memorize the usage rate. (2) The processing execution means processes a plurality of tasks in parallel in a time-division manner according to the assigned usage rate of each task stored in the usage rate storage means. (3) The input means inputs the end timing information for requesting the end point of the processing in association with any task. The end timing information is the end time and the time until the end of processing. (4) Based on the end timing information input from the input means and the processing progress state up to now, the determining means determines whether or not the task ends by the time point indicated by the end timing information. (5) When the determination means determines that the task is not finished, the task control means increases the current allocation usage rate for the task and changes the allocation usage rates of the other tasks accordingly. The input means may be a communication control means for receiving the end timing information transmitted from the terminal device. Now, for example, when the end timing information for requesting the end point of the processing is input at the time of starting the task, the determining means determines the end timing information input from the input means and the processing progress state up to the present time. It is determined whether the task ends by the time point indicated by the end timing information. As a result, when it is determined that the task is not finished, the task control unit increases the current allocation usage rate for the task and changes the allocation usage rates of other tasks. Therefore, the processing time can be shortened so that a plurality of tasks can be completed within a desired time with respect to an arbitrary task while being concurrently processed in a time-sharing manner.

【0005】[0005]

【発明の実施の形態】以下、図1〜図5を参照してこの
発明の一実施形態を説明する。図1はサーバー側のホス
トコンピュータ1とクライアント側のターミナル装置2
との間でデータの送受信を行うデータ通信システムにお
いて、ホストコンピュータ1の構成を示したブロック図
である。CPU11はROM12等に格納されている各
種プログラムにしたがってこのホストコンピュータ1の
全体動作を制御する中央演算処理装置であり、ディスク
制御部13を介してディスク14から取り込んだデータ
をRAM15に格納したり、RAM15内のデータをデ
ィスク14に登録保存し、更に、通信制御部16を介し
てターミナル装置2との間でデータの送受信を行う
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS. FIG. 1 shows a host computer 1 on the server side and a terminal device 2 on the client side.
3 is a block diagram showing a configuration of a host computer 1 in a data communication system for transmitting and receiving data to and from. The CPU 11 is a central processing unit that controls the overall operation of the host computer 1 in accordance with various programs stored in the ROM 12 and the like, and stores data fetched from the disk 14 via the disk control unit 13 in the RAM 15 or The data in the RAM 15 is registered and stored in the disk 14, and the data is transmitted / received to / from the terminal device 2 via the communication control unit 16.

【0006】また、CPU11は複数のタスクを時分割
に並行処理可能なもので、キー入力部17や通信制御部
16から入力された処理起動指令にしたがってROM1
2内の処理プログラムを起動させたり、スケジューラに
よって処理開始時刻が検出されると、ROM12内の処
理プログラムを自動的に起動させる。ここで、複数のタ
スクを時分割に並行処理する際、CPU11はRAM1
5内のマルチタスク管理テーブル15−1、マルチタス
クパラメータメモリ15−2を参照することによりマル
チタスクを実行する。
The CPU 11 is capable of processing a plurality of tasks in parallel in a time-sharing manner, and the ROM 1 is operated in accordance with a processing start command input from the key input unit 17 or the communication control unit 16.
When the processing program in 2 is started or the processing start time is detected by the scheduler, the processing program in the ROM 12 is automatically started. Here, when a plurality of tasks are processed in parallel in a time-sharing manner, the CPU 11 is
The multitask is executed by referring to the multitask management table 15-1 and the multitask parameter memory 15-2 in FIG.

【0007】マルチタスク管理テーブル15−1は図2
に示すように起動プログラム名と、割り当て使用率とを
対応付けて記憶する構成となっている。ここで割り当て
使用率は各タスク毎に単位時間当たりどの程度の割合で
処理されているかを示すもので、マルチタスク実行時に
おいて必要に応じてその値は所定時間毎(例えば1分間
毎)に書き替えられる。つまり、各タスク毎にRAM1
5に設定されている割り当て使用率は、通常、タスク数
に応じた均一の値に設定されているが、あるタスクの割
り当て使用率が変更されると、それに応じて他のタスク
の割り当て使用率も変更されるもので、その変更は所定
時間毎に行われる。このマルチタスク管理テーブル15
−1に記憶されているタスク毎の割り当て使用率に応じ
てCPU11は複数のタスクを時分割に並行処理する。
つまり、CPU11は単位時間当たりどの程度の割合で
各タスクを処理するかをマルチタスク管理テーブル15
−1内の対応する割り当て使用率に基づいて決定し、こ
れにしたがって複数のタスクを時分割に並行処理する。
The multitask management table 15-1 is shown in FIG.
As shown in FIG. 5, the boot program name and the allocation usage rate are stored in association with each other. Here, the assigned usage rate indicates how much of each task is processed per unit time, and the value is written at predetermined time intervals (for example, every 1 minute) as needed during multitask execution. Can be replaced. In other words, RAM1 for each task
The allocation usage rate set to 5 is normally set to a uniform value according to the number of tasks, but when the allocation usage rate of a task is changed, the allocation usage rate of other tasks is correspondingly changed. Is also changed, and the change is performed every predetermined time. This multitask management table 15
The CPU 11 processes a plurality of tasks in parallel in a time-sharing manner according to the allocation usage rate of each task stored in -1.
That is, the CPU 11 determines at what rate each task is processed per unit time by the multi-task management table 15.
It decides based on the corresponding allocation utilization in -1, and according to this, several tasks are processed in parallel in time division.

【0008】マルチタスクパラメータメモリ15−2は
図3に示すような各種のパラメータを記憶するもので、
このパラメータは各タスク毎の割り当て使用率を求める
ための変数データであり、CPU11はマルチタスクパ
ラメータメモリ15−2を参照してマルチタスク管理テ
ーブル15−1の内容(割り当て使用率)を書き替え
る。ここで、パラメータREC1〜REC4は件数(レ
コード数)パラメータであり、パラメータTIME1〜
TIME3は時間パラメータであり、その内容は図3に
示す如く定義されている。
The multitask parameter memory 15-2 stores various parameters as shown in FIG.
This parameter is variable data for obtaining the allocation usage rate for each task, and the CPU 11 refers to the multitask parameter memory 15-2 to rewrite the contents (allocation usage rate) of the multitask management table 15-1. Here, the parameters REC1 to REC4 are the number of records (the number of records), and the parameters TIME1 to
TIME3 is a time parameter, the content of which is defined as shown in FIG.

【0009】次に、ホストコンピュータ1の動作を図4
および図5に示すフローチャートにしたがって説明す
る。図4はマルチタスクを管理する場合の動作を示した
フローチャートであり、ある業務処理の記動が指定され
ることによって実行開始される。先ず、業務処理の記動
が指定されると、その処理プログラムが起動されると共
に、マルチタスク管理プログラムが起動される。このマ
ルチタスク管理プログラムにしたがってCPU11は、
先ずその起動プグラム名をマルチタスク管理テーブル1
5−1に設定すると共に、割り当て使用率をマルチタス
ク管理テーブル15−1に設定する(ステップA1)。
この場合、割り当て使用率は通常、現在のマルチタスク
数に応じて均等分割された値となる。いま、タスク数が
「2」であれば、割り当て使用率として「50%」が設
定されるが、タスク数が「2」であっても50%未満の
値が設定されることもある。つまり、他方のタスクの割
り当て使用率に応じた値となるが、通常は均等分割され
た値となる。
Next, the operation of the host computer 1 will be described with reference to FIG.
And it demonstrates according to the flowchart shown in FIG. FIG. 4 is a flow chart showing the operation in the case of managing multi-tasks, and the execution is started when the recording of a certain business process is designated. First, when the writing of the business process is designated, the processing program is started and the multitask management program is also started. According to this multitask management program, the CPU 11
First, the name of the startup program is the multitask management table 1
5-1 and the allocation utilization rate are set in the multitask management table 15-1 (step A1).
In this case, the allocation usage rate is usually a value evenly divided according to the current number of multitasks. Now, if the number of tasks is "2", "50%" is set as the allocation utilization rate, but even if the number of tasks is "2", a value less than 50% may be set. In other words, the value will be a value according to the allocation usage rate of the other task, but will normally be a value evenly divided.

【0010】次に、業務起動時に、この処理の終了を要
求するための時間(緊急性を要する業務の場合に、この
指定業務全体をどの位の時間で処理してほしいかを要求
するための時間)がキー入力部17から入力されたり、
ターミナル装置2から送信されて来たかをチェックする
(ステップA2)。ここで、指定業務の処理要求時間が
入力指定されなければ、ステップA18に進み、マルチ
タスク管理テーブル15−1から当該処理の起動プログ
ラム名および割り当て使用率を消去し、マルチタスク管
理処理はこの時点で終了するが、指定業務の処理要求時
間が入力指定されると、ステップA3に進み、マルチタ
スクパラメータメモリ15−2の内容を初期化して各パ
ラメータを「0」に設定する。
Next, at the time of starting a business, a time for requesting the end of this processing (in the case of an urgent business, a time required for processing the entire designated business is requested. Time) is input from the key input unit 17,
It is checked whether the data has been transmitted from the terminal device 2 (step A2). Here, if the processing request time of the designated work is not input and designated, the process proceeds to step A18, and the starting program name and the assigned usage rate of the processing are deleted from the multitask management table 15-1. When the processing request time of the designated work is input and designated, the process proceeds to step A3, the contents of the multitask parameter memory 15-2 are initialized, and each parameter is set to "0".

【0011】そして、CPU11は指定業務の処理対象
ファイルをアクセスし、指定業務全体の処理件数(例え
ばレコード数)を検出し、この処理件数をパラメータR
EC1としてマルチタスクパラメータメモリ15−2に
セットすると共に(ステップA4)、入力指定された処
理要求時間(分単位)を取り込んで、パラメータTIM
E1としてマルチタスクパラメータメモリ15−2にセ
ットする(ステップA5)。いま、指定業務の全体処理
件数として「66000」件、指定業務の全体処理要求
時間として3時間(180分)がマルチタスクパラメー
タメモリ15−2にセットされたものとする。
Then, the CPU 11 accesses the processing target file of the designated job, detects the number of processing (for example, the number of records) of the entire designated job, and sets this number of processing as a parameter R.
EC1 is set in the multitask parameter memory 15-2 (step A4), and the input request processing time (in minutes) is fetched, and the parameter TIM is set.
It is set in the multitask parameter memory 15-2 as E1 (step A5). Now, it is assumed that "66000" is set as the total number of processings of the specified work and 3 hours (180 minutes) is set as the total processing request time of the specified work in the multitask parameter memory 15-2.

【0012】すると、CPU11は一定時間(例えば1
分間)、マルチタスク管理処理をウエイトする(ステッ
プA6)。この間に業務処理が進行し、これによって業
務処理ルーチンから処理済み件数が転送されて来ると、
この処理済み件数をマルチタスクパラメータメモリ15
−2にセットする(ステップA7)。すなわち、パラメ
ータREC2は現時点までの処理済み累計件数であり、
今回の処理済み件数をパラメータREC2の値に加算す
る処理が行われる。次に、今回の所定時間(1分間)当
たりの処理件数を求めるために、パラメータREC2の
値からパラメータREC3の値を減算し、その演算結果
をパラメータREC3としてマルチタスクパラメータメ
モリ15−2にセットする(ステップA8)。ここで、
最初、パラメータREC2、REC3はステップA3の
初期化処理によってそれぞれ「0」に設定されているた
め、始めの1分間の処理済み件数がパラメータREC2
にセットされると(ステップA7)、パラメータREC
3の値はそのままパラメータREC2の値となる。
Then, the CPU 11 has a fixed time (for example, 1
For a period of time), the multitask management process is waited (step A6). During this time, business processing progresses, and when this causes the number of processed cases to be transferred from the business processing routine,
This processed number is stored in the multitask parameter memory 15
-2 (step A7). That is, the parameter REC2 is the cumulative number of processed records up to the present time,
A process of adding the number of processed items this time to the value of the parameter REC2 is performed. Next, in order to obtain the number of processings per predetermined time (1 minute) this time, the value of the parameter REC3 is subtracted from the value of the parameter REC2, and the calculation result is set in the multitask parameter memory 15-2 as the parameter REC3. (Step A8). here,
Initially, the parameters REC2 and REC3 are each set to "0" by the initialization process of step A3, so the number of processed items in the first minute is the parameter REC2.
Is set to (step A7), the parameter REC
The value of 3 becomes the value of the parameter REC2 as it is.

【0013】次に、CPU11は現時点までの未処理件
数を求めるために、パラメータREC1の値からパラメ
ータREC2の値を減算し、その演算結果をパラメータ
REC4としてマルチタスクパラメータメモリ15−2
にセットする(ステップA9)。いま、最初の1分間の
処理件数が「300」件であるとすると、残り件数とし
て「65700」件が求められる。更に、現時点までの
処理累計時間を求めるために、パラメータTIME2の
値に所定時間(1分間)を加算する処理が行われる(ス
テップA10)。これによってパラメータTIME2は
現時点までの処理に要した累計時間(分単位)となり、
パラメータTIME1の値からこのパラメータTIME
2の値を減算することにより現時点までの残り処理時間
を求め、パラメータTIME3としてマルチタスクパラ
メータメモリ15−2にセットする(ステップA1
1)。したがって、最初の1分間の経過時には、パラメ
ータTIME3の値は「179」分となる。
Next, the CPU 11 subtracts the value of the parameter REC2 from the value of the parameter REC1 in order to obtain the number of unprocessed items up to the present time, and the calculation result is used as the parameter REC4 in the multitask parameter memory 15-2.
(Step A9). Now, assuming that the number of processing in the first one minute is "300", "65700" is required as the remaining number. Further, a process of adding a predetermined time (1 minute) to the value of the parameter TIME2 is performed in order to obtain the cumulative processing time up to the present time (step A10). As a result, the parameter TIME2 becomes the cumulative time (in minutes) required for the processing up to the present time,
From the value of the parameter TIME1, this parameter TIME
The remaining processing time up to the present time is obtained by subtracting the value of 2 and set in the multitask parameter memory 15-2 as the parameter TIME3 (step A1).
1). Therefore, when the first one minute has elapsed, the value of the parameter TIME3 becomes "179" minutes.

【0014】このようにして各種のパラメータを算出す
る処理が終ると、ステップA12に進み、業務処理ルー
チンから業務終了通知が転送されて来たかをチェックす
るが、いま、最初の1分間の経過時であるので、ステッ
プA13に進み、残り時間内に指定業務処理を完了する
ためには今後、1分間当たりどの位の件数を処理すべき
かを求める。すなわち、パラメータREC4は現時点ま
での未処理件数であり、また、パラメータTIME3は
現時点までの残り処理時間であるため、パラメータRE
C4の値をパラメータTIME3の値で除算することに
より、残り時間内に処理すべき1分間当たりの処理件数
を求め、パラメータREC5としてマルチタスクパラメ
ータメモリ15−2にセットする。いま、現時点までの
未処理件数は「65700」件で、残り処理時間は「1
79」分であるため、残り時間内に処理すべき1分間当
たりの処理件数として「367件/分」が求められる。
When the processing for calculating various parameters is completed in this way, the process proceeds to step A12, where it is checked whether a business end notification has been transferred from the business processing routine. Now, when the first one minute has elapsed. Therefore, the process proceeds to step A13, and in order to complete the designated job processing within the remaining time, the number of cases to be processed per minute in the future is calculated. That is, the parameter REC4 is the number of unprocessed items up to the current time, and the parameter TIME3 is the remaining processing time up to the current time.
By dividing the value of C4 by the value of the parameter TIME3, the number of processings per minute to be processed within the remaining time is obtained, and is set in the multitask parameter memory 15-2 as the parameter REC5. Currently, the number of unprocessed items up to the present time is “65700”, and the remaining processing time is “1”.
Since it is 79 "minutes," 367 cases / minute "is obtained as the number of processing cases per minute to be processed within the remaining time.

【0015】そして、パラメータREC3の値とパラメ
ータREC5の値とを比較し(ステップA14)、その
結果、「REC3<REC5」の条件が成立すれば、ス
テップA15〜A17の実行に移るが、不成立ならばA
15〜A17はスキップされる。つまり、パラメータR
EC3は今回の1分当たりの処理件数であり、またパラ
メータREC5は残り時間内に処理すべき1分間当たり
の処理件数で、ステップA14はパラメータREC3、
REC4の値を比較することによって残り時間内に処理
を完了するために今後も今回の処理件数で足りるか否か
をチェックする。ここで、「REC3<REC5」であ
れば、今回の処理件数では足りず、今後、1分間当たり
の処理件数を増やす必要があるため、ステップA15〜
A17の実行に移る。先ず、CPU11はパラメータR
EC3とREC5との割り合いを算出する(ステップA
15)。いま、今回の1分間当たりの処理件数は「30
0」件であり、また残り時間内に処理すべき1分間当た
りの処理件数は「367」件であるため、その処理件数
のアップ率は「22%」となる。次に、CPU11はマ
ルチタスク管理テーブル15−1をアクセスし、現タス
クの割り当て使用率(この場合、50%)を取り込む
(ステップA16)。そして割り当て使用率の変更処理
が行われる(ステップA17)。
Then, the value of the parameter REC3 and the value of the parameter REC5 are compared (step A14). As a result, if the condition of "REC3 <REC5" is satisfied, the process proceeds to steps A15 to A17, but if not satisfied. If A
15 to A17 are skipped. That is, the parameter R
EC3 is the number of processings per minute this time, parameter REC5 is the number of processings per minute to be processed within the remaining time, and step A14 is the parameter REC3,
By comparing the values of REC4, it is checked whether or not the number of processings this time is sufficient in order to complete the processing within the remaining time. Here, if “REC3 <REC5”, the number of processings this time is not enough and it is necessary to increase the number of processings per minute in the future.
Move on to execution of A17. First, the CPU 11 sets the parameter R
Calculate the ratio between EC3 and REC5 (Step A
15). Now, the number of processing per minute this time is "30
Since the number of cases is “0” and the number of cases to be processed within the remaining time per minute is “367”, the increase rate of the number of cases is “22%”. Next, the CPU 11 accesses the multitask management table 15-1 and fetches the allocation usage rate (50% in this case) of the current task (step A16). Then, the process of changing the allocation usage rate is performed (step A17).

【0016】図5は割り当て使用率変更処理を示したフ
ローチャートである。先ず、CPU11は新たな割り当
て使用率を求めるために、ステップA16で取得した現
タスクの割り当て使用率に、ステップA15で算出され
た割り合いxを加算し、その結果を新たな割り当て使用
率とする(ステップB1)。いま、現在の割り当て使用
率「50%」に割り合いxとして「22%」が加算され
た値「72%」が新たな使用率yとして求められる。こ
の新たな使用率yが100%を越えなければ(ステップ
B2)、この使用率yに基づいてマルチタスク管理テー
ブル15−1の内容が書き替えられる(ステップB
3)。すなわち、現タスクの使用率が「50%」から
「72%」に書き替えられると共に、他のタスクの使用
率も「50%」から「100−72=28%」に書き替
えられる。なお、ステップB2でyの値が100%を越
える場合には、マルチタスク管理テーブル15−1の変
更処理は行われない。
FIG. 5 is a flowchart showing the allocation utilization rate changing process. First, in order to obtain a new allocation usage rate, the CPU 11 adds the share x calculated in step A15 to the allocation usage rate of the current task acquired in step A16, and sets the result as a new allocation usage rate. (Step B1). Now, a value "72%" obtained by adding "22%" as a share x to the current allocation utilization rate "50%" is obtained as a new utilization rate y. If the new usage rate y does not exceed 100% (step B2), the contents of the multitask management table 15-1 are rewritten based on the usage rate y (step B).
3). That is, the usage rate of the current task is rewritten from "50%" to "72%", and the usage rates of other tasks are also rewritten from "50%" to "100-72 = 28%". If the value of y exceeds 100% in step B2, the change processing of the multitask management table 15-1 is not performed.

【0017】このようにしてマルチタスク管理テーブル
15−1の変更処理が終ると、図4のステップA6に戻
り、以下、1分毎に上述の動作が繰り返される。そし
て、業務処理ルーチンから業務処理終了通知を受け取る
と(ステップA12)、CPU11はマルチタスク管理
テーブル15−1からそのプログラム名および使用率を
消去する(ステップA18)。この場合、現在起動中の
他のタスクが有れば、その使用率の変更処理も合わせて
行われる。いま1つのタスクの処理が終了したので、通
常、残りのタスクの使用率は現在のタスク数に応じた値
となる。
When the modification process of the multitask management table 15-1 is completed in this way, the process returns to step A6 in FIG. 4 and the above operation is repeated every minute thereafter. Then, when the business processing end notification is received from the business processing routine (step A12), the CPU 11 erases the program name and the usage rate from the multitask management table 15-1 (step A18). In this case, if there is another task that is currently activated, the usage rate changing process is also performed. Since the processing of one task is completed, the usage rate of the remaining tasks usually has a value according to the current number of tasks.

【0018】以上のように複数のタスクが時分割に並行
処理されている状態のまま任意のタスクについいて所望
する時間内に終了するようにその処理時間を短縮するこ
とができるので、緊急性を要する処理については他のタ
スクに優先して処理スピードを上げることが可能とな
る。また、マルチタスク管理テーブル15−1を設けた
ので、マルチタスクの監視を容易に行うことができる。
As described above, the processing time can be shortened so that a plurality of tasks can be completed within a desired time with respect to an arbitrary task while being concurrently processed in a time-sharing manner. As for the required processing, it is possible to prioritize other tasks and increase the processing speed. Since the multitask management table 15-1 is provided, it is possible to easily monitor the multitask.

【0019】なお、指定された処理要求時間内に処理が
完了しなかった場合、その旨をターミナル装置2へ通知
するようにしてもよい。また、この場合、予測終了時刻
を求めてターミナル装置2へ通知するようにしてもよ
い。
If the processing is not completed within the designated processing request time, the fact may be notified to the terminal device 2. In this case, the predicted end time may be obtained and notified to the terminal device 2.

【0020】[0020]

【発明の効果】この発明によれば、複数のタスクが時分
割に並行処理されている状態のまま任意のタスクについ
て所望する時間内に終了するようにその処理時間を短縮
することができるので、緊急性を要する処理については
他のタスクに優先して処理スピードを上げることが可能
となる。
As described above, according to the present invention, the processing time can be shortened so that a plurality of tasks can be completed within a desired time for an arbitrary task while being concurrently processed in a time-sharing manner. With regard to urgent processing, it becomes possible to prioritize other tasks and increase the processing speed.

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

【図1】ホストコンピュータ1のブロック構成図。FIG. 1 is a block configuration diagram of a host computer 1.

【図2】マルチタスク管理テーブル15−1の構成を示
した図。
FIG. 2 is a diagram showing a configuration of a multitask management table 15-1.

【図3】マルチタスクパラメータメモリ15−2の内容
を説明するための図。
FIG. 3 is a diagram for explaining the contents of a multitask parameter memory 15-2.

【図4】マルチタスク管理処理を示したフローチャー
ト。
FIG. 4 is a flowchart showing a multitask management process.

【図5】図4のステップA17(使用率変更処理)を示
したフローチャート。
5 is a flowchart showing step A17 (usage rate changing process) of FIG. 4. FIG.

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

1 ホストコンピュータ 2 ターミナル装置 11 CPU 12 ROM 15 RAM 15−1 マルチタスク管理テーブル 15−2 マルチタスクパラメータメモリ 16 通信制御部 17 キー入力部 1 Host Computer 2 Terminal Device 11 CPU 12 ROM 15 RAM 15-1 Multitask Management Table 15-2 Multitask Parameter Memory 16 Communication Control Section 17 Key Input Section

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】複数のタスクを時分割に並行処理するデー
タ処理装置において、 時分割に並行処理される各タスク毎に、単位時間当たり
どの程度の割合で処理されているかの割り当て使用率を
記憶する使用率記憶手段と、 この使用率記憶手段に記憶されているタスク毎の割り当
て使用率に応じて複数のタスクを時分割に並行処理する
処理実行手段と、 任意のタスクに対応付けてその処理終了時点を要求する
ための終了タイミング情報を入力する入力手段と、 この入力手段から入力された終了タイミング情報と現在
までの処理進行状態とに基づいて当該タスクが終了タイ
ミング情報によって示される時点までに終了するか否か
を判別する判別手段と、 この判別手段によって終了しないことが判別された際
に、当該タスクに対する現在の割り当て使用率を上げる
と共に、他のタスクの割り当て使用率をそれに応じて変
更するタスク制御手段とを具備したことを特徴とするデ
ータ処理装置。
1. A data processing apparatus that processes a plurality of tasks in parallel in a time-sharing manner, and for each task that is concurrently processed in a time-sharing manner, stores the allocation utilization rate at what rate is being processed per unit time. Utilization rate storage means, processing execution means for performing parallel processing of a plurality of tasks in time division according to the assigned utilization rate for each task stored in the utilization rate storage means, and processing associated with any task Input means for inputting the end timing information for requesting the end time point, and based on the end timing information input from the input means and the processing progress state up to the present time, by the time point when the task is indicated by the end timing information A determination unit that determines whether or not to end the task, and a current assignment to the task when the determination unit determines that the task does not end. With increasing utilization, data processing apparatus characterized by comprising a task control means for changing accordingly the allocation usage other tasks.
【請求項2】前記入力手段はターミナル装置から送信さ
れて来た終了タイミング情報を受信する通信制御手段で
あることを特徴とする請求項(1)記載のデータ処理装
置。
2. The data processing apparatus according to claim 1, wherein the input means is a communication control means for receiving the end timing information transmitted from the terminal device.
JP34542195A 1995-12-11 1995-12-11 Data processor Pending JPH09160792A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34542195A JPH09160792A (en) 1995-12-11 1995-12-11 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34542195A JPH09160792A (en) 1995-12-11 1995-12-11 Data processor

Publications (1)

Publication Number Publication Date
JPH09160792A true JPH09160792A (en) 1997-06-20

Family

ID=18376494

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34542195A Pending JPH09160792A (en) 1995-12-11 1995-12-11 Data processor

Country Status (1)

Country Link
JP (1) JPH09160792A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008242510A (en) * 2007-03-23 2008-10-09 Nec Corp System and method of allocating resource to job, and program
WO2010103652A1 (en) * 2009-03-13 2010-09-16 グローリー株式会社 Coin packaging machine
WO2020095398A1 (en) * 2018-11-08 2020-05-14 三菱電機株式会社 Information analysis device and information analysis method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008242510A (en) * 2007-03-23 2008-10-09 Nec Corp System and method of allocating resource to job, and program
WO2010103652A1 (en) * 2009-03-13 2010-09-16 グローリー株式会社 Coin packaging machine
JP5118248B2 (en) * 2009-03-13 2013-01-16 グローリー株式会社 Coin wrapping machine
WO2020095398A1 (en) * 2018-11-08 2020-05-14 三菱電機株式会社 Information analysis device and information analysis method

Similar Documents

Publication Publication Date Title
US9223625B2 (en) Client server system and method for executing an application utilizing distributed objects
KR100509794B1 (en) Method of scheduling jobs using database management system for real-time processing
US5958003A (en) Method and computer system for improving the response time of a computer system to a user request
US20050246705A1 (en) Method for dynamically allocating and managing resources in a computerized system having multiple consumers
JPH0628053B2 (en) Resource allocation control method for multiprocessor system
EP0724210A1 (en) System and method for managing operation of computer output devices
US10908963B2 (en) Deterministic real time business application processing in a service-oriented architecture
CN111124674B (en) Management method of hardware resources, storage medium and terminal
CN113485833A (en) Resource prediction method and device
JPH09160792A (en) Data processor
US7827215B2 (en) Real-time operation by a diskless client computer
CN115004170B (en) Optimized query scheduling according to data freshness requirements
JP2008225641A (en) Computer system, interrupt control method and program
JP6724631B2 (en) Information processing device and program
JP2900438B2 (en) File recall method
CN118377439B (en) Hard disk IO control method, product, equipment and storage medium
JP4155403B2 (en) System configuration control method, processing program thereof, and implementation system thereof
JP7478918B2 (en) Task intelligent processing method based on distributed heterogeneous system
JP2001142723A (en) Resource allocating method, computer system, and recording medium
JP2006091969A (en) Information processor and scheduling method
JPH11175357A (en) Task management method
JPH0378837A (en) Task control system
JP2001249819A (en) Program execution right managing device, its method and computer readable recording medium in which program to make computer execute the same method is recorded
JPH08292956A (en) Device and method for data base management
JPS63292456A (en) Control system for medium assignment of plural medium containing type data recorder