JPH08289127A - Delivery queue controller - Google Patents

Delivery queue controller

Info

Publication number
JPH08289127A
JPH08289127A JP7111177A JP11117795A JPH08289127A JP H08289127 A JPH08289127 A JP H08289127A JP 7111177 A JP7111177 A JP 7111177A JP 11117795 A JP11117795 A JP 11117795A JP H08289127 A JPH08289127 A JP H08289127A
Authority
JP
Japan
Prior art keywords
priority
processing
processed
queue
messages
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
JP7111177A
Other languages
Japanese (ja)
Inventor
Yoichi Norimatsu
陽一 則松
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP7111177A priority Critical patent/JPH08289127A/en
Publication of JPH08289127A publication Critical patent/JPH08289127A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Facsimile Transmission Control (AREA)

Abstract

PURPOSE: To prevent processing of a text with low priority from being delayed or not executed. CONSTITUTION: The number of processed texts is counted by a processed counter 1 and a decision section 2 compares the processing number with a prescribed value. When the processing number reaches a prescribed value, a processing changeover section 3 selects processing with low priority even during the processing with high priority when the processing number reaches the prescribed value and a prescribed number of texts with low priority is processed. As a result, the execution of only the processing with high priority is avoided and the processing with lower priority is conducted with excellent balancing. Furthermore, through the changeover device of the processing changeover section 3, the prescribed number of texts from the highest priority till the lowest priority are respectively processed. As a result, texts are processed independently of the priority. In this case, the number of texts is increased more toward the higher priority.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、FAX−OCRシステ
ム等における配送待ち行列制御装置に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a delivery queue control device in a FAX-OCR system or the like.

【0002】[0002]

【従来の技術】従来、FAX−OCRシステム等におい
ては、送信すべき電文の待ち行列を蓄積交換部に格納す
るようにしている。このような待ち行列は、優先順位ご
とにつくられる。そして、待ち行列を処理する際は、優
先順位の高いものから順に処理する。優先順位が高い待
ち行列の処理がすべて終了した後は、優先順位の低い待
ち行列の処理を開始する。
2. Description of the Related Art Conventionally, in a FAX-OCR system or the like, a queue of messages to be transmitted is stored in a storage exchange unit. Such a queue is created for each priority. Then, when the queue is processed, the queues are processed in descending order of priority. After the processing of the high priority queue is completed, the processing of the low priority queue is started.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述し
た従来の技術には、次のような課題があった。即ち、F
AX−OCRシステム等においては、待ち行列に新たな
電文等が次々に加えられるため、優先順位の高い電文ば
かりが新たに加えられる場合はそれらの電文の処理がな
かなか終らず、優先順位の低い電文の処理は開始されな
くなってしまった。このため、処理の制限時間が設定さ
れている場合には、優先順位の低い電文が最終的に処理
されなくなってしまう場合もあり、システムの運用に支
障を来してしまう場合があった。
However, the above-mentioned conventional techniques have the following problems. That is, F
In the AX-OCR system and the like, new messages and the like are added to the queue one after another, so when only high-priority messages are newly added, the processing of those messages does not end easily, and low-priority messages are added. The process of is no longer started. Therefore, when the processing time limit is set, a message with a lower priority may not be finally processed, which may hinder the operation of the system.

【0004】[0004]

【課題を解決するための手段】本発明の配送待ち行列制
御装置は、上述した課題を解決するため、優先順位の高
い電文と、優先順位の低い電文とを含む待ち行列を処理
するシステムにおいて、以下の点を特徴とするものであ
る。 (1) 待ち行列に含まれる電文の処理数を計数する処理済カ
ウンタを備える。 当該処理済カウンタにより計数される処理数を所定の
判定値と比較判定する判定部を備える。 当該判定部により処理済カウンタが計数する処理数が
所定の判定値を超えたとき、優先順位の高い電文の処理
を中断し、優先順位の低い電文の処理に切り換え、当該
優先順位の低い電文の処理を所定数行った後、再び優先
順位の高い電文の処理に切り換える処理切換部を備え
る。
In order to solve the above-mentioned problems, a delivery queue control device of the present invention is a system for processing a queue including a telegram having a high priority and a telegram having a low priority. It is characterized by the following points. (1) A processed counter is provided to count the number of processed electronic messages included in the queue. A determination unit that determines the number of processes counted by the processed counter by comparing with a predetermined determination value is provided. When the number of processes counted by the processing counter by the determination unit exceeds a predetermined determination value, the processing of the telegram having a high priority is interrupted, and the processing of the telegram having a low priority is switched to the processing of the telegram having the low priority. After performing a predetermined number of processes, a process switching unit that switches again to the process of a high-priority message is provided.

