JPH09185516A - Multitask priority control system - Google Patents
Multitask priority control systemInfo
- Publication number
- JPH09185516A JPH09185516A JP34223895A JP34223895A JPH09185516A JP H09185516 A JPH09185516 A JP H09185516A JP 34223895 A JP34223895 A JP 34223895A JP 34223895 A JP34223895 A JP 34223895A JP H09185516 A JPH09185516 A JP H09185516A
- Authority
- JP
- Japan
- Prior art keywords
- task
- automatic update
- priority
- query
- inquiry
- 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
Links
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、1プロセスで複数
のサービスを行う方式において、各サービス間の処理バ
ランスを指定情報により制御を行うマルチタスク優先度
制御方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multitasking priority control method for controlling a processing balance between services by designating information in a method of performing a plurality of services in one process.
【0002】[0002]
【従来の技術】タスク優先度の制御として、例えば特開
昭62−65137号公報に示されるように、排他等の
特定の状態が発生した場合のみにタスクの優先度を変更
し処理を効率よく処理する方式が開示されている。しか
し、この方法は、特定の状態時のみ制御されるものであ
り処理全体の制御は行われていない。また、特定の状態
に起因している為、機能追加時等に既存部分の変更が必
要となる。2. Description of the Related Art As task priority control, for example, as disclosed in Japanese Unexamined Patent Publication No. 62-65137, the task priority is changed only when a specific state such as exclusion occurs and the processing is efficiently performed. A method of processing is disclosed. However, this method is controlled only in a specific state, and the entire process is not controlled. Moreover, since it is caused by a specific state, it is necessary to change the existing part when adding a function.
【0003】[0003]
【発明が解決しようとする課題】1プロセスで複数のサ
ービスを行う場合、サービス単位にタスク郡を設け処理
を行うのが一般であるが、前記のようなタスク郡を設け
同時に複数のサービスを行なおうとした場合、タスクの
切替のタイミング及び、タスク数の関係により、ある特
定のサービスのみに前記プロセスの処理時間が割当てら
れるといった問題がある。When a plurality of services are provided in one process, it is common to provide a task group for each service to perform processing. However, a task group as described above is provided and a plurality of services are provided at the same time. If the user tries to do so, there is a problem that the processing time of the process is assigned only to a certain specific service due to the relationship between the task switching timing and the number of tasks.
【0004】また、1プロセス内で自動更新系タスクと
問合せ系タスクを設けた場合、自動更系タスクのプライ
オリティを問合せ系タスクより低くし、問合せ時のレス
ポンスを速くなるように設計するのが一般であるが、問
合せ応答のトラフィックが高い場合、自動更新系タスク
が沈み込むといった問題がある。When an automatic update system task and an inquiry system task are provided in one process, the priority of the automatic updating system task is set lower than that of the inquiry system task, and the response at the time of inquiry is generally designed to be faster. However, when the traffic of the inquiry response is high, there is a problem that the automatic update system task sinks.
【0005】[0005]
【課題を解決するための手段】上記問題を解決するた
め、タスク切替タイミングの時刻より各タスク実行時間
を割り出す手段と、問合せ系タスクを各サービス毎にグ
ルーピングし、各グループ毎の一定時間内の処理時間を
前記タスク実行時間を用いて測定する手段を設け、各グ
ループの処理時間が各グループ毎に予め指定された処理
時間を一定時間内で超えた場合、他のグループより優先
度を下げ(自動更新系タスクよりは高い)、他のグルー
プを優先的に処理する制御と、問合せ系タスク全体の処
理時間が一定時間内に予め指定された問合せ系タスク全
体の処理時間を超えていた場合、問合せ系タスク全体の
優先度を自動更新タスクと同じに下げ、問合せ系タスク
の優先を抑える制御と、問合せ系タスク全体の処理時間
が一定時間内に予め指定された問合せ系タスク全体の処
理時間を超えていて、かつ自動更新系タスクの処理時間
が一定時間内に予め指定された自動更新系タスク全体の
処理時間を超えていてた場合、問合せ系タスク全体の優
先度を自動更新系タスクより下げ、自動更新系タスクを
優先的に処理する制御を設けた。[Means for Solving the Problems] In order to solve the above problems, a means for calculating each task execution time from the time of task switching timing and a query-related task are grouped for each service, and within a fixed time for each group. A means for measuring the processing time using the task execution time is provided, and when the processing time of each group exceeds the processing time designated in advance for each group within a certain time, the priority is lowered from other groups ( (Higher than automatic update-related tasks), control that preferentially processes other groups, and if the processing time of all query-related tasks exceeds the processing time of all specified query-related tasks within a fixed time, The priority of all query-related tasks is lowered to the same level as that of the automatic update task, and the control to suppress the priority of query-related tasks and the processing time of all query-related tasks are preset If the processing time of all specified query-related tasks is exceeded and the processing time of automatic update-related tasks exceeds the processing time of all specified automatic update-related tasks within a certain time, the query-related tasks The overall priority is set lower than that of the automatic update system task, and the control for preferentially processing the automatic update system task is provided.
【0006】また、前記タスク実行時間を用いて、自動
更新系タスクの優先度を一定間隔で問合せ系タスクより
高くする制御方式を設けた。Further, a control system is provided in which the task execution time is used to make the priority of the automatic update system task higher than that of the query system task at regular intervals.
【0007】上記制御方式に示した様に、予め一定時間
内の各処理時間を指定して置くことにより、各サービス
間のバランス及び問合せ系タスクと自動更新系タスクの
バランスを取ることが可能である。As shown in the above-mentioned control method, it is possible to balance each service and balance the inquiry task and the automatic update task by designating each processing time within a fixed time. is there.
【0008】また、自動更新系タスクの優先度を一定間
隔で上げることにより、自動更新サービスのばらつきが
無くなる共に、自動更新発生からサービスまでの時間を
短くできる。Further, by increasing the priority of the automatic update system task at a constant interval, the variation of the automatic update service can be eliminated and the time from the automatic update generation to the service can be shortened.
【0009】[0009]
【発明の実施の形態】以下、本発明の一実施例を図1の
プロセスタスク構成を例により説明する。BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described below by taking the process task configuration of FIG. 1 as an example.
【0010】図1は、送受信プロセス14を介して、複
数のサービスをクライアントに提供する、サーバの構成
である。FIG. 1 shows the configuration of a server that provides a plurality of services to clients via a transmission / reception process 14.
【0011】メインプロセス11は、各送受信プロセス
14からの問合せ応答処理を行う問合せタスク13と、
自動更新を監視する自動更新タスク15及び、自動更新
タスク15からの通知契機によりクラアイアントに自動
更新サービスを行う被自動更新タスク12から構成され
る。The main process 11 includes an inquiry task 13 for executing inquiry response processing from each transmission / reception process 14,
It is composed of an automatic update task 15 for monitoring the automatic update, and an automatic update task 12 for providing an automatic update service to a client in response to a notification from the automatic update task 15.
【0012】本発明のマルチタスク優先度制御方式は、
問合せタスク13をサービス毎にA,B,Cの3つにグ
ルーピングし、一定時間(T0)内の処理時間、 tA(Aのサービスを行うタスクグループの処理時間) tB(Bのサービスを行うタスクグループの処理時間) tC(Cのサービスを行うタスクグループの処理時間) を測定する手段により、各問合せタスクグループ毎に予
め指定されたT0内の処理時間をTA、TB、TC、問
合せタスク13全体に予め指定されたT0内の処理時間
をTI、自動更新タスク15に予め定められたT0内の
処理時間をTJとした場合、下記関係となった場合に、
該当問合せタスクグループの優先度をP3(問合せ系タ
スクと自動更新系タスクの中間の優先度)に下げる制御
と TA > tA 、TB > tB 、TC > tC 下記関係となった場合に、問合せタスク13全体の優先
度をP2(自動更新系タスクと同じ優先度)に下げる制
御と、 tA + tB + tC > TI 下記関係となった場合に、問合せタスク13全体の優先
度をP1(自動更新系タスクより低い優先度)に下げる
制御を行った。The multitask priority control system of the present invention is
The inquiry task 13 is grouped into three groups A, B, and C for each service, and processing time within a fixed time (T0), tA (processing time of a task group that performs A service) tB (task that performs B service) Processing time of group) By means of measuring tC (processing time of a task group that performs C service), TA, TB, TC, and the entire query task 13 are set to the processing time within T0 designated in advance for each query task group. When the processing time in T0 designated in advance is TI and the processing time in T0 predetermined in the automatic update task 15 is TJ, and the following relations are satisfied,
Control to lower the priority of the relevant query task group to P3 (intermediate priority between the query task and the automatic update task) and TA> tA, TB> tB, TC> tC Control to lower the overall priority to P2 (the same priority as the automatic update system task) and tA + tB + tC> TI When the following relations are satisfied, the overall priority of the query task 13 is set to P1 (automatic update system task). It was controlled to lower the priority).
【0013】tA + tB + tC > TI また、一定間隔(R0)で自動更新タスク15の優先度
をP4(問合せ系タスクと同じ優先度)に上げる制御方
式を設けた。TA + tB + tC> TI Further, a control method is provided in which the priority of the automatic update task 15 is raised to P4 (the same priority as the query system task) at a constant interval (R0).
【0014】[0014]
【発明の効果】上記実施例に示した様に、T0、TA、
TB、TC、R0、P1、P2、P3、P4の定義によ
り各サービスのコントロールが可能であり、サービス形
態に合わせて特定のサービスを優先的に行うといった制
御も可能である。また、サービス追加時にも、タスクグ
ループを追加し定義値を変えることにより、既存サービ
スを変更せずに、既存サービスとのバランス制御を容易
に行える。As shown in the above embodiment, T0, TA,
It is possible to control each service according to the definitions of TB, TC, R0, P1, P2, P3, and P4, and it is also possible to perform control such that a specific service is preferentially performed according to the service form. Also, when adding a service, by adding a task group and changing the definition value, balance control with the existing service can be easily performed without changing the existing service.
【図1】複数のサービスをクライアントに提供する、サ
ーバプロセスのマルチタスク構成である。FIG. 1 is a multitasking configuration of a server process that provides multiple services to clients.
11…サーバメインプロセス、 12…被自動更新
タスク群、13…問合せタスク群、 14…
送受信プロセス群、15…自動更新タスク。11 ... Server main process, 12 ... Automatically updated task group, 13 ... Inquiry task group, 14 ...
Transmission / reception process group, 15 ... Automatic update task.
Claims (1)
うタスク(以降、これを問合せ系タスクと呼ぶ)と問合
せ発生時以外は常に自動更新系の処理を行うタスク(以
降、これを自動更新系タスクと呼ぶ)を有し、複数のサ
ービスをタスクスイッチ毎に切り替えて行う場合のタス
ク制御方式に於て、 問合せ系タスクをサービス毎にグルーピングし、各グル
ーピング毎及び問合せ系タスク毎に一定時間内の処理時
間を加算し、前記加算時間により各グループ及び、問合
せ系タスク全体の優先度を変更する手段と通常時は優先
度が低い自動更新系タスクの優先度を一定間隔で高くす
る手段を設け、 各サービス毎のバランス制御と、問合せ系タスクと自動
更新系タスクのバランス制御を行う事を特徴とするマル
チタスク優先度制御方式。1. A task that performs an inquiry response process (hereinafter referred to as an inquiry task) in one process and a task that always performs an automatic update process except when a query occurs (hereinafter, this task is automatically executed). In the task control method in which multiple services are switched for each task switch, query-related tasks are grouped for each service and fixed for each grouping and each query-related task. A means for adding the processing time within the time, a means for changing the priority of each group and the whole query-related task according to the added time, and a means for increasing the priority of the automatic update-related task which is low in the normal time at a constant interval. A multitask priority control method characterized by performing balance control for each service and balance control between query tasks and automatic update tasks.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP34223895A JPH09185516A (en) | 1995-12-28 | 1995-12-28 | Multitask priority control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP34223895A JPH09185516A (en) | 1995-12-28 | 1995-12-28 | Multitask priority control system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH09185516A true JPH09185516A (en) | 1997-07-15 |
Family
ID=18352189
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP34223895A Pending JPH09185516A (en) | 1995-12-28 | 1995-12-28 | Multitask priority control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH09185516A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007233847A (en) * | 2006-03-02 | 2007-09-13 | Hitachi Ltd | Storage system and scheduling method |
JP2015215838A (en) * | 2014-05-13 | 2015-12-03 | インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation | Device and method for controlling remote procedure call |
-
1995
- 1995-12-28 JP JP34223895A patent/JPH09185516A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007233847A (en) * | 2006-03-02 | 2007-09-13 | Hitachi Ltd | Storage system and scheduling method |
US7950013B2 (en) | 2006-03-02 | 2011-05-24 | Hitachi, Ltd. | System for monitoring time proportion for interrupt or task processing with restriction placed in subsequent monitoring time period when allowable time proportion is exceed |
JP2015215838A (en) * | 2014-05-13 | 2015-12-03 | インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation | Device and method for controlling remote procedure call |
US9665417B2 (en) | 2014-05-13 | 2017-05-30 | International Business Machines Corporation | Device and method for controlling remote procedure call |
US9894183B2 (en) | 2014-05-13 | 2018-02-13 | International Business Machines Corporation | Device and method for controlling remote procedure call |
US10084887B2 (en) | 2014-05-13 | 2018-09-25 | International Business Machines Corporation | Device and method for controlling remote procedure call |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
FI90475C (en) | Real-time distributed database processing system | |
US20030105798A1 (en) | Methods and apparatus for distributing interrupts | |
CA2298608A1 (en) | Queue system and method for point-to-point message passing | |
JPH09185516A (en) | Multitask priority control system | |
JPH0865759A (en) | Building managing device | |
JPH06161859A (en) | Distributed shared resource management system | |
JP2526399B2 (en) | Load balancing method for parallel computers | |
Xu et al. | Event-Triggered Leader-Following Consensus Analysis | |
KR100419099B1 (en) | method for restriction rate table management in network management system | |
JPH05151120A (en) | Priority managing system for communication control process | |
JPH11232124A (en) | Multitask execution priority order determination system | |
JPH09146882A (en) | Login computer selection system | |
KR20040007369A (en) | Drawing system and the method for technology load map | |
JPH1125182A (en) | Method for biasing experiment plan | |
JPH066380A (en) | Time and data specification representative selection system | |
JPH0250752A (en) | Transaction processing program change control system | |
JPH0448348A (en) | Decentralized updating processing system | |
KR970008306A (en) | Distributed Scheduling System and Method | |
Boukerche et al. | Null messages cancellation through load balancing in distributed simulations | |
JPH02277114A (en) | Parameter inquiry system | |
JPH09198332A (en) | Method and device for controlling load on communication control system | |
JPH01292447A (en) | Message display system | |
JPH0328956A (en) | Exclusive control method for resources | |
JP2002108863A (en) | Performing controller and its method for information guide device | |
JPH0449737A (en) | Inter-node communication system |