JP3768580B2 - Intertask synchronous communication method - Google Patents
Intertask synchronous communication method Download PDFInfo
- Publication number
- JP3768580B2 JP3768580B2 JP00843896A JP843896A JP3768580B2 JP 3768580 B2 JP3768580 B2 JP 3768580B2 JP 00843896 A JP00843896 A JP 00843896A JP 843896 A JP843896 A JP 843896A JP 3768580 B2 JP3768580 B2 JP 3768580B2
- Authority
- JP
- Japan
- Prior art keywords
- command
- task
- recording medium
- issuing
- recording
- 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
Images
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Computer And Data Communications (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は処理すべき命令を逐次発行する命令発行タスクと、命令を受信して命令の内容にしたがって逐次処理を行う処理実行タスクとの二つのタスクからなり、順方向通信手段、すなわち、命令発行タスクからFIFOバッファを介して処理実行タスクに対して命令を通知する順方向通信手段と、逆方向通信手段、すなわち、処理実行タスクから命令発行タスクに対して各命令の処理実行完了を通知する逆方向通信手段とを持つマルチタスクデータ処理システムに好適なタスク間同期通信方法に関する。
【0002】
【従来の技術】
従来、マルチタスクデータ処理システムにおいては、命令発行タスクから処理実行タスクへの命令を通知する順方向通信手段中にFIFOバッファを設け、処理実行タスクが一つの命令に対する処理を実行中に命令発行タスクは次の命令発行処理を行えるような構成を取ることによって、システム全体の処理効率を上げている。
【0003】
【発明が解決しようとする課題】
しかしながら、処理実行タスクから通知される実行結果の内容にしたがって命令発行タスクの処理を変更して、発行する命令の内容を変えるなどの命令発行制御を行う必要がある場合がある。この場合には、命令発行タスクから発行された全命令に対する処理実行タスクの命令処理実行が完了されるまで命令発行タスクは実行完了待ちをする必要がある。このために上記FIFOバッファを設けている利点が活されず、処理効率が悪くなるという問題があった。
【0004】
そこで、本発明の目的は、命令発行タスクおよび処理実行タスクの間の通信の処理効率を向上させるタスク間同期通信方法を提供することにある。
【0005】
【課題を解決するための手段】
このような目的を達成するために、請求項1の発明は、処理すべき命令を逐次、発行する命令発行タスクと、前記命令を受信して該命令の内容にしたがって逐次、処理を行う処理実行タスクとの二つのタスクを有し、前記命令発行タスクからFIFOバッファを介して前記処理実行タスクに対して命令を通知する順方向通信を行うと共に、前記処理実行タスクから前記命令発行タスクに対して各命令の処理実行完了を通知する逆方向通信を行うマルチタスクデータ処理システムのタスク間同期通信方法において、前記命令発行タスクが前記FIFOバッファへ送信した命令の紙送り量をジョブ開始時点から累積して第1の記憶装置へ記憶し、前記処理実行タスクが前記FIFOバッファから取り出した命令の紙送り量をジョブ開始時点から累積して前記第2の記憶装置に記憶し、前記処理実行タスクは、記録媒体送り命令に対する処理実行時に前記第2の記憶装置に累積して記憶された紙送り量と記録媒体終端までの距離を前記命令発行タスクに通知し、前記命令発行タスクは受け取った実行結果に付加されて通知された紙送り量と、前記第1の記憶装置に累積して記憶された紙送り量の差分より前記FIFOバッファ中に蓄積されている未実行処理量を算出し、算出された未実行処理量と前記処理実行タスクから通知された記録媒体終端までの距離とに基づき終端までの距離推測値を算出し、算出された終端までの距離推測値に基づき、印字記録動作命令を発行するか、ジョブ終了命令を発行することを特徴とする。
【0006】
請求項2の発明は、請求項1に記載のタスク間同期通信方法において、前記命令発行タスクと前記処理実行タスクがそれぞれ異なる装置上で動作し、2つの前記装置を相互接続する通信ケーブルを介して前記命令および前記実行結果を通知することを特徴とする。
【0007】
請求項3の発明は、前記マルチタスクデータ処理システムは、記録を行う印字記録装置であることを特徴とする。
【0008】
請求項4の発明は、請求項1に記載の処理すべき命令は、前記印字記録装置での記録媒体送り動作命令であることを特徴とする。
【0009】
請求項5の発明は、請求項1に記載の命令発行タスクに対して記録媒体送り動作完了時点での記録媒体終端検出状況および記録媒体終端までの距離を通知し、該命令発行タスクは当該通知された記録媒体終端検出状況および記録媒体終端までの距離に基づいて、前記記録媒体終端までの距離を管理し、記録媒体終端を過ぎての印字記録動作についての命令発行を行わないようにしたことを特徴とする。
【0010】
請求項6の発明は、前記命令発行タスクは、前記記録媒体終端に達するか否かが確定した時点で次の命令の発行処理を再開することを特徴とする。
【0011】
請求項7の発明は、前記命令発行タスクは、ジョブ開始時点に前記第1の記憶装置の送信処理量をクリアにすることを特徴とする。
【0012】
請求項8の発明は、前記処理実行タスクは、ジョブ開始時点に前記第2の記憶装置の受信処理量をクリアにすることを特徴とする。
【0013】
請求項9の発明は、印字記録動作命令、記録媒体送り命令、及びジョブ終了命令を発行する命令発行タスクと、前記命令発行タスクからFIFOバッファを介して命令が通知される処理実行タスクと、搬送される記録媒体に記録を行う印字機構とを有し、前記処理実行タスクは、FIFOバッファより命令を取得し、印字記録命令の場合、印字記録動作を行い、記録媒体送り命令の場合、記録媒体送り動作を行い、累積処理量yに記録媒体送り量を加算し、記録媒体終端までの距離zと累積処理量yとを命令発行タスクに通知し、ジョブ終了命令の場合、ジョブを終了し、前記命令発行タスクは、記録媒体送り命令を発行する場合、記録媒体送り命令を発行し、累積処理量y’に送り量を加算し、印字記録命令を発行する場合、前記処理実行タスクから通知された累積処理量yと累積処理量y’とに基づき、FIFOバッファ内の未実行処理量Δyを算出し、算出された未実行処理量Δyと前記処理実行タスクから通知された記録媒体終端までの距離zとに基づき終端までの距離推測値z’を算出し、算出された終端までの距離推測値z’に基づき、印字記録動作命令を発行するか、ジョブ終了命令を発行することを特徴とする。
【0014】
請求項10の発明は、印字記録動作命令、記録媒体送り命令、及びジョブ終了命令を発行する命令発行タスクと、前記命令発行タスクからFIFOバッファを介して命令が通知される処理実行タスクと、搬送される記録媒体に記録を行う印字機構とを有するプリンタにおける制御方法であって、前記処理実行タスクは、FIFOバッファより命令を取得し、印字記録命令の場合、印字記録動作を行い、記録媒体送り命令の場合、記録媒体送り動作を行い、累積処理量yに記録媒体送り量を加算し、記録媒体終端までの距離zと累積処理量yとを命令発行タスクに通知し、ジョブ終了命令の場合、ジョブを終了し、前記命令発行タスクは、記録媒体送り命令を発行する場合、記録媒体送り命令を発行し、累積処理量y’に送り量を加算し、印字記録命令を発行する場合、前記処理実行タスクから通知された累積処理量yと累積処理量y’とに基づき、FIFOバッファ内の未実行処理量Δyを算出し、算出された未実行処理量Δyと前記処理実行タスクから通知された記録媒体終端までの距離zとに基づき終端までの距離推測値z’を算出し、算出された終端までの距離推測値z’に基づき、印字記録動作命令を発行するか、ジョブ終了命令を発行することを特徴とする。
【0015】
【発明の実施の形態】
以下、図面を参照して本発明の実施例を詳細に説明する。
【0016】
(実施例1)
図1に、本発明を適用するマルチタスクデータ処理システムの一実施例として、記録用紙のような記録媒体上に記録を行なう印字記録装置の模式的な構成を示す。
【0017】
図1において印字記録装置は、以下の構成部、すなわち、記録媒体1上をA方向に往復し、帯状に印字記録を行う印字記録機構2と、A方向と垂直なB方向に記録媒体1を移動させる記録媒体搬送機構3を有している。印字記録機構2と記録媒体搬送機構3は個々に制御され、両構成部を組合わせて動作させることにより記録媒体1上への記録画像形成が行われる。
【0018】
記録媒体の搬送路上には、印字記録機構2から記録媒体搬送方向に距離xだけ離れた位置に記録媒体1の終端を検知する記録媒体終端検出機構4が設けられ、記録媒体の終端から距離x分だけ手前の時点で記録媒体の終端を検出する事が可能になっている。
【0019】
図2は、本実施例におけるタスク構成を示す。なお、タスクとはコンピュータが行う仕事の最小単位を示し、1つのプログラムまたはプログラム命令で行われる仕事がタスクとなる。タスクはCPUを有するコンピュータ等の情報処理装置により実行されるので、本実施例ではタスクをハードとみなして表現する。図2において5は記録媒体1上に記録する内容に応じて印字記録動作、記録媒体送り動作等の命令を発行する命令発行タスクである。6は命令発行タスク5からの命令を受信して印字記録動作、記録媒体送り動作等の各処理を実行する処理実行タスクである。命令発行タスク5および処理実行タスク6は記憶装置1内のCPUが実行するマルチタスクオペレーティングシステム上で並行して動作し、マルチタスクオペレーティングシステムにより提供されるタスク間通信機能を用いて、相互に通信を行う。
【0020】
命令発行タスク5から処理実行タスク6へはFIFOバッファ7を介して命令が通知され、処理実行タスク6から命令発行タスク5へは、各命令に対する実行結果の通知が行われる。命令発行タスク5の内部ワークエリア上には送信処理量記憶手段(本発明の第1の記憶装置)8が設けられ、命令発行タスク5から自由に読み書きが可能である。また、処理実行タスク6の内部ワークエリア上には受信処理量記憶手段(本発明の第2の記憶装置)9が設けられ、処理実行タスク6から自由に読み書きが可能である。
【0021】
本実施例は、命令発行タスク5からの記録媒体送り動作命令に対する実行結果として、記録媒体送り動作完了時点での記録媒体終端検出状況および記録媒体終端までの距離を通知し、命令発行タスク5は受け取った実行結果に基づいて記録媒体終端までの距離を管理し、記録媒体終端を過ぎての印字記録動作は命令発行を行わないように命令発行制御を行う場合について説明する。
【0022】
図3は処理実行タスク6の処理手順を示す。処理実行タスク6は印字記録ジョブ開始時に受信処理量記憶手段9に格納されている累積処理量yをクリアする(ステップS1)。以下、処理実行タスク6は、命令発行タスク5からの命令をFIFOバッファ7より取りだし(ステップS2)、その内容に応じて処理を行う。
【0023】
FIFOバッファ7より取り出した命令が印字記録動作命令であった場合には(ステップS3)、命令に付加して通知されたパラメータに応じて処理実行タスク6は印字記録機構2を制御し、1スキャン分の印字記録動作を行う(ステップS4)。FIFOバッファ7より取り出した命令が記録媒体送り命令であった場合には(ステップS5)、命令に付加して通知された記録媒体送り量に応じて記録媒体搬送機構3を制御して記録媒体送り動作を行う(ステップS6)。これとともに、受信処理量記憶手段9に格納されている累積処理量yに、実行した記録媒体送り量を加算する(ステップS7)。
【0024】
記録媒体送り動作完了後、すでに記録媒体終端を検出している場合には(ステップS8)、印字記録機構2から記録媒体終端検出機構4までの距離xから記録媒体終端検出時点からの記録媒体送り量を減算することにより、記録媒体終端までの距離zを算出する(ステップS9)。一方ステップS8において、記録媒体送り動作完了時点でまだ記録媒体終端が検出されていない場合には、記録媒体終端までの距離は少なくともx以上あることは確実であるから、記録媒体終端までの距離zを暫定的にxと等しく設定する(ステップS10)。
【0025】
上記ステップS9またはステップS10で算出した、記録媒体終端までの距離zと、受信処理量記憶手段9に格納されている累積処理量yと、記録媒体終端検出状況とを実行結果としてひとまとめにして、記録媒体送り命令に対する実行結果として命令発行タスク5に通知する(ステップS11)。FIFOバッファ7より取り出した命令がジョブ終了命令であった場合には(ステップS12)、処理実行タスク6は印字記録ジョブを終了する(ステップS13)。
【0026】
図4は命令発行タスク5での処理手順を示すフローチャートである。命令発行タスク5は印字記録ジョブ開始時に送信処理量記憶手段8に格納されている累積処理量y′をクリアする(ステップS14)。以下、命令発行タスク5は、印字記録データの生成を行い(ステップS15)、その内容に応じてFIFOバッファ7へ逐次、命令を発行する。
【0027】
FIFOバッファ7へ送信しようとする命令が、記録媒体送り命令である場合(ステップS16)、命令発行タスク5はFIFOバッファ7へ命令を送信するとともに(ステップS17)、送信処理量記憶手段8に格納されている累積処理量y′に記録媒体送り量、すなわち、命令に付加して送信した記録媒体送り量を加算する(ステップS18)。FIFOバッファ7へ送信しようとする命令が、印字記録動作命令である場合には(ステップS19)、命令発行タスク5は最後に処理実行タスク6から受信した実行結果の内容を参照し、実行結果に付加されて通知された累積処理量yと、送信処理量記憶手段8に格納された累積処理量y′とを用いて、FIFOバッファ7に蓄積されていて処理未実行の記憶媒体送り量Δy=y′−yを算出する(ステップS20)。
【0028】
前記ステップS20により求めたΔyと、実行結果として通知された記録媒体終端までの距離zとを用いて、FIFOバッファ7内の全命令に対する処理実行が完了した時点での記録媒体終端までの距離推測値z′=z−Δyを算出する(ステップS21)。ここでz′≧0である場合には(ステップS22)、実行結果として通知された記録媒体終端検出状況の如何にかかわらず、FIFOバッファ7内の全命令に対する処理実行が完了した時点で、記録媒体終端まで達していないことが確実であるから、命令発行タスク5はすぐに印字記録動作命令を発行する(ステップS23)。
【0029】
一方、ステップS22においてz′<0であり、かつ実行結果として通知された記録媒体終端検出状況が終端検出済みを示している場合には(ステップS24)、FIFOバッファ7内の全命令に対する処理実行が完了した時点で、記録媒体終端を過ぎていることが確実であるから、命令発行タスク5は印字記録動作命令を発行せず、ジョブ終了命令を発行した後(ステップS25)、すぐに印字記録ジョブを終了する(ステップS26)。
【0030】
また、ステップS22においてz′<0であり、かつステップS24において実行結果として通知された記録媒体終端検出状況が終端未検出を示している場合には、FIF0バッファ7内の全命令に対する処理実行完了時点で記録媒体終端に達しているかどうかが確定できない状態であるため、命令発行タスク5は命令発行処理を保留し、処理実行タスクから次の実行結果が通知されるのを待つ(ステップS27)。
【0031】
この場合でも、FIFOバッファ7内の命令を処理実行タスク6が逐次処理を進めてゆけば、FIFOバッファ7内が空になる前に記録媒体終端に達するか否かが確定する場合が多い。このような場合には命令発行タスク5は、FIFOバッファ7内の全命令に対する処理実行完了まで命令発行処理を保留するのではなく、記録媒体終端に達するか否かが確定した時点で、次の命令発行処理を再開することが可能である。
【0032】
以上説明したように、本発明を使用することにより、命令発行タスク5は全命令の完了を待つことなく次の命令発行処理に移ることができ、FIFOバッファ7の利点を活かした、効率的な処理が可能となる。
【0033】
(実施例2)
図5に、本発明の第2の実施例としての印字記録システムの構成を示す。本実施例は、上位装置10と記録装置11からなり、上位装置10と記録装置11は通信ケーブル12を介して接続されている。本実施例では、命令発行タスク5は上位装置10側で動作し、処理実行タスク6は記録装置11側で動作する。記録装置1側には、通信ケーブル12を介して上位装置10より受信した命令を蓄積するために受信バッファ13が設けられ、FIFOバッファとして機能する。命令発行タスク5および処理実行タスク6で行う処理手順は実施例1で述べたものと全く同一でよい。
【0034】
このように命令発行タスク5と処理実行タスク6とが異なる装置上で動作する場合においても、本発明を適用することにより、命令発行タスク5は受信バッファ13内に蓄積された全命令の処理実行完了を待つことなく次の命令発行処理を行うことができ、受信バッファ13の利点を活かした効率的な処理が可能となる。
【0035】
(その他の実施例)
実施例1および実施例2では、実行結果として通知される情報を記録可能領域最下端までの距離とし、付加して通知する累積処理量をジョブ開始時点からの記録媒体送り量としたが、それ以外の、例えば記録媒体の残り枚数、記録インクの残量などのパラメータに関して適用することも可能である。もちろん印字記録装置以外の装置に対して本発明を適用することが可能なことはいうまでもない。
【0036】
【発明の効果】
以上説明したように、請求項1、9,10の発明によれば、FIFOバッファ内の全命令に対する処理実行完了まで処理を保留するのではなく、記憶媒体終端に達するか否かが確定した時点で次の命令発行処理を再開することができ、もって、効率的な処理が可能となる。
【0037】
請求項2の発明では、システム内の2つの装置間での通信効率を向上させることができる。
【図面の簡単な説明】
【図1】本発明の第1の実施例としての印字記録装置の構成を示す模式構成図である。
【図2】第1の実施例におけるマルチタスクデータ処理システムのタスク構成を示すブロック図である。
【図3】第1の実施例における処理実行タスクの処理手順を示すフローチャートである。
【図4】第1の実施例における命令発行タスクの処理手順を示すフローチャートである。
【図5】第2の実施例としての印字記録システムの構成を示すブロック図である。
【符号の説明】
1 記録媒体
2 印字記録機構
3 記録媒体搬送機構
4 記録媒体終端検出機構
5 命令発行タスク
6 処理実行タスク
7 FIFOバッファ[0001]
BACKGROUND OF THE INVENTION
The present invention consists of two tasks, an instruction issue task for sequentially issuing instructions to be processed and a process execution task for receiving instructions and performing sequential processing according to the contents of the instructions. Forward communication means for notifying instructions to the process execution task from the task via the FIFO buffer, and reverse communication means, that is, reverse notification for notifying completion of the execution of each instruction from the process execution task to the instruction issue task The present invention relates to an intertask synchronous communication method suitable for a multitask data processing system having a direction communication means.
[0002]
[Prior art]
Conventionally, in a multitask data processing system, a FIFO buffer is provided in a forward communication means for notifying an instruction from an instruction issue task to a process execution task, and the instruction issue task is executed while the process execution task is executing a process for one instruction. Increases the processing efficiency of the entire system by adopting a configuration that can perform the next instruction issue processing.
[0003]
[Problems to be solved by the invention]
However, there are cases where it is necessary to perform instruction issue control such as changing the contents of the issued instruction by changing the process of the issued instruction task in accordance with the contents of the execution result notified from the process execution task. In this case, the instruction issue task needs to wait for execution completion until the instruction process execution of the process execution task for all the instructions issued from the instruction issue task is completed. For this reason, there is a problem that the advantage of providing the FIFO buffer is not utilized and the processing efficiency is deteriorated.
[0004]
SUMMARY OF THE INVENTION An object of the present invention is to provide an intertask synchronous communication method that improves the processing efficiency of communication between an instruction issue task and a process execution task.
[0005]
[Means for Solving the Problems]
In order to achieve such an object, the invention according to
[0006]
According to a second aspect of the present invention, in the intertask synchronous communication method according to the first aspect, the instruction issue task and the process execution task operate on different devices, respectively, via a communication cable that interconnects the two devices. The instruction and the execution result are notified.
[0007]
According to a third aspect of the present invention, the multitask data processing system is a print recording apparatus that performs recording.
[0008]
According to a fourth aspect of the present invention, the command to be processed according to the first aspect is a recording medium feeding operation command in the print recording apparatus.
[0009]
The invention of
[0010]
The invention of
[0011]
The invention of
[0012]
The invention according to
[0013]
The invention of
[0014]
The invention of
[0015]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
[0016]
Example 1
FIG. 1 shows a schematic configuration of a print recording apparatus for recording on a recording medium such as recording paper as an embodiment of a multitask data processing system to which the present invention is applied.
[0017]
In FIG. 1, the print recording apparatus includes the following components, that is, a
[0018]
A recording medium
[0019]
FIG. 2 shows a task configuration in this embodiment. A task is the minimum unit of work performed by a computer, and a work performed by one program or program instruction is a task. Since the task is executed by an information processing apparatus such as a computer having a CPU, the task is represented as hardware in this embodiment. In FIG. 2,
[0020]
An instruction is notified from the
[0021]
In the present embodiment, as the execution result for the recording medium feed operation command from the
[0022]
FIG. 3 shows a processing procedure of the
[0023]
If the command fetched from the
[0024]
If the end of the recording medium has already been detected after completion of the recording medium feeding operation (step S8), the recording medium is fed from the distance x from the
[0025]
The distance z to the end of the recording medium calculated in step S9 or step S10, the accumulated processing amount y stored in the reception processing amount storage means 9, and the recording medium end detection status are collected together as an execution result. The
[0026]
FIG. 4 is a flowchart showing a processing procedure in the
[0027]
When the instruction to be transmitted to the
[0028]
Using the Δy obtained in step S20 and the distance z to the end of the recording medium notified as the execution result, the distance to the end of the recording medium at the time when the processing execution for all the commands in the
[0029]
On the other hand, if z ′ <0 in step S22 and the recording medium end detection status notified as the execution result indicates that end detection has been completed (step S24), processing is executed for all the instructions in the
[0030]
If z ′ <0 in step S22 and the recording medium end detection status notified as the execution result in step S24 indicates that the end has not been detected, execution of processing for all instructions in the
[0031]
Even in this case, if the
[0032]
As described above, by using the present invention, the
[0033]
(Example 2)
FIG. 5 shows the configuration of a print recording system as a second embodiment of the present invention. The present embodiment includes a
[0034]
As described above, even when the
[0035]
(Other examples)
In the first and second embodiments, the information notified as the execution result is the distance to the bottom end of the recordable area, and the cumulative processing amount to be added and notified is the recording medium feed amount from the job start point. For example, the present invention can be applied to other parameters such as the remaining number of recording media and the remaining amount of recording ink. Of course, it goes without saying that the present invention can be applied to apparatuses other than the printing and recording apparatus.
[0036]
【The invention's effect】
As described above , according to the first, ninth, and tenth aspects of the present invention, when it is determined whether or not the end of the storage medium is reached instead of suspending the processing until the completion of the processing for all the instructions in the FIFO buffer. Thus, the next instruction issuing process can be resumed, and an efficient process can be performed.
[0037]
In the invention of
[Brief description of the drawings]
FIG. 1 is a schematic configuration diagram showing a configuration of a print recording apparatus as a first embodiment of the present invention.
FIG. 2 is a block diagram showing a task configuration of the multitask data processing system in the first embodiment.
FIG. 3 is a flowchart showing a processing procedure of a process execution task in the first embodiment.
FIG. 4 is a flowchart showing a processing procedure of an instruction issue task in the first embodiment.
FIG. 5 is a block diagram showing a configuration of a print recording system as a second embodiment.
[Explanation of symbols]
DESCRIPTION OF
Claims (10)
前記命令発行タスクが前記FIFOバッファへ送信した命令の紙送り量をジョブ開始時点から累積して第1の記憶装置へ記憶し、
前記処理実行タスクが前記FIFOバッファから取り出した命令の紙送り量をジョブ開始時点から累積して前記第2の記憶装置に記憶し、
前記処理実行タスクは、記録媒体送り命令に対する処理実行時に前記第2の記憶装置に累積して記憶された紙送り量と記録媒体終端までの距離を前記命令発行タスクに通知し、
前記命令発行タスクは受け取った実行結果に付加されて通知された紙送り量と、前記第1の記憶装置に累積して記憶された紙送り量の差分より前記FIFOバッファ中に蓄積されている未実行処理量を算出し、
算出された未実行処理量と前記処理実行タスクから通知された記録媒体終端までの距離とに基づき終端までの距離推測値を算出し、算出された終端までの距離推測値に基づき、印字記録動作命令を発行するか、ジョブ終了命令を発行する
ことを特徴とするタスク間同期通信方法。There are two tasks, an instruction issue task for sequentially issuing instructions to be processed, and a process execution task for receiving the instructions and sequentially processing according to the contents of the instructions. Multi-task data for performing forward communication for notifying instructions to the processing execution task via the reverse and performing backward communication for notifying completion of processing execution of each instruction from the processing execution task to the instruction issuing task In a synchronous communication method between tasks of a processing system,
The instruction issue task accumulates the paper feed amount of the instruction sent to the FIFO buffer from the job start time and stores it in the first storage device;
The processing execution task accumulates the paper feed amount of the instruction fetched from the FIFO buffer from the job start time and stores it in the second storage device;
The process execution task notifies the command issue task of a paper feed amount accumulated in the second storage device and a distance to the end of the print medium when executing a process for the print medium feed command.
The command issue task is an unregistered task that is stored in the FIFO buffer based on the difference between the paper feed amount added and notified to the received execution result and the paper feed amount accumulated and stored in the first storage device. Calculate the amount of execution processing,
Based on the calculated unexecuted processing amount and the distance to the end of the recording medium notified from the process execution task, the estimated distance to the end is calculated, and the print recording operation is performed based on the calculated estimated distance to the end. An inter-task synchronous communication method characterized by issuing an instruction or issuing a job end instruction.
前記命令発行タスクからFIFOバッファを介して命令が通知される処理実行タスクと、搬送される記録媒体に記録を行う印字機構とを有し、
前記処理実行タスクは、FIFOバッファより命令を取得し、印字記録命令の場合、印字記録動作を行い、記録媒体送り命令の場合、記録媒体送り動作を行い、累積処理量yに記録媒体送り量を加算し、記録媒体終端までの距離zと累積処理量yとを命令発行タスクに通知し、ジョブ終了命令の場合、ジョブを終了し、
前記命令発行タスクは、記録媒体送り命令を発行する場合、記録媒体送り命令を発行し、累積処理量y’に送り量を加算し、印字記録命令を発行する場合、前記処理実行タスクから通知された累積処理量yと累積処理量y’とに基づき、FIFOバッファ内の未実行処理量Δyを算出し、算出された未実行処理量Δyと前記処理実行タスクから通知された記録媒体終端までの距離zとに基づき終端までの距離推測値z’を算出し、算出された終端までの距離推測値z’に基づき、印字記録動作命令を発行するか、ジョブ終了命令を発行する
ことを特徴とするプリンタ。A command issuing task for issuing a print recording operation command, a recording medium feed command, and a job end command;
A process execution task in which an instruction is notified from the instruction issue task through a FIFO buffer; and a printing mechanism for recording on a transported recording medium;
The process execution task acquires a command from the FIFO buffer, performs a print recording operation in the case of a print recording command, performs a recording medium feed operation in the case of a recording medium feed command, and sets the recording medium feed amount to the accumulated processing amount y. In addition, the command issuing task is notified of the distance z to the end of the recording medium and the accumulated processing amount y, and in the case of a job end command, the job is ended,
The command issuing task is notified from the process execution task when issuing a recording medium feed command, issuing a recording medium feed command, adding the feed amount to the accumulated processing amount y ′, and issuing a print recording command. Based on the accumulated processing amount y and the accumulated processing amount y ′, the unexecuted processing amount Δy in the FIFO buffer is calculated, and the calculated unexecuted processing amount Δy and the end of the recording medium notified from the processing execution task are calculated. A distance estimated value z ′ to the end is calculated based on the distance z, and a print recording operation command or a job end command is issued based on the calculated distance estimated value z ′ to the end Printer.
前記処理実行タスクは、FIFOバッファより命令を取得し、印字記録命令の場合、印字記録動作を行い、記録媒体送り命令の場合、記録媒体送り動作を行い、累積処理量yに記録媒体送り量を加算し、記録媒体終端までの距離zと累積処理量yとを命令発行タスクに通知し、ジョブ終了命令の場合、ジョブを終了し、
前記命令発行タスクは、記録媒体送り命令を発行する場合、記録媒体送り命令を発行し、累積処理量y’に送り量を加算し、印字記録命令を発行する場合、前記処理実行タスクから通知された累積処理量yと累積処理量y’とに基づき、FIFOバッファ内の未実行処理量Δyを算出し、算出された未実行処理量Δyと前記処理実行タスクから通知された記録媒体終端までの距離zとに基づき終端までの距離推測値z’を算出し、算出された終端までの距離推測値z’に基づき、印字記録動作命令を発行するか、ジョブ終了命令を発行する
ことを特徴とする制御方法。A command issuance task that issues a print recording operation command, a recording medium feed command, and a job end command, a process execution task in which a command is notified from the command issuance task via a FIFO buffer, and a record is recorded on the transported recording medium A control method in a printer having a printing mechanism to perform,
The process execution task acquires a command from the FIFO buffer, performs a print recording operation in the case of a print recording command, performs a recording medium feed operation in the case of a recording medium feed command, and sets the recording medium feed amount to the accumulated processing amount y. In addition, the command issuing task is notified of the distance z to the end of the recording medium and the accumulated processing amount y, and in the case of a job end command, the job is ended,
The command issuing task is notified from the process execution task when issuing a recording medium feed command, issuing a recording medium feed command, adding the feed amount to the accumulated processing amount y ′, and issuing a print recording command. Based on the accumulated processing amount y and the accumulated processing amount y ′, the unexecuted processing amount Δy in the FIFO buffer is calculated, and the calculated unexecuted processing amount Δy and the end of the recording medium notified from the processing execution task are calculated. A distance estimated value z ′ to the end is calculated based on the distance z, and a print recording operation command or a job end command is issued based on the calculated distance estimated value z ′ to the end Control method to do.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP00843896A JP3768580B2 (en) | 1996-01-22 | 1996-01-22 | Intertask synchronous communication method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP00843896A JP3768580B2 (en) | 1996-01-22 | 1996-01-22 | Intertask synchronous communication method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH09198262A JPH09198262A (en) | 1997-07-31 |
| JP3768580B2 true JP3768580B2 (en) | 2006-04-19 |
Family
ID=11693141
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP00843896A Expired - Fee Related JP3768580B2 (en) | 1996-01-22 | 1996-01-22 | Intertask synchronous communication method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3768580B2 (en) |
-
1996
- 1996-01-22 JP JP00843896A patent/JP3768580B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH09198262A (en) | 1997-07-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1004976B1 (en) | Printing system and method involving print preparing operation | |
| JP4029684B2 (en) | Printing system | |
| JPH10177464A (en) | Printing controller | |
| JP3768580B2 (en) | Intertask synchronous communication method | |
| JP2005209014A (en) | Job management apparatus, method, and control program | |
| US20040004739A1 (en) | Printer system, printer, printer control method | |
| JP2016016631A (en) | Recording apparatus control method, recording apparatus, and control program | |
| JP2001239724A (en) | Information processing apparatus, print control apparatus, print system and control method thereof, printing apparatus and storage medium | |
| JP4400097B2 (en) | Printing apparatus, printing control method, program, and recording medium | |
| JP4711136B2 (en) | Printing system, printing control apparatus, printing control method, and program | |
| JPH11232056A (en) | Printing system, processing device, printer, and storage medium storing program for operating processing device | |
| JP4208690B2 (en) | Status information acquisition method, apparatus, program, and storage medium | |
| JP3911344B2 (en) | Transfer paper transport control software system | |
| JP3642220B2 (en) | Data transfer method, print control apparatus and recording medium | |
| JP3812278B2 (en) | Recording medium and computer | |
| JP2001260429A (en) | Image recorder | |
| JP3828756B2 (en) | Printer and image data processing method | |
| JP3236421B2 (en) | Printing device | |
| JP2004106282A (en) | Printing device and copy system | |
| JPS63186325A (en) | recording device | |
| JP2002073301A (en) | Information processing system and method, printer device, and storage medium storing computer readable program | |
| JPH08278861A (en) | Print control method in print server | |
| JP2000108461A (en) | Printer | |
| JP2002073302A (en) | Information processing system and method, printer device, and storage medium storing computer readable program | |
| JPH03213376A (en) | Printing control apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050217 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050311 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050510 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20051028 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20051226 |
|
| 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: 20060120 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20060202 |
|
| 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: 20100210 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100210 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110210 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120210 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130210 Year of fee payment: 7 |
|
| LAPS | Cancellation because of no payment of annual fees |