JPH02277120A - Queue control system for printer output - Google Patents

Queue control system for printer output

Info

Publication number
JPH02277120A
JPH02277120A JP1099787A JP9978789A JPH02277120A JP H02277120 A JPH02277120 A JP H02277120A JP 1099787 A JP1099787 A JP 1099787A JP 9978789 A JP9978789 A JP 9978789A JP H02277120 A JPH02277120 A JP H02277120A
Authority
JP
Japan
Prior art keywords
data
printer
queue
disk
output
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
JP1099787A
Other languages
Japanese (ja)
Inventor
Keiko Arima
有馬 啓伊子
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP1099787A priority Critical patent/JPH02277120A/en
Publication of JPH02277120A publication Critical patent/JPH02277120A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the omission of data for the printer output by providing a multi-process executing means, etc., and adding again the data which are dicarded during the overflow of the printer queue to the printer queue when the overflow is restored. CONSTITUTION:In a data process 7, the reception data obtained by a multi- process program 1 is written into a disk 3 and also added to a printer queue 5 to increase the number of queues by one while the index 9 of the disk 3 is controlled. In a printer output process 8, the output data equivalent to one item is taken out of the queue 5 and outputted to a printer 6. Thus the number of queues is decreased by one. When an overflow occurs, the reception data 2 is not added to the queue 5 and dicarded in an overflow state in the process 7. Then the dicarded data is read out of the disk 3 via the process 7 and added again to the queue 5 when the number of queues is decreased less than the fixed value. When all data are read, these data are added again to the queue 5 with no intervention of the disk 3. Thus the omission of data can be avoided.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は他システムとの間でデータ送受信を行い、受信
データをディスクに5F込むと同時にプリンタに出力す
る方式に関し、特にプリンタ出力のデータ抜けを回避す
るキュー管理方式に関する。
Detailed Description of the Invention (Field of Industrial Application) The present invention relates to a method for transmitting and receiving data with other systems and simultaneously outputting the received data to a 5F disk and outputting it to a printer. Concerning a queue management method that avoids this.

(従来の技術) 従来、プリンタ出力の処理速度は非常に遅いため、プリ
ンタ出力に使用されるデータ領域が限定されているプロ
グラムでは、出力データをキューとして積み、キューの
個数が最大数を越えた場合、プリンタ出力によってキュ
ーが一定数に減少するまでデータを廃棄していた。
(Prior art) Conventionally, the processing speed of printer output is very slow, so in programs where the data area used for printer output is limited, output data is stacked in queues and the number of queues exceeds the maximum number. In this case, data was discarded until the queue was reduced to a certain number by printer output.

