JPH087666B2 - Spool print control method - Google Patents
Spool print control methodInfo
- Publication number
- JPH087666B2 JPH087666B2 JP1143432A JP14343289A JPH087666B2 JP H087666 B2 JPH087666 B2 JP H087666B2 JP 1143432 A JP1143432 A JP 1143432A JP 14343289 A JP14343289 A JP 14343289A JP H087666 B2 JPH087666 B2 JP H087666B2
- Authority
- JP
- Japan
- Prior art keywords
- stacker
- registered
- queue
- application
- 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.)
- Expired - Fee Related
Links
Description
【発明の詳細な説明】 〔概要〕 システムのスプール印刷機能を用いて印刷するスプー
ル印刷制御方式に関し、 アプリにスタッカを設け、システムの印刷待ち行列に
空きがないときに当該スタッカに印刷依頼を登録して処
理を続行し、アプリの処理効率を向上させることを目的
とし、 システムのスプール印刷機能が持つ印刷待ち行列に空
きがないときに登録するアプリ内に設けたスタッカと、
このスタッカに印刷依頼が登録されている場合に、上記
印刷待ち行列に空きが生じたときに当該スタッカから取
り出した印刷依頼をこの印刷待ち行列に登録する移行処
理とを備え、アプリが上記印刷待ち行列に空きのないと
きに印刷依頼を上記スタッカに登録して処理を続行し、
上記移行処理が当該スタッカに印刷依頼が登録されてい
た場合に上記印刷待ち行列に空きが生じたときにこれを
取り出して当該印刷待ち行列に登録し、印刷依頼するよ
うに構成する。DETAILED DESCRIPTION [Overview] Regarding a spool print control method for printing using a spool print function of a system, a stacker is provided in an application and a print request is registered in the stacker when the system print queue is full. The stacker provided in the application that is registered when the print queue of the system spool print function is full, with the aim of continuing processing and improving the processing efficiency of the application.
When a print request is registered in this stacker, a transfer process for registering the print request extracted from the stacker in the print queue when there is space in the print queue is provided, and the application waits for the print request. When there is no space in the queue, register the print request in the above stacker and continue processing,
When a print request is registered in the stacker in the transfer process, when there is a space in the print queue, this is taken out, registered in the print queue, and the print request is made.
本発明は、システムのスプール印刷機能を用いて印刷
するスプール印刷制御方式に関するものである。The present invention relates to a spool print control method for printing using a spool print function of a system.
従来、アプリケーションプログラム(以下アプリとい
う)がシステムのスプール印刷機能に印刷依頼して印刷
する場合、当該スプール印刷機能が保持する印刷待ち行
列に登録して印刷するようにしていた。この際、印刷待
ち行列(通常15個程度を登録できる)に空きがないと、
アプリは空きができるのを待って、空きができた時点で
印刷依頼していた。このため、空きのできるまでアプリ
が待機状態となってしまい、他の処理を実行できず、処
理効率が低下してしまうという問題があった。Conventionally, when an application program (hereinafter referred to as an application) requests the spool print function of the system to print, it is registered and printed in the print queue held by the spool print function. At this time, if there is no space in the print queue (usually about 15 can be registered),
The application waited for a vacant space, and when it became available, requested printing. For this reason, there is a problem that the application is in a standby state until it becomes available, other processing cannot be executed, and processing efficiency is reduced.
本発明は、アプリにスタッカを設け、システムの印刷
待ち行列に空きがないときに当該スタッカに印刷依頼を
登録して処理を続行し、アプリの処理効率を向上させる
ことを目的としている。It is an object of the present invention to provide a stacker for an application, register a print request in the stacker when the print queue of the system is full, and continue the processing to improve the processing efficiency of the application.
第1図を参照して課題を解決する手段を説明する。 Means for solving the problems will be described with reference to FIG.
第1図において、スプール印刷機能1は、システムが
持つ機能であって、印刷待ち行列2に登録された印刷依
頼を取り出して印刷させる機能である。In FIG. 1, the spool print function 1 is a function of the system, and is a function of taking out a print request registered in the print queue 2 and printing it.
印刷待ち行列2は、印刷依頼を登録するものである。 The print queue 2 is for registering print requests.
スタッカ3は、印刷待ち行列2に空きがないときに印
刷依頼を登録するアプリ内に設けたものである。The stacker 3 is provided in the application that registers a print request when the print queue 2 is full.
移行処理5は、スタッカ3に印刷依頼が登録されてい
る場合に、印刷待ち行列2に空きが生じたときに当該ス
タッカ3から取り出した印刷依頼をこの印刷待ち行列2
に登録する処理である。In the transfer process 5, when a print request is registered in the stacker 3, the print request taken out from the stacker 3 when the print queue 2 becomes vacant is transferred to the print queue 2
This is the process of registering with.
本発明は、第1図に示すように、アプリ内にスタッカ
3を設け、アプリが印刷依頼時にシステムのスプール印
刷機能1の印刷待ち行列2に空きがなかったときに当該
スタッカ3に印刷依頼を登録して処理を続行し、移行処
理5がスタッカ3に印刷依頼が登録されていることを見
つけたときに、空きが生じた印刷待ち行列2にこれを登
録して印刷依頼するようにしている。According to the present invention, as shown in FIG. 1, a stacker 3 is provided in an application, and when the application requests printing, there is no space in the print queue 2 of the spool print function 1 of the system. When the transfer process 5 finds that a print request is registered in the stacker 3, the process is registered and the process is registered in the print queue 2 in which a vacancy has occurred, and the print request is made. .
従って、アプリはシステムの印刷待ち行列2に空きが
ないときにスタッカ3に印刷依頼を登録して処理を続行
することができ、アプリの処理効率を向上させることが
可能となる。Therefore, the application can register the print request in the stacker 3 and continue the processing when there is no space in the print queue 2 of the system, and the processing efficiency of the application can be improved.
次に、第1図から第3図を用いて本発明の1実施例の
構成および動作を順次詳細に説明する。Next, the configuration and operation of one embodiment of the present invention will be sequentially described in detail with reference to FIGS. 1 to 3.
第1図(イ)において、スプール印刷機能1は、シス
テム領域(SG1、セグメント1)に格納されて動作する
機能であって、印刷待ち行列2に登録された印刷依頼を
取り出して印刷させる機能である。In FIG. 1 (a), the spool print function 1 is a function that is stored and operated in the system area (SG1, segment 1), and is a function that takes out the print request registered in the print queue 2 and prints it. is there.
印刷待ち行列2は、アプリからの印刷依頼を登録する
ものであって、通常15個程度の印刷依頼を登録すること
ができる待ち行列である。The print queue 2 is for registering print requests from applications, and is a queue that can normally register about 15 print requests.
スタッカ3は、印刷待ち行列2に空きがないときに印
刷依頼を登録するアプリ内に設けたものであって、印刷
待ち行列2に空きができたときに移すための一時的に登
録するスタッカである。The stacker 3 is provided in the application for registering a print request when the print queue 2 has no space, and is a stacker for temporarily registering when the print queue 2 has space. is there.
登録処理4は、印刷待ち行列2に空きがないときにア
プリ内に設けたスタッカ3に印刷依頼を登録するもので
ある(第2図参照)。The registration process 4 is to register the print request in the stacker 3 provided in the application when the print queue 2 is full (see FIG. 2).
第1図(ロ)は、スタッカ例を示す。 FIG. 1B shows an example of a stacker.
第1図(ロ)において、スタックポインタ3−1は、
スタック領域のうちの空き領域の先頭アドレスをポイン
トするポインタである。スタック領域は、n個から構成
され、登録済みと記載した上側から下側に向かってアプ
リからの印刷依頼を登録するようにしている。そして、
印刷待ち行列2に空きができたときに、登録順位の高い
登録済の印刷依頼を取り出して印刷待ち行列2に登録す
ると共に削除するようにしている。In FIG. 1B, the stack pointer 3-1 is
It is a pointer that points to the start address of an empty area in the stack area. The stack area is composed of n pieces, and the print request from the application is registered from the upper side described as registered to the lower side. And
When the print queue 2 becomes available, a registered print request with a high registration order is taken out, registered in the print queue 2, and deleted.
次に、第2図および第3図を用いて第1図構成の動作
を説明する。Next, the operation of the configuration shown in FIG. 1 will be described with reference to FIGS. 2 and 3.
第2図は、本発明に係わる登録処理フローチャートを
示す。FIG. 2 shows a registration processing flowchart according to the present invention.
第2図において、は、移行処理を呼び出す。これ
は、登録処理を行うに先立ち、第3図移行処理を呼び出
すようにしたものである。In FIG. 2, the shift process is called. This is to call the transfer process shown in FIG. 3 prior to performing the registration process.
は、新処理を印刷待ち行列2に登録しようとする。 Attempts to register a new process in print queue 2.
は、印刷待ち行列2への登録ができたか否かを判別
する。YESの場合には、終了する(END)。NOの場合に
は、を実行する。Determines whether registration to the print queue 2 has been completed. If YES, end (END). If NO, execute.
は、登録できなかった処理を、登録待ちスタッカ
(第1図スタッカ3)に登録しようとする。Attempts to register a process that could not be registered in the registration waiting stacker (stacker 3 in FIG. 1).
は、登録待ちスタッカへの登録ができたか否かを判
別する。YESの場合には、終了する(END)。NOの場合
(登録待ちスタッカが満杯の場合)には、でタイマー
WAIT(時間待ち状態)にし、所定時間経過後に以降の
処理を実行する。Determines whether or not registration to the registration waiting stacker has been completed. If YES, end (END). If NO (when the stacker waiting for registration is full), press
WAIT (time waiting state), and after the lapse of a predetermined time, the subsequent processing is executed.
以上の処理によって、システムのスプール印刷機能1
の印刷待ち行列2に空きがあるときにはこれにアプリか
らの印刷依頼を登録し、空きがないときにアプリ内に設
けたスタッカ3に登録し、更にこのスタッカ3にも空き
がないときにはアプリは待機状態になり、所定時間経過
後に再度繰り返すことにより、印刷待ち行列2に空きが
なくてもスタッカ3に印刷依頼を登録してアプリは処理
を続行することが可能となる。By the above processing, the spool print function 1 of the system
When there is an empty space in the print queue 2, the print request from the application is registered, when there is no space, it is registered in the stacker 3 provided in the application, and when this stacker 3 also has no space, the application waits. By entering the state and repeating again after a lapse of a predetermined time, even if there is no space in the print queue 2, the print request can be registered in the stacker 3 and the application can continue the process.
第3図は、本発明に係わる移行処理フローチャートを
示す。この処理は、定期的に起動あるいは、第2図で
起動される。FIG. 3 shows a migration processing flowchart according to the present invention. This process is activated periodically or as shown in FIG.
第3図において、は、登録待ちスタッカ(第1図ス
タッカ3)に登録待ち処理ありか否かを判別する。YES
の場合には、で登録待ちスタッカの先頭に登録されて
いる処理を、印刷待ち行列2に登録しようとする。NOの
場合には終了する(END)。In FIG. 3, it is determined whether or not there is a registration waiting process in the registration waiting stacker (stacker 3 in FIG. 1). YES
In the case of, the process registered at the top of the registration waiting stacker is tried to be registered in the print queue 2. If NO, end (END).
は、印刷待ち行列への登録ができたか否かを判別す
る。YESの場合には、登録できた処理を、登録持ちスタ
ッカから削除する。そして、以降を繰り返し実行す
る。NOの場合には、印刷待ち行列2が満杯であるため、
一旦終了する(END)。Determines whether registration to the print queue has been successful. If YES, delete the registered process from the registered stacker. Then, the subsequent steps are repeatedly executed. If NO, then print queue 2 is full,
End once (END).
以上の処理によって、定期的あるいは第2図で起動
された移行処理5がスタッカ3に印刷依頼が登録されて
いる場合、空きの印刷待ち行列2にこれを取り出して登
録することにより、アプリが当該スタッカ3に登録した
印刷依頼を印刷待ち行列2に登録して印刷依頼すること
が可能となる。By the above process, when the print request is registered in the stacker 3 periodically or in the transition process 5 started in FIG. 2, the application is extracted by registering the print request in the empty print queue 2. The print request registered in the stacker 3 can be registered in the print queue 2 to make a print request.
尚、第1図(イ)で登録処理4、移行処理5を共にア
プリ内に設けたが、システム領域に予めルーチン(ライ
ブラリ)として設け、これを呼び出して処理依頼するよ
うにしてもよい。Although the registration processing 4 and the migration processing 5 are both provided in the application in FIG. 1 (a), they may be provided as a routine (library) in the system area in advance and the processing request may be made by calling them.
〔発明の効果〕 以上説明したように、本発明によれば、アプリがシス
テムの印刷待ち行列2に空きがないときにスタッカ3に
印刷依頼を登録して処理を続行し、移行処理5が印刷待
ち行列2に空きができたときにこのスタッカ3から取り
出して当該印刷待ち行列2に登録して印刷依頼する構成
を採用しているため、システムのスプール印刷機能の印
刷待ち行列2に空きがなくても、アプリは当該アプリ内
に設けたスタッカ3に印刷依頼を登録して処理を続行す
ることができ、処理効率を向上させることが可能とな
る。[Effects of the Invention] As described above, according to the present invention, when an application has no space in the print queue 2 of the system, a print request is registered in the stacker 3 and the processing is continued, and the migration processing 5 prints. When the queue 2 becomes empty, it is taken out from the stacker 3, registered in the print queue 2 and requested to print. Therefore, there is no space in the print queue 2 of the spool print function of the system. However, the application can register the print request in the stacker 3 provided in the application and continue the processing, and the processing efficiency can be improved.
第1図は本発明の1実施例構成図、第2図は本発明に係
わる登録処理フローチャート、第3図は本発明に係わる
移行処理フローチャートを示す。 図中、1はスプール印刷機能、2は印刷待ち行列、3は
スタッカ、4は登録処理、5は移行処理を表す。FIG. 1 is a configuration diagram of an embodiment of the present invention, FIG. 2 is a registration processing flowchart according to the present invention, and FIG. 3 is a migration processing flowchart according to the present invention. In the figure, 1 is a spool print function, 2 is a print queue, 3 is a stacker, 4 is a registration process, and 5 is a transfer process.
Claims (1)
たシステムにおけるアプリケーションプログラムの印刷
制御方法であって、 前記印刷待ち行列に空がある場合には、印刷依頼を前記
印刷待ち行列に登録し、前記印刷待ち行列に空がない場
合には、前記アプリケーションプログラム内のスタッカ
に印刷依頼を登録すると共に、前記印刷待ち行列に空が
生じたときに、前記スタッカから登録されている印刷依
頼を取り出し、前記印刷待ち行列に登録することを特徴
とするスプール印刷制御方法。1. A print control method for an application program in a system having a print queue for spool printing, wherein when a print queue is empty, a print request is registered in the print queue. When there is no empty print queue, the print request is registered in the stacker in the application program, and when the print queue becomes empty, the registered print request is taken out from the stacker. A spool print control method characterized by registering in the print queue.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1143432A JPH087666B2 (en) | 1989-06-06 | 1989-06-06 | Spool print control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1143432A JPH087666B2 (en) | 1989-06-06 | 1989-06-06 | Spool print control method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH038010A JPH038010A (en) | 1991-01-16 |
| JPH087666B2 true JPH087666B2 (en) | 1996-01-29 |
Family
ID=15338579
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1143432A Expired - Fee Related JPH087666B2 (en) | 1989-06-06 | 1989-06-06 | Spool print control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH087666B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH04273374A (en) * | 1991-02-27 | 1992-09-29 | Hitachi Ltd | Automatic transaction machine |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH02277120A (en) * | 1989-04-18 | 1990-11-13 | Nec Corp | Queue control system for printer output |
-
1989
- 1989-06-06 JP JP1143432A patent/JPH087666B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH038010A (en) | 1991-01-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2000118095A (en) | Printing control apparatus, printing system using the same, printing control method and recording medium | |
| JPH03224036A (en) | Exclusive control system for resources | |
| JPH087666B2 (en) | Spool print control method | |
| JPS59129182A (en) | Print control method | |
| JP2604717B2 (en) | Write control method for journal records | |
| JP2985299B2 (en) | Exclusive control unit | |
| JPH10111770A (en) | Printing controler | |
| JP2575761B2 (en) | Job management method | |
| JPH05342119A (en) | Time activation control system | |
| JP2810839B2 (en) | Connection control device | |
| JPH02120928A (en) | Printer output control system | |
| JPH04320537A (en) | Synchronous processing method for parallel processing system | |
| JPS62184528A (en) | Printer controlling and processing system | |
| JPS6161405B2 (en) | ||
| JPH0365721A (en) | Print server | |
| JPH03252853A (en) | Processing order control system | |
| JPS63137347A (en) | Image data communication control system | |
| JPH06195181A (en) | Printer output device | |
| JPH06149592A (en) | Interrupt processing method of microcomputer | |
| JPH0136126B2 (en) | ||
| JPH08329226A (en) | Image forming device | |
| JPH0740236B2 (en) | Main memory contents saving method | |
| JPH05303524A (en) | Buffer control system | |
| JPH0561617A (en) | Printing control system | |
| JPH1040186A (en) | Information processor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080129 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090129 Year of fee payment: 13 |
|
| LAPS | Cancellation because of no payment of annual fees |