【0005】(2)(1)において、判定部は、各優先
順位ごとに各所定数を判定し、処理切換部は、各所定数
の処理が行われるごとに処理を切り換えていき、各優先
順位の処理を一通り行い、処理済カウンタを初期化して
同様の手順で各優先順位の処理を一通り行うことを繰り
返すことを特徴とする。
(2) In (1), the determining unit determines each predetermined number for each priority, and the process switching unit switches the process after each predetermined number of processes is performed, and each process of each priority is performed. It is characterized in that the processing is executed once, the processed counter is initialized, and the processing of each priority order is repeated in the same procedure.

【0006】[0006]

【作用】[Action]

(1)処理済カウンタにより電文の処理数が計数され、
判定部によりその処理数が所定値と比較される。そし
て、処理数が所定値に達したときは、優先順位の高い処
理の途中であっても、処理切換部により優先順位の低い
処理に切り換え、優先順位の低い電文を所定数処理す
る。この結果、優先順位が高い処理ばかりが処理される
ことがなく、優先順位の低い処理もバランスよく処理さ
れる。
(1) The processed counter counts the number of processed messages,
The determination unit compares the number of processes with a predetermined value. When the number of processes reaches a predetermined value, the process switching unit switches to a process with a lower priority and processes a predetermined number of low-priority messages even during the process with a high priority. As a result, only the processes with high priority are not processed, and the processes with low priority are processed in a balanced manner.

【0007】(2)(1)において、処理切換部の切換
により、優先順位の最も高い電文から優先順位の最も低
い電文まで各所定数ずつの電文を処理する。この結果、
優先順位にかかわらず、一通りの電文の処理がなされ
る。この場合、優先順位の高い処理ほど一回の処理数が
多くなるようにする。
(2) In (1), a predetermined number of messages are processed from the message having the highest priority to the message having the lowest priority by switching the process switching unit. As a result,
A single message is processed regardless of the priority. In this case, the higher the priority is, the larger the number of times of processing is.

【0008】[0008]

【実施例】以下、本発明の実施例を図面を参照して詳細
に説明する。図1は、本発明の配送待ち行列制御装置の
一実施例のブロック図である。図示の装置10は、FA
X−OCRシステム等に備えられており、処理済カウン
タ1、判定部2、処理切換部3等から成る。この装置1
0は、待ち行列20に含まれる電文11、21等を処理
する。即ち、装置10は、各電文11、21等を受信
し、出力側30への電文31、32等として配送する。
この場合、待ち行列20のうち、電文11、12、13
は優先順位が高く、電文21、22、23は優先順位が
低い。処理済カウンタ1は、装置で処理された電文の総
数を計数する。即ち、処理済カウンタ1は、待ち行列に
含まれる電文を処理するごとにその数を計数する。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a block diagram of an embodiment of the delivery queue control device of the present invention. The illustrated device 10 is an FA
It is provided in the X-OCR system and the like, and includes a processed counter 1, a determination unit 2, a processing switching unit 3, and the like. This device 1
0 processes the electronic messages 11, 21 and the like included in the queue 20. That is, the device 10 receives the respective electronic messages 11, 21 and the like and delivers them to the output side 30 as electronic messages 31, 32 and the like.
In this case, messages 11, 12, 13 in the queue 20
Has a high priority, and telegrams 21, 22, and 23 have a low priority. The processed counter 1 counts the total number of electronic messages processed by the device. That is, the processed counter 1 counts the number of electronic messages included in the queue each time they are processed.

【0009】判定部2は、処理済カウンタ1の内容を所
定値と比較して所定値より大きいか否かを判定する。こ
の判定値は、待ち行列の優先順位の数と等しい種類のも
のが設けられる。例えば、図1に示す例では、優先順位
の高いものと、低いものとに対応して2種類設けられて
いる。この詳細については、図2及び図3の説明におい
て後述する。処理切換部3は、判定部2により処理済カ
ウンタ1の計数値が所定値より大きくなったと判別され
たとき、装置10による処理を、優先順位の高い電文の
処理から優先順位の低い電文の処理へ切り換える。
The determination unit 2 compares the content of the processed counter 1 with a predetermined value to determine whether or not it is larger than the predetermined value. This judgment value is provided with the same kind as the number of queue priorities. For example, in the example shown in FIG. 1, two types are provided corresponding to high priority and low priority. Details of this will be described later in the description of FIGS. 2 and 3. When the determination unit 2 determines that the count value of the processed counter 1 has become larger than the predetermined value, the process switching unit 3 causes the device 10 to perform the process from the process of the high priority message to the process of the low priority message. Switch to.

