JP3617518B2 - Spool management device - Google Patents

Spool management device Download PDF

Info

Publication number
JP3617518B2
JP3617518B2 JP2003150121A JP2003150121A JP3617518B2 JP 3617518 B2 JP3617518 B2 JP 3617518B2 JP 2003150121 A JP2003150121 A JP 2003150121A JP 2003150121 A JP2003150121 A JP 2003150121A JP 3617518 B2 JP3617518 B2 JP 3617518B2
Authority
JP
Japan
Prior art keywords
date
queue
time
spool
queue element
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 - Lifetime
Application number
JP2003150121A
Other languages
Japanese (ja)
Other versions
JP2003337689A (en
Inventor
謙 村田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2003150121A priority Critical patent/JP3617518B2/en
Publication of JP2003337689A publication Critical patent/JP2003337689A/en
Application granted granted Critical
Publication of JP3617518B2 publication Critical patent/JP3617518B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、計算機で実行されるジョブの、スプールデータを管理するためのスプール管理処理装置に関する。
【0002】
【従来の技術】
計算機で実行されるジョブに関して、ジョブの処理結果のプリンタ装置等への出力、或いはジョブを規定し、又その入力データを入力するための、いわゆるジョブ制御言語又はコマンド列の入力を、ジョブの実行とは切り離して、全く非同期に入出力することにより、計算機の利用効率を高める機能が、スプール機能と呼ばれ、それらの入出力データがスプールデータと呼ばれることは、よく知られているとおりである。
【0003】
スプール機能を持つ計算機においては、例えばジョブは出力をスプール制御部に渡し、スプール制御部はその出力のスプールデータをスプールバッファの磁気ディスク記憶装置等に格納する。
【0004】
又、出力が例えば或るプリンタ装置への出力であれば、スプールデータに対応して作成するキュー要素を、そのプリンタ装置への出力を制御するプログラムについて設けキューにつなぐ。
【0005】
又、そのような出力用のキューにキュー要素がつながれていれば、そのキューに対応する出力プログラムを起動して、キュー要素を渡し、その出力プログラムは、キュー要素から指示されるスプールデータをスプールバッファから読みだして出力する。
【0006】
出力プログラムは、一つのスプールデータを処理し終わったとき、なお該当キューにキュー要素がつながっていれば、それを受け取って前記のように処理を続け、キュー要素がなくなるまで処理して終了する。
【0007】
以上のようにスプールデータは、先着のスプールデータが処理中であれば待ち合わせとなるが、順番が来れば直ちに処理されるのが原則である。
【0008】
【発明が解決しようとする課題】
しかし、近年計算機の出力を直接ファクシミリで伝送することが行われるようになって、ファクシミリによる出力は、例えば通信料の安価な時間帯を待って行いたいという要求が生じている。
【0009】
又、コンパイル・リスト等の大量になり勝ちな出力について、出力の繁忙時を避けることにより、他のジョブの出力の遅延を軽減したいという運用上の要求がある。
【0010】
本発明は、スプールデータに処理時刻の日時指定を可能とし、以上のようにスプールデータの処理を遅延させる要求を満たすことのできるスプール管理処理装置を目的とする。
【0011】
【課題を解決するための手段】
図1は、本発明の構成を示すブロック図である。
【0012】
図はスプール管理処理装置の構成であって、計算機で実行されるジョブの、ジョブ入力及びジョブ出力を、スプールデータとして、該ジョブの実行と切り離して非同期に処理するためにスプールデータを管理するスプール管理処理装置であって、スプール格納部1、日時パトロール部2及びスプール取り出し部3を有する。
【0013】
スプール格納部1は、該スプールデータ4を受け取って、所定のバッファ8に格納し、当該スプールデータ4に対応するキュー要素5を作成して、スプールデータ4を処理するプログラムに対応して設けるキュー6に接続し、スプールデータ4に指定された日時指定を、キュー要素5に対応して日時指定の記録7に記録する。
【0014】
日時パトロール部2は、所定時間ごとに起動して、日時指定の記録7を走査することにより、キュー6から該記録の日時が、該起動時刻より以前になっているキュー要素5を検出して、スプール取り出し部3に通知する。
【0015】
スプール取り出し部3は、該通知されたキュー要素5をキュー6から外し、当該キュー要素5に対応するスプールデータ4を、当該キュー6に定まるプログラムに通知する。
【0016】
【作用】
本発明のスプール管理処理装置により、スプールデータに日時指定をすれば、日時パトロール機能によって日時を監視し、指定の日時まで待って各スプールデータを処理するように管理する。
【0017】
なお、従来どおり日時指定を行わないスプールデータは、即時処理の要求として処理する。
【0018】
【発明の実施の形態】
図2は、本発明の実施例を示すブロック図であり、 図2(a)において、プログラム9はスプールデータを生成する各種業務ジョブのプログラム、或いはジョブ入力データを受け取るプログラムであって、それらのスプールデータをスプール管理処理装置14に渡して、スプール管理を要求する。
【0019】
その際プログラム9は、スプールデータを処理するプログラム或いは出力先を指定し、又処理の日時を指定する。但し、処理日時を特に指定する必要の無い場合は指定を省略することにより即時処理の要求とされる。
【0020】
図2(a)のスプール管理処理装置14の、スプール格納部11、日時パトロール部12及びスプール取り出し部13は、それぞれ 図1のスプール格納部1、日時パトロール部2及びスプール取り出し部3に対応し、スプール格納部11がプログラム9から要求されたスプールデータをスプールデータ4として、磁気ディスク記憶装置等のバッファ8に格納する。
【0021】
又、スプール格納部11は、格納したスプールデータ4を指示するポインタ、指定日時等を保持するキュー要素15を作成し、キュー管理機構18のキューに接続する。
【0022】
キュー管理機構18は、例えばスプール管理要求で指定される、処理するプログラム、或いは指定出力先のプリンタ装置によって定まる出力プログラム等、スプールデータの処理内容によって異なるプログラムが必要な場合に、それらのプログラム別に設けられる。
【0023】
各キュー管理機構18には、図示のようにキュー管理情報16と取り出し待ちプログラム情報17を有し、キュー管理情報16には後述のようにキュー要素15のキューが接続される。
【0024】
取り出し待ちプログラム情報17には、このキュー管理機構で待ち合わせるスプールデータを処理するプログラムについて、プログラムを起動するために必要な制御ブロックのアドレス等の制御情報を、並行に実行させるプログラムの数だけの項目数登録してある。
【0025】
図2(b)は、キューの詳細を示す図であり、スプール格納部11はキュー要素15を作成して、格納したスプールデータのスプールデータ名その他の情報を記録し、又日時指定があれば指定日時を記録して、日時指定の無いキュー要素と日時指定の有るキュー要素とが別々のキューの列になるように接続し、図示のように各キューの先頭要素をキュー管理情報16の2つのポインタでそれぞれ指示させる。
【0026】
ここで、日時指定無しのキューは、先頭を最も古いキュー要素とする先着順のキューとする。又日時指定のキューは、先頭から指定日時の早い順にキュー要素を並べ、要すれば図示のように先頭のキュー要素の指定日時をキュー管理情報16に記録しておく。
【0027】
スプール格納部11は、以上のようにキュー要素を接続すると、それが日時指定無しのキュー要素であれば、スプール取り出し部13に当該キュー管理情報16を指定して処理を要求する。
【0028】
そこでスプール取り出し部13は、指定のキュー管理情報16につながる取り出し待ちプログラム情報17を調べて、起動待ちのプログラムがあれば、指定の日時指定無しのキューの先頭からキュー要素を取り出す。
【0029】
次に、取り出し待ちプログラム情報17に登録されている項目のうち、起動済でない項目の一つを選んで起動済とし、その項目の情報に従ってスプールデータを処理するプログラムを起動するための制御ブロックを起動状態に設定し、取り出したキュー要素に保持されているスプールデータ名を起動パラメータとして渡すように処理する。
【0030】
スプール取り出し部13は以上の処理の後、取り出し待ちプログラム情報17に起動済でない項目があり、日時指定無しのキューにキュー要素が残っていれば、その先頭のキュー要素を取り出して前記と同様に処理する。
【0031】
起動されたスプールデータ処理プログラムは、起動パラメータとして受け取ったスプールデータ名によってスプールデータをバッファから読み出して、所定の処理を実行し、処理が終わるとスプール取り出し部13に終了を通知し、起動待ち状態に戻る。
【0032】
ここでスプール取り出し部13は、終了したプログラムの処理するスプールデータのキューに即時取り出しを待っているキュー要素があれば、それをキューから取り出し、前記のように処理してプログラムを再起動し、即時取り出せるキュー要素が無ければ、取り出し待ちプログラム情報17の該当項目を起動待ち状態を示すようにする。
【0033】
日時パトロール部12は、常時適当な間隔(例えば数分)ごとに起動するようにタイマーを設定しており、起動するとそのときの現日時を時計から読み取って保持する。
【0034】
次にすべてのキュー管理機構18に順次アクセスし、各日時指定キューについて、キュー管理情報16に保持する先頭キュー要素の指定日時を、保持する現日時と比較し、現日時より後であればそのキューの処理は終わり、次のキュー管理機構18を調べる。
【0035】
先頭キュー要素の指定日時が現日時より以前であれば、そのキューを先頭から走査して、現日時より以前の指定日時を持つキュー要素を、例えば日時指定無しのキューにつなぎかえ、現日時より後の指定日時を持つキュー要素を検出したら、そのキューの走査を終わる。
【0036】
日時パトロール部12は、以上のようにして現日時より以前の指定日時を持つキュー要素を取り出した場合には、そのキュー管理情報16に保持する先頭キュー要素の指定日時を、新たな先頭キュー要素の持つ指定日時に更新し、又スプール取り出し部13に当該キュー管理情報16を通知して処理を要求する。スプール取り出し部13はこの場合も前記と同様に処理する。
【0037】
図3、 図4、 図5は、以上に説明した本発明の処理の流れの一例を示す図であり、スプール格納部11がプログラム9からスプールの処理を要求されると、図3の処理ステップ20でスプールデータを格納し、キュー要素を作成してスプールデータ名、指定日時等を設定し、要求に従いスプールデータを管理するキュー管理機構18を決定する。
【0038】
処理ステップ21で、要求に日時指定が有るか識別し、キュー管理情報16から指示される日時指定キューを処理対象として、処理ステップ22で先頭のキュー要素の持つ指定日時と新キュー要素の指定日時を比較する。
【0039】
比較の結果、新キュー要素の指定日時の方が早ければ、処理ステップ23で新キュー要素をキューの先頭に追加する。従って、ここでキュー管理情報16の先頭要素を指示するポインタと、先頭の指定日時が更新される。
【0040】
処理ステップ22の比較で、先頭のキュー要素の持つ指定日時が新キュー要素の指定日時以前であれば、処理ステップ24でそのキュー要素がキューの末尾か識別し(例えば次位要素を指示するポインタの値が0で末尾を示す)、末尾でなければ処理ステップ25で次位のキュー要素の指定日時と新キュー要素の指定日時を比較する。
【0041】
比較結果で新キュー要素の指定日時より遅い指定日時を持つキュー要素を検出するか、又は末尾になるまで処理ステップ24と処理ステップ25のループを繰り返し、新キュー要素の指定日時より遅い指定日時を持つキュー要素を検出したときは処理ステップ26で、最後のキュー要素の直前に新キュー要素を挿入する。
【0042】
又、末尾まで比較して新キュー要素の指定日時の方が遅いときは、処理ステップ27で末尾に新キュー要素を追加し、以上いずれかの場合により日時指定キューに新キュー要素を追加すると処理を終わる。
【0043】
処理ステップ21で日時指定無しと識別した場合には、日時指定無しキューを処理対象として、処理ステップ28でそのキューの末尾に新キュー要素を追加し、処理ステップ29でスプール取り出し部13に処理を要求して、スプール格納部11は処理を終わる。
【0044】
図4は日時パトロール部12の処理の流れであり、タイマーで起動されると、処理ステップ40で現日時を読み出して保持する。所定の順序で先頭のキュー管理機構18から処理対象とし、そのキュー管理情報16について、処理ステップ41で日時指定キューにキューができているか識別し、キューがなければ、そのキュー管理機構18の処理は終わる。
【0045】
キューがあれば、処理ステップ42でキュー管理情報16にある先頭キュー要素の指定日時を現日時と比較し、先頭キュー要素の指定日時が現日時より遅ければ、そのキュー管理機構18の処理は終わる。
【0046】
先頭キュー要素の指定日時が現日時以前であれば処理ステップ43以後の処理で先頭のキュー要素から順次指定日時を比較する。
【0047】
即ち、処理ステップ43で指定日時を比較し、現日時以前なら処理ステップ44で末尾のキュー要素か識別し、末尾でなければ次位のキュー要素に進んで処理ステップ43の比較をする。
【0048】
このようにして、処理ステップ43で現日時より遅い指定日時のキュー要素を検出すば、処理ステップ45で先頭からその要素の直前までのキュー要素を、日時指定キューから日時指定無しキューへ移す。
【0049】
又末尾まで現日時より早い指定日時のキュー要素であれば、処理ステップ46で全部のキュー要素を日時指定無しキューへ移す。以上の後、処理ステップ47でスプール取り出し部13に処理を要求して、そのキュー管理機構18の処理を終わり、処理ステップ48で未処理のキュー管理機構があるか識別し、あれば処理ステップ41へ戻って次のキュー管理機構18の処理を以上のようにする。
【0050】
図5は、スプール取り出し部13の処理の流れであり、スプール格納部11又は日時パトロール部12からの処理要求で起動すると、要求で指定されたキュー管理機構18を処理対象として、処理ステップ60でそのキュー管理機構の取り出し待ちプログラム情報17に起動待ちのプログラムがあるか識別し、無ければプログラムの実行終了を待つ。
【0051】
プログラムがあれば、処理ステップ61で取り出し待ちプログラム情報17の起動待ちの一項目を選んで起動済とし、処理ステップ62で日時指定無しキューの先頭のキュー要素を取り出し、処理ステップ63で、キュー要素のスプールデータ名をプログラムに渡して、プログラムを起動するように制御する。
【0052】
処理ステップ64で日時指定無しキューに、なお処理待ちのキュー要素があるか識別し、キュー要素があれば処理ステップ60に戻って前記のように処理し、キュー要素が無ければ、プログラムの実行終了を待つ。
【0053】
スプール取り出し部13は、起動したプログラムから処理の終了の通知を受けると、処理ステップ65で日時指定無しキューに待ちのキュー要素があるか識別し、有れば処理ステップ62に進んで、前記のように処理する。
【0054】
待ちのキュー要素が無ければ、処理ステップ66で処理するスプールデータが無いことをプログラムに通知し、処理ステップ67で取り出し待ちプログラム情報17の該当項を起動待ち状態にする。
【0055】
以上の後スプール取り出し部13は、処理ステップ68で実行中のプログラムがあるか識別し、実行中のプログラムがあれば、実行終了を待ち、実行中のプログラムが無ければ終了する。
【0056】
以上の説明では、指定日時をキュー要素に記録し、従って日時パトロール部12はキューを走査して指定日時の到来したキュー要素を検出するようにしたが、指定日時を取り出して別のテーブルに記録して管理し、キュー要素を指示するポインタで、各指定日時とキュー要素とを対応付けるようにしてもよい。
【0057】
【発明の効果】
以上の説明から明らかなように本発明によれば、計算機で実行されるジョブのスプールデータの管理において、スプールデータの処理日時を指定することができ、計算機運用におけるサービスを向上するという著しい工業的効果がある。
【図面の簡単な説明】
【図1】本発明の構成を示すブロック図
【図2】本発明の実施例構成を示すブロック図。
【図3】本発明の処理の流れ図(その1)
【図4】本発明の処理の流れ図(その2)
【図5】本発明の処理の流れ図(その3)
【符号の説明】
1、11 スプール格納部
2、12 日時パトロール部
3、13 スプール取り出し部
4 スプールデータ
5、15 キュー要素
6 キュー
7 日時指定の記録
8 バッファ
14 スプール管理処理装置
16 キュー管理情報
17 取り出し待ちプログラム情報
20〜29、40〜48、60〜68 処理ステップ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a spool management processing apparatus for managing spool data of a job executed on a computer.
[0002]
[Prior art]
For jobs executed on a computer, output the job processing results to a printer or the like, or specify a job and input a so-called job control language or command string to input the input data. It is well known that the function that improves the efficiency of computer use by inputting / outputting data completely asynchronously is called the spool function, and that the input / output data is called spool data. .
[0003]
In a computer having a spool function, for example, a job passes an output to a spool control unit, and the spool control unit stores the output spool data in a magnetic disk storage device of a spool buffer.
[0004]
If the output is output to a certain printer device, for example, a queue element created corresponding to the spool data is connected to a queue provided for a program for controlling output to the printer device.
[0005]
If a queue element is connected to such an output queue, the output program corresponding to the queue is started and the queue element is passed, and the output program spools spool data designated by the queue element. Read from buffer and output.
[0006]
When the processing of one spool data is completed, if the queue element is still connected to the corresponding queue, the output program receives it and continues the processing as described above, and finishes processing until there is no queue element.
[0007]
As described above, the spool data is queued if the first spool data is being processed, but in principle, the spool data is processed immediately when the order comes.
[0008]
[Problems to be solved by the invention]
However, in recent years, the output of a computer has been directly transmitted by facsimile, and there has been a demand for output by facsimile, for example, after waiting for an inexpensive time zone for communication charges.
[0009]
In addition, there is an operational requirement for reducing output delays of other jobs by avoiding busy output for large numbers of outputs such as compile lists.
[0010]
An object of the present invention is to provide a spool management processing apparatus that can specify the date and time of processing time for spool data and satisfy the request for delaying the processing of spool data as described above.
[0011]
[Means for Solving the Problems]
FIG. 1 is a block diagram showing the configuration of the present invention.
[0012]
The figure shows the configuration of a spool management processing device, and spools are used to manage spool data so that job input and job output of a job executed on a computer are processed as spool data and asynchronously separated from the execution of the job. The management processing apparatus includes a spool storage unit 1, a date and time patrol unit 2, and a spool take-out unit 3.
[0013]
The spool storage unit 1 receives the spool data 4, stores it in a predetermined buffer 8, creates a queue element 5 corresponding to the spool data 4, and provides a queue corresponding to a program for processing the spool data 4 6, the date designation designated in the spool data 4 is recorded in the date designation record 7 corresponding to the queue element 5.
[0014]
The date and time patrol unit 2 is activated at predetermined time intervals and scans the date and time designation record 7 to detect from the queue 6 the queue element 5 whose date and time of the recording is earlier than the activation time. The spool take-out unit 3 is notified.
[0015]
The spool retrieval unit 3 removes the notified queue element 5 from the queue 6 and notifies the spool data 4 corresponding to the queue element 5 to the program determined in the queue 6.
[0016]
[Action]
When the spool management processing device of the present invention designates the date and time for the spool data, the date and time is monitored by the date and time patrol function, and the spool data is managed after waiting until the designated date and time.
[0017]
Note that spool data for which date and time designation is not performed as before is processed as a request for immediate processing.
[0018]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 2 is a block diagram showing an embodiment of the present invention. In FIG. 2A, a program 9 is a program for various business jobs for generating spool data or a program for receiving job input data. The spool data is passed to the spool management processor 14 to request spool management.
[0019]
At this time, the program 9 designates a program for processing spool data or an output destination, and designates a processing date and time. However, if it is not necessary to specify the processing date and time, the specification is omitted and an immediate processing request is made.
[0020]
The spool storage unit 11, the date / time patrol unit 12 and the spool take-out unit 13 of the spool management processing device 14 in FIG. 2A correspond to the spool storage unit 1, the date / time patrol unit 2 and the spool take-out unit 3 in FIG. The spool storage unit 11 stores the spool data requested by the program 9 as spool data 4 in a buffer 8 such as a magnetic disk storage device.
[0021]
In addition, the spool storage unit 11 creates a queue element 15 that holds a pointer that indicates the stored spool data 4, a specified date and time, and the like, and connects the queue element 15 to the queue of the queue management mechanism 18.
[0022]
When the queue management mechanism 18 requires different programs depending on the processing contents of spool data, such as a program to be processed specified by a spool management request or an output program determined by a printer device of a specified output destination, Provided.
[0023]
Each queue management mechanism 18 has queue management information 16 and retrieval waiting program information 17 as shown in the figure, and a queue of queue elements 15 is connected to the queue management information 16 as described later.
[0024]
The waiting-for-fetch program information 17 includes items corresponding to the number of programs to be executed in parallel with control information such as the address of a control block necessary for starting the program for a program for processing spool data to be queued by the queue management mechanism. A number is registered.
[0025]
FIG. 2B is a diagram showing the details of the queue. The spool storage unit 11 creates a queue element 15 and records the spool data name and other information of the stored spool data. The designated date and time are recorded, and the queue element without the date and time designation and the queue element with the date and time designation are connected so as to be in separate queue columns, and the first element of each queue is set to 2 in the queue management information 16 as shown in the figure. Point each with two pointers.
[0026]
Here, the queue with no date and time designation is a first-come-first-served queue with the head being the oldest queue element. In addition, in the date / time designation queue, the queue elements are arranged in order from the beginning of the designated date / time, and if necessary, the designated date / time of the first queue element is recorded in the queue management information 16 as shown in the figure.
[0027]
When the spool storage unit 11 connects the queue elements as described above, if it is a queue element with no date and time designation, the spool storage unit 11 requests the spool retrieval unit 13 to specify the queue management information 16 and perform processing.
[0028]
Therefore, the spool take-out unit 13 checks the take-out waiting program information 17 connected to the designated queue management information 16 and, if there is a program waiting to be activated, takes out the queue element from the head of the queue without the designated date and time designation.
[0029]
Next, a control block for starting one of the items registered in the extraction waiting program information 17 is selected by selecting one of the items that has not been started, and starts a program that processes spool data according to the information of the item. The process is set to the activated state and the spool data name held in the retrieved queue element is passed as an activation parameter.
[0030]
After the above processing, if there is an item that has not been activated in the removal waiting program information 17 and a queue element remains in the queue with no date / time designation, the spool retrieval unit 13 retrieves the head queue element and performs the same as described above. To process.
[0031]
The activated spool data processing program reads the spool data from the buffer by the spool data name received as the activation parameter, executes a predetermined process, and notifies the spool take-out unit 13 of the completion when the process is completed, and waits for activation. Return to.
[0032]
Here, if there is a queue element waiting for immediate retrieval in the queue of spool data processed by the terminated program, the spool retrieval unit 13 retrieves the queue element from the queue, processes it as described above, and restarts the program. If there is no queue element that can be taken out immediately, the corresponding item in the take-out waiting program information 17 is set to indicate an activation wait state.
[0033]
The date and time patrol unit 12 always sets a timer so as to be activated at an appropriate interval (for example, several minutes), and when activated, reads and holds the current date and time at that time.
[0034]
Next, all the queue management mechanisms 18 are sequentially accessed, and for each date / time designation queue, the designated date / time of the first queue element held in the queue management information 16 is compared with the current date / time held. The queue processing is completed, and the next queue management mechanism 18 is examined.
[0035]
If the specified date and time of the first queue element is earlier than the current date and time, the queue is scanned from the beginning, and the queue element with the specified date and time earlier than the current date and time is replaced with a queue with no specified date and time, for example. When a queue element having a later specified date and time is detected, scanning of that queue is finished.
[0036]
When the date and time patrol unit 12 takes out a queue element having a specified date and time before the current date and time as described above, the specified date and time of the first queue element held in the queue management information 16 is used as a new first queue element. Is updated to the designated date and time, and the spool management unit 16 is notified of the queue management information 16 to request processing. In this case, the spool take-out unit 13 performs the same process as described above.
[0037]
3, 4, and 5 are diagrams illustrating an example of the processing flow of the present invention described above. When the spool storage unit 11 is requested to perform spool processing from the program 9, the processing steps in FIG. 3 are performed. In S20, spool data is stored, a queue element is created, a spool data name, a specified date and time, etc. are set, and a queue management mechanism 18 that manages spool data is determined according to the request.
[0038]
In processing step 21, it is identified whether the request has a date and time designation. The date and time designation queue designated by the queue management information 16 is processed, and the designated date and time of the first queue element and the new queue element are designated in processing step 22. Compare
[0039]
As a result of comparison, if the specified date and time of the new queue element is earlier, the new queue element is added to the head of the queue in processing step 23. Accordingly, the pointer indicating the head element of the queue management information 16 and the head designated date and time are updated here.
[0040]
If the specified date and time of the first queue element is earlier than the specified date and time of the new queue element in the comparison at processing step 22, it is identified at processing step 24 whether the queue element is the end of the queue (for example, a pointer indicating the next element) If the value is 0, the end of the queue element is indicated, and if not, the specified date and time of the next queue element are compared with the specified date and time of the new queue element in processing step 25.
[0041]
In the comparison result, a queue element having a specified date and time later than the specified date and time of the new queue element is detected, or the loop of processing step 24 and processing step 25 is repeated until the end is reached, and a specified date and time later than the specified date and time of the new queue element is obtained. When a queue element is detected, a new queue element is inserted immediately before the last queue element in processing step 26.
[0042]
If the specified date and time of the new queue element is later than the end, the new queue element is added to the end in the processing step 27. If any of the above cases, the new queue element is added to the date and time specified queue. End.
[0043]
If it is identified at processing step 21 that no date / time has been specified, a new queue element is added to the end of the queue at processing step 28 with the date / time not specified queue being processed, and processing is performed on the spool take-out unit 13 at processing step 29. Requesting, the spool storage unit 11 ends the processing.
[0044]
FIG. 4 is a process flow of the date / time patrol unit 12. When the timer is activated, the current date / time is read and held in a processing step 40. If the queue management information 16 is processed in the predetermined order, the queue management information 16 is identified as being queued in the date / time designation queue in processing step 41. If there is no queue, the processing of the queue management mechanism 18 is performed. Is over.
[0045]
If there is a queue, the designated date and time of the first queue element in the queue management information 16 is compared with the current date and time in processing step 42, and if the designated date and time of the first queue element is later than the current date and time, the processing of the queue management mechanism 18 ends. .
[0046]
If the designated date / time of the first queue element is before the current date / time, the designated date / time is sequentially compared from the first queue element in the processing after processing step 43.
[0047]
That is, the designated date and time are compared in processing step 43, and if it is before the current date and time, it is identified as the last queue element in processing step 44. If it is not the last, the process proceeds to the next queue element and the processing step 43 is compared.
[0048]
Thus, if Re detecting the queue elements slower specified date than the current date and time in the processing step 43, transferred from the first processing step 45 the queue elements upto of the element, the date given queue to date None queue .
[0049]
If the queue element has a specified date and time earlier than the current date and time until the end, all the queue elements are moved to the date and time not specified queue in processing step 46. After the above, processing is requested to the spool take-out unit 13 at processing step 47, the processing of the queue management mechanism 18 is finished, and whether or not there is an unprocessed queue management mechanism is identified at processing step 48. The process of the next queue management mechanism 18 is as described above.
[0050]
FIG. 5 shows a flow of processing of the spool take-out unit 13. When the processing is started by a processing request from the spool storage unit 11 or the date and time patrol unit 12, the queue management mechanism 18 specified in the request is set as a processing target in processing step 60. Whether or not there is a program waiting to be activated is identified in the program information waiting to be retrieved 17 of the queue management mechanism.
[0051]
If there is a program, an item waiting for activation of the waiting-to-be-taken program information 17 is selected in processing step 61 to be activated, and the first queue element of the date / time unspecified queue is extracted in processing step 62. The spool data name is passed to the program and the program is started.
[0052]
In processing step 64, it is identified whether or not there is a queue element still waiting for processing in the date / time designation queue. If there is a queue element, the processing returns to processing step 60 and the processing is performed as described above. Wait for.
[0053]
Upon receipt of the processing end notification from the activated program, the spool take-out unit 13 identifies whether there is a queue element waiting in the date / time designation queue at processing step 65, and if there is, it proceeds to processing step 62 and Process as follows.
[0054]
If there is no waiting queue element, the program is notified that there is no spool data to be processed at processing step 66, and the corresponding item of the extraction waiting program information 17 is put into an activation waiting state at processing step 67.
[0055]
The post-spool take-out unit 13 identifies whether there is a program being executed in processing step 68, and if there is a program being executed, waits for the completion of the execution, and ends if there is no program being executed.
[0056]
In the above description, the designated date / time is recorded in the queue element, and therefore the date / time patrol unit 12 scans the queue to detect the queue element with the designated date / time. However, the designated date / time is extracted and recorded in another table. The designated date and time and the queue element may be associated with each other with a pointer that designates and manages the queue element.
[0057]
【The invention's effect】
As is clear from the above description, according to the present invention, in the management of spool data of jobs executed on a computer, the processing date and time of spool data can be specified, and the service in the computer operation is improved. effective.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of the present invention. FIG. 2 is a block diagram showing a configuration of an embodiment of the present invention.
FIG. 3 is a flowchart of processing of the present invention (part 1).
FIG. 4 is a flowchart of the processing of the present invention (part 2).
FIG. 5 is a flowchart of the processing of the present invention (part 3).
[Explanation of symbols]
1, 11 Spool storage unit 2, 12 Date / time patrol unit 3, 13 Spool retrieval unit 4 Spool data 5, 15 Queue element 6 Queue 7 Date / time designation recording 8 Buffer 14 Spool management processing device 16 Queue management information 17 Waiting program information 20 ~ 29, 40-48, 60-68 processing steps

Claims (1)

計算機で実行されるジョブの入力または出力を、該ジョブの実行と切り離して非同期に処理するために、スプールデータとして管理するスプール管理装置であって、
スプール格納部、日時パトロール部、および、スプール取り出し部を有し、
前記スプール格納部は、前記スプールデータを所定のバッファに格納し、該スプールデータに対応するキュー要素を作成し、該スプールデータに日時指定がある場合は、該日時を該キュー要素に対応して記録して、該キュー要素を日時指定のキューに先頭から指定日時の早い順に並ぶように接続し、一方、該スプールデータに日時指定が無い場合は、該キュー要素を日時指定無しのキューの末尾に接続するとともに、前記スプール取り出し部へ通知し、
前記日時パトロール部は、所定時間ごとに起動し、前記日時指定のキューに接続された先頭のキュー要素より、該キュー要素に対応して記録された日時と該起動の日時を比較し、該記録日時が該起動日時より以前になっているキュー要素を検出した場合は、検出した該キュー要素を前記日時指定無しのキューに移動するとともに、前記スプール取り出し部へ通知し、
前記スプール取り出し部は、前記スプール格納部あるいは前記日時パトロール部からの通知により起動し、前記日時指定無しのキューに接続されたキュー要素を取り出し、該キュー要素に対応するスプールデータを処理プログラムまたは出力先へ通知する
ことを特徴とするスプール管理装置。
A spool management device that manages input or output of a job executed by a computer as spool data in order to process the input asynchronously or asynchronously with the execution of the job,
A spool storage unit, a date and time patrol unit, and a spool take-out unit;
The spool storage unit stores the spool data in a predetermined buffer, creates a queue element corresponding to the spool data, and when the date and time is specified in the spool data, the date and time are associated with the queue element. Record and connect the queue elements to the date / time designation queue so that the queue elements are arranged in order of the designated date / time from the beginning. On the other hand, if there is no date / time designation in the spool data, the queue element is placed at the end of the queue without date / time designation. And notify the spool take-out unit,
The date and time patrol unit is activated at predetermined time intervals, compares the date and time of activation corresponding to the queue element with the date and time of activation from the head queue element connected to the date and time designation queue, When a queue element whose date and time is earlier than the activation date and time is detected, the detected queue element is moved to the queue without the specified date and time, and the spool take-out unit is notified,
The spool retrieval unit is activated by a notification from the spool storage unit or the date and time patrol unit, retrieves a queue element connected to the queue without the date and time designation, and outputs a spool program corresponding to the queue element as a processing program or output A spool management apparatus characterized by notifying a destination.
JP2003150121A 2003-05-28 2003-05-28 Spool management device Expired - Lifetime JP3617518B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003150121A JP3617518B2 (en) 2003-05-28 2003-05-28 Spool management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003150121A JP3617518B2 (en) 2003-05-28 2003-05-28 Spool management device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2576794A Division JPH07234782A (en) 1994-02-24 1994-02-24 Spool control processor

Publications (2)

Publication Number Publication Date
JP2003337689A JP2003337689A (en) 2003-11-28
JP3617518B2 true JP3617518B2 (en) 2005-02-09

Family

ID=29707511

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003150121A Expired - Lifetime JP3617518B2 (en) 2003-05-28 2003-05-28 Spool management device

Country Status (1)

Country Link
JP (1) JP3617518B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100091318A1 (en) * 2008-10-09 2010-04-15 Andrew Rodney Ferlitsch Systems and methods for multiple queue options for a single logical printer

Also Published As

Publication number Publication date
JP2003337689A (en) 2003-11-28

Similar Documents

Publication Publication Date Title
JP4029711B2 (en) Image forming apparatus
JP5419500B2 (en) Program and information processing apparatus
US8264720B2 (en) Printing control apparatus and printing control method that can prompt a user to set additional information which is effective later as a part of a print log
US6941522B2 (en) Methods and apparatus for implementing a progress reporting interface
US5339449A (en) System and method for reducing storage channels in disk systems
JP3116801B2 (en) Image processing device
JP3617518B2 (en) Spool management device
JP2001243034A (en) Processor
JPH07234782A (en) Spool control processor
JP5223996B1 (en) Print control apparatus, data management method and program
JP3125449B2 (en) Chromatographic data processor
JPH0728836A (en) Data base retrieving method and data base system using this method
JP2002196939A (en) Start/finish control device of resident process and its control method and recording medium for recording method
JP2004302630A (en) Message processing method, execution device therefor and processing program therefor
JP4241688B2 (en) Information processing apparatus and program
JPH07334334A (en) Printing management system, and its managing method and printer
JP2007034609A (en) Information management system, information processing device, and program
JP3952962B2 (en) Library control apparatus and library control method
JPH07146809A (en) Information processor
JP2023127480A (en) Information processing program, information processing method and information processing device
JP2001344119A (en) Transaction execution control system and transaction execution control method
JPH0793244A (en) External memory controller
JP5691471B2 (en) Program and information processing apparatus
JP5427593B2 (en) Information processing apparatus, information processing method, and information processing program
JP2001175484A (en) Method and device for job schedule and machine-readable recording medium with program recorded thereon

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040803

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20041019

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041101

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081119

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081119

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091119

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101119

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101119

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111119

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111119

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121119

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121119

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131119

Year of fee payment: 9

EXPY Cancellation because of completion of term