(発明が解決しようとする課#1) 上述した従来のプリンタ出力方式では、受信データがプ
リンタ上に出力されない恐れがあると、利用者はプリン
トアウトされたデータをチエツクする必要がある。デー
タに抜けがあると、ディスクからデータを読出してプリ
ンタ上に出力するための別機能を用い、コマンドを入力
して、再びプリンタ上にデータを出力しなければならな
い。
(Problem #1 to be solved by the invention) In the conventional printer output method described above, if there is a possibility that the received data will not be output on the printer, the user needs to check the printed data. If data is missing, it is necessary to use another function to read the data from the disk and output it on the printer, input a command, and output the data on the printer again.

また、半導体メモリに限界があるにもかかわらず、キュ
ーに積む処理をせず、常にディスクからデータを読出し
てプリンタ上に出力すれば、データ抜けは起らないが、
半導体メモリに比べてディスクは処理時間が長いため、
処理速度が遅くなるという欠点がある。
In addition, despite the limitations of semiconductor memory, if data is always read from the disk and output to the printer without stacking it in a queue, data loss will not occur.
Disk processing time is longer than semiconductor memory, so
The disadvantage is that the processing speed is slow.

本発明の目的は、キューオーバーフローのなかに廃棄さ
れ九データを、オーバーフローの復旧した後、ディスク
から読込んでキューに積み直すことによって上記欠点を
除去し、データ抜けを回避することができるように構成
したプリンタ出力のキュー管理方式を提供することにあ
る。
An object of the present invention is to eliminate the above-mentioned drawbacks and avoid data dropout by reading the data discarded during queue overflow from the disk and reloading it into the queue after the overflow has been recovered. The purpose of the present invention is to provide a queue management method for printer output.

(課題を解決するための手段) 本発明によるプリンタ出力のキュー管理方式は、ディス
クと、プリンタと、マルチ処理実行手段とを具備して構
成したものである。
(Means for Solving the Problems) A queue management system for printer output according to the present invention is configured to include a disk, a printer, and multi-processing execution means.

ディスクは、他システムとの間でデータ送受信を行うシ
ステムにより受信されたデータを書込む之めのものであ
る。
A disk is used to write data received by a system that transmits and receives data to and from other systems.

プリンタは、上記によυ受信されたデータがディスクに
書込まれたときに出力するためのものである。
The printer is for outputting the data received above when written to the disk.

マルチ処理実行手段は、プリンタへの出力用のデータ領
域を限定するため、プリンタへの出力データをキューと
して積み、キューの数が最大数を越えたならば一定数に
減少するまでデータを廃棄し、キューが一定数に減少し
た後、廃棄されたデータをディスクから読込んでキュー
に積み直し、全データを読み終えたならば、再びメモリ
からキューに積むためのものである。
In order to limit the data area for output to the printer, the multi-processing execution means stores output data to the printer as a queue, and when the number of queues exceeds the maximum number, discards the data until it decreases to a certain number. After the queue is reduced to a certain number, the discarded data is read from the disk and reloaded onto the queue, and when all the data has been read, it is loaded onto the queue again from memory.

(実施列) 次に、本発明について図面を参照して説明する。(Implementation row) Next, the present invention will be explained with reference to the drawings.

第1図は、本発明によるプリンタ出力のキュ−+1#哩
方式の一実M flJを示すブロック図である。
FIG. 1 is a block diagram illustrating an example of a printer output queue type MflJ according to the present invention.

第1図において、1はマルチ処理プログラム、2は受信
データ、5はディスク、4はプリンタ出力用データ領域
、5はプリンタキュー、6はプリンタ、7はデータ処理
、8はプリンタ出力処理、9はインデクスである。
In FIG. 1, 1 is a multi-processing program, 2 is received data, 5 is a disk, 4 is a data area for printer output, 5 is a printer queue, 6 is a printer, 7 is data processing, 8 is printer output processing, 9 is It is an index.

データ処Tl 7においては、ディスク3の内部のイン
デクス9を管理しながらマルチ処理プログラム1釦より
受信されたデータをディスク5へ?込む。同時に、デー
タをプリンタキュー5に噴み、キューの数を1件だけ増
加させる。プリンタ出力処理8においては、プリンタキ
ュー5から1件分の出力データを取出し、プリンタ6に
出力する。
In the data processing Tl 7, data received from the multi-processing program 1 button is transferred to the disk 5 while managing the index 9 inside the disk 3. It's crowded. At the same time, data is injected into the printer queue 5, increasing the number of queues by one. In the printer output process 8, one piece of output data is taken out from the printer queue 5 and output to the printer 6.

プリンタ6ヘデータを出力した後、キューの数は1件だ
け減少する。プリンタ出力処理8はデータ処理7に:比
べて処理速度が遅いため、キューの数が最大做を越えて
オーバーフローすることがあ杭 データ処理Tにおいては、オーバーフロー中の受信デー
タ2をプリンタ上:j−−5に積ますに廃棄する。キュ
ーの数が一定数より少なくなつ九ならば、廃棄されたデ
ータをデータ処1哩7によりディスク3から読出し、プ
リンタキュー5へ撰み直す。
After outputting the data to the printer 6, the number of queues decreases by one. Since the processing speed of printer output processing 8 is slower than that of data processing 7, the number of queues may overflow beyond the maximum limit. --Discard when piled up in 5. If the number of queues is less than a certain number (9), the data processor 7 reads out the discarded data from the disk 3 and rearranges it into the printer queue 5.

全データを読出した後、再びディスク3を介さずにキュ
ーに積む。
After reading all the data, it is loaded onto the queue again without going through the disk 3.

第2図および第8図は、それぞれ@1図に示す実施列の
動作の流れ、およびその遷移を示すフローチャートおよ
び説明図である。
FIG. 2 and FIG. 8 are a flowchart and an explanatory diagram showing the flow of the operation of the implementation column shown in FIG. @1 and its transition, respectively.

ステップS1により受信されたデータをプリンタキュー
5に積むとき、キューが100個を越えないか否かをス
テップS2によシ判断する。キューが100個を越えな
ければステップS3によりデータをプリンタキュー5に
積むが、越える場合にはステップS4により当該データ
のディスク3内インデクス9をセーブし、ステップS5
によりデータを廃棄する。その後、ステップ86により
オーバー中の状!川とする。
When the data received in step S1 is loaded into the printer queue 5, it is determined in step S2 whether the number of queues does not exceed 100. If the number of queues does not exceed 100, the data is loaded into the printer queue 5 in step S3, but if the number exceeds 100, the index 9 of the data in the disk 3 is saved in step S4, and the data is stored in the printer queue 5 in step S5.
The data will be discarded. After that, in step 86, the state is over! Let it be a river.

データの受信時に、ステップS7によりキューオーバー
中の状態であることが川明したならば、ステップS8に
よりキューが50個以下シζ減少したか否かをチエツク
する。キューが50蘭以下に減少していない場合にはス
テップS9によりプリンタ6への出力データを廃棄する
が、減少している場合にはステップS10によりオーバ
ー中の状態を解除して読込み中の状態となる。
When receiving data, if it is determined in step S7 that the queue is over, it is checked in step S8 whether the number of queues has decreased by 50 or less. If the queue has not decreased to 50 or less, the output data to the printer 6 is discarded in step S9, but if it has decreased, the overloaded state is canceled and the reading state is changed to step S10. Become.

オーバーフローの発生時には、セーブされたインデクス
9を用いてステップSt IKより廃棄されたデータを
10件づつ読込み、ステップS12によりプリンタキュ
ー5に積む。
When an overflow occurs, the saved index 9 is used to read 10 pieces of discarded data from step St IK, and the data is loaded into the printer queue 5 in step S12.

データを受信するごとに、ディスク3からデータを読込
んでプリンタキュー5へ積込む動作を繰返し、ステップ
S13によりディスク3内のデータをすべてプリンタキ
ュー5に積み終えたものと判断されたならば、ステップ
S14により読込み中の状轢を解除する。
Each time data is received, the operation of reading the data from the disk 3 and loading it into the printer queue 5 is repeated, and if it is determined in step S13 that all the data on the disk 3 has been loaded into the printer queue 5, step In step S14, the reading status is canceled.

以後、正常状態に戻り、受信されたデータをディスク3
KmF込むと同時にプリンタキュー5へ積む。
After that, the normal state returns and the received data is transferred to disk 3.
Load KmF and load it into printer queue 5 at the same time.

(発明の効果) 以上説明したように本発明は、プリンタキューのオーバ
ーフロー中に廃棄されたデータをオーバーフローの復旧
した後に改めてプリンタキューに積むことKより、プリ
ンタ出力のデータ抜けを回避することができるため、利
用者が再びプリントアウトする必要がないという効果が
ある。
(Effects of the Invention) As explained above, the present invention makes it possible to avoid data omissions in printer output by reloading the data discarded during printer queue overflow into the printer queue after the overflow is restored. This has the effect that the user does not need to print it out again.

また、オーバーフローの復旧した後、ディスクから全デ
ータを読み終えると、再び半導体メモリに切替えて、プ
リンタへデータを出力するので、処理速度を改善するこ
とができるという効果がある。
Furthermore, after the overflow has been restored and all data has been read from the disk, the system switches to the semiconductor memory again and outputs the data to the printer, which has the effect of improving processing speed.

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

第1図は、本発明によるプリンタ出力のキュー管理方式
の一実M!lUレリを示すブロック図である。 Pg2図および第3図は、それぞれ第1図に示す実施f
iの動作の流れ、およびその遷移を示すフローチャート
および説明図である。 111・・マルチ処理プログラム 2・Φ−受信データ 3・・eディスク 4・魯・プリンタ出力用データ領域 5・・・プリンタキュー 6・・・プリンタ 7・・−データ処理 8・−・プリンタ出力処理 9・・・インデクス 特許出碩大 日本電気株式会社 代理人 弁理士 井ノロ   壽 才1図 才2図
FIG. 1 shows an example of the printer output queue management method according to the present invention. FIG. 2 is a block diagram showing an IU reli. Figures Pg2 and 3 are the implementation f shown in Figure 1, respectively.
FIG. 2 is a flowchart and an explanatory diagram showing the flow of operation of i and its transition. 111...Multi-processing program 2, Φ-received data 3, e-disk 4, data area for printer output 5, printer queue 6, printer 7...-data processing 8, printer output processing 9...Index patent author, NEC Corporation representative, patent attorney Inoro Jusai, 1 figure, 2 figures

Claims (1)

【特許請求の範囲】[Claims] 他システムとの間でデータ送受信を行うシステムにより
受信されたデータを書込むためのディスクと、前記受信
されたデータが前記デイスクへ書込まれたときに出力す
るためのプリンタと、前記プリンタへの出力用のデータ
領域を限定するため、前記プリンタへの出力データをキ
ューとして積み、前記キューの数が最大数を越えたなら
ば一定数に減少するまで前記データを廃棄し、前記キュ
ーが前記一定数に減少した後、前記廃棄されたデータを
ディスクから読んでキューに積み直し、全データを読み
終えたならば、再びメモリから前記キューに積むための
マルチ処理実行手段とを具備して構成したことを特徴と
するプリンタ出力のキュー管理方式。
A disk for writing data received by a system that transmits and receives data with other systems, a printer for outputting the received data when written to the disk, and a printer for the printer. In order to limit the data area for output, output data to the printer is stacked as a queue, and when the number of queues exceeds the maximum number, the data is discarded until the number decreases to a certain number, and when the queue is and a multi-processing execution means for reading the discarded data from the disk and reloading it on the queue after the number has been reduced, and loading the discarded data on the queue again from the memory after reading all the data. A printer output queue management method characterized by:
JP1099787A 1989-04-18 1989-04-18 Queue control system for printer output Pending JPH02277120A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1099787A JPH02277120A (en) 1989-04-18 1989-04-18 Queue control system for printer output

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1099787A JPH02277120A (en) 1989-04-18 1989-04-18 Queue control system for printer output

Publications (1)

Publication Number Publication Date
JPH02277120A true JPH02277120A (en) 1990-11-13

Family

ID=14256643

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1099787A Pending JPH02277120A (en) 1989-04-18 1989-04-18 Queue control system for printer output

Country Status (1)

Country Link
JP (1) JPH02277120A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH038010A (en) * 1989-06-06 1991-01-16 Fujitsu Ltd Spool print control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH038010A (en) * 1989-06-06 1991-01-16 Fujitsu Ltd Spool print control system

Similar Documents

Publication Publication Date Title
US4945510A (en) Register device
EP0078034B1 (en) Data processing machine suitable for high-speed processing
US7752507B2 (en) Circuit arrangement and method for supporting and monitoring a microcontroller
US4942524A (en) Software trap system which saves previous content of software trap handling pointer in a stack upon execution of a trap
CN115981893A (en) Message queue task processing method, device, server and storage medium
US7617389B2 (en) Event notifying method, event notifying device and processor system permitting inconsistent state of a counter managing number of non-notified events
JPH02277120A (en) Queue control system for printer output
EP0729104A2 (en) A data transfer control device for controlling data transfer between shared memories of clusters
US3201760A (en) Information handling apparatus
US4816992A (en) Method of operating a data processing system in response to an interrupt
JPS58178464A (en) parallel processing unit
US5161217A (en) Buffered address stack register with parallel input registers and overflow protection
JPS62293451A (en) Operating system for queue file
JPH03201032A (en) Arithmetic processing unit
JP2666732B2 (en) Load control method for computer system
JPH044630B2 (en)
JPS62274357A (en) Input/output scheduling method
JPS6341964A (en) Cue control method
JPS5842487B2 (en) Program loading method
JPS6120170A (en) Information processing system
JPS63153635A (en) Specification system for data transfer speed
JPH0317143B2 (en)
JPS599760A (en) Control system of electronic computer system
JPS63228488A (en) first in first out storage
JPS63826B2 (en)