【0010】次に、上述した装置の動作を説明する。出
力待ちの電文の優先順位は、一般に1位からk位まであ
るが、図1に示す例では、1位及び2位のみとする。ま
ず、ステップS1で処理済カウンタ1を“0”に初期設
定する。そして、ステップS2で優先順位1位の出力待
ち行列が存在する場合、ステップS3でこの出力待ち行
列につながっている電文キューから出力要求が行われて
いる電文を1つ取り出し、出力処理へ渡す。この場合、
ステップS2でこの優先順位1位につながっている電文
キューがすべてなくなったら、ステップS6で優先順位
2位の出力待ち行列を検索する。即ち、優先順位1位と
同様に、ステップS7で優先順位2位につながっている
電文キューから出力要求の電文を1つ取り出し、出力処
理へ渡す。優先順位が3以降のキューがあるときは、以
降、上記と同様に最後の優先順位k位まで同じ処理を繰
り返す。
Next, the operation of the above-mentioned device will be described. Generally, the priority order of the messages waiting to be output is from 1st to kth, but in the example shown in FIG. First, in step S1, the processed counter 1 is initialized to "0". Then, if there is an output queue with the first priority in step S2, one message for which an output request is made is taken out from the message queue connected to this output queue in step S3, and is passed to the output process. in this case,
When all the message queues connected to the first priority are exhausted in step S2, the output queue with the second priority is searched in step S6. That is, as in the case of the first priority, one message of the output request is extracted from the message queue connected to the second priority in step S7, and is passed to the output process. When there is a queue with a priority of 3 or higher, the same processing is repeated thereafter up to the last priority of k, similarly to the above.

【0011】上述した処理において、ステップS3で優
先順位1位の出力待ち行列の電文を取り出して処理した
後は、ステップS4で処理済カウンタ1に値“1”を加
える。そして、処理済カウンタ1が所定値lより大きく
なったとき、優先順位1位の電文がまだ残っていてもそ
の処理を行わずに優先順位2位の電文の処理に進む。ま
た、ステップS7で優先順位2位の出力待ち行列の電文
を取り出して処理した後も、ステップS8で処理済カウ
ンタ1に値“1”を加える。そして、処理済カウンタ1
が所定値mより大きくなったとき、優先順位2位の電文
がまだ残っていてもその処理を行わずに優先順位3位以
降の処理に進む。この際、優先順位3以降の処理がない
ときは、優先順位1位の電文の処理に戻る。
In the above-mentioned processing, after the message in the output queue having the first priority is fetched and processed in step S3, the value "1" is added to the processed counter 1 in step S4. Then, when the processed counter 1 becomes larger than the predetermined value l, even if the message with the first priority is still left, the process is not performed and the process with the message with the second priority is performed. Further, after the message in the output queue having the second highest priority is taken out and processed in step S7, the value "1" is added to the processed counter 1 in step S8. And processed counter 1
Is larger than the predetermined value m, even if the telegram having the second highest priority remains, the process is not performed and the process proceeds to the third priority and thereafter. At this time, when there is no processing of priority 3 or higher, the processing returns to the processing of the telegram having the first priority.

【0012】このようにして、図4に示すように優先順
位1位の電文11、12、13を含む待ち行列a1を処
理した後は、優先順位2位の電文が処理される。そし
て、優先順位2位の電文21、22、23を含む待ち行
列b1が処理された後は、図示のように優先順位3以降
の電文があるときは、それらの待ち行列c1、d1、e
1が処理される。その後、図2のステップS1により処
理済カウンタ1が“0”に再設定され、再び優先順位1
位の処理に戻る。そして、優先順位1位の残りの電文の
待ち行列a2が処理される。この場合、図示の点線に示
すように、新たに電文が追加されているときは、それら
の電文も処理される。そして、待ち行列b2、c2、d
2、e2を同様に処理する。ここで、処理済カウンタ1
を判断し、優先順位の次の順位へ処理を移行させる判定
値l、mは任意に変えられるものとする。
In this way, as shown in FIG. 4, after processing the queue a1 including the telegrams 11, 12, and 13 having the first priority, the telegram having the second priority is processed. Then, after the queue b1 including the telegrams 21, 22, and 23 of the second priority is processed, if there are telegrams of the priority 3 or higher as shown in the figure, those queues c1, d1, e
1 is processed. After that, the processed counter 1 is reset to "0" in step S1 of FIG.
Return to rank processing. Then, the queue a2 of the remaining telegrams having the first priority is processed. In this case, as shown by the dotted line in the figure, when new electronic messages are added, those electronic messages are also processed. And the queues b2, c2, d
2 and e2 are processed similarly. Where processed counter 1
It is assumed that the judgment values 1 and m for making a decision to determine whether or not to shift the processing to the next priority order can be arbitrarily changed.

