JPH0916416A - Waiting time adjustment method enabling priority allocation of resources and resource allocation method capable of priority processing - Google Patents
Waiting time adjustment method enabling priority allocation of resources and resource allocation method capable of priority processingInfo
- Publication number
- JPH0916416A JPH0916416A JP7161029A JP16102995A JPH0916416A JP H0916416 A JPH0916416 A JP H0916416A JP 7161029 A JP7161029 A JP 7161029A JP 16102995 A JP16102995 A JP 16102995A JP H0916416 A JPH0916416 A JP H0916416A
- Authority
- JP
- Japan
- Prior art keywords
- processing
- processing request
- waiting time
- priority
- request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
(57)【要約】
【目的】 本発明は、資源の優先割付けを可能にする待
ち時間調整方式に関し、資源への処理依頼の輻輳度に応
じて待ち時間を調整することにある。
【構成】 優先度の異なる複数の処理依頼手段2からの
処理依頼要求を受け取って処理依頼手段に対し資源を割
り付ける割付け手段4を有するディジタル装置におい
て、優先度の低い処理依頼手段での処理依頼に用いられ
る待ち時間が設定される待ち時間設定手段6と、前記割
付け手段4への処理依頼情報から前記割付け手段4への
処理依頼の輻輳度を検出する検出手段8と、該検出手段
8で検出された輻輳度に応じて前記待ち時間設定手段6
の待ち時間を調整する調整手段10とを優先度の低い処
理依頼手段に設けたことを特徴とする。
(57) [Summary] [Object] The present invention relates to a waiting time adjustment method that enables priority allocation of resources, and adjusts the waiting time according to the congestion degree of processing requests to the resources. A digital device having an allocating means 4 for receiving processing request requests from a plurality of processing requesting means 2 having different priorities and allocating resources to the processing requesting means is used for processing requesting by the processing requesting means having a low priority The waiting time setting means 6 for setting the waiting time to be used, the detecting means 8 for detecting the congestion degree of the processing request to the allocating means 4 from the processing request information to the allocating means 4, and the detecting means 8 for detecting The waiting time setting means 6 according to the congestion degree
The adjusting means 10 for adjusting the waiting time is provided in the processing requesting means having a low priority.
Description
【0001】[0001]
【産業上の利用分野】本発明は、処理依頼の制御に用い
る待ち時間の調整、及びこれを用いる資源の優先割付け
を可能とする待ち時間調整方式及び優先処理可能な資源
割付け方式に関する。ディジタル制御処理装置において
は、プロセッサを用いて各種のソフトウェアをマルチタ
スクで動作させるように構成されるものがある。そのマ
ルチタスクの各タスクがハードディスク装置等の入出力
装置を同時に使用したい状態が発生したとき、現在のO
S(オペレーションシステム)では、タスクの優先度の
処理で入出力装置の使用を制限するようには構成されて
いる。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a waiting time adjusting method and a resource allocating method capable of prioritizing processing, which makes it possible to adjust a waiting time used for controlling a processing request and to prioritize resources using the waiting time. Some digital control processing devices are configured to operate various software in a multitasking manner using a processor. When each task of the multitasking wants to use the input / output device such as the hard disk device at the same time, the current
The S (operation system) is configured to restrict the use of the input / output device in the processing of the priority of the task.
【0002】[0002]
【従来の技術】しかし、従来のマルチタスク処理方式で
は、優先度の低いタスクが動作状態にあると、入出力装
置(資源)の使用を開始した優先度の低いタスクが資源
へのアクセスを完了しない限り当該タスクがあたかも優
先度が高いかの如く見え、前記優先度の高いタスクであ
ったとしても、入出力装置を使用できない状態となり、
入出力装置をマルチタスク上で使用することが困難にな
っている。However, in the conventional multi-task processing method, when a task with a low priority is in an operating state, the task with a low priority that has started to use an I / O device (resource) completes access to the resource. Unless the task has a high priority, the I / O device cannot be used even if the task has a high priority.
It is difficult to use I / O devices on multitasking.
【0003】[0003]
【発明が解決しようとする課題】それは、マルチタスク
処理方式においては、或るタスクが入出力装置へアクセ
スし得る状態になつた後、そのタスクでの依頼処理が終
了したという応答が入出力装置のドライバからタスクに
返って来ないと、次のアクセスが許容されず、各タスク
からの処理依頼は、メールボツクスに待ち行列として届
いているためである。特に、優先度の高いタスクと、優
先度の低いタスクとがマルチタスクで実行される場合、
実行されるタスクの内の優先度が低いタスクが頻繁に入
出力装置をアクセスするようなタスク(アプリケーショ
ン)の場合に、優先度の高いタスクが入出力装置を使用
しようとしても、優先度の高いタスクと優先度の低いタ
スクとの間で交互にしか処理ができず、入出力装置の使
用効率が低下する。In the multi-task processing system, a response that the request processing by the task is completed after a certain task becomes accessible to the input / output device is received. This is because the next access is not permitted unless the driver returns to the task and the processing request from each task arrives at the mail box as a queue. Especially when a high priority task and a low priority task are executed in multitask,
If a task (application) that has a low priority among the tasks to be executed frequently accesses the I / O device, even if a task with a high priority tries to use the I / O device, it has a high priority. Processing can be performed only alternately between tasks and tasks with low priority, which reduces the efficiency of use of the I / O device.
【0004】本発明は、斯かる技術的課題に鑑みて創作
されたもので、その1つの目的は、資源への処理依頼の
輻輳度に応じて待ち時間を調整する資源の優先割付けを
可能にする待ち時間調整方式を提供することにある。The present invention was created in view of such a technical problem, and one of its objects is to enable priority allocation of resources for adjusting the waiting time according to the congestion degree of processing requests to the resources. The purpose is to provide a waiting time adjustment method.
【0005】他の目的は、優先度の低い処理依頼を輻輳
度に応じて可変的に遅らせるようにして優先度の高い処
理依頼に対して資源を優先的に割り付ける優先処理可能
な資源割付け方式を提供することにある。Another object of the present invention is to provide a resource allocation method capable of preferentially allocating resources to high-priority processing requests by variably delaying low-priority processing requests according to the congestion level. To provide.
【0006】[0006]
【課題を解決するための手段】図1は、請求項1乃至請
求項3記載の発明の原理ブロック図を示す。図2は、請
求項4乃至請求項8記載の発明の原理ブロック図を示
す。FIG. 1 shows a block diagram of the principle of the invention according to claims 1 to 3. FIG. 2 shows a block diagram of the principle of the invention according to claims 4 to 8.
【0007】請求項1記載の発明は、図1に示すよう
に、優先度の異なる複数の処理依頼手段2からの処理依
頼要求を受け取って処理依頼手段に対し資源を割り付け
る割付け手段4を有するディジタル制御処理装置におい
て、優先度の低い処理依頼手段での処理依頼に用いられ
る待ち時間が設定される待ち時間設定手段6と、前記割
付け手段4への処理依頼情報から前記割付け手段4への
処理依頼の輻輳度を検出する検出手段8と、該検出手段
8で検出された輻輳度に応じて前記待ち時間設定手段6
の待ち時間を調整する調整手段10とを優先度の低い処
理依頼手段に設けたことを特徴とする。According to the first aspect of the present invention, as shown in FIG. 1, a digital unit having allocation means 4 for receiving processing request requests from a plurality of processing request means 2 having different priorities and allocating resources to the processing request means. In the control processing device, the waiting time setting means 6 for setting the waiting time used for the processing request by the processing requesting means of low priority, and the processing request to the allocating means 4 from the processing request information to the allocating means 4. Detecting means 8 for detecting the congestion degree of the above, and the waiting time setting means 6 according to the congestion degree detected by the detecting means 8.
The adjusting means 10 for adjusting the waiting time is provided in the processing requesting means having a low priority.
【0008】請求項2記載の発明は、図1に示すよう
に、請求項1記載の資源の優先割付けを可能にする待ち
時間調整方式において、輻輳度は実際の処理時間及び予
測時間から判定することを特徴とする。請求項3記載の
発明は、図1に示すように、請求項1記載の資源の優先
割付けを可能にする待ち時間調整方式において、輻輳度
は処理依頼の履歴情報から判定することを特徴とする。According to a second aspect of the present invention, as shown in FIG. 1, in the waiting time adjustment method that enables priority allocation of resources according to the first aspect, the congestion degree is determined from the actual processing time and the predicted time. It is characterized by As shown in FIG. 1, the invention according to claim 3 is characterized in that, in the waiting time adjusting method that enables priority allocation of resources according to claim 1, the congestion degree is determined from history information of processing requests. .
【0009】請求項4記載の発明は、図2に示すよう
に、優先度の異なる複数の処理依頼手段2からの処理依
頼要求を受け取って処理依頼手段に対し資源を割り付け
るものであって、処理依頼が競合するとき、後発の処理
依頼をメールボックスに入れるドライバ4Aを有するデ
ィジタル制御処理装置において、優先度の低い処理依頼
手段での処理依頼に用いられる待ち時間が設定される待
ち時間設定手段6と、前記ドライバ4Aへの処理依頼情
報から前記ドライバ4Aへの処理依頼の輻輳度を検出す
る検出手段8と、該検出手段8で検出された輻輳度に応
じて前記待ち時間設定手段6の待ち時間を調整する調整
手段10とを優先度の低い処理依頼手段に設け、優先度
の低い処理依頼手段からの処理依頼が前記ドライバ4A
に対して為された場合に前記検出手段8により輻輳度の
上昇が検出されたとき、前記調整手段10により待ち時
間に予め決められた時間を加算すると共に、前記処理依
頼を前記メールボックスに入れて可及的に優先度の高い
処理依頼についての資源へのアクセスを許容し、前記検
出手段8により輻輳度の下降が検出されたとき、前記調
整手段10により待ち時間から予め決められた時間を減
算し、前記メールボックスに先行する処理依頼が残って
いるなら、当該処理依頼を前記メールボックスに入れる
と共に、該メールボックス内の待ち順位最高の処理依頼
についての資源へのアクセスを許容し、残っていないな
ら、優先度の低い処理依頼手段からの処理依頼について
の資源へのアクセスを許容することを特徴とする。According to the fourth aspect of the present invention, as shown in FIG. 2, processing request requests from a plurality of processing request means 2 having different priorities are received and resources are allocated to the processing request means. When the requests conflict with each other, in the digital control processing device having the driver 4A for inserting the subsequent processing request into the mailbox, the waiting time setting means 6 for setting the waiting time used for the processing request by the processing requesting means of low priority And a detecting means 8 for detecting the congestion degree of the processing request to the driver 4A from the processing request information to the driver 4A, and the waiting time setting means 6 waiting depending on the congestion degree detected by the detecting means 8. The adjusting means 10 for adjusting the time is provided in the low-priority processing requesting means, and the processing request from the low-priority processing requesting means receives the driver 4A.
When an increase in the congestion degree is detected by the detecting means 8 in the case of the above, the adjusting means 10 adds a predetermined time to the waiting time and puts the processing request in the mailbox. When the detection unit 8 detects a decrease in the congestion level, the adjustment unit 10 sets a predetermined time from the waiting time. If there is a processing request that is subtracted and precedes the mailbox, the processing request is placed in the mailbox and access to the resource for the processing request with the highest priority in the mailbox is allowed to remain. If not, access to the resource for the processing request from the processing requesting unit having a low priority is allowed.
【0010】請求項5記載の発明は、図2に示すよう
に、請求項4記載の優先処理可能な資源割付け方式にお
いて、輻輳度は実際の処理時間及び予測時間から判定す
ることを特徴とする。請求項6記載の発明は、図2に示
すように、請求項4記載の優先処理可能な資源割付け方
式において、輻輳度は処理依頼の履歴情報から判定する
ことを特徴とする。As shown in FIG. 2, the invention according to claim 5 is characterized in that, in the resource allocation method capable of preferential processing according to claim 4, the congestion degree is judged from an actual processing time and an estimated time. . As shown in FIG. 2, the invention according to claim 6 is characterized in that, in the resource allocation method capable of preferential processing according to claim 4, the congestion degree is determined from history information of a processing request.
【0011】請求項7記載の発明は、請求項4記載の優
先処理可能な資源割付け方式において、メールボックス
をアプリケーションプログラム及びミラー化処理タスク
毎に設けたことを特徴とする。請求項8記載の発明は、
図2に示すように、請求項4記載の優先処理可能な資源
割付け方式において、メールボックスをアプリケーショ
ンプログラム毎に設けたことを特徴とする。According to a seventh aspect of the present invention, in the resource allocation method capable of preferential processing according to the fourth aspect, a mailbox is provided for each application program and mirroring processing task. The invention according to claim 8 is
As shown in FIG. 2, in the resource allocation method capable of preferential processing according to claim 4, a mailbox is provided for each application program.
【0012】[0012]
【作用】請求項1記載の発明においては、優先度の低い
処理依頼手段2からの処理依頼において、割付け手段4
における輻輳度が検出手段8により検出される。その輻
輳度に応じて待ち時間設定手段6の待ち時間が調整され
る。従って、優先度の高い処理依頼等により前記輻輳度
が高くなると、優先度の低い処理依頼手段2による割付
け手段4への処理依頼は延期され、又低くなると短縮さ
れる。In the invention according to claim 1, when the processing request from the processing requesting means 2 having a low priority is made, the allocating means 4
The degree of congestion at is detected by the detecting means 8. The waiting time of the waiting time setting means 6 is adjusted according to the degree of congestion. Therefore, if the congestion degree becomes high due to a high-priority processing request or the like, the processing request to the allocating means 4 by the low-priority processing requesting means 2 is postponed or shortened if it becomes low.
【0013】これにより、優先度の高い処理依頼を優先
的に資源へ割付けるのに役立つ。従って、優先度の低い
処理依頼によつて優先度の高い処理依頼は、影響を受け
難くなる。請求項2記載の発明は、請求項1記載の発明
における輻輳度の検出に実際の処理時間及び予測時間を
用いるようにしたものである。This is useful for preferentially allocating high-priority processing requests to resources. Therefore, a processing request having a high priority due to a processing request having a low priority is less likely to be affected. According to the second aspect of the invention, the actual processing time and the predicted time are used for detecting the congestion degree in the first aspect of the invention.
【0014】請求項3記載の発明は、請求項1記載の発
明における輻輳度の検出に処理依頼の履歴情報を用いる
ようにしたものである。請求項4記載の発明は、請求項
1記載の発明により待ち時間の調整が為されつつ、優先
度の高い処理依頼を可能な限り優先的に処理し、輻輳度
が低下してきたら、優先度の低い処理依頼の処理を多く
行うようにしたものである。According to a third aspect of the present invention, processing request history information is used for detecting the degree of congestion in the first aspect of the invention. According to the invention described in claim 4, while the waiting time is adjusted by the invention described in claim 1, a processing request having a high priority is processed with priority as much as possible, and when the congestion level decreases, the priority level is changed. It is designed to perform many processing of low processing requests.
【0015】これにより、優先度の高い処理依頼の優先
処理を行うことができる。請求項5及び請求項6は、請
求項2及び請求項3に対応するものである。請求項7及
び請求項8は、メールボックスを処理依頼を発する処理
依頼手段毎に設け、優先度の高い処理依頼を優先処理す
るようにしたものである。As a result, it is possible to perform priority processing of a processing request having a high priority. Claims 5 and 6 correspond to claims 2 and 3. According to the seventh and eighth aspects, a mailbox is provided for each processing requesting unit that issues a processing request, and a processing request having a high priority is preferentially processed.
【0016】[0016]
【実施例】図3は、請求項1乃至請求項8記載の発明に
係る一実施例の装置全体構成図である。この実施例は、
伝送装置で実施する例を示す。図3において、30は伝
送装置、31はCPU、32はROM、34はRAM、
36はディスク装置である。CPU31、ROM32、
RAM34、及びディスク装置36は、バス38を介し
て接続されるように構成されている。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 3 is an overall configuration diagram of an apparatus according to an embodiment of the invention described in claims 1 to 8. This example is
An example implemented by a transmission device will be described. In FIG. 3, 30 is a transmission device, 31 is a CPU, 32 is a ROM, 34 is a RAM,
Reference numeral 36 is a disk device. CPU31, ROM32,
The RAM 34 and the disk device 36 are configured to be connected via a bus 38.
【0017】ROM32には、ブートプログラムが予め
格納されている。ディスク装置36には、各種のアプリ
ケーションプログラム(以下、アプリケーションプログ
ラムをAPで表し、APの後に数字を付して各AP間を
区別する。)が予め格納される。ディスク装置36のA
Pは、後述するようにして、RAM34上に当該AP対
応の所要のワークエリアを確保しつつ、読み込まれる。
RAM34上に読み込まれたAPは、CPU31で実行
される。その実行において入出力処理が必要になるとき
(例えば、ディスク装置36へのアクセスをしたいと
き、又は図示しない通信回線を介しての通信をしたいと
き)、伝送装置30に予め搭載されているOSを構成す
るAP対応のドライバに対して処理を依頼し、所望の処
理を遂行するように構成されている。ドライバ40に
は、メールボックス42が設けられている(図2参
照)。メールボックス42は、RAM34上に置かれ
る。A boot program is stored in advance in the ROM 32. In the disk device 36, various application programs (hereinafter, the application programs are represented by APs, and numbers are added after the APs to distinguish between the APs) are stored in advance. Disk device A
As will be described later, P is read while securing a required work area corresponding to the AP on the RAM 34.
The AP read on the RAM 34 is executed by the CPU 31. When the input / output processing is necessary for the execution (for example, when the user wants to access the disk device 36 or when he / she wants to communicate through a communication line not shown), the OS preinstalled in the transmission device 30 is It is configured to request processing from a driver corresponding to the constituent AP and perform desired processing. The driver 40 is provided with a mailbox 42 (see FIG. 2). The mailbox 42 is placed on the RAM 34.
【0018】図3、図4、及び図5において、APは、
図1の処理依頼手段2に対応し、ドライバ42は、図1
の割付け手段4に対応する。CPU31、及びRAM3
4は、図1の待ち時間設定手段6に対応し、CPU3
1、RAM34、及び図5に示すステップS8は、図1
の検出手段8に対応する。CPU31、RAM34及び
図5に示すステップS9,S10は、図1の調整手段1
0に対応する。In FIGS. 3, 4 and 5, AP is
Corresponding to the processing requesting means 2 of FIG.
Corresponds to the allocating means 4 of. CPU31 and RAM3
Reference numeral 4 corresponds to the waiting time setting means 6 in FIG.
1, RAM 34, and step S8 shown in FIG.
Corresponds to the detection means 8 of. The CPU 31, the RAM 34 and steps S9 and S10 shown in FIG. 5 are the adjusting means 1 of FIG.
Corresponds to 0.
【0019】前述のように構成される請求項1、請求項
2、請求項4及び請求項5記載の発明の実施例の動作を
以下に説明する。伝送装置30の電源立ち上げ時に、そ
の電源投入信号に応答してROM32からブートプログ
ラムが読み出されてCPU31に入力され、CPU31
で実行されることにより、ディスク装置36に予め格納
されている各APはRAM34に読み込まれ、マルチタ
スク方式でCPU31で実行される優先度の高い或るA
P(以下、AP1)が、伝送装置30に搭載されている
OSの内のディスク装置へのアクセスを管理するドライ
バに対して処理を依頼し、その処理が遂行されている状
態にあるものとする。このドライバは、従来方式になる
ドライバで、一時には1つの処理依頼に対してのみ応答
し、且つ応答した処理依頼の終了後にディスク装置36
への次の処理依頼に応答し得る構成となっている。な
お、図5に示す処理フローは、伝送装置30内に用意さ
れる複数のAPの内の優先度の低い方のAP側の処理フ
ローを示す。The operation of the embodiments of the present invention as defined in claim 1, claim 2, claim 4 and claim 5 configured as described above will be described below. When the power of the transmission device 30 is turned on, the boot program is read from the ROM 32 and input to the CPU 31 in response to the power-on signal, and the CPU 31
The AP stored in advance in the disk device 36 is read into the RAM 34 and executed by the CPU 31 in a multitasking manner.
It is assumed that P (hereinafter, AP1) requests the driver that manages access to the disk device of the OS installed in the transmission device 30 to perform processing, and the processing is being performed. . This driver is a conventional driver, and responds to only one processing request at a time, and after completion of the responding processing request, the disk device 36
It is configured to be able to respond to the next processing request to. The processing flow shown in FIG. 5 is the processing flow on the AP side having the lower priority of the plurality of APs prepared in the transmission device 30.
【0020】そのドライバに対してディスク装置36へ
の処理依頼の要求が優先度の低いAP2から発行された
ものとする。この新たな処理依頼の要求前にも、AP2
から1回乃至複数回の処理依頼の要求があつたが、メー
ルボックス42にはAP2の処理依頼はないものとす
る。その前回の処理依頼の要求において実際に費やした
処理時間、及び当該処理依頼につきその処理に掛かるで
あろうとする予測時間が前記AP2に対応して確保され
たワークエリアに書き込まれているものとする。It is assumed that a request for a processing request to the disk device 36 is issued to the driver from AP2 having a low priority. Even before requesting this new processing request, AP2
However, it is assumed that there is no request for processing the AP2 in the mailbox 42, though the request for processing has been made one or more times. It is assumed that the processing time actually spent in the request of the previous processing request and the estimated time required for the processing for the processing request are written in the work area secured corresponding to the AP2. .
【0021】前記処理依頼の要求に応答して図5に示す
処理が開始される。前回の実際の処理時間と前回の予測
時間との比較を行う(図5のS1参照)。前回の実際の
処理時間が前回の予測時間より長いときには(図5のS
1のyes参照)、前回に補正された待ち時間だけ待機し
た後に(図5のS2参照)、前回の実際の処理時間が前
回の予測時間より短いとき(図5のS1のno参照)と同
様にして、前記処理依頼の要求において処理しなければ
ならない処理データを準備する(図5のS3参照)。In response to the request for the processing request, the processing shown in FIG. 5 is started. The previous actual processing time and the previous predicted time are compared (see S1 in FIG. 5). When the previous actual processing time is longer than the previous predicted time (S in FIG. 5)
1)), after waiting for the previously corrected wait time (see S2 in FIG. 5), the same as when the previous actual processing time was shorter than the previously predicted time (see S1 in FIG. 5) Then, the processing data to be processed in the processing request is prepared (see S3 in FIG. 5).
【0022】その処理データについての処理時間を予測
する(図5のS4参照)。前回の実際の処理時間を計時
するためのタイマを起動する(図5のS5参照)。ドラ
イバ40に対して処理を依頼する(図5のS6参照)。
この処理依頼において、前記AP1の処理が終了してい
るならば、前記AP2についてのディスク装置36に対
するアクセスが直ちに行われるが、前記AP1の処理が
継続している場合には、当該処理依頼は、メールボック
ス42の待ち行列の最後尾に付けられる。The processing time for the processed data is predicted (see S4 in FIG. 5). A timer for counting the previous actual processing time is started (see S5 in FIG. 5). The driver 40 is requested to perform the processing (see S6 in FIG. 5).
In this processing request, if the processing of the AP1 is completed, the disk device 36 of the AP2 is immediately accessed, but if the processing of the AP1 is continued, the processing request is It is attached to the end of the queue of the mailbox 42.
【0023】そして、前述のような直ちのディスク装置
36へのアクセスが行われるか、又は、メールボックス
42に入れられた処理依頼の処理が行われてディスク装
置36での処理が終了したとき、タイマを停止して実際
の処理時間を測定する(図5のS7参照)。Then, when the disk device 36 is immediately accessed as described above, or when the processing request processing entered in the mailbox 42 is performed and the processing in the disk device 36 is completed, The timer is stopped and the actual processing time is measured (see S7 in FIG. 5).
【0024】実際の処理時間が前記予測時間を超えてい
ないならば(図5のS8のno参照)、前記待ち時間か
ら予め決められた補正値を減算する(図5のS10参
照)。超えていないならば(図5のS8のyes 参照)、
前記待ち時間に予め決められた補正値を加算する(図5
のS9参照)。そして、次の処理依頼の要求を待機す
る。前記加算は、或る値を限度とする。その理由は、輻
輳がなくなったとき、元に戻るのに時間が掛からないよ
うにするためである。前記補正値は、システムの構成、
即ち例えば前記AP1が処理依頼をする処理データの処
理に掛かる処理時間と前記AP2が処理依頼をする処理
データの処理に掛かる処理時間とにより予め決められる
値である。If the actual processing time does not exceed the predicted time (see no in S8 of FIG. 5), a predetermined correction value is subtracted from the waiting time (see S10 of FIG. 5). If it does not exceed (see yes in S8 of FIG. 5),
A predetermined correction value is added to the waiting time (see FIG. 5).
See S9). Then, it waits for the request for the next processing request. The addition is limited to a certain value. The reason is that when congestion is eliminated, it does not take time to return to the original state. The correction value is the system configuration,
That is, for example, it is a value determined in advance by the processing time required for processing the processing data requested by the AP1 and the processing time required for processing the processing data requested by the AP2.
【0025】前述のように、処理依頼の要求があると、
前回の実際の処理時間と前回の予測時間との大小関係に
応じて処理依頼を待ち時間の待機なしに、又は待機をし
て行い、当該処理依頼についての待ち時間の補正をする
から、優先度の高いAP1に対しディスク装置の割付け
を優先させることができる。次に、図6を参照して請求
項1、請求項3、請求項4及び請求項6記載の発明の一
実施例を説明する。この実施例も伝送装置で実施する例
である。図6に示す処理フローは、図3において示す伝
送装置30内に用意される複数のAPの内の優先度の低
い方のAP側の処理フローを示す。As described above, when there is a request for processing,
Depending on the magnitude relationship between the previous actual processing time and the previous estimated time, the processing request is performed without waiting for the waiting time or while waiting, and the waiting time for the processing request is corrected. It is possible to give priority to the allocation of the disk device with respect to AP1 having a high value. Next, with reference to FIG. 6, an embodiment of the invention described in claims 1, 3, 4, and 6 will be described. This embodiment is also an example implemented by the transmission device. The processing flow shown in FIG. 6 shows the processing flow on the side of the AP having the lower priority among the plurality of APs prepared in the transmission device 30 shown in FIG.
【0026】前記請求項1、請求項3、請求項4及び請
求項6記載の発明の実施例においては、待ち時間の補正
に輻輳度の測定、即ち処理依頼の要求を出したAPの予
測時間と実際に掛かった処理時間とを輻輳度の測定に用
いる代わりに、ドライバによりログに記憶される処理依
頼についての履歴情報を待ち時間の補正に用いる点に前
記請求項1、請求項2、請求項4及び請求項5記載の発
明の実施例で述べた構成との差異がある。ログはRAM
34上に設けられている。履歴情報は、或る時間内に何
回処理依頼があったかを示す情報、現在動作中などであ
る。In the embodiments of the inventions of claim 1, claim 3, claim 4 and claim 6, the time of congestion is measured to correct the waiting time, that is, the predicted time of the AP that has issued a request for processing. The claim 1, claim 2, and claim 2 in that, instead of using the actual processing time and the actual processing time to measure the congestion degree, historical information about the processing request stored in the log by the driver is used to correct the waiting time. There is a difference from the configuration described in the embodiments of the invention described in claims 4 and 5. Log is RAM
It is provided on 34. The history information is information indicating how many times the processing request has been made within a certain time, the present operation, and the like.
【0027】従って、この実施例における装置構成は、
前記1、請求項2、請求項4及び請求項5記載の発明の
実施例で述べた構成とは、前述した相違点を除き、同じ
である。図3、図4、及び図6において、APは、図1
の処理依頼手段2に対応し、ドライバ42は、図1の割
付け手段4に対応する。CPU31、及びRAM34
は、図1の待ち時間設定手段6に対応し、CPU31、
RAM34、及び図6に示すステップS2、S3は、図
1の検出手段8に対応する。CPU31、RAM34及
び図6に示すステップS3,S6は、図1の調整手段1
0に対応する。Therefore, the apparatus configuration in this embodiment is as follows.
The configurations described in the embodiments of the invention described in the first, second, fourth, and fifth aspects are the same except for the above-described differences. In FIG. 3, FIG. 4, and FIG. 6, AP is the same as in FIG.
1. The driver 42 corresponds to the allocation means 4 in FIG. CPU31 and RAM34
Corresponds to the waiting time setting means 6 of FIG.
The RAM 34 and steps S2 and S3 shown in FIG. 6 correspond to the detecting means 8 in FIG. The CPU 31, the RAM 34 and steps S3 and S6 shown in FIG. 6 are the adjusting means 1 of FIG.
Corresponds to 0.
【0028】又、この実施例における動作も、図6を用
いて以下に述べる点を除き、同じである。この場合に
も、優先度の高いAP1がディスク装置36に対するア
クセスが許容されて当該AP1についての処理が行われ
ている状態において、優先度の低いAP2がドライバに
対して処理依頼をする状態となり、そのAP2は、ドラ
イバ40へ処理依頼をする処理データは用意された状態
にあるものとする。The operation of this embodiment is also the same except for the points described below with reference to FIG. Also in this case, when the AP 1 having a high priority is permitted to access the disk device 36 and the processing for the AP 1 is being performed, the AP 2 having a low priority requests the driver to perform the processing, It is assumed that the AP 2 is in a state where the processing data for requesting the processing to the driver 40 is prepared.
【0029】優先度の低いAP2から処理依頼の要求が
あって、その処理依頼に対する処理が開始されるとき、
そのAP2は、ドライバ40に対して履歴情報の読み出
しオーダを送出して履歴情報の参照を行う(図6のS1
参照)。その応答としてAP2に返された履歴情報が現
在動作中であることを示しているときには(図6のS2
のyes 参照)、待ち時間の補正を行う(図6のS3参
照)。その補正は、予め決められた補正値の前回の待ち
時間への加算である。前記予め決められた補正値は、前
述の請求項1、請求項2、請求項4及び請求項5記載の
発明についての実施例と同趣旨であり、システムの設計
時にできるだけ競合が発生しないような値、例えばAP
1の方が処理時間が長く、AP2の方が処理時間を短く
する値として設定される。When a request for a processing request is issued from the AP 2 having a low priority, and the processing for the processing request is started,
The AP 2 sends a history information read order to the driver 40 to refer to the history information (S1 in FIG. 6).
reference). When the history information returned to AP2 as a response indicates that the operation is currently in progress (S2 in FIG. 6).
Yes)), and the waiting time is corrected (see S3 in FIG. 6). The correction is addition of a predetermined correction value to the previous waiting time. The predetermined correction value has the same meaning as the embodiment of the invention according to claim 1, claim 2, claim 4 and claim 5 described above, so that conflict does not occur as much as possible when designing the system. Value, eg AP
A value of 1 is set as a longer processing time, and a value of AP2 is set as a shorter processing time.
【0030】前記補正は、現在動作中になく(図6のS
2のno参照)、履歴情報が輻輳度の高いことを示してい
る、即ち或る時間内のアクセス回数が増えていることを
示しているときには(図6のS5の増参照)、前述した
動作中にあるときと同様に待ち時間の加算補正を行う
(図6のS3参照)。加算補正は、或る限度まで行う。
その理由は、前述したところとな同じである。前記2つ
の補正経路による待ち時間の補正があるときには、前記
処理依頼についての処理を補正された時間だけ待機する
(図6のS4参照)。この待機の待ち時間が経過したと
きには、先にディスク装置36へアクセスをしたAP1
の処理が終了しているか否かを問わず、ドライバ40へ
の処理を行う(図6のS7参照)。この処理依頼には、
ドライバ40への処理依頼のほか、ディスク装置36へ
のアクセス動作を含む。The correction is not currently in operation (S in FIG. 6).
2)), the history information indicates that the congestion degree is high, that is, the number of accesses within a certain period of time is increasing (see the increase in S5 in FIG. 6). The waiting time is added and corrected in the same manner as when it is inside (see S3 in FIG. 6). The addition correction is performed up to a certain limit.
The reason is the same as that described above. When the waiting time is corrected by the two correction paths, the processing for the processing request is waited for the corrected time (see S4 in FIG. 6). When this waiting time for waiting has elapsed, AP1 that has accessed the disk device 36 first
The process for the driver 40 is performed regardless of whether or not the process of (3) is completed (see S7 of FIG. 6). For this processing request,
In addition to requesting processing to the driver 40, access operation to the disk device 36 is included.
【0031】このドライバ40へ処理が依頼されたと
き、前記AP1、又は他のAPについての処理が続行さ
れている、即ちディスク装置へのアクセスに競合が生じ
る場合には、その処理依頼を従来と同様にメールボック
ス42(キュー)内の待ち行列の最後尾に付けられる。
又、履歴情報が輻輳度が低いことを示している、即ち前
回のアクセス回数よりもアクセス回数が減っていること
を示しているときには(図6のS5の減参照)、直ちに
ドライバ40への処理依頼を行う(図6のS7参照)。
その処理依頼のときアクセスの競合が生じないときには
ディスク装置36へのアクセスが行われ、競合が生ずる
場合には処理依頼はメールボックス42内の待ち行列の
最後尾に付けられる。When the processing is requested to the driver 40, the processing for the AP 1 or another AP is being continued, that is, when there is a conflict in access to the disk device, the processing request is made as before. Similarly, it is added to the end of the queue in the mailbox 42 (queue).
Further, when the history information indicates that the degree of congestion is low, that is, the number of times of access is smaller than the number of times of previous access (refer to the reduction of S5 in FIG. 6), the process to the driver 40 is immediately performed. Make a request (see S7 in FIG. 6).
When there is no conflict in access at the time of the processing request, the disk device 36 is accessed, and when conflict occurs, the processing request is added to the end of the queue in the mailbox 42.
【0032】この実施例においても、請求項1、請求項
2、請求項4及び請求項5記載の発明の実施例と同様の
効果を享受し得るほか、後者よりも応答が早くなり、調
整が取り易くなる。前述のいずれの実施例も、ディスク
装置36を1つとした場合であるが、1つのディスク装
置36では、伝送装置30の信頼性が劣るので、伝送装
置30の信頼性を高めるために、ディスク装置36を2
つ設けることがある。このような二重化構成の場合に
は、2つのディスク装置36に格納されている情報を初
期的に、又稼働中同一にしておく必要がある。このディ
スク装置36間の各種情報を同一にする処理(ミラー化
処理)のために、ミラー化処理タスクが設けられる。こ
のミラー化処理において、ミラー化処理タスクとAPと
の間でも前述したAP同士間の優先処理と同様の問題が
生ずる。Also in this embodiment, the same effects as those of the embodiments of the inventions of claim 1, claim 2, claim 4 and claim 5 can be enjoyed, and the response is quicker than that of the latter, and adjustment is possible. Easy to take. In any of the above-described embodiments, the number of the disk devices 36 is one. However, since the reliability of the transmission device 30 is inferior in one disk device 36, in order to improve the reliability of the transmission device 30, the disk device 36 is used. 36 to 2
May be provided. In the case of such a redundant configuration, it is necessary to make the information stored in the two disk devices 36 the same initially and during operation. A mirroring processing task is provided in order to perform processing (mirroring processing) for making various pieces of information identical among the disk devices 36. In this mirroring process, a problem similar to the above-described priority process between APs occurs between the mirroring process task and the AP.
【0033】即ち、ディスク装置36が大容量になる
と、ミラー化処理に時間が掛かる。そのため、ミラー化
処理が行われている最中に、APによる処理依頼が発生
したとき従来の方式では、ミラー化処理の影響が出るか
ら、APによる処理依頼にミラー化処理の影響が出ない
ようにする必要がある。前述のようなミラー化処理に
も、前述した2つの方式を適用することが可能である。
前記2つの方式により、ディスク装置36のミラー化処
理中に優先度の高いAPの処理依頼が発生しても、ミラ
ー化処理タスクによる影響が現れないようにすることが
できる。これは、前述したところから明らかなように、
優先度の高いAPに可能な限度においてその処理依頼を
ドライバ40で受け付け得るようにすることができるか
らである。That is, when the disk device 36 has a large capacity, the mirroring process takes a long time. Therefore, when a processing request by the AP occurs during the mirroring process, the mirroring process is affected by the conventional method, so that the processing request by the AP is not affected by the mirroring process. Need to The above-described two methods can be applied to the mirroring process as described above.
By the two methods described above, even if a processing request for an AP having a high priority occurs during the mirroring process of the disk device 36, it is possible to prevent the influence of the mirroring process task from appearing. This is, as is clear from the above,
This is because it is possible to allow the driver 40 to accept the processing request to the extent possible to the AP having a high priority.
【0034】図7は、請求項4乃至請求項7記載の発明
の一実施例を示す。この実施例においては、各AP50
は、多重化部52を介してドライバ40へ処理を依頼す
る。多重化部52は、ミラー化処理タスク54、及び処
理選択部56を有して構成される。処理選択部56は、
APからの処理依頼を一時に保存する第1のメールボッ
クスと、ミラー化処理タスクからの処理依頼を一時的に
保存する第2のメールボックス、並びにタイマを有して
構成される。この実施例のその他の構成は、請求項1乃
至請求項3記載の発明の一実施例と同じである。その逐
一の説明は省略する。FIG. 7 shows an embodiment of the invention described in claims 4 to 7. In this embodiment, each AP 50
Requests the driver 40 to perform processing via the multiplexing unit 52. The multiplexing unit 52 is configured to include a mirroring processing task 54 and a processing selection unit 56. The processing selection unit 56
It is configured to have a first mailbox for temporarily storing a processing request from the AP, a second mailbox for temporarily storing a processing request from the mirroring processing task, and a timer. The other structure of this embodiment is the same as that of one embodiment of the invention described in claims 1 to 3. The detailed explanation is omitted.
【0035】図3、図4、図7、及び図8において、A
Pは、図2の処理依頼手段2に対応し、ドライバ42
は、図2のドライバ4Aに対応する。ドライバ40のメ
ールボックスは、図2のドライバ4Aのメールボックス
に対応する。図2のCPU31、及びRAM34は、図
2の待ち時間設定手段6に対応し、CPU31、RAM
34、及び図8に示すステップS1乃至S9は、図2の
検出手段8に対応する。CPU31、RAM34及び図
8に示すステップS10,S11は、図2の調整手段1
0に対応する。In FIG. 3, FIG. 4, FIG. 7 and FIG.
P corresponds to the processing requesting means 2 of FIG.
Corresponds to the driver 4A in FIG. The mailbox of the driver 40 corresponds to the mailbox of the driver 4A shown in FIG. The CPU 31 and the RAM 34 of FIG. 2 correspond to the waiting time setting means 6 of FIG.
34 and steps S1 to S9 shown in FIG. 8 correspond to the detecting means 8 in FIG. The CPU 31, the RAM 34, and steps S10 and S11 shown in FIG. 8 are the adjusting means 1 of FIG.
Corresponds to 0.
【0036】この実施例の動作を図8の参照の下に説明
する。図8の処理は、優先度の高いAP−i(iは複数
のAPの内の1つ)から出された処理依頼の要求に対す
る処理依頼が許容されて当該AP−iによるディスク装
置36へのアクセスが為されてその処理が終了したもの
とする。又、ミラー化処理タスクに対し、或る待ち時間
が設定されているものとする。The operation of this embodiment will be described with reference to FIG. In the processing shown in FIG. 8, a processing request for a processing request issued from an AP-i having a high priority (i is one of a plurality of APs) is allowed, and the AP-i sends a request to the disk device 36. It is assumed that the access is made and the processing is completed. Further, it is assumed that a certain waiting time is set for the mirroring processing task.
【0037】その処理が終了したとき、再度前記第1の
メールボックスにAP−iからの処理依頼があるか否か
をチェックする(図8のS1参照)。そのメールボック
スに処理依頼があるならば(図8のS1の有り参照)、
ドライバ40へ処理依頼をし、当該処理依頼についての
ディスク装置36へのアクセスを行う(図8のS2参
照)。これにより、ミラー化処理タスクがあってもAP
−iに対しディスク装置36へのアクセスを許容し得る
から、AP−iの処理依頼の優先処理を行うことができ
る。When the processing is completed, it is again checked whether or not there is a processing request from AP-i in the first mailbox (see S1 in FIG. 8). If the mailbox has a processing request (see S1 in FIG. 8),
A processing request is sent to the driver 40, and the disk device 36 for the processing request is accessed (see S2 in FIG. 8). As a result, even if there is a mirror processing task, the AP
Since access to the disk device 36 can be permitted for -i, priority processing of AP-i processing requests can be performed.
【0038】又、前記第1のメールボックスのチェック
をしたとき、処理依頼がなければ(図8のS1の無し参
照)、タイマに待ち時間を設定してその待ち時間内にA
P−iから第1のメールボックスに処理依頼が届けられ
るとすると(図8のS4の有り参照)、タイマを停止し
て(図8のS5参照)当該処理依頼の処理を行う(図8
のS2参照)。前記待ち時間内に処理依頼が前記第1の
メールボックスに届いておらず、前記設定された待ち時
間が経過したとき(図8のS4の無し、S6のyes 参
照)、ミラー化処理タスクから第2のメールボックスに
処理依頼が届けられているならば(図8のS7の有り参
照)、ドライバ40に当該処理の処理依頼を行ってミラ
ー化処理タスクによるディスク装置36へのアクセスを
行う(図8のS8参照)。If there is no processing request when the first mailbox is checked (see S1 in FIG. 8), a waiting time is set in the timer and A is set within the waiting time.
If the processing request is delivered from the P-i to the first mailbox (see S4 in FIG. 8), the timer is stopped (see S5 in FIG. 8) and the processing request is processed (FIG. 8).
See S2). When the processing request has not arrived in the first mailbox within the waiting time and the set waiting time has elapsed (No in S4 of FIG. 8, see yes in S6), the first mirroring processing task is executed. If the processing request has been delivered to the second mailbox (see S7 in FIG. 8), the driver 40 is requested to perform the processing and the mirroring processing task accesses the disk device 36 (see FIG. 8). 8 S8).
【0039】そのアクセスについての処理が終了したと
き、第1のメールボックスにAPからの処理依頼がある
か否かをチェックする。APから処理依頼が届いている
ならば(図8のS9の有り参照)、待ち時間に予め決め
られた補正値を加算して当該処理依頼をドライバ40に
対して行い、前記APによるディスク装置36へのアク
セスをしてそのアクセスの処理をしてステップS1に戻
る。加算は或る限度までとする。その理由は、前述した
ところと同じである。When the processing for the access is completed, it is checked whether or not there is a processing request from the AP in the first mailbox. If the processing request has arrived from the AP (see the presence of S9 in FIG. 8), a predetermined correction value is added to the waiting time and the processing request is sent to the driver 40, and the disk device 36 by the AP. Is accessed, the access is processed, and the process returns to step S1. Addition is up to a certain limit. The reason is the same as described above.
【0040】前述のような待ち時間の補正によりAPの
処理依頼は優先的に処理されるから、ミラー化処理によ
るAPに対する影響は無くなる。逆に、APから処理依
頼が届いていないならば(図8のS9の無し参照)、待
ち時間から予め決められた補正値を減算して(図8のS
11参照)ステップS1に戻る。この減算により、当該
ミラー化処理タスクがディスク装置36に対して必要と
するアクセスを行うためにミラー化処理タスクに対して
ディスク装置36への優先的な割付けを行うことができ
る。そして、APの処理依頼が無くなり、待ち時間が順
次小さくなれば、ミラー化処理タスクの処理が継続され
ることになる。Since the AP processing request is preferentially processed by the waiting time correction as described above, the influence of the mirroring processing on the AP is eliminated. On the contrary, if the processing request has not arrived from the AP (refer to S9 in FIG. 8), a predetermined correction value is subtracted from the waiting time (S in FIG. 8).
11) Return to step S1. By this subtraction, the mirroring processing task can be preferentially assigned to the disk device 36 in order to make the necessary access to the disk device 36. Then, when the AP processing request is lost and the waiting time is gradually reduced, the processing of the mirroring processing task is continued.
【0041】図9は、請求項8記載の発明の一実施例を
示す。この実施例は、図7に示す実施例のメールボック
スを各AP毎に設けて構成したものである。AP1は優
先度の高いAPを示し、AP2は優先度の低いAPを示
す。図9において、60は処理選択部であり、62は処
理選択部60に設けられる第1のメールボックスであ
り、64は処理選択部60に設けられる第2のメールボ
ックスである。40はドライバである。FIG. 9 shows an embodiment of the invention described in claim 8. In this embodiment, the mailbox of the embodiment shown in FIG. 7 is provided for each AP. AP1 indicates an AP with a high priority, and AP2 indicates an AP with a low priority. In FIG. 9, reference numeral 60 is a processing selection unit, 62 is a first mailbox provided in the processing selection unit 60, and 64 is a second mailbox provided in the processing selection unit 60. 40 is a driver.
【0042】図3、図4、図7、図8、及び図9におい
て、APは、図2の処理依頼手段2に対応し、ドライバ
60は、図2のドライバ4Aに対応する。ドライバ60
のメールボックス62、64は、図2のアプリケーショ
ンプログラム毎のメールボックスに対応する。CPU3
1、及びRAM34は、図2の待ち時間設定手段6に対
応し、CPU31、RAM34、及び図8に示すステッ
プS1乃至S9は、図2の検出手段8に対応する。CP
U31、RAM34及び図8に示すステップS10,S
11は、図2の調整手段10に対応する。3, FIG. 4, FIG. 7, FIG. 8, and FIG. 9, AP corresponds to the processing requesting means 2 of FIG. 2, and driver 60 corresponds to the driver 4A of FIG. Driver 60
The mailboxes 62, 64 correspond to the mailboxes for each application program in FIG. CPU3
1 and the RAM 34 correspond to the waiting time setting means 6 of FIG. 2, and the CPU 31, the RAM 34, and steps S1 to S9 shown in FIG. 8 correspond to the detecting means 8 of FIG. CP
U31, RAM 34 and steps S10 and S shown in FIG.
Reference numeral 11 corresponds to the adjusting means 10 in FIG.
【0043】処理選択部60での処理は、図8に示す処
理フローと同じである。この処理フローにおけるAPを
前記AP1とし、ミラー化処理タスクを前記AP2とし
て図8を参照すれば、その動作が理解されて来ると思わ
れるので、その逐一の説明は省略する。又、その効果
も、図7に示す実施例と同効である。The processing in the processing selection unit 60 is the same as the processing flow shown in FIG. If the AP in this processing flow is the AP1 and the mirroring processing task is the AP2 and referring to FIG. 8, the operation thereof will be understood, and thus the detailed description thereof will be omitted. The effect is also the same as that of the embodiment shown in FIG.
【0044】なお、前記実施例においては、メールボッ
クスをドライバ40に設ける場合について述べたが、A
P側等に設けてもよい。In the above embodiment, the case where the mailbox is provided in the driver 40 has been described.
It may be provided on the P side or the like.
【0045】[0045]
【発明の効果】前述したように本発明によれば、資源へ
の処理依頼の輻輳度に応じて待ち時間を調整して優先度
の高い処理依頼を優先的に処理する手段を提供すること
ができる。同時に使用できない資源であって、一度依頼
した処理は中断できない資源、例えばディスク装置に対
して優先度の高い処理依頼手段からの処理依頼は、優先
的に処理される。例えば、優先度の高いアプリケーショ
ンプログラムによる処理依頼は、優先度の低いミラー化
処理タスクよりも優先的に処理される。As described above, according to the present invention, it is possible to provide a means for preferentially processing a high-priority processing request by adjusting the waiting time according to the congestion degree of the processing request to the resource. it can. A resource that cannot be used at the same time and whose processing once requested cannot be interrupted, for example, a processing request from a processing requesting unit having a high priority for a disk device is preferentially processed. For example, a processing request by an application program having a high priority is processed with priority over a mirroring processing task having a low priority.
【図1】請求項1乃至請求項3記載の発明の原理ブロッ
ク図である。FIG. 1 is a principle block diagram of the invention according to claims 1 to 3.
【図2】請求項4乃至請求項8記載の発明の原理ブロッ
ク図である。FIG. 2 is a principle block diagram of the invention according to claims 4 to 8;
【図3】請求項1乃至請求項8記載の発明に係る一実施
例の装置全体構成図である。FIG. 3 is an overall configuration diagram of an apparatus according to an embodiment of the present invention as claimed in claims 1 to 8.
【図4】請求項1乃至請求項8記載の発明に係る一実施
例のソフトイメージの構成図である。FIG. 4 is a configuration diagram of a soft image of an embodiment according to the invention described in claims 1 to 8.
【図5】請求項1、請求項2、請求項4、及び請求項5
記載の発明の一実施例の処理フローを示す図である。FIG. 5 is a combination of claim 1, claim 2, claim 4, and claim 5;
It is a figure which shows the processing flow of one Example of the invention of description.
【図6】請求項1、請求項3、請求項4、及び請求項6
記載の発明の一実施例の処理フローを示す図である。FIG. 6 is a combination of claim 1, claim 3, claim 4, and claim 6;
It is a figure which shows the processing flow of one Example of the invention of description.
【図7】請求項4乃至請求項7記載の発明の一実施例を
示す図である。FIG. 7 is a diagram showing an embodiment of the invention described in claims 4 to 7;
【図8】図7に示す実施例の処理フローを示す図であ
る。8 is a diagram showing a processing flow of the embodiment shown in FIG.
【図9】請求項8記載の発明の一実施例を示す図であ
る。FIG. 9 is a diagram showing an embodiment of the invention according to claim 8;
2 処理依頼手段 4 割付け手段 4A ドライバ 6 待ち時間設定手段 8 検出手段 10 調整手段 30 CPU 32 ROM 34 RAM 36 ディスク装置 40 ドライバ 42 メールボックス AP アプリケーションプログラム AP1 アプリケーションプログラム AP2 アプリケーションプログラム APn アプリケーションプログラム 2 processing requesting means 4 allocating means 4A driver 6 waiting time setting means 8 detecting means 10 adjusting means 30 CPU 32 ROM 34 RAM 36 disk device 40 driver 42 mailbox AP application program AP1 application program AP2 application program APn application program
───────────────────────────────────────────────────── フロントページの続き (72)発明者 畠中 伸子 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 小野寺 貴志 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Nobuko Hatanaka, 1015 Kamiodanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture, Fujitsu Limited (72) Inventor Takashi Onodera, 1015, Kamikodanaka, Nakahara-ku, Kawasaki, Kanagawa Prefecture, Fujitsu Limited
Claims (8)
の処理依頼要求を受け取って処理依頼手段に対し資源を
割り付ける割付け手段を有するディジタル制御処理装置
において、 優先度の低い処理依頼手段で用いられる待ち時間が設定
される待ち時間設定手段と、 前記割付け手段への処理依頼情報から前記割付け手段へ
の処理依頼の輻輳度を検出する検出手段と、 該検出手段で検出された輻輳度に応じて前記待ち時間設
定手段の待ち時間を調整する調整手段とを優先度の低い
処理依頼手段に設けたことを特徴とする資源の優先割付
けを可能にする待ち時間調整方式。1. A digital control processing device having allocation means for receiving processing request requests from a plurality of processing request means having different priorities and allocating resources to the processing request means, which is used by the processing request means with low priority. Depending on the congestion degree detected by the waiting time setting means for setting the waiting time, the detecting means for detecting the congestion degree of the processing request to the allocating means from the processing request information to the allocating means, A waiting time adjusting method for enabling priority allocation of resources, characterized in that the waiting time setting means for adjusting the waiting time is provided in a processing requesting means having a low priority.
にする待ち時間調整方式において、 輻輳度は実際の処理時間及び予測時間から判定すること
を特徴とする資源の優先割付けを可能にする待ち時間調
整方式。2. A waiting time adjusting method for enabling priority allocation of resources according to claim 1, wherein the congestion degree is determined from an actual processing time and an estimated time, thereby enabling priority allocation of resources. Wait time adjustment method.
にする待ち時間調整方式において、 輻輳度は処理依頼の履歴情報から判定することを特徴と
する資源の優先割付けを可能にする待ち時間調整方式。3. The waiting time adjustment method for enabling priority allocation of resources according to claim 1, wherein the congestion degree is determined from history information of processing requests, and the waiting time enables priority allocation of resources. Adjustment method.
の処理依頼要求を受け取って処理依頼手段に対し資源を
割り付けるものであって、処理依頼が競合するとき、後
発の処理依頼をメールボックスに入れるドライバを有す
るディジタル制御処理装置において、 優先度の低い処理依頼手段で用いられる待ち時間が設定
される待ち時間設定手段と、 前記ドライバへの処理依頼情報から前記ドライバへの処
理依頼の輻輳度を検出する検出手段と、 該検出手段で検出された輻輳度に応じて前記待ち時間設
定手段の待ち時間を調整する調整手段とを優先度の低い
処理依頼手段に設け、 優先度の低い処理依頼手段からの処理依頼が前記ドライ
バに対して為された場合に前記検出手段により輻輳度の
上昇が検出されたとき、前記調整手段により待ち時間に
予め決められた時間を加算すると共に、前記処理依頼を
前記メールボックスに入れて可及的に優先度の高い処理
依頼についての資源へのアクセスを許容し、 前記検出手段により輻輳度の下降が検出されたとき、前
記調整手段により待ち時間から予め決められた時間を減
算し、前記メールボックスに先行する処理依頼が残って
いるなら、当該処理依頼を前記メールボックスに入れる
と共に、該メールボックス内の待ち順位最高の処理依頼
についての資源へのアクセスを許容し、 残っていないなら、前記優先度の低い処理依頼手段から
の処理依頼についての資源へのアクセスを許容すること
を特徴とする優先処理可能な資源割付け方式。4. A method for receiving processing request requests from a plurality of processing request means having different priorities and allocating resources to the processing request means, and when the processing requests conflict, a subsequent processing request is sent to the mailbox. In a digital control processing device having a driver to be inserted, a waiting time setting means for setting a waiting time used by a processing requesting means having a low priority, and a congestion degree of a processing request to the driver from processing request information to the driver. Detecting means for detecting and adjusting means for adjusting the waiting time of the waiting time setting means according to the congestion degree detected by the detecting means are provided in the processing requesting means with low priority, and the processing requesting means with low priority is provided. When an increase in congestion degree is detected by the detection means when a processing request from the driver is made to the driver, the waiting time is set by the adjustment means. While adding a predetermined time, the processing request is put in the mailbox to allow access to the resource for the processing request with the highest priority, and the detection unit detects a decrease in congestion degree. At this time, the adjusting means subtracts a predetermined time from the waiting time, and if a processing request preceding the mailbox remains, the processing request is put in the mailbox and Priority processing characterized by allowing access to the resource for the processing request with the highest priority and allowing access to the resource for the processing request from the processing request means with a lower priority if there is no remaining processing request Resource allocation method.
け方式において、 輻輳度は実際の処理時間及び予測時間から判定すること
を特徴とする優先処理可能な資源割付け方式。5. The resource allocation method capable of priority processing according to claim 4, wherein the congestion degree is determined from an actual processing time and an estimated time.
け方式において、 輻輳度は処理依頼の履歴情報から判定することを特徴と
する優先処理可能な資源割付け方式。6. The resource allocation method capable of priority processing according to claim 4, wherein the degree of congestion is determined from history information of processing requests.
け方式において、 メールボックスをアプリケーションプログラム及びミラ
ー化処理タスク毎に設けたことを特徴とする優先処理可
能な資源割付け方式。7. The resource allocation method capable of priority processing according to claim 4, wherein a mailbox is provided for each application program and mirror processing task.
け方式において、 メールボックスをアプリケーションプログラム毎に設け
たことを特徴とする優先処理可能な資源割付け方式。8. The resource allocation method capable of priority processing according to claim 4, wherein a mailbox is provided for each application program.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16102995A JP3643623B2 (en) | 1995-06-27 | 1995-06-27 | Waiting time adjustment method that enables priority allocation of resources and resource allocation method that enables priority processing |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16102995A JP3643623B2 (en) | 1995-06-27 | 1995-06-27 | Waiting time adjustment method that enables priority allocation of resources and resource allocation method that enables priority processing |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0916416A true JPH0916416A (en) | 1997-01-17 |
| JP3643623B2 JP3643623B2 (en) | 2005-04-27 |
Family
ID=15727249
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16102995A Expired - Fee Related JP3643623B2 (en) | 1995-06-27 | 1995-06-27 | Waiting time adjustment method that enables priority allocation of resources and resource allocation method that enables priority processing |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3643623B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000293387A (en) * | 1999-04-05 | 2000-10-20 | Nec Corp | Event notification system |
-
1995
- 1995-06-27 JP JP16102995A patent/JP3643623B2/en not_active Expired - Fee Related
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2000293387A (en) * | 1999-04-05 | 2000-10-20 | Nec Corp | Event notification system |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3643623B2 (en) | 2005-04-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5884077A (en) | Information processing system and method in which computer with high load borrows processor of computer with low load to execute process | |
| JP4034969B2 (en) | Memory management system for common memory | |
| US8312229B2 (en) | Method and apparatus for scheduling real-time and non-real-time access to a shared resource | |
| JP2002533807A (en) | Interrupt / software control thread processing | |
| US20030120706A1 (en) | Method and a system for executing operating system functions, as well as an electronic device | |
| JPH0760415B2 (en) | Multitasking data processing system | |
| JPH05197671A (en) | Master and slave communication method | |
| US20070150898A1 (en) | Method, apparatus & computer program product for borrowed-virtual-time scheduling | |
| EP1063594B1 (en) | An interrupt controller and a microcomputer incorporating this controller | |
| EP1029284B1 (en) | Shared memory access controller | |
| JP3643623B2 (en) | Waiting time adjustment method that enables priority allocation of resources and resource allocation method that enables priority processing | |
| JP3212656B2 (en) | Data processing system and microcomputer | |
| JP2008225641A (en) | Computer system, interrupt control method and program | |
| JP2000099481A (en) | Real-time distributed system | |
| JP2527223B2 (en) | Message area control method for inter-task communication | |
| JP2921501B2 (en) | Task execution priority change method under high load in online processing system | |
| JPH0877026A (en) | Information processing method and device | |
| JPH0962640A (en) | Shared memory access control method | |
| JP3876816B2 (en) | Method of restricting the use of shared resources on computers | |
| US6728853B1 (en) | Method of processing data utilizing queue entry | |
| JP3082297B2 (en) | Task control method | |
| JPH11175357A (en) | Task management method | |
| JP2001222382A (en) | Disk unit | |
| JPH0512173A (en) | Information processor | |
| JPH05204667A (en) | Task execution control device in computer system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20041201 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20050125 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050131 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080204 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090204 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090204 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100204 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110204 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110204 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120204 Year of fee payment: 7 |
|
| LAPS | Cancellation because of no payment of annual fees |