JPH0385641A - Data processing precedence control system - Google Patents
Data processing precedence control systemInfo
- Publication number
- JPH0385641A JPH0385641A JP22394889A JP22394889A JPH0385641A JP H0385641 A JPH0385641 A JP H0385641A JP 22394889 A JP22394889 A JP 22394889A JP 22394889 A JP22394889 A JP 22394889A JP H0385641 A JPH0385641 A JP H0385641A
- Authority
- JP
- Japan
- Prior art keywords
- processing
- data
- priority
- precedence
- queue
- 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
- 238000000034 method Methods 0.000 claims abstract description 22
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
Abstract
Description
【発明の詳細な説明】
〔概要〕
指定された優先度に従ってデータ処理を行うブタ処理優
先度制御方式に関し、
依頼を受けたデータのうちの優先度の高いものの順位を
繰り上げて処理し、指定した優先度が逆転することなく
、優先処理を行うことを目的とし、優先度に対応づけた
処理待ちキューを設け、処理依頼されたデータを優先度
の最も高い処理待ちキューに順次エンキューし、この優
先度の最も高い処理待ちキューから始めてデキューした
データの優先度が当該処理待ちキューの優先度に一致す
るときに処理を行い、それ以外のときに次の優先度の処
理待ちキューにエンキューすることを繰り返し所定回数
行った後、次の優先度の処理待ちキューについて同様に
処理を行うように構成する。[Detailed Description of the Invention] [Summary] Regarding the pig processing priority control method in which data is processed according to the specified priority, the requested data is processed by moving up the priority of the data with the highest priority. In order to perform priority processing without reversing the priorities, we set up a processing queue that corresponds to the priority, and sequentially enqueues the data requested for processing to the processing queue with the highest priority. Starting from the queue with the highest priority, processing is performed when the priority of the dequeued data matches the priority of the queue, and at other times it is enqueued to the queue with the next priority. After repeating the process a predetermined number of times, the process is configured to perform the same process on the queue with the next priority.
本発明は、指定された優先度に従ってデータ処?
理を行うデータ処理優先度制御方式に関するものである
。計算機上で行うデータ処理が多様化および大量化し、
処理するデータによっては即時に処理を完了することを
要求するものや、翌日に完了していればよいようなもの
など、さまざまな種類が存在する。限られた計算機能力
の中で、処理を急ぐものはなるべく優先して処理し、そ
うでないものは後で処理するといった、処理の優先度を
制御する機構が必要とされている。The present invention processes data according to specified priorities. This paper relates to a data processing priority control method that performs data processing. Data processing performed on computers has become more diverse and massive,
There are various types of data to be processed, including those that require immediate processing and those that only need to be completed the next day. There is a need for a mechanism to control the priority of processing, such as giving priority to those that need to be processed as much as possible within the limited computing power, and processing those that are not urgent at a later time.
〔従来の技術と発明が解決しようとする課題〕従来の処
理の優先度の制御は、優先度に対応した処理待ちキュー
を設け、依頼を受けたデータを優先度に応じて該当する
優先度の処理待ちキューにエンキューする。そして、デ
ータ処理部が優先度の高い処理待ちキューからデータを
取り出して処理することを優先度に応した所定回数だけ
行い、次に優先度の高い処理待ちキューからデータを取
り出して処理することを繰り返し行うようにしていた。[Prior art and the problem to be solved by the invention] Conventional processing priority control involves setting up a processing queue corresponding to the priority, and processing the requested data according to the priority. Enqueue to processing queue. Then, the data processing unit retrieves data from the processing queue with a high priority and processes it a predetermined number of times according to the priority, and then retrieves data from the processing queue with a high priority and processes it. I tried to do it repeatedly.
このため、優先度の高い処理待ちキューに多量のデータ
がエンキューされてしまうと、後から依頼した優先度の
遅い処理待ちキューにエンキューされているデータが少
数であると、優先度の低いデータが先に処理されてしま
う事態が発生するという問題があった。Therefore, if a large amount of data is enqueued in a high-priority processing queue, and a small amount of data is enqueued in a later requested processing queue with a low priority, low-priority data may be enqueued. There was a problem in that a situation occurred where the process was processed first.
本発明は、依頼を受けたデータのうちの優先度の高いも
のの順位を繰り上げて処理し、指定した優先度が逆転す
ることなく、優先処理を行うことを目的としている。An object of the present invention is to move up the order of requested data and process it with higher priority, and to perform priority processing without reversing the specified priority.
第1図を参照して課題を解決する手段を説明する。 Means for solving the problem will be explained with reference to FIG.
第1図において、処理待ちキュー1.2.3などは、優
先度に対応づけた処理待ちキューである。In FIG. 1, processing queues 1, 2, 3, etc. are processing queues that are associated with priorities.
データ処理部5は、処理待ちキュー1.2.3などから
デキューしたデータの優先度が当該処理待ちキュー1.
2.3などの優先度に一致するときに処理を行い、それ
以外のときに次の優先度の処理待ちキューにエンキュー
するものである。The data processing unit 5 determines that the priority of the data dequeued from the processing queue 1.2.3, etc. is set to the processing queue 1.2.3.
Processing is performed when the priority matches the priority, such as 2.3, and enqueued to the processing waiting queue of the next priority at other times.
本発明は、第1図に示すように、処理依頼を受けたデー
タを優先度の最も高い処理待ちキュー1にエンキューし
、データ処理部5がこの優先度の最も高い処理待ちキュ
ー1からデキューしたデータの優先度が当該処理待ちキ
ュー1の優先度に一致するときに処理を行い、それ以外
のときに次の優先度の処理待ちキューにエンキューする
ことを所定回数繰り返した後、次の優先度の処理待ちキ
ューについて同様に処理を行うようにしている。As shown in FIG. 1, the present invention enqueues data that has been requested to be processed into the processing queue 1 with the highest priority, and the data processing unit 5 dequeues the data from the processing queue 1 with the highest priority. Processing is performed when the priority of the data matches the priority of the processing queue 1, and enqueuing it to the processing queue of the next priority is repeated a predetermined number of times, and then the data is enqueued to the processing queue of the next priority. Processing is performed in the same way for the queue waiting to be processed.
従って、依頼を受けたデータのうちの優先度の高いもの
の順位を繰り上げて処理することにより、指定した優先
度が逆転することなく、優先度処理を行うことが可能と
なる。Therefore, by moving up the order of the requested data and processing it with a higher priority, priority processing can be performed without reversing the designated priority.
次に、第1図から第3図を用いて本発明の1実施例の構
成および動作を順次詳細に説明する。Next, the configuration and operation of one embodiment of the present invention will be explained in detail using FIGS. 1 to 3.
第1図において、処理待ちキュー1.2.3は、優先度
に対応づけた処理待ちキューであって、例えば電子メー
ルにおける“速達゛普通”“不急”という優先度に対応
づけた処理待ちキューである。In FIG. 1, a processing queue 1.2.3 is a processing queue that is associated with a priority, and for example, a processing queue that is associated with a priority such as "express delivery" or "non-urgent" for e-mail. It's a queue.
データ処理依頼部4は、処理依頼を受けたデータを受信
し、優先度の最も高い処理待ちキュー(優先度1)1に
エンキューするものである。The data processing request unit 4 receives the data requested to be processed and enqueues it in the processing queue 1 having the highest priority (priority 1).
データ処理部5は、処理待ちキュー1.2.3からデキ
ューしたデータの優先度が当該処理待ちキューl、2.
3の優先度に一致するときに処理を行い、それ以外のと
きに次の優先度の処理待ちキューにエンキューするもの
である。The data processing unit 5 determines that the priority of the data dequeued from the processing queue 1.2.3 is the corresponding processing queue l, 2.
The processing is performed when the priority matches the priority level 3, and the process is enqueued to the processing waiting queue of the next priority at other times.
次に、第2図フローチャートに示す順序に従い、第1図
構成の動作を詳細に説明する。Next, the operation of the configuration shown in FIG. 1 will be explained in detail in accordance with the order shown in the flowchart of FIG.
第2図において、■は、データ処理依頼部が依頼するデ
ータを優先度が最も高い処理待ちキューにエンキューす
る。これば、第1図データ処理依頼部4が依頼を受けた
データについて優先度の最も高い処理待ちキュー(優先
度1)1にエンキュする。In FIG. 2, ■ enqueues the data requested by the data processing requesting unit into the processing queue with the highest priority. Then, the data processing request unit 4 in FIG. 1 enqueues the requested data into the processing queue (priority 1) 1 having the highest priority.
[相]は、優先度が最も高い処理待ちキューを、データ
処理部の処理対象とする。In [phase], the processing queue with the highest priority is targeted for processing by the data processing unit.
[相]は、データ処理部に処理待ちキス−からデータを
デキューして取り出す。[Phase] dequeues and retrieves data from the queue waiting to be processed in the data processing unit.
■は、データが存在するか否かを判別する。これは、■
で取り出すデータが存在したか否かを判別する。YES
の場合には、[相]を行う。NOの場合には、当該処理
待ちキューにデータが存在しないので、[相]を行う。(2) determines whether data exists or not. This is ■
Determine whether the data to be retrieved exists. YES
In this case, perform [phase]. In the case of NO, since there is no data in the processing queue, [phase] is performed.
[相]は、取り出したデータの優先度と、処理待ちキュ
ーの優先度が同しか否かを判別する。YESの場合には
、[相]でデータの処理を行う。NOの場合には、■で
データを次の優先度の処理待ちキューにエンキューする
。[Phase] determines whether the priority of the retrieved data and the priority of the processing queue are the same. If YES, data is processed in [phase]. In the case of NO, the data is enqueued to the processing waiting queue of the next priority.
[相]は、現在処理中の処理待ちキューの規定の処理回
数を越えたか否かを判別する。YESの場合には、[相
]を行う。Noの場合には、未だ規定の処理回数を越え
ていないので、[相]以降を繰り返し行う。[Phase] determines whether the predetermined number of times of processing of the queue currently being processed has been exceeded. If YES, perform [phase]. If No, the predetermined number of times of processing has not yet been exceeded, so the steps after [phase] are repeated.
[相]は、次の優先度の処理待ちキューが存在するか否
かを判別する。YESの場合には、[相]で次の優先度
の処理待ちキューを、データ処理部の処理対象とし、[
相]以降を繰り返し行う。一方、NOの場合には、次の
優先度の処理待ちキューが存在しないので、@で最も優
先度の高い処理待ちキューを、データ処理部の処理対象
とし、最初から繰り返し行う。[Phase] determines whether there is a queue waiting to be processed with the next priority. If YES, the processing queue with the next priority in [Phase] is targeted for processing by the data processing unit, and [
Phase] Repeat the following steps. On the other hand, in the case of NO, since there is no waiting queue with the next priority, the processing queue with the highest priority in @ is set as the processing target of the data processing section, and the process is repeated from the beginning.
以上によって、当初全てのデータを優先度の最も高い処
理待ちキュー1にエンキューし、この優先度の最も高い
処理待ちキュー1からデキューして当該処理待ちキュー
1の優先度と同じときに処理を行い、それ以外のときに
次の優先度の処理待ちキューにエンキューすることを所
定回数繰り返した後に、次の優先度の処理待ちキューに
ついても同様に処理を行うことにより、依頼を受けたデ
ータの優先度を繰り上げて処理することが可能となる。As described above, all data is initially enqueued to the processing queue 1 with the highest priority, dequeued from this processing queue 1 with the highest priority, and processed when the priority is the same as that of the processing queue 1. , At other times, after repeating enqueuing to the processing queue of the next priority a predetermined number of times, the same process is performed for the processing queue of the next priority, thereby giving priority to the requested data. It becomes possible to carry out processing by increasing the degree.
次に、第3図を用いて具体例について説明する。Next, a specific example will be explained using FIG.
これは、優先度1のデータ処理回数を5回、優先度2の
データ処理回数を3回、優先度3のデータ処理回数を1
回とした場合のものである。ここで、データ処理依頼部
4の■に示すように、優先度lのデータb、dを2つ、
優先度2のデータa、cを2つ、優先度3のデータeを
1つの場合について説明する。This means that the number of times priority 1 data is processed is 5 times, the number of priority 2 data processing is 3 times, and the number of priority 3 data processing is 1 time.
This is the case when Here, as shown in ■ of the data processing requesting unit 4, two data b and d of priority l are
A case will be explained in which there are two pieces of data a and c of priority 2 and one piece of data e of priority 3.
■:データ処理依頼部4から図示のようにデータa(優
先度2)、b(優先度1)、C(優先度2)、d(優先
度1)、e(優先度3)の順でデータの処理を依頼する
。■: Data processing request unit 4 sends data a (priority 2), b (priority 1), C (priority 2), d (priority 1), e (priority 3) in the order shown in the figure. Request processing of your data.
■:最も高い優先度1の処理待ちキュー1に図示のよう
にエンキューする。■: Enqueue to processing queue 1 with the highest priority 1 as shown in the figure.
■:優先度1の処理待ちキュー1の先頭から順番にデー
タをデキューして取り出す。取り出した優先度1のデー
タb、dについてのみ処理を行い、それ以外のデータを
次の処理待ちキュー2にエンキューする。ここで、所定
回数5だけ処理を行ったので(あるいは処理待ちキュー
1からデキューするデータがなくなったとき)、次の優
先度2の処理待ちキュー2の処理に移る。この状態で、
図示のように、データa (優先度2)、C(優先度2
)、e(優先度3)の3つが処理待ちキュー2にエンキ
ューされる(■)。■: Dequeue and retrieve data in order from the head of processing queue 1 with priority 1. Only the retrieved data b and d with priority 1 are processed, and the other data are enqueued into the next processing queue 2. Here, since the processing has been performed a predetermined number of times 5 (or when there is no more data to be dequeued from the processing queue 1), processing moves to the next processing queue 2 with priority level 2. In this state,
As shown in the diagram, data a (priority 2), data C (priority 2)
), e (priority level 3) are enqueued into processing queue 2 (■).
■:優先度2の処理待ちキュー2の先頭から順番にデー
タをデキューして取り出す。取り出した優先度2のデー
タa、cについてのみ処理を行い、それ以外のデータを
次の処理待ちキュー3にエンキューする。ここで、所定
回数3だけ処理を行ったので(あるいは処理待ちキュー
2からデキューするデータがなくなったとき)、次の優
先度3の処理待ちキュー3の処理に移る。この状態で、
図示のように、データe(優先度3)の1つが処理待ち
キュー3にエンキューされる(■)。(2): Dequeue and retrieve data in order from the head of the processing queue 2 with priority 2. Only the retrieved data a and c of priority 2 are processed, and the other data are enqueued to the next processing queue 3. Here, since the processing has been performed a predetermined number of times 3 (or when there is no more data to be dequeued from the processing queue 2), processing moves to the next processing queue 3 with priority level 3. In this state,
As shown in the figure, one of the data e (priority 3) is enqueued in the processing queue 3 (■).
■:優先度3の処理待ちキュー3の先頭からデータをデ
キューして取り出す。取り出した優先度3のデータeに
ついて処理を行う。ここで、所定回数lだけ処理を行っ
たので(あるいは処理待ちキュー3からデキューするデ
ータがなくなったとき)、終了し、最初から処理を繰り
返し行う。■: Dequeue and retrieve data from the head of the processing queue 3 with priority level 3. The retrieved data e with priority level 3 is processed. Here, since the process has been performed a predetermined number of times l (or when there is no more data to be dequeued from the processing queue 3), the process is terminated and the process is repeated from the beginning.
以上説明したように、本発明によれば、依頼を受けたデ
ータを優先度の最も高い処理待ちキューにエンキューし
、処理待ちキューからデキューして取り出したデータが
当該処理待ちキューの優先度と同じときに処理を行い、
それ以外のときに次の優先度の処理待ちキューにエンキ
ューすることを所定回数繰り返した後、次の優先度の処
理待ちキューについても同様に繰り返し、優先度順に処
理を行う構成を採用しているため、処理依頼を受けたデ
ータのうちの優先度の高いものの順位を繰り上げて処理
し、指定した優先度を逆転することなく、優先度処理を
正確に行うことができる。As explained above, according to the present invention, requested data is enqueued to the processing queue with the highest priority, and the data dequeued and retrieved from the processing queue has the same priority as the processing queue. Sometimes processing is done,
At other times, after repeating enqueuing to the processing queue of the next priority a predetermined number of times, the same process is repeated for the processing queue of the next priority, and processing is performed in order of priority. Therefore, among the data requested to be processed, data with a high priority is processed by moving up the order, and priority processing can be performed accurately without reversing the specified priority.
第1図は本発明の1実施例構成図、第2図は本発明の動
作説明フローチャート、第3図は本発明の詳細な説明図
を示す。
図中、1.2.3は処理待ちキュー、4はデータ処理依
頼部、5はデータ処理部を表す。
1FIG. 1 is a block diagram of one embodiment of the present invention, FIG. 2 is a flowchart explaining the operation of the present invention, and FIG. 3 is a detailed explanatory diagram of the present invention. In the figure, 1.2.3 represents a processing queue, 4 represents a data processing request unit, and 5 represents a data processing unit. 1
Claims (1)
優先度制御方式において、 優先度に対応づけた処理待ちキュー(1)、(2)、(
3)などを設け、 処理依頼されたデータを優先度の最も高い処理待ちキュ
ー(1)に順次エンキューし、この優先度の最も高い処
理待ちキュー(1)から始めてデキューしたデータの優
先度が当該処理待ちキュー(1)の優先度に一致すると
きに処理を行い、それ以外のときに次の優先度の処理待
ちキューにエンキューすることを繰り返し所定回数行っ
た後、次の優先度の処理待ちキューについて同様に処理
を行うように構成したことを特徴とするデータ処理優先
度制御方式。[Claims] In a data processing priority control method for processing data according to a specified priority, processing queues (1), (2), (
3) etc., the data requested to be processed is sequentially enqueued to the processing queue (1) with the highest priority, and the priority of the dequeued data, starting from this processing queue (1) with the highest priority, is Processing is performed when the priority of the processing queue (1) matches, and enqueuing to the processing queue of the next priority is repeated a predetermined number of times. A data processing priority control method characterized by being configured to perform processing on queues in the same way.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP22394889A JPH0385641A (en) | 1989-08-30 | 1989-08-30 | Data processing precedence control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP22394889A JPH0385641A (en) | 1989-08-30 | 1989-08-30 | Data processing precedence control system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0385641A true JPH0385641A (en) | 1991-04-10 |
Family
ID=16806209
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP22394889A Pending JPH0385641A (en) | 1989-08-30 | 1989-08-30 | Data processing precedence control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0385641A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6084746A (en) * | 1997-03-04 | 2000-07-04 | Tdk Corporation | Magnetic head device |
JP2006510988A (en) * | 2002-12-19 | 2006-03-30 | クゥアルコム・インコーポレイテッド | Activated event processing |
-
1989
- 1989-08-30 JP JP22394889A patent/JPH0385641A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6522502B1 (en) | 1997-03-02 | 2003-02-18 | Tdk Corporation | Magnetic head device |
US6084746A (en) * | 1997-03-04 | 2000-07-04 | Tdk Corporation | Magnetic head device |
US6898840B1 (en) | 1997-03-04 | 2005-05-31 | Tdk Corporation | Method of fabricating a magnetic head device |
JP2006510988A (en) * | 2002-12-19 | 2006-03-30 | クゥアルコム・インコーポレイテッド | Activated event processing |
JP2011250421A (en) * | 2002-12-19 | 2011-12-08 | Qualcomm Incorporated | Triggering event processing |
JP2014002760A (en) * | 2002-12-19 | 2014-01-09 | Qualcomm Incorporated | Triggering event processing |
US10038999B2 (en) | 2002-12-19 | 2018-07-31 | Qualcomm Incorporated | Triggering event processing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5247671A (en) | Scalable schedules for serial communications controller in data processing systems | |
US6085277A (en) | Interrupt and message batching apparatus and method | |
US5428781A (en) | Distributed mechanism for the fast scheduling of shared objects and apparatus | |
US8108571B1 (en) | Multithreaded DMA controller | |
US7076781B2 (en) | Resource reservation for large-scale job scheduling | |
EP4047882A1 (en) | Operation control method and device, household electrical appliance, and storage medium | |
US20060072563A1 (en) | Packet processing | |
US6473780B1 (en) | Scheduling of direct memory access | |
KR970016979A (en) | Queuing system and method of tasks in a multiprocessing system | |
US5339449A (en) | System and method for reducing storage channels in disk systems | |
JPH0385641A (en) | Data processing precedence control system | |
US20200104193A1 (en) | Port Groups | |
JP2004517424A (en) | Server architecture | |
JP2915074B2 (en) | Event dequeueing method in multitask processing system | |
EP1115065B1 (en) | Effective channel priority processing for transfer controller with hub and ports | |
JPH0240723A (en) | Message transmission/reception control system | |
JPH0421150A (en) | On-line processing system | |
JPH09198261A (en) | Task scheduling device | |
JP2586157B2 (en) | System control unit | |
JPH06334705A (en) | Communication controller | |
JPH02196359A (en) | Data processing system | |
JPH11345133A (en) | Input/output control system | |
JPH0583323A (en) | Communication method | |
CN116048739A (en) | Task batch processing method and device, electronic equipment and storage medium | |
JP2500446B2 (en) | Collective message processing system with intermittent operation function |