【0013】図2、図3の場合、これらの判定値l、m
の関係は、m>lとなる。これらの判定値は、各優先順
位の電文のトラフィックを考慮した上で決定する。例え
ば、図4の例では、優先順位1位の待ち行列の電文の処
理数を16個とし、優先順位2位の待ち行列の電文の処
理数を8個とし、優先順位3位の待ち行列の電文の処理
数を4個とし、優先順位4位の待ち行列の電文の処理数
を2個とし、優先順位5位以降の待ち行列の電文の処理
数を1個としている。この場合、判定値lは、“16”
となり、判定値mは、“16+8=24”となる。以上
のようにして、優先順位の高い待ち行列ばかり存在する
場合、優先順位の低い待ち行列の配送が遅れることを改
善し、優先順位の低い待ち行列につなげられている電文
もバランスよく配送することができる。
In the case of FIGS. 2 and 3, these judgment values l, m
The relationship is m> l. These judgment values are determined in consideration of the traffic of the telegram of each priority. For example, in the example of FIG. 4, the number of messages processed in the first priority queue is 16, the number of messages processed in the second priority queue is 8, and the number of messages processed in the third priority queue is The number of messages processed is 4, the number of messages processed in the queue with the fourth priority is two, and the number of messages processed in the queue with the fifth priority is one. In this case, the judgment value l is "16"
Therefore, the determination value m is “16 + 8 = 24”. As described above, when there are only high-priority queues, the delivery of low-priority queues is improved and the messages connected to low-priority queues are delivered in a well-balanced manner. You can

【0014】尚、本発明は上述した実施例に限定される
ものではなく、種々の変形が可能であることはもちろん
である。例えば、処理済カウンタ1は電文の総処理数を
計数するものを1つのみ設けているが、各優先順位ごと
に電文数を計数するカウンタを設けるようにしてもよ
い。
The present invention is not limited to the above-mentioned embodiments, and it goes without saying that various modifications can be made. For example, the processed counter 1 is provided with only one for counting the total number of messages processed, but a counter for counting the number of messages with each priority may be provided.

【0015】[0015]

【発明の効果】以上説明したように、本発明の配送待ち
行列制御装置によれば、優先順位の高い電文を所定数処
理した後は優先順位の低い電文を処理するようにしたの
で、次のような効果がある。即ち、FAX−OCRシス
テム等において、待ち行列に新たな電文等が次々に加え
られても、優先順位の高い電文ばかりが処理されること
がなく、優先順位の低い電文の処理も所定時間内に処理
されるようにすることができる。このため、処理の制限
時間が設定されている場合でも、優先順位の低い電文が
最終的に処理されなくなってしまうことはなく、システ
ムの運用に支障を来すことがない。
As described above, according to the delivery queue control device of the present invention, after processing a predetermined number of high priority messages, low priority messages are processed. There is such an effect. That is, in the FAX-OCR system and the like, even if new messages are added to the queue one after another, only the messages with high priority are not processed, and the messages with low priority are processed within a predetermined time. Can be processed. Therefore, even if the time limit for processing is set, a telegram with a low priority will not be finally processed, and the operation of the system will not be hindered.

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

【図1】本発明の配送待ち行列制御装置の一実施例のブ
ロック図である。
FIG. 1 is a block diagram of an embodiment of a delivery queue control device of the present invention.

【図2】本発明に係る処理手順(その1)の説明図であ
る。
FIG. 2 is an explanatory diagram of a processing procedure (No. 1) according to the present invention.

【図3】本発明に係る処理手順(その2)の説明図であ
る。
FIG. 3 is an explanatory diagram of a processing procedure (No. 2) according to the present invention.

【図4】本発明に係る配送待ち行列制御過程の説明図で
ある。
FIG. 4 is an explanatory diagram of a delivery queue control process according to the present invention.

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

1 処理済カウンタ 2 判定部 3 処理切換部 1 Processed counter 2 Judgment unit 3 Process switching unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 優先順位の高い電文と、優先順位の低い
電文とを含む待ち行列を処理するシステムにおいて、 前記待ち行列に含まれる電文の処理数を計数する処理済
カウンタと、 当該処理済カウンタにより計数される処理数を所定の判
定値と比較判定する判定部と、 当該判定部により前記処理済カウンタが計数する処理数
が所定の判定値を超えたとき、前記優先順位の高い電文
の処理を中断し、前記優先順位の低い電文の処理に切り
換え、当該優先順位の低い電文の処理を所定数行った
後、再び前記優先順位の高い電文の処理に切り換える処
理切換部とを備えたことを特徴とする配送待ち行列制御
装置。
1. A system for processing a queue including a high-priority telegram and a low-priority telegram, wherein a processed counter for counting the number of processed telegrams included in the queue, and the processed counter. A determination unit that compares the number of processes counted by a predetermined determination value with a predetermined determination value; and when the number of processes counted by the processed counter by the determination unit exceeds a predetermined determination value, the processing of the message with high priority is performed. And a processing switching unit that switches to processing of the low-priority telegram, performs a predetermined number of processing of the low-priority telegram, and then switches to the high-priority telegram processing again. A characteristic delivery queue control device.
【請求項2】 前記判定部は、各優先順位ごとに各所定
数を判定し、前記処理切換部は、前記各所定数の処理が
行われるごとに処理を切り換えていき、各優先順位の処
理を一通り行い、前記処理済カウンタを初期化して同様
の手順で各優先順位の処理を一通り行うことを繰り返す
ことを特徴とする請求項1記載の配送待ち行列制御装
置。
2. The determination unit determines each predetermined number for each priority, and the process switching unit switches the process each time the predetermined number of processes is performed, and the process of each priority is 2. The delivery queue control device according to claim 1, wherein the processing is repeated as described above, and the processed counter is initialized and the processing of each priority order is repeated in the same procedure.
JP7111177A 1995-04-12 1995-04-12 Delivery queue controller Pending JPH08289127A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7111177A JPH08289127A (en) 1995-04-12 1995-04-12 Delivery queue controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7111177A JPH08289127A (en) 1995-04-12 1995-04-12 Delivery queue controller

Publications (1)

Publication Number Publication Date
JPH08289127A true JPH08289127A (en) 1996-11-01

Family

ID=14554450

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7111177A Pending JPH08289127A (en) 1995-04-12 1995-04-12 Delivery queue controller

Country Status (1)

Country Link
JP (1) JPH08289127A (en)

Similar Documents

Publication Publication Date Title
EP1774714B1 (en) Hierarchal scheduler with multiple scheduling lanes
US7899069B2 (en) Priority based bandwidth allocation within real-time and non-real-time traffic streams
JP4750955B2 (en) Limited priority queue scheduler
US7710962B2 (en) Packet forwarding apparatus and method for multicast packets
US8000247B2 (en) Bandwidth management apparatus
CN108234455B (en) Message forwarding control method and device, computer device and storage medium
JPH1093591A (en) Method for optimum transmission of atm cell
WO2006091175A1 (en) Method and apparatus for buffer management in shared memory packet processors
US6732209B1 (en) Data rate division among a plurality of input queues
US6445706B1 (en) Method and device in telecommunications system
JP2967767B2 (en) Scheduling method in ATM switch
JPH06232904A (en) Priority control system in router
JPH08289127A (en) Delivery queue controller
US20030058879A1 (en) Scalable hardware scheduler time based calendar search algorithm
JPH09321768A (en) Atm exchange
US7477650B2 (en) Method and apparatus for frame-aware and pipelined hierarchical scheduling
JP2008010905A (en) Priority control method and apparatus at packet transmission
US7782780B1 (en) System and method for arbitration of multicast data packets using holds
JP3075650B2 (en) Packet transmission equipment for packet switching equipment
US6891846B2 (en) Method and apparatus for a traffic shaper
JP2724036B2 (en) B channel selection method
CN104919769A (en) Scheduler for deciding final output queue by selectingone of multiple candidate output queues and related method
JPH07336389A (en) Packet exchange device enabling transmission priority control
JPH10336196A (en) Output conflict controller
CN117675710A (en) Network congestion control method, system, equipment and storage medium