JP2000222229A - Method and device for exclusively controlling plural jobs, and medium recorded with exclusive control program for plural jobs - Google Patents

Method and device for exclusively controlling plural jobs, and medium recorded with exclusive control program for plural jobs

Info

Publication number
JP2000222229A
JP2000222229A JP11027489A JP2748999A JP2000222229A JP 2000222229 A JP2000222229 A JP 2000222229A JP 11027489 A JP11027489 A JP 11027489A JP 2748999 A JP2748999 A JP 2748999A JP 2000222229 A JP2000222229 A JP 2000222229A
Authority
JP
Japan
Prior art keywords
exclusive control
interface
jobs
predetermined
job
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
JP11027489A
Other languages
Japanese (ja)
Inventor
Takahiro Okada
隆宏 岡田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP11027489A priority Critical patent/JP2000222229A/en
Publication of JP2000222229A publication Critical patent/JP2000222229A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a method and device for exclusively controlling plural jobs and a medium recording the exclusive control program for plural jobs, which can exclude access to a prescribed interface by the plural jobs on a basic program allowing the occupation of the prescribed interface with respect to a prescribed one job with a simple configuration. SOLUTION: Even though there are plural programs to access to an LPT port 10a on a computer in the case when a program capable of occupying this LPT port 10a is limited to be single in the basic program executing the basic operation of the computer, each program comes to be able to grasp the occupying state of the port 10a before outputting data or a command to the port 10a by installing a flag showing the occupying state to a shared memory 170 and it is becomes possible to easily realize the logical exclusion control of the port 10a between plural programs with a such simple configuration.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、複数ジョブの排他
制御方法、排他制御装置および複数ジョブの排他制御プ
ログラムを記録した媒体に関し、特に所定の一ジョブに
対して所定のインターフェースの占有を許容する基本プ
ログラム上にて複数ジョブからの上記所定のインターフ
ェースへのアクセスを排他制御する複数ジョブの排他制
御方法、排他制御装置および複数ジョブの排他制御プロ
グラムを記録した媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an exclusive control method for a plurality of jobs, an exclusive control device, and a medium on which an exclusive control program for a plurality of jobs is recorded. The present invention relates to an exclusive control method for a plurality of jobs that exclusively controls access to the predetermined interface from a plurality of jobs on a basic program, an exclusive control device, and a medium recording an exclusive control program for a plurality of jobs.

【0002】[0002]

【従来の技術】通常、コンピュータにおいて使用される
基本プログラムは、仕様上同コンピュータが備えている
LPTポートを利用できるプログラム、すなわちジョブ
を一つに制限している。例えば、LPTポートを介して
同コンピュータとプリンタを接続した場合を考える。こ
のとき、同コンピュータにおいて複数ジョブとして印刷
コマンドや印刷データを生成する印刷ジョブと、プリン
タのステータスを確認するために、所定のコマンドを発
生し、プリンタと双方向にてステータス通信を実行する
ステータスモニタージョブなどが実行され、この二つの
ジョブから出力されるコマンド等は上記LPTポートを
介してプリンタに送出されることになる。ここで、上述
したようにLPTポートは基本プログラムにより唯一の
ジョブに対してサービスするように設計されている。一
方、印刷ジョブおよびステータスモニタージョブは互い
の処理状態を認識することができない。従って、印刷ジ
ョブによってLPTポートが占有されると、他のジョ
ブ、ここではステータスモニタージョブは、LPTポー
トが印刷ジョブによって占有されていることを認識する
ことができない。このため、ステータスコマンドを出力
しようとして、LPTポートから占有不可のエラーを取
得して、初めて、LPTポートが占有されていることを
認識することが可能になる。従って、印刷ジョブが終了
するまで、何度もコマンド出力を繰り返し試みる必要が
あった。
2. Description of the Related Art Normally, a basic program used in a computer is limited to one program that can use an LPT port provided in the computer, that is, one job. For example, consider a case where the same computer and a printer are connected via an LPT port. At this time, a print job that generates print commands and print data as a plurality of jobs on the same computer, and a status monitor that generates a predetermined command to check the status of the printer and that performs bidirectional status communication with the printer A job or the like is executed, and commands output from these two jobs are sent to the printer via the LPT port. Here, as described above, the LPT port is designed to service only one job by the basic program. On the other hand, the print job and the status monitor job cannot recognize each other's processing status. Therefore, if the LPT port is occupied by a print job, other jobs, here the status monitor job, cannot recognize that the LPT port is occupied by the print job. For this reason, it is possible to recognize that the LPT port is occupied for the first time by obtaining a non-occupied error from the LPT port in order to output a status command. Therefore, it is necessary to repeatedly output the command until the print job is completed.

【0003】[0003]

【発明が解決しようとする課題】上述したような、複数
ジョブのうちLPTポートを利用できるジョブが一つに
制限されていた不便さを解消するために、LPTポート
と各ジョブとの間に各コマンド等をパケット化する所定
のエンジンを配置する構成がとられるようになった。こ
のエンジンは、印刷ジョブから所定の印刷コマンドや印
刷データを受信すると、LPTポートにパケットデータ
化した同印刷コマンドや印刷データを出力して、プリン
タにて印刷を実行させる。このときに、ステータスモニ
タージョブから所定のステータスコマンドがこのエンジ
ンに送出されると、同エンジンは、印刷コマンドや印刷
データからなるパケットデータにこのステータスコマン
ドをパケットととして挿入し、LPTポートを介して、
プリンタに送出する。この印刷コマンド等と同一のパケ
ットデータになったステータスコマンドをプリンタが受
信すると、このステータスコマンドを解釈し、対応する
ステータスをLPTポートに返答する。そして、この返
答は、上記エンジンに入りステータスモニタージョブは
取得することが可能になっている。
In order to eliminate the inconvenience of limiting the number of jobs that can use the LPT port to one among a plurality of jobs as described above, each of the jobs must be placed between the LPT port and each job. A configuration in which a predetermined engine for packetizing commands and the like is arranged has been adopted. When receiving a predetermined print command or print data from a print job, this engine outputs the print command or print data in packet data to the LPT port and causes the printer to execute printing. At this time, when a predetermined status command is sent from the status monitor job to the engine, the engine inserts the status command as a packet into packet data including a print command and print data, and transmits the packet via the LPT port. ,
Send to printer. When the printer receives a status command that has become the same packet data as the print command or the like, the printer interprets the status command and returns a corresponding status to the LPT port. Then, the reply enters the engine and the status monitor job can be obtained.

【0004】すなわち、上述した所定の一ジョブに対し
て所定のインターフェースの占有を許容する基本プログ
ラム上にて複数ジョブからの上記所定のインターフェー
スへのアクセスする手法においては、ステータスモニタ
ーコマンドのように、印刷ジョブのパケットデータにパ
ケットとして挿入可能であるものは、上述したエンジン
によって印刷ジョブがLPTポートを占有しているにも
かかわらず、この印刷ジョブと同時にプリンタにアクセ
スすることが可能であった。しかし、スキャナジョブや
プリンタのパラメータを設定したりするコントロールジ
ョブなどの動作や制御に関するコマンドは、印刷ジョブ
にパケットとして挿入するとジョブの実行に不都合をき
たす場合がある(極端なパフォーマンス低下やプリンタ
の誤動作など)。加えて、この印刷ジョブ、コントロー
ルジョブあるいはスキャナジョブといった複数のジョブ
についてLPTポートの利用を論理的に排他する仕組み
がないという課題があった。
That is, in the above-described method of accessing a predetermined interface from a plurality of jobs on a basic program that allows a predetermined job to occupy a predetermined interface, a status monitor command is used. Regarding those that can be inserted into the packet data of the print job as a packet, the printer can access the printer at the same time as the print job despite the fact that the print job occupies the LPT port by the above-described engine. However, commands related to operations and controls such as a control job for setting parameters of a scanner job or a printer may cause inconvenience to the job execution when inserted as a packet into a print job (extreme performance degradation or malfunction of the printer). Such). In addition, there is a problem that there is no mechanism for logically excluding the use of the LPT port for a plurality of jobs such as the print job, the control job, and the scanner job.

【0005】本発明は、上記課題にかんがみてなされた
もので、所定の一ジョブに対して所定のインターフェー
スの占有を許容する基本プログラム上にて、複数ジョブ
による同所定のインターフェースへのアクセスを簡易な
構成によって排他することが可能な複数ジョブの排他制
御方法、排他制御装置および複数ジョブの排他制御プロ
グラムを記録した媒体の提供を目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and simplifies access to a predetermined interface by a plurality of jobs on a basic program that allows a predetermined job to occupy a predetermined interface. It is an object of the present invention to provide an exclusive control method for a plurality of jobs that can be excluded by a simple configuration, an exclusive control device, and a medium recording an exclusive control program for a plurality of jobs.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、請求項1にかかる発明は、所定の一ジョブに対して
所定のインターフェースの占有を許容する基本プログラ
ム上にて相互に認識不能な複数ジョブからの上記所定の
インターフェースへのアクセスを排他制御する複数ジョ
ブの排他制御方法であって、上記所定のインターフェー
スの占有状態の有無を問い合わせるとともに、同占有状
態を取得する占有状態取得工程と、上記占有状態取得工
程より上記所定のインターフェースの占有状態を入力す
るととともに、複数のジョブのアクセスによる同所定の
インターフェースの占有に競合が発生しないように排他
制御を実行する排他制御工程と、上記排他制御工程にて
アクセスを許可されると、上記所定のインターフェース
にアクセスするとともに、同所定のインターフェースの
占有を通知するインターフェースアクセス工程とを具備
する構成としてある。
According to a first aspect of the present invention, there is provided a computer system comprising: a plurality of mutually unrecognizable programs on a basic program which allows a predetermined job to occupy a predetermined interface; An exclusive control method for a plurality of jobs that exclusively controls access to the predetermined interface from a job, wherein an exclusive state acquisition step of inquiring whether or not the specific interface has an exclusive state and acquiring the exclusive state, An exclusion control step of inputting the occupation state of the predetermined interface from the occupation state acquisition step and executing exclusive control so as not to cause a conflict in occupation of the predetermined interface by accessing a plurality of jobs; and If access is permitted at, access to the specified interface In, it is constituted comprising an interface access step of notifying the occupation of the predetermined interface.

【0007】上記のように構成した請求項1にかかる発
明において、本排他制御方法は、所定の一ジョブに対し
て所定のインターフェースの占有を許容する基本プログ
ラム上で動作する。ここで、同所定のインターフェース
を任意の一ジョブが使用して同インターフェースに接続
される外部機器と所定の通信を実行する場合に、同ジョ
ブが同インターフェースを占有すると、他のジョブはこ
のインターフェースの占有をコマンドを出力する前に認
識することができない。そこで、本排他制御方法は、上
記所定のインターフェースにアクセスするときに、他の
ジョブによる上記所定のインターフェースの占有状態を
確認してから実行することにより、同所定のインターフ
ェースの排他制御を実現可能にする。
[0007] In the invention according to claim 1 configured as described above, the exclusive control method operates on a basic program that permits a predetermined interface to be occupied by a predetermined interface. Here, when a given job uses the same interface to execute a predetermined communication with an external device connected to the same interface, if the same job occupies the same interface, another job is executed on the same interface. Occupancy cannot be recognized before issuing the command. Thus, the present exclusive control method enables the exclusive control of the predetermined interface to be realized by checking the occupation state of the predetermined interface by another job when accessing the predetermined interface. I do.

【0008】かかる場合、上記所定のインターフェース
にアクセスするジョブは、後述する所定の条件のもと、
インターフェースアクセス工程にて同所定のインターフ
ェースの占有の通知を実行する。この通知は、上記基本
プログラム上を動作する全てのジョブが監視することが
できるものであり、同所定のインターフェースにアクセ
スするジョブは、同インターフェースにアクセスする前
に、占有状態取得工程にてインターフェースアクセス工
程によって通知されている上記所定のインターフェース
の占有状態の有無を問い合わせるとともに、同占有状態
を取得する。そして、排他制御工程では、占有状態取得
工程から上記所定のインターフェースの占有状態を入力
し、上記所定のインターフェースへのアクセスに競合が
発生しないように排他制御を実行する。従って、インタ
ーフェースアクセス工程は、この排他制御工程による排
他制御の結果、所定のインターフェースを他のジョブと
競合することなく使用することができるようになる。そ
して、このように競合することなく同所定のインターフ
ェースにアクセスすることが可能なとき、上記インター
フェースアクセス工程は、同所定のインターフェースの
占有を通知する。
In such a case, a job accessing the above-mentioned predetermined interface is executed under a predetermined condition described later.
In the interface access step, notification of the occupation of the predetermined interface is executed. This notification can be monitored by all the jobs operating on the basic program, and the job accessing the predetermined interface must be interface-accessed in the occupation status acquisition step before accessing the interface. An inquiry is made as to whether or not there is an occupancy state of the predetermined interface notified by the process, and the occupancy state is acquired. In the exclusion control step, the occupation state of the predetermined interface is input from the occupation state acquisition step, and the exclusion control is performed so that no conflict occurs in access to the predetermined interface. Therefore, in the interface access step, as a result of the exclusive control by the exclusive control step, a predetermined interface can be used without competing with another job. Then, when it is possible to access the predetermined interface without conflict, the interface access step notifies the occupation of the predetermined interface.

【0009】ここで、上記通知は、他のジョブに対して
直接的に通知するものであってもよいし、間接的に通知
するものであってもよい。この直接的な通知は、ジョブ
間の通信を実行する、いわゆるプロセス間通信により占
有を通知する構成であってもよいし、他のジョブに占有
のメッセージを送る構成であってもよい。また、間接的
な通知は、複数のジョブにて使用可能な共有メモリに占
有を書き込み、他のジョブがこの共有メモリの内容を確
認して、占有を認識する構成であってもよい。また、こ
の間接的な通知は、セマフォーなどの排他制御手法によ
って構成してもよい。また、占有状態取得工程と排他制
御工程とインターフェースアクセス工程とを各ジョブが
実行する処理の一つとしてジョブ内に組み込んで動作さ
せる構成であってもよいし、それぞれの工程を独自のジ
ョブとして動作させるとともに、上記所定のインターフ
ェースにアクセスを行うジョブと所定のデータを送受信
する構成であってもよい。すなわち、インターフェース
アクセス工程にて上記所定のインターフェースにアクセ
スし同所定のインターフェースの占有が発生すると、以
降このインターフェースにアクセスする他のジョブは占
有状態取得工程にて占有状態を検出し、排他制御工程に
て同インターフェースにおける競合が発生しないよう排
他制御するものである。
Here, the notification may be a direct notification to another job or an indirect notification. This direct notification may be configured to execute communication between jobs, that is, notified of occupation by so-called inter-process communication, or may be configured to send an occupation message to another job. Further, the indirect notification may be configured such that the occupation is written in a shared memory that can be used by a plurality of jobs, and another job confirms the contents of the shared memory to recognize the occupation. The indirect notification may be configured by an exclusive control method such as a semaphore. Also, the configuration may be such that the occupancy status acquisition step, the exclusive control step, and the interface access step are incorporated in a job as one of the processes executed by each job and operated, or each step is operated as a unique job. In addition, the configuration may be such that a job for accessing the predetermined interface and predetermined data are transmitted and received. That is, when the predetermined interface is accessed in the interface access step and the predetermined interface is occupied, other jobs accessing the interface thereafter detect the occupation state in the occupation state acquisition step, and perform the exclusive control step. The exclusive control is performed so that no conflict occurs in the interface.

【0010】上記占有状態取得工程が上記インターフェ
ースアクセス工程の通知する上記所定のインターフェー
スの占有状態を問い合わせる手法は、所定のジョブが同
所定のインターフェースをアクセスするときでもよい
し、所定の間隔ごとに問い合わせする構成であってても
よい。そこで、後者の一例として請求項2にかかる発明
は、請求項1に記載の複数ジョブの排他制御方法におい
て、上記占有状態取得工程は、所定の間隔に基づいて上
記インターフェースアクセス工程による上記所定のイン
ターフェースの占有状態を問い合わせる構成としてあ
る。上記のように構成した請求項2にかかる発明におい
て、上記占有状態取得工程は、所定の間隔に基づいて上
記インターフェースアクセス工程による上記所定のイン
ターフェースの占有状態を問い合わせる。この所定の間
隔は、特に限定されるものではなく、1秒であってもよ
いし、0.5秒であってもよく、適宜変更可能である。
The method of inquiring the occupancy state of the predetermined interface notified by the interface access step in the occupation state acquisition step may be performed when a predetermined job accesses the predetermined interface or inquired at predetermined intervals. The configuration may be as follows. Therefore, as an example of the latter, the invention according to claim 2 is the exclusive control method for a plurality of jobs according to claim 1, wherein the occupation state acquiring step is performed by the predetermined interface by the interface access step based on a predetermined interval. This is a configuration for inquiring about the occupation state. In the invention according to claim 2 configured as described above, the occupation state acquiring step inquires of the occupation state of the predetermined interface in the interface access step based on a predetermined interval. The predetermined interval is not particularly limited, and may be 1 second or 0.5 second, and may be changed as appropriate.

【0011】一方、上記所定のインターフェースの占有
状態によって排他制御を実行するものの、例えば、上記
所定のインターフェースを有するコンピュータの印刷ジ
ョブが同インターフェースを介して接続するプリンタに
印刷コマンドや印刷データを出力する場合に、同プリン
タのステータスを取得するステータスモニタージョブの
ステータスモニターコマンドのように印刷コマンドや印
刷データと同一のパケットデータとしてプリンタに送出
可能なものについては、印刷コマンドや印刷データと一
緒にパケット化し、プリンタに送出することができると
好適である。そこで、請求項3にかかる発明は、請求項
1または請求項2のいずれかに記載の複数ジョブの排他
制御方法において、上記複数ジョブは、上記所定のイン
ターフェースへのアクセスにて競合が発生すると、同所
定のインターフェースを占有しているジョブに対してジ
ョブの処理を依頼する所定のジョブを有する構成として
ある。上記のように構成した請求項3にかかる発明にお
いては、上記複数ジョブは、上記所定のインターフェー
スへのアクセスにて競合が発生すると、同所定のインタ
ーフェースを占有しているジョブに対してジョブの処理
を依頼する所定のジョブを有する。すなわち、上述した
一例のように、印刷コマンドによってプリンタが印刷動
作に占有されていても、ステータスモニターコマンドを
パッケージ化し印刷コマンドと一緒にプリンタに送出
し、プリンタはこのステータスモニターコマンドに基づ
くステータスをステータスモニタージョブに返答するこ
とが可能になる。
On the other hand, although exclusive control is executed according to the occupation state of the predetermined interface, for example, a print job of a computer having the predetermined interface outputs a print command and print data to a printer connected via the interface. If the printer can send the same packet data as the print command and print data to the printer, such as the status monitor command of the status monitor job that acquires the status of the printer, it is packetized together with the print command and print data. Can be sent to a printer. Therefore, according to a third aspect of the present invention, in the exclusive control method for a plurality of jobs according to any one of the first and second aspects, when a conflict occurs in the plurality of jobs when accessing the predetermined interface, The configuration includes a predetermined job that requests the job occupying the predetermined interface to process the job. In the invention according to claim 3 configured as described above, when a conflict occurs in accessing the predetermined interface, the plurality of jobs process the job occupying the predetermined interface. Has a predetermined job to request. That is, even if the printer is occupied by the print command for the printing operation as in the example described above, the status monitor command is packaged and sent to the printer together with the print command, and the printer sends the status based on the status monitor command to the status. It will be possible to respond to monitor jobs.

【0012】複数のジョブの中には、上記所定のインタ
ーフェースを長時間占有してしまうものがある。例え
ば、印刷ジョブやスキャナジョブなどがある。かかる場
合、印刷ジョブが同インターフェースを占有中に、スキ
ャナジョブによる同インターフェースを占有する要求が
発生すると、既占有中を理由に同スキャナジョブの占有
要求は破棄されてしまう。かかる場合、インターフェー
スアクセス工程により同インターフェースの占有予約が
できると好適である。そこで、請求項4にかかる発明
は、請求項1〜請求項3のいずれかに記載の複数ジョブ
の排他制御方法において、上記排他制御工程は、上記複
数ジョブについて上記所定のインターフェースを占有す
る期間を予め認識しているとともに、占有しているジョ
ブが所定のインターフェースを長期間占有するジョブで
あると、上記インターフェースアクセス工程において占
有しているジョブの次に所定のインターフェースを占有
する占有予約を実行する構成としてある。上記のように
構成した請求項4にかかる発明においては、上記排他制
御工程は、上記複数ジョブについて上記所定のインター
フェースを占有する期間を予め設定され認識する。ここ
で、占有している所定のジョブが所定のインターフェー
スを長期間占有するジョブであると、上記インターフェ
ースアクセス工程において占有しているジョブの次に所
定のインターフェースを占有する占有予約の通知を実行
する。
Some of the jobs occupy the predetermined interface for a long time. For example, there are a print job and a scanner job. In such a case, if a request by the scanner job to occupy the same interface occurs while the print job is occupying the same interface, the occupation request for the same scanner job is discarded because of the occupation of the same interface. In such a case, it is preferable that exclusive reservation of the interface can be made by the interface access step. According to a fourth aspect of the present invention, in the exclusive control method for a plurality of jobs according to any one of the first to third aspects, the exclusive control step includes setting a period during which the plurality of jobs occupy the predetermined interface. If the occupied job is a job that occupies the predetermined interface for a long period of time while being recognized in advance, an occupation reservation that occupies the predetermined interface next to the occupied job in the interface access step is executed. There is a configuration. In the invention according to claim 4 configured as described above, in the exclusive control step, a period in which the plurality of jobs occupy the predetermined interface is set and recognized in advance. Here, if the occupied predetermined job is a job that occupies the predetermined interface for a long time, a notification of occupancy reservation for occupying the predetermined interface next to the occupied job in the interface access step is executed. .

【0013】このように、所定の一ジョブに対して印刷
インターフェースの占有を許容する基本プログラム上に
て複数ジョブからの上記印刷インターフェースへのアク
セスを排他制御する手法は必ずしも方法に限られる必要
はなく、その方法を具現化した装置としても機能するこ
とは容易に理解できる。このため、請求項5にかかる発
明は、所定の一ジョブに対して所定のインターフェース
の占有を許容する基本プログラム上にて相互に認識不能
な複数ジョブからの上記印刷インターフェースへのアク
セスを排他制御する排他制御装置であって、上記所定の
インターフェースの占有状態を問い合わせるとともに、
同占有状態を取得する占有状態取得手段と、上記占有状
態取得手段にて取得した占有状態が未占有のとき、上記
所定のインターフェースにアクセスするとともに、同所
定のインターフェースの占有を通知する占有通知手段
と、上記占有状態取得手段より上記所定のインターフェ
ースの占有状態を入力するととともに、同所定のインタ
ーフェースにて競合が発生しないように排他制御を実行
する排他制御手段とを具備する構成としてある。すなわ
ち、必ずしも方法に限らず、その方法を具現化した装置
としても有効であることに相違はない。
As described above, the method of exclusively controlling access to the print interface from a plurality of jobs on the basic program that permits the occupation of the print interface for one predetermined job is not necessarily limited to the method. It can be easily understood that the device also functions as an apparatus embodying the method. For this reason, the invention according to claim 5 exclusively controls access to the print interface from a plurality of mutually unrecognizable jobs on a basic program that allows a predetermined job to occupy a predetermined interface. An exclusive control device, for inquiring about the occupation state of the predetermined interface,
Occupancy status acquisition means for acquiring the occupancy status, and occupancy notification means for accessing the predetermined interface and notifying occupancy of the predetermined interface when the occupancy status acquired by the occupancy status acquisition device is not occupied. And exclusive control means for inputting the occupation state of the predetermined interface from the occupation state acquisition means and executing exclusive control so that no conflict occurs in the predetermined interface. That is, there is no difference in that the present invention is not necessarily limited to the method but is also effective as an apparatus embodying the method.

【0014】ところで、このような所定の一ジョブに対
して所定のインターフェースの占有を許容する基本プロ
グラム上にて相互に認識不能な複数ジョブからの上記印
刷インターフェースへのアクセスを排他制御する排他制
御装置は単独で存在する場合もあるし、ある機器に組み
込まれた状態で利用されることもあるなど、発明の思想
としてはこれに限らず、各種の態様を含むものである。
従って、ソフトウェアであったりハードウェアであった
りするなど、適宜変更可能である。発明の思想の具現化
例として、所定の一ジョブに対して所定のインターフェ
ースの占有を許容する基本プログラム上にて相互に認識
不能な複数ジョブからの上記印刷インターフェースへの
アクセスを排他制御する排他制御装置のソフトウェアと
なる場合には、かかるソフトウェアを記録した記録媒体
上においても当然に存在し、利用されるといわざるをえ
ない。
By the way, an exclusive control device that exclusively controls access to the print interface from a plurality of jobs that cannot be mutually recognized on a basic program that allows such a predetermined job to occupy a predetermined interface. The present invention is not limited to this, and may include various aspects, for example, may exist alone or may be used in a state of being incorporated in a certain device.
Therefore, it can be changed as appropriate, such as software or hardware. As an example of embodying the idea of the present invention, exclusive control for exclusively controlling access to the print interface from a plurality of mutually unrecognizable jobs on a basic program that allows a predetermined job to occupy a predetermined interface. When it becomes the software of the device, it naturally exists on the recording medium on which the software is recorded, and it cannot be said that it is used.

【0015】その一例として、請求項6にかかる発明
は、所定の一ジョブに対して所定のインターフェースの
占有を許容する基本プログラム上にて相互に認識不能な
複数ジョブからの上記印刷インターフェースへのアクセ
スを排他制御する複数ジョブの排他制御プログラムを記
録した媒体であって、上記所定のインターフェースの占
有状態を問い合わせるとともに、同占有状態を取得する
占有状態取得ステップと、上記占有状態取得ステップに
て取得した占有状態が未占有のとき、上記所定のインタ
ーフェースにアクセスするとともに、同所定のインター
フェースの占有を通知する占有通知ステップと、上記占
有状態取得ステップより上記所定のインターフェースの
占有状態を入力するととともに、同所定のインターフェ
ースにて競合が発生しないように排他制御を実行する排
他制御ステップとを具備する構成としてある。
[0015] As an example, the invention according to claim 6 is a method for accessing the print interface from a plurality of mutually unrecognizable jobs on a basic program that allows a predetermined job to occupy a predetermined interface. Is a medium in which an exclusive control program of a plurality of jobs for exclusive control of a job is recorded, and the exclusive state acquisition step of inquiring about the occupation state of the predetermined interface and acquiring the same occupation state is obtained in the occupation state acquisition step. When the occupation state is not occupied, the predetermined interface is accessed and the occupancy notification step for notifying the occupation of the predetermined interface is performed. Conflict occurs on a given interface No way is a configuration that includes a exclusive control step for executing exclusive control.

【0016】むろん、その記録媒体は、磁気記録媒体で
あってもよいし光磁気記録媒体であってもよいし、今後
開発されるいかなる記録媒体においても全く同様に考え
ることができる。また、一次複製品、二次複製品などの
複製段階については全く問う余地無く同等である。その
他、供給方法として通信回線を利用して行なう場合でも
本発明が利用されていることにはかわりない。さらに、
一部がソフトウェアであって、一部がハードウェアで実
現されている場合においても発明の思想において全く異
なるものではなく、一部を記録媒体上に記憶しておいて
必要に応じて適宜読み込まれるような形態のものとして
あってもよい。
Of course, the recording medium may be a magnetic recording medium, a magneto-optical recording medium, or any recording medium to be developed in the future. Also, the duplication stages of the primary duplicated product, the secondary duplicated product, and the like are equivalent without any question. In addition, the present invention is not limited to the case where the present invention is used even when the supply is performed using a communication line. further,
The concept of the present invention is not completely different even when part is software and part is realized by hardware, and part is stored on a recording medium and read as needed as needed. Such a form may be adopted.

【0017】[0017]

【発明の効果】以上説明したように本発明は、所定の一
ジョブに対して所定のインターフェースの占有を許容す
る基本プログラム上にて、複数ジョブによる同所定のイ
ンターフェースへのアクセスを簡易な構成によって排他
することが可能な複数ジョブの論理的な排他制御方法を
提供することができる。また、請求項2にかかる発明に
よれば、所定の間隔によって、所定のインターフェース
の占有状態を認識することが可能になる。さらに、請求
項3にかかる発明によれば、所定のインターフェースを
占有中のコマンドを形成するパケットデータに挿入可能
なコマンドについては、占有の有無に関わらず、アクセ
スすることが可能になる。
As described above, according to the present invention, a simple configuration allows a plurality of jobs to access the same predetermined interface on a basic program which permits the occupation of the predetermined interface for one predetermined job. It is possible to provide a logical exclusive control method for a plurality of jobs that can be mutually exclusive. According to the second aspect of the present invention, it is possible to recognize the occupation state of a predetermined interface at a predetermined interval. Further, according to the third aspect of the present invention, a command that can be inserted into packet data forming a command occupying a predetermined interface can be accessed regardless of whether the command is occupied.

【0018】さらに、請求項4にかかる発明によれば、
長時間所定のインターフェースを占有する場合には、占
有予約をすることにより、占有の解除と同時に予約した
ジョブを開始することが可能になる。さらに、請求項5
にかかる発明によれば、所定の一ジョブに対して所定の
インターフェースの占有を許容する基本プログラム上に
て、複数ジョブによる同所定のインターフェースへのア
クセスを簡易な構成によって排他することが可能な排他
制御装置を提供することができる。さらに、請求項6に
かかる発明によれば、所定の一ジョブに対して所定のイ
ンターフェースの占有を許容する基本プログラム上に
て、複数ジョブによる同所定のインターフェースへのア
クセスを簡易な構成によって排他することが可能な複数
ジョブの排他制御プログラムを記録した媒体を提供する
ことができる。
Further, according to the invention according to claim 4,
When occupying a predetermined interface for a long time, occupancy reservation makes it possible to start the reserved job simultaneously with release of occupation. Further, claim 5
According to the present invention, on a basic program which allows a predetermined job to occupy a predetermined interface, it is possible to exclude access to the predetermined interface by a plurality of jobs with a simple configuration. A control device can be provided. Further, according to the invention according to the sixth aspect, on a basic program that permits the occupation of a predetermined interface for a predetermined job, access to the predetermined interface by a plurality of jobs is excluded by a simple configuration. It is possible to provide a medium in which exclusive control programs for a plurality of jobs that can be executed are recorded.

【0019】[0019]

【発明の実施の形態】以下、図面にもとづいて本発明の
実施形態を説明する。図1は、本発明の一実施形態にか
かる複数ジョブの排他制御方法のクレーム対応図を示し
ている。同図において、本排他制御方法は、相互に認識
が不能な複数のジョブC1の任意の一ジョブに対して所
定のインターフェースC2の占有を許容する基本プログ
ラム上で動作し、同所定のインターフェースC2の占有
状態C3を確認しつつ、一ジョブによって占有されるよ
うに同所定のインターフェースC2へのアクセスを排他
制御する。すなわち、占有状態取得工程C11の取得し
た上記所定のインターフェースC2の占有状態C3に従
って排他制御工程C12は、複数のジョブC1のアクセ
スによる同所定のインターフェースC2の占有に競合が
発生しないように排他制御を実行する。そして、インタ
ーフェースアクセス工程C13は、上記排他制御工程C
12にて上記所定のインターフェースC2へのアクセス
を許可されると、同所定のインターフェースC2にアク
セスを実行する。これに伴い、同所定のインターフェー
スC2を占有したことを直接的または間接的に他の複数
のジョブC1に通知する。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a claim correspondence diagram of an exclusive control method for a plurality of jobs according to an embodiment of the present invention. In the figure, the exclusion control method operates on a basic program that allows a predetermined interface C2 to be occupied by any one of a plurality of jobs C1 that cannot be mutually recognized. While confirming the occupation state C3, exclusive access control to the predetermined interface C2 is controlled so as to be occupied by one job. That is, in accordance with the occupation state C3 of the predetermined interface C2 acquired by the occupation state acquisition step C11, the exclusion control step C12 performs exclusive control so as not to cause conflict in occupation of the predetermined interface C2 by accessing a plurality of jobs C1. Execute. The interface access step C13 is the exclusive control step C.
When the access to the predetermined interface C2 is permitted at 12, the access to the predetermined interface C2 is executed. Along with this, the other plurality of jobs C1 are notified directly or indirectly of the occupation of the predetermined interface C2.

【0020】図2は、本発明の一実施形態にかかる複数
ジョブの排他制御方法を適用した排他制御装置を構成す
るコンピュータと複写装置とを接続した印刷システムを
形成した外観図を示している。ここで、コンピュータ1
は、複写装置10に対してプリントコマンドやスキャナ
コマンドを入力する。そして、このコマンドを入力した
複写装置10は、所定の動作を実行する。従って、複写
装置10は、スキャナ20と、コントローラ30と、プ
リンタ40とから構成されており、上述したコンピュー
タ1からコマンドを入力したコントローラ30による制
御に基づいてスキャナ20にてカラー画像を読み込む
と、読み込まれた画像データを同コントローラ30が画
像処理して印刷データを生成し、この印刷データに基づ
いてプリンタ40がカラー印刷したり、プリントコマン
ドとともに入力した印刷データに基づいてプリンタ40
がカラー印刷する。
FIG. 2 is an external view showing a printing system in which a computer and a copying machine constituting an exclusive control apparatus to which an exclusive control method for a plurality of jobs according to an embodiment of the present invention is applied and a copying apparatus are formed. Here, computer 1
Inputs a print command or a scanner command to the copying apparatus 10. Then, the copying apparatus 10 that has received this command executes a predetermined operation. Accordingly, the copying apparatus 10 includes the scanner 20, the controller 30, and the printer 40. When the color image is read by the scanner 20 based on the control by the controller 30 that has received the command from the computer 1, The controller 30 performs image processing on the read image data to generate print data, and the printer 40 performs color printing based on the print data, or performs printing based on the print data input together with the print command.
Prints in color.

【0021】本実施形態においては、コンピュータ1と
複写装置10の接続をLPTインターフェースによって
実現する構成を採用している。かかる場合、コンピュー
タ1側のLPTポート1aに所定のケーブル50の一方
のコネクタ50aを接続し、他方のコネクタ50bを複
写装置10のLPTポート10aに接続している。そし
て、複写装置10のスキャナ20およびプリンタ40
は、コンピュータ1が出力するコマンドに従ってスキャ
ナ20あるいはプリンタ40をそれぞれ個別に動作させ
ることが可能になっている。また、複写装置10には、
操作パネル35が配設され、コピー開始やスキャナ20
の起動を行う所定の操作ボタン35aや同複写装置10
の状態を示す液晶表示器35bなどが配置されており、
複写装置10単体からもコピーコマンドやスキャナコマ
ンドを出力可能になっている。
The present embodiment employs a configuration in which the connection between the computer 1 and the copying apparatus 10 is realized by an LPT interface. In such a case, one connector 50a of the predetermined cable 50 is connected to the LPT port 1a of the computer 1, and the other connector 50b is connected to the LPT port 10a of the copying apparatus 10. The scanner 20 and the printer 40 of the copying apparatus 10
Is capable of individually operating the scanner 20 or the printer 40 in accordance with a command output from the computer 1. Also, in the copying apparatus 10,
An operation panel 35 is provided to start copying and to
Operation button 35a for starting the copying machine 10
And a liquid crystal display 35b indicating the state of
The copy command and the scanner command can be output from the copying apparatus 10 alone.

【0022】ここで、複写装置10が備えるスキャナ2
0、コントローラ30およびプリンタ40について概略
構成を説明する。図3はスキャナ20の概略構成を示し
ており、フラットベッドタイプを採用している。被スキ
ャナ物を載置する透明板材21の下方には照明ランプ2
2とラインセンサ23とが往復スライド移動可能に支持
されるとともに、これらを駆動するための駆動ベルト2
4aとプーリ24bと駆動モータ24cとが配置され、
制御回路25に接続されている。カラー画像を読み込む
ときには、制御回路25からの制御信号に基づいて照明
ランプ22が点灯すると、透明板材21を介して被複写
物を照明するので、同被複写物からの反射光が同透明板
材21を介してラインセンサ23に照射される。ライン
センサ23には光の三原色に対応するフィルタとCCD
素子とが一色につき一列、通常三列配置されており、こ
の三列のCCD素子により被複写物の幅方向にわたる一
列分の色配置を読み込み、画像データとして出力する。
一方、制御回路25は駆動モータ24cを駆動させるこ
とにより、これらの照明ランプ22とラインセンサ24
とを一体的に被複写物の長さ方向に向かって移動させ、
微少距離分だけ移動せしめる毎にラインセンサ23から
画像データを取得して出力する。これにより、外部的に
は被スキャナ物を幅方向に主走査しながら長さ方向に副
走査し、二次元の画像データを生成していくことにな
る。
Here, the scanner 2 provided in the copying apparatus 10
0, the controller 30 and the printer 40 will be schematically described. FIG. 3 shows a schematic configuration of the scanner 20, which employs a flat bed type. An illumination lamp 2 is provided below the transparent plate 21 on which the object to be scanned is placed.
2 and a line sensor 23 are slidably supported, and a drive belt 2 for driving them is provided.
4a, a pulley 24b and a drive motor 24c are arranged,
It is connected to the control circuit 25. When a color image is read, when the illumination lamp 22 is turned on based on a control signal from the control circuit 25, the object to be copied is illuminated through the transparent plate 21. Is irradiated on the line sensor 23 via the. The line sensor 23 includes a filter corresponding to the three primary colors of light and a CCD.
The elements are arranged in one row for each color, usually three rows. The three rows of CCD elements read the color arrangement of one row across the width direction of the copy object and output it as image data.
On the other hand, the control circuit 25 drives the drive motor 24c to control the illumination lamp 22 and the line sensor 24.
Are moved integrally in the length direction of the copy object,
The image data is acquired from the line sensor 23 and output every time it is moved by a minute distance. Thus, externally, the object to be scanned is sub-scanned in the length direction while main scanning in the width direction, and two-dimensional image data is generated.

【0023】図4はコントローラ30を概略ブロック図
により示している。同コントローラ30は概略的にはコ
ンピュータと同等であり、CPU31のバス32に対し
てRAM33とROM34と操作パネル35とハードデ
ィスク36とI/O37と、通信I/F38とが接続さ
れている。そして、I/O37を介してスキャナ20や
プリンタ40が接続されているとともに、通信I/F3
8を介してLPTポート10aに接続している。また、
ROM34には演算プログラムや制御プログラムなどの
基本プログラムが書き込まれており、CPU31はRA
M33をワークエリアとして使用しながら同基本プログ
ラムを実行する。また、ハードディスク36は主に読み
込んだ画像データや印刷データを蓄えるようなバッファ
として使用したり、逐次更新されるプログラムなどを保
存したりする場合に使用する。この他、操作パネル35
にはコピー開始やスキャナ20を起動させる各種の操作
ボタン35aとともに、プリンタ40の操作情報や状態
を表示し確認するための液晶表示器35bなども備えら
れ、CPU31はバス32を介して当該操作パネル35
の操作状況を監視または表示可能となっている。
FIG. 4 shows the controller 30 in a schematic block diagram. The controller 30 is substantially equivalent to a computer, and a RAM 33, a ROM 34, an operation panel 35, a hard disk 36, an I / O 37, and a communication I / F 38 are connected to a bus 32 of a CPU 31. The scanner 20 and the printer 40 are connected via the I / O 37 and the communication I / F 3
8 to the LPT port 10a. Also,
Basic programs such as an arithmetic program and a control program are written in the ROM 34, and the CPU 31
The basic program is executed while using M33 as a work area. The hard disk 36 is mainly used as a buffer for storing read image data and print data, and is used for storing programs that are updated sequentially. In addition, the operation panel 35
Is provided with various operation buttons 35a for starting copying and activating the scanner 20, as well as a liquid crystal display 35b for displaying and confirming operation information and status of the printer 40. The CPU 31 controls the operation panel via the bus 32. 35
Can be monitored or displayed.

【0024】図5はプリンタ40の構成を概略的に示し
ており、記録紙上に対してドットマトリクス状に色イン
クを吐出して印字を行うインクジェット方式を採用して
いる。より詳細には、三つの印字ヘッドユニット41a
からなる印字ヘッド41と、この印字ヘッド41を制御
する印字ヘッドコントローラ42と、当該印字ヘッド4
1を桁方向に移動させる印字ヘッド桁移動モータ43
と、印字用紙を行方向に送る紙送りモータ44と、これ
らの印字ヘッドコントローラ42と印字ヘッド桁移動モ
ータ43と紙送りモータ44における外部機器とのイン
ターフェイスにあたるプリンタコントローラ45とから
構成されている。
FIG. 5 schematically shows the structure of the printer 40, which employs an ink jet system in which color ink is ejected onto a recording paper in a dot matrix form to perform printing. More specifically, the three print head units 41a
A print head 41, a print head controller 42 for controlling the print head 41,
Print head girder moving motor 43 for moving 1 in the girder direction
And a paper feed motor 44 for feeding print paper in the row direction, a print head controller 42, a print head girder moving motor 43, and a printer controller 45 serving as an interface between the paper feed motor 44 and external devices.

【0025】このプリンタ40は印字インクとして四色
の色インクを使用するものであり、各印字ヘッドユニッ
ト41aにはそれぞれ独立した二列の印字ノズルが形成
されている。供給する色インクは印字ノズルの列単位で
変えることができ、この場合は図示左方の印字ヘッドユ
ニット41aについては二列とも黒色インク(K)を供
給し、図示右方の印字ヘッドユニット41aについては
左列にマゼンタ色インク(M)を供給するとともに右列
にイエロー色インク(Y)を供給し、図示真ん中の印字
ヘッドユニット41aについては左列にシアン色インク
(C)を供給するとともに右列は不使用としている。な
お、本実施形態においては、四色の色インクを使用して
いるが、三つの印字ヘッドユニット41aにおける二列
の印字ノズルを最大限に利用して六色の色インクを使用
することも可能である。この場合、シアンとマゼンタに
ついては濃色インクと淡色インクとを使用するものと
し、さらにイエローとブラックとを使用して合計六色と
することができる。本実施形態においては、インクジェ
ット方式のプリンタ40を採用しているが、むろん、イ
ンクジェット方式に限定されるものではない。従って、
レーザプリンタであってもよいし、ドットインパクトプ
リンタであってもよく、適宜変更可能である。
The printer 40 uses four color inks as printing ink, and each printing head unit 41a is formed with two independent rows of printing nozzles. The color ink to be supplied can be changed for each row of print nozzles. In this case, black ink (K) is supplied to both print head units 41a on the left side in the figure, and the print head unit 41a on the right side in the figure. Supplies magenta ink (M) to the left column, supplies yellow ink (Y) to the right column, supplies cyan ink (C) to the left column, and supplies right ink to the print head unit 41a in the middle of the drawing. Columns are unused. In this embodiment, four color inks are used. However, six color inks can be used by maximizing the use of two rows of print nozzles in the three print head units 41a. It is. In this case, dark and light inks are used for cyan and magenta, and a total of six colors can be used using yellow and black. In the present embodiment, the printer 40 of the ink jet system is adopted, but it is needless to say that the printer is not limited to the ink jet system. Therefore,
It may be a laser printer or a dot impact printer, and can be changed as appropriate.

【0026】ここで、本発明にかかる複数ジョブの排他
制御方法を適用するコンピュータ1の内部構成を示す概
略ブロック図を図6に示す。同図において、CPU10
0のバス102に対してRAM103とROM104と
ディスプレイドライバ105とハードディスク106と
I/O107と、通信I/F108とが接続されてい
る。そして、I/O107を介してキーボード107a
やマウス107bが接続され、コンピュータ1の利用者
の入力作業に使用されるとともに、通信I/F108
は、LPTポート10aに接続している。また、ROM
104には演算プログラムや制御プログラムなどの基本
プログラムが書き込まれており、CPU100はRAM
103をワークエリアとして使用しながら同基本プログ
ラムを実行する。また、ハードディスク106は主に、
接続されている複写装置10のプリンタ40にて印刷を
行わせる印刷プログラムや接続されている複写装置10
のスキャナ20を動作させるスキャナプログラムなどの
アプリケーションプログラムが格納されるとともに、読
み込んだ画像データや印刷データを蓄えるようなバッフ
ァとして使用したり、逐次更新されるプログラムなどを
保存したりする場合に使用する。このアプリケーション
プログラムは、CPU100により適宜起動され動作す
るようになっている。この他、ディスプレイドライバ1
05には、ディスプレイ106が接続され、CPU10
0によってコンピュータ1における入力状況や処理状態
などを表示される。ここで、上述した基本プログラム
は、LPTポート10aへのアクセスを一つのジョブに
制限している。すなわち、印刷プログラムあるいはスキ
ャナプログラムのどちらか一方がLPTポート10aを
介して複写装置10にアクセスしている場合、他方のプ
ログラムはアクセスが不可能になる。
FIG. 6 is a schematic block diagram showing the internal configuration of the computer 1 to which the exclusive control method for a plurality of jobs according to the present invention is applied. In FIG.
The RAM 103, the ROM 104, the display driver 105, the hard disk 106, the I / O 107, and the communication I / F 108 are connected to the 0 bus 102. Then, via the I / O 107, the keyboard 107a
And a mouse 107b are connected, and used for input work of a user of the computer 1, and a communication I / F 108
Is connected to the LPT port 10a. Also, ROM
A basic program such as an arithmetic program and a control program is written in 104, and the CPU 100
The basic program is executed while using 103 as a work area. The hard disk 106 is mainly
A printing program for causing the printer 40 of the connected copying apparatus 10 to perform printing, or the connected copying apparatus 10
An application program such as a scanner program for operating the scanner 20 is stored and used as a buffer for storing read image data and print data, or used to store a sequentially updated program and the like. . This application program is appropriately started and operated by the CPU 100. In addition, display driver 1
A display 106 is connected to the CPU 10 and the CPU 10.
0 indicates an input state and a processing state in the computer 1. Here, the above-described basic program restricts access to the LPT port 10a to one job. That is, when one of the printing program and the scanner program accesses the copying apparatus 10 via the LPT port 10a, the other program becomes inaccessible.

【0027】図7は、コンピュータ1においてジョブと
して印刷プログラムとスキャナプログラムが動作する場
合のLPTポート10aに対する排他制御を実行する概
略構成を示すブロック図である。同図において、印刷プ
ログラム150は、印刷データの生成を行うとともに、
ポーリングプログラム150aから共有メモリ170に
格納されている所定の情報を取得する。また、スキャナ
プログラム160は、スキャナコマンドを発行するとと
もに、ポーリングプログラム160aから共有メモリ1
70に格納されている所定の情報を取得する。このポー
リングプログラム150a,160aは、周期的に共有
メモリ170のフラグを監視し読み出すとともに同フラ
グを更新している。この所定の情報とは、LPTポート
10aの占有状態を示す占有プラグであり、フラグオン
の場合はLPTポート10aがどちらかのプログラムに
占有されていることを示し、フラグオフの場合はLPT
ポート10aが開放状態であることを示している。ここ
で、ポーリングプログラム150a,160aが周期的
に共有メモリ170からフラグ情報を読み出す間隔は、
1秒であってもよいし、0。5秒であってもよいし、適
宜変更可能である。
FIG. 7 is a block diagram showing a schematic configuration for executing exclusive control on the LPT port 10a when the computer 1 operates a print program and a scanner program as jobs. In the figure, a print program 150 generates print data,
The predetermined information stored in the shared memory 170 is obtained from the polling program 150a. Further, the scanner program 160 issues a scanner command, and sends the shared memory 1 from the polling program 160a.
The predetermined information stored in 70 is acquired. The polling programs 150a and 160a periodically monitor and read the flags of the shared memory 170 and update the flags. The predetermined information is an occupation plug indicating the occupation state of the LPT port 10a. When the flag is on, it indicates that the LPT port 10a is occupied by either program, and when the flag is off, the LPT port 10a is LPT.
This indicates that the port 10a is open. Here, the interval at which the polling programs 150a and 160a periodically read flag information from the shared memory 170 is as follows.
It may be 1 second, 0.5 second, or may be changed as appropriate.

【0028】従って、印刷プログラム150が印刷デー
タを生成してLPTポート10aに出力し複写装置10
のプリンタ40にて印刷させる場合、最初に印刷データ
の生成を実行して印刷プロバイダ150bに出力する。
ここで、印刷プロバイダ150bは、LPTポート10
aに対して出力する段階で印刷プログラム150が取得
しているポーリングプログラム150aの取得した共有
メモリ170のフラグの状態を入力する。このフラグが
オフであれば、そのまま、LPTポート10aに印刷デ
ータを出力し複写装置10のプリンタ40において印刷
を実行する。同様に、スキャナプログラム160がスキ
ャナコマンドを生成してLPTポート10aに出力し複
写装置10のスキャナ20にて被スキャン物のスキャニ
ングを実行させる場合、最初にスキャナコマンドを発行
してスキャナプロバイダ160bに出力する。ここで、
スキャナプロバイダ160bは、LPTポート10aに
対して同コマンドを出力する段階でスキャナプログラム
160が取得しているポーリングプログラム160aの
取得した共有メモリ170のフラグの状態を入力する。
このフラグがオフであれば、そのまま、LPTポート1
0aにスキャナコマンドを出力し複写装置10のスキャ
ナ20を動作させる。
Accordingly, the print program 150 generates print data, outputs the print data to the LPT port 10a, and outputs the print data to the copying apparatus 10.
When printing is performed by the printer 40, print data is first generated and output to the print provider 150b.
Here, the print provider 150b communicates with the LPT port 10
At the stage of outputting to a, the status of the flag of the shared memory 170 acquired by the polling program 150a acquired by the printing program 150 is input. If this flag is off, the print data is output to the LPT port 10a and the printer 40 of the copying apparatus 10 executes printing. Similarly, when the scanner program 160 generates a scanner command and outputs it to the LPT port 10a and causes the scanner 20 of the copier 10 to scan the object to be scanned, the scanner command is first issued and output to the scanner provider 160b. I do. here,
The scanner provider 160b inputs the state of the flag of the shared memory 170 acquired by the polling program 160a acquired by the scanner program 160 at the stage of outputting the same command to the LPT port 10a.
If this flag is off, LPT port 1
A scanner command is output to 0a and the scanner 20 of the copier 10 is operated.

【0029】本実施形態においては、排他制御方法を適
用する基本プロラムによってアクセスすることが可能な
プログラムを一つに制限されるポートとしてLPTポー
ト10aを採用する構成を示しているが、むろん、この
ようなポートはLPTポート10aに限定されるもので
はなく、基本プログラムによりアクセスするプログラム
が一つに制限されているインターフェースであれば、本
排他制御方法を適宜適用することが可能である。また、
本実施形態においては、コンピュータ1で動作し、LP
Tポート10aにアクセスするプログラムとして印刷プ
ログラムとスキャナプログラムと採用しているが、むろ
ん、このようなプログラムは印刷プログラムおよびスキ
ャナプログラムに限定されるものではなく、複写装置1
0のステータスをLPTポート10aを介して取得する
ステータスモニタープログラムなどであってもよい。さ
らに、本実施形態においては複写装置10にスキャナ2
0およびプリンタ40を備える構成を採用しているが、
複写装置が備える機器はこれらに限定されるものではな
く、スキャナとFAXを併存させたり、画像データの取
得手段として、スキャナ20の代わりにデジタルカメラ
を備えさせるものであってもよい。従って、かかる場
合、コンピュータ1ではFAXプログラムやデジタルカ
メラ用プログラムが動作させ、LPTポート10aに対
してアクセスさせるようにしてもよい。
In the present embodiment, the LPT port 10a is adopted as a port for restricting a program that can be accessed by the basic program to which the exclusive control method is applied to one port. Such a port is not limited to the LPT port 10a, and the exclusive control method can be appropriately applied to any interface in which the number of programs accessed by the basic program is limited to one. Also,
In the present embodiment, the computer 1 operates on the LP
Although a print program and a scanner program are employed as programs for accessing the T port 10a, such a program is not limited to the print program and the scanner program.
It may be a status monitor program that acquires a status of 0 via the LPT port 10a. Further, in the present embodiment, the scanner 2
0 and the printer 40,
The equipment included in the copying apparatus is not limited to these, and may be a device in which a scanner and a facsimile coexist or a digital camera is provided instead of the scanner 20 as image data acquisition means. Therefore, in such a case, the computer 1 may operate the fax program or the digital camera program to access the LPT port 10a.

【0030】次に、上述した図7に示す構成にて実行さ
れるLPTポート10aの排他制御処理の処理内容を図
8のフローチャートに示す。同図において、本コンピュ
ータ1の利用者がキーボード107aあるいはマウス1
07bの入力装置より印刷プログラムやスキャナプログ
ラムを起動すると、各プログラムは印刷やスキャナ実行
の要求を受け付ける(ステップS100)。そして、各
プログラムは、印刷データを生成するとともに印刷コマ
ンドを発行したり、スキャナコマンドを発行する(ステ
ップS105)。ここで、データの生成・コマンドの発
行が終了すると、共有メモリ170のLPTポート10
aの占有状態を示すフラグを周期的に取得しているポー
リングプログラム150a,160aを介して同フラグ
を取得する(ステップS110)とともに、このデータ
およびコマンドを印刷プロバイダ150b,スキャナプ
ロバイダ160bに出力し、格納させる(ステップS1
15)。次に、このフラグのオン・オフを判別し(ステ
ップS120)、フラグオフであればLPTポート10
aはどのプログラムによっても占有されていないため、
同LPTポート10aを占有するためにフラグをオンに
する(ステップS125)とともに、上記各プロバイダ
150b,160bに格納されているデータおよびコマ
ンドをLPTポート10aに出力する(ステップS13
0)。
Next, FIG. 8 is a flowchart showing the content of the exclusive control process of the LPT port 10a executed in the configuration shown in FIG. In the figure, the user of the computer 1 has a keyboard 107a or a mouse 1
When the print program or the scanner program is started from the input device 07b, each program receives a request for printing or executing the scanner (step S100). Then, each program generates print data and issues a print command or issues a scanner command (step S105). Here, when the data generation and the command issuance are completed, the LPT port 10 of the shared memory 170 is
The flag is acquired via polling programs 150a and 160a that periodically acquire the flag indicating the occupation state of a (step S110), and this data and command are output to the print provider 150b and the scanner provider 160b. Stored (step S1
15). Next, it is determined whether the flag is on or off (step S120).
Since a is not occupied by any program,
The flag is turned on to occupy the same LPT port 10a (step S125), and the data and command stored in each of the providers 150b and 160b are output to the LPT port 10a (step S13).
0).

【0031】そして、このデータやコマンドを入力した
複写装置10のプリンタ40は、印刷コマンドおよび印
刷データに基づいて印刷を実行し、スキャナ20は、ス
キャンコマンドに基づいて被スキャン物のスキャンを開
始し、取得した画像データをLPTポート10aを介し
てコンピュータ1に転送する。複写装置10にてこれら
の印刷処理やスキャナ処理が終了すると、印刷プログラ
ムおよびスキャナプログラムに対して終了が通知され
(ステップS135)、処理終了に応じてLPTポート
10aの占有を解除するため共有メモリ170のフラグ
をオフにする(ステップS140)。一方、ステップS
120においてフラグがオンであった場合、LPTポー
ト10aが印刷プログラムまたはスキャナプログラムの
どちらかに占有されているため、印刷プロバイダ150
bまたはスキャナプロバイダ160bは、LPTポート
10aにデータやコマンドを出力することができないた
め、これらのデータやコマンドを破棄する(ステップS
145)。従って、LPTポート10aが占有されてい
ることによりデータやコマンドを破棄されたプログラム
は、再度データを生成したり、コマンドを発行すること
になる。
Then, the printer 40 of the copying apparatus 10 which has input the data and the command executes printing based on the print command and the print data, and the scanner 20 starts scanning the object to be scanned based on the scan command. Then, the acquired image data is transferred to the computer 1 via the LPT port 10a. When the printing process and the scanner process are completed in the copying apparatus 10, the completion is notified to the print program and the scanner program (step S135), and the shared memory 170 for releasing the occupation of the LPT port 10a in response to the process completion. Is turned off (step S140). On the other hand, step S
If the flag is on at 120, the LPT port 10a is occupied by either the print program or the scanner program, and the print provider 150
b or the scanner provider 160b cannot output the data or command to the LPT port 10a, and thus discards the data or command (step S).
145). Therefore, a program in which data and commands are discarded because the LPT port 10a is occupied generates data again and issues commands.

【0032】ここで、印刷コマンドによって印刷データ
を印刷させたり、スキャナコマンドによってスキャニン
グを実行させ取得した画像データをLPTポート10a
を介して転送する処理は、取り扱うデータが大きいた
め、単独で実行する必要がある。しかし、コンピュータ
1が接続された複写装置10のプリンタ40やスキャナ
20などの各デバイスのステータスをモニターするよう
に、コンピュータ1からコマンドのみを発行する場合
は、図示しないステータスモニタープログラムの発行す
るステータスモニターコマンドを印刷データあるいはス
キャンコマンドや画像データの中に、図示しないモニタ
ープロバイダを介してパケット化して挿入し、印刷やス
キャナの処理と平行処理を実現して、ステータスモニタ
ーの処理を実行するようにしてもよい。
Here, the print data is printed by a print command, the scanning is executed by a scanner command, and the acquired image data is transferred to the LPT port 10a.
Since the processing to be transferred via the .NET requires a large amount of data to be handled, it needs to be executed independently. However, when only a command is issued from the computer 1 so as to monitor the status of each device such as the printer 40 and the scanner 20 of the copying apparatus 10 to which the computer 1 is connected, a status monitor issued by a status monitor program (not shown) The command is packetized and inserted into the print data or scan command or image data via a monitor provider (not shown) to realize the parallel processing and the processing of the print and scanner to execute the status monitor processing. Is also good.

【0033】この平行処理の処理内容を図9のフローチ
ャートに示す。同図において、本コンピュータ1の利用
者がキーボード107aあるいはマウス107bの入力
装置よりステータスモニタープログラムを起動すると、
同プログラムはモニターするステータスの要求を受け付
ける(ステップS200)。ここで、データの生成・コ
マンドの発行が終了すると、共有メモリ170のLPT
ポート10aの占有状態を示すフラグを周期的に取得し
ている図示しないポーリングプログラムを介して同フラ
グを取得する(ステップS205)。そして、要求のあ
ったステータスの返答を指示するステータスモニターコ
マンドをモニタープロバイダに出力する(ステップS2
10)。次に、このフラグのオン・オフを判別し(ステ
ップS215)、フラグオンであれば、印刷あるいはス
キャナ処理の実行中と判断し(ステップS220)、こ
の印刷コマンドのデータあるいはスキャナコマンドにス
テータスモニターコマンドをパケット化して挿入する
(ステップS225)。そして、印刷プロバイダ150
bまたはスキャナプロバイダ160bを介してLPTポ
ート10aに出力する(ステップS230)。
The contents of the parallel processing are shown in the flowchart of FIG. In the figure, when the user of the computer 1 starts the status monitor program from the input device of the keyboard 107a or the mouse 107b,
The program receives a request for a status to be monitored (step S200). Here, when data generation and command issuance are completed, the LPT
The port 10a acquires the flag via a polling program (not shown) that periodically acquires the flag indicating the occupation state of the port 10a (step S205). Then, a status monitor command instructing a reply of the requested status is output to the monitor provider (step S2).
10). Next, it is determined whether the flag is on or off (step S215). If the flag is on, it is determined that printing or scanner processing is being performed (step S220), and a status monitor command is added to the data of the print command or the scanner command. It is packetized and inserted (step S225). Then, the print provider 150
b or to the LPT port 10a via the scanner provider 160b (step S230).

【0034】上述した排他制御処理においては、LPT
ポート10aの占有を検出した処理のデータやコマンド
は破棄されてしまい再度データの生成やコマンドの発行
をしなければならなくなる。そこで、LPTポート10
aの占有を検出した場合は、この検出した占有が解除さ
れたら処理を開始するような予約が可能であると便利で
ある。ここで、この占有を予約する予約処理の処理内容
を図10のフローチャートに示す。同図において、本コ
ンピュータ1の利用者がキーボード107aあるいはマ
ウス107bの入力装置より印刷プログラムやスキャナ
プログラムを起動すると、各プログラムは印刷やスキャ
ナ実行の要求を受け付ける(ステップS300)。そし
て、各プログラムは、印刷データを生成するとともに印
刷コマンドを発行したり、スキャナコマンドを発行する
(ステップS305)。ここで、データの生成・コマン
ドの発行が終了すると、共有メモリ170のLPTポー
ト10aの占有状態を示すフラグを周期的に取得してい
るポーリングプログラム150a,160aを介して同
フラグを取得する(ステップS310)とともに、この
データおよびコマンドを印刷プロバイダ150b,スキ
ャナプロバイダ160bに出力し、格納させる(ステッ
プS315)。次に、このフラグのオン・オフを判別し
(ステップS320)、フラグがオンであるとLPTポ
ート10aの占有を検出する。このとき、共有メモリ1
70の予約占有フラグをオンにし(ステップS32
5)、上記占有の解除と同時に処理が開始されるように
する。
In the above-described exclusive control process, LPT
The data and command of the process that has detected the occupation of the port 10a are discarded, and it is necessary to generate data and issue a command again. Therefore, LPT port 10
When the occupation of “a” is detected, it is convenient if it is possible to make a reservation to start processing when the detected occupation is released. Here, the contents of the reservation processing for reserving the occupancy are shown in the flowchart of FIG. In the figure, when a user of the computer 1 starts a print program or a scanner program from the input device of the keyboard 107a or the mouse 107b, each program receives a request for printing or executing a scanner (step S300). Then, each program generates print data and issues a print command or issues a scanner command (step S305). Here, when the generation of the data and the issuance of the command are completed, the flag is acquired via the polling programs 150a and 160a that periodically acquire the flag indicating the occupation state of the LPT port 10a of the shared memory 170 (step Along with S310), the data and the command are output to the print provider 150b and the scanner provider 160b and stored (step S315). Next, it is determined whether the flag is on or off (step S320). If the flag is on, the occupancy of the LPT port 10a is detected. At this time, the shared memory 1
The reservation occupancy flag 70 is turned on (step S32).
5) The processing is started simultaneously with the release of the occupation.

【0035】そして、ポーリングプログラム150a,
160bにてフラグの状態を監視し(ステップS33
0)、LPTポート10aを占有中の処理が終了する
と、予約を解除し、すなわち予約占有フラグをオフにす
るとともに、LPTポート10aを占有して処理を実行
するため、占有を示すフラグをオンにする(ステップS
335)。ここで、各プロバイダ150b,160bに
格納していたデータやコマンドをLPTポート10aに
出力する(ステップS340)。 そして、このデータ
やコマンドを入力した複写装置10のプリンタ40は、
印刷コマンドおよび印刷データに基づいて印刷を実行
し、スキャナ20は、スキャンコマンドに基づいて被ス
キャン物のスキャンを開始し、取得した画像データをL
PTポート10aを介してコンピュータ1に転送する。
複写装置10にてこれらの印刷処理やスキャナ処理が終
了すると、印刷プログラムおよびスキャナプログラムに
対して終了が通知され(ステップS335)、処理終了
に応じてLPTポート10aの占有を解除するため共有
メモリ170のフラグをオフにする(ステップS34
0)。
Then, the polling program 150a,
At 160b, the state of the flag is monitored (step S33).
0) When the process in which the LPT port 10a is occupied ends, the reservation is released, that is, the reservation occupation flag is turned off and the flag indicating the occupation is turned on to execute the process while occupying the LPT port 10a. (Step S
335). Here, the data and command stored in each of the providers 150b and 160b are output to the LPT port 10a (step S340). Then, the printer 40 of the copying apparatus 10 which has input the data and the command,
The printing is executed based on the print command and the print data, the scanner 20 starts scanning the object to be scanned based on the scan command, and converts the acquired image data into L.
The data is transferred to the computer 1 via the PT port 10a.
When the printing process and the scanner process are completed in the copying apparatus 10, the completion is notified to the print program and the scanner program (step S335), and the shared memory 170 is released to release the occupation of the LPT port 10a in accordance with the process completion. Is turned off (step S34)
0).

【0036】以上より、印刷プログラムやスキャナプロ
グラムやステータスモニタープログラムが複数のジョブ
C1を構成し、LPTポート10aがインターフェース
C2を構成する。そして、共有メモリ170のフラグが
占有状態C3を構成する。また、上述したステップS1
00〜S145に示す排他制御処理が占有状態取得工程
C11、排他制御工程C12およびインターフェースア
クセス工程C13を構成する。本実施形態においては、
スキャナプログラム160と、ポーリングプログラム1
60aと、スキャナプロバイダ160bとを個別のプロ
グラムとして実行させ、それぞれが相互にデータなどの
送受信を行いLPTポート10aの排他制御を実現する
構成を採用しているが、むろん、これらのプログラムを
一体のプログラムとして形成し、一つのプログラム上で
それぞれの機能を実行させ排他制御を実現する構成であ
ってもよいし、これらのプログラムの組み合わせは適宜
変更可能である。印刷プログラム150と、ポーリング
プログラム150aと、印刷プロバイダ150bについ
ても同様である。また、ポーリングプログラム150
a,160aおよび印刷プロバイダ150b、スキャナ
プロバイダ160bを一体のプログラムとして形成し動
作させ、印刷プログラム150やスキャナプログラム1
60に対して所定の作用を実行し排他制御を実現する構
成であってもよいことはいうまでもない。
As described above, the print program, the scanner program, and the status monitor program constitute a plurality of jobs C1, and the LPT port 10a constitutes the interface C2. Then, the flag of the shared memory 170 constitutes the occupation state C3. Also, the above-described step S1
The exclusive control processing shown in 00 to S145 constitutes an occupation state acquisition step C11, an exclusive control step C12, and an interface access step C13. In the present embodiment,
Scanner program 160 and polling program 1
60a and the scanner provider 160b are executed as separate programs, each of which mutually transmits and receives data and the like, and realizes exclusive control of the LPT port 10a. Of course, these programs are integrated. It may be configured as a program, and the exclusive control may be realized by executing each function on one program, or a combination of these programs may be appropriately changed. The same applies to the print program 150, the polling program 150a, and the print provider 150b. The polling program 150
a, 160a, the print provider 150b, and the scanner provider 160b are formed and operated as an integrated program, and the print program 150 and the scanner program 1
It goes without saying that a configuration may be adopted in which a predetermined action is performed on the 60 to realize exclusive control.

【0037】このように、コンピュータ1の基本動作を
実行している基本プログラムにおいてLPTポート10
aを占有することが可能なプログラムを一つに制限され
ている場合であって、同コンピュータ1上でこのLPT
ポート10aにアクセスするプログラムが複数あって
も、共有メモリ170に占有状態を示すフラグを設置す
ることにより、各プログラムはLPTポート10aにデ
ータやコマンドを出力するまえに、同LPTポート10
aの占有状態を把握することが可能になるとともに、上
述きてきたような簡易な構成によって容易に複数プログ
ラム間におけるLPTポート10aの論理的な排他制御
を実現することが可能になる。
As described above, in the basic program executing the basic operation of the computer 1, the LPT port 10
In this case, the number of programs that can occupy the “a” is limited to one.
Even if there are a plurality of programs accessing the port 10a, by setting a flag indicating the occupation state in the shared memory 170, each program can output the same data to the LPT port 10a before outputting the data or command to the LPT port 10a.
The occupation state of a can be grasped, and logical exclusion control of the LPT port 10a among a plurality of programs can be easily realized by the simple configuration as described above.

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

【図1】本発明の一実施形態にかかる複数ジョブの排他
制御方法のクレーム対応図である。
FIG. 1 is a claim correspondence diagram of an exclusive control method for a plurality of jobs according to an embodiment of the present invention.

【図2】本排他制御方法を適用したコンピュータと複写
装置との接続した状態の外観図である。
FIG. 2 is an external view of a state in which a computer to which the exclusive control method is applied and a copying apparatus are connected.

【図3】同複写装置に設置せれているスキャナの構成を
示す概略ブロック図である。
FIG. 3 is a schematic block diagram illustrating a configuration of a scanner installed in the copying apparatus.

【図4】同複写装置に設置されているコントローラの構
成を示す概略ブロック図である。
FIG. 4 is a schematic block diagram illustrating a configuration of a controller installed in the copying apparatus.

【図5】同複写装置に設置されているプリンタの構成を
示す概略ブロック図である。
FIG. 5 is a schematic block diagram illustrating a configuration of a printer installed in the copying apparatus.

【図6】同コンピュータの内部構成を示すブロック図で
ある。
FIG. 6 is a block diagram showing an internal configuration of the computer.

【図7】同コンピュータにて排他制御処理を実行する構
成の概略ブロック図である。
FIG. 7 is a schematic block diagram of a configuration for executing exclusive control processing by the computer.

【図8】同コンピュータにて実行する排他制御処理の処
理内容を示したフローチャートである。
FIG. 8 is a flowchart showing the content of an exclusive control process executed by the computer.

【図9】同コンピュータにて実行する平行処理の処理内
容を示したフローチャートである。
FIG. 9 is a flowchart showing the contents of parallel processing executed by the computer.

【図10】同コンピュータにて実行する予約処理の処理
内容を示したフローチャートである。
FIG. 10 is a flowchart showing the contents of a reservation process executed by the computer.

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

C1…ジョブ C11…占有状態取得工程 C12…排他制御工程 C11…インターフェースアクセス工程 C2…インターフェース C3…占有状態 C1 ... Job C11 ... Occupation state acquisition step C12 ... Exclusive control step C11 ... Interface access step C2 ... Interface C3 ... Occupation state

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 所定の一ジョブに対して所定のインター
フェースの占有を許容する基本プログラム上にて相互に
認識不能な複数ジョブからの上記所定のインターフェー
スへのアクセスを排他制御する複数ジョブの排他制御方
法であって、 上記所定のインターフェースの占有状態の有無を問い合
わせるとともに、同占有状態を取得する占有状態取得工
程と、 上記占有状態取得工程より上記所定のインターフェース
の占有状態を入力するととともに、複数のジョブのアク
セスによる同所定のインターフェースの占有に競合が発
生しないように排他制御を実行する排他制御工程と、 上記排他制御工程にてアクセスを許可されると、上記所
定のインターフェースにアクセスするとともに、同所定
のインターフェースの占有を通知するインターフェース
アクセス工程とを具備することを特徴とする複数ジョブ
の排他制御方法。
An exclusive control of a plurality of jobs for exclusively controlling access to a predetermined interface from a plurality of jobs which cannot be mutually recognized on a basic program which allows a predetermined job to occupy a predetermined interface. A method for inquiring whether or not there is an occupation state of the predetermined interface, and an occupation state acquisition step of acquiring the occupation state; and inputting the occupation state of the predetermined interface from the occupation state acquisition step. An exclusive control step of executing exclusive control so that a conflict does not occur in the occupation of the predetermined interface due to access of a job; and when access is permitted in the exclusive control step, access to the predetermined interface is performed. Interface that notifies the occupancy of a given interface An exclusive control method for a plurality of jobs, comprising an access step.
【請求項2】 上記請求項1に記載の複数ジョブの排他
制御方法において、 上記占有状態取得工程は、所定の間隔に基づいて上記イ
ンターフェースアクセス工程による上記所定のインター
フェースの占有状態を問い合わせることを特徴とする複
数ジョブの排他制御方法。
2. The exclusive control method for a plurality of jobs according to claim 1, wherein the occupation state acquiring step inquires about an occupation state of the predetermined interface by the interface access step based on a predetermined interval. Exclusive control method for multiple jobs.
【請求項3】 上記請求項1または請求項2のいずれか
に記載の複数ジョブの排他制御方法において、 上記複数ジョブは、上記所定のインターフェースへのア
クセスにて競合が発生すると、同所定のインターフェー
スを占有しているジョブに対して処理を依頼する所定の
ジョブを有することを特徴とする複数ジョブの排他制御
方法。
3. The exclusive control method for a plurality of jobs according to claim 1, wherein when a conflict occurs in accessing the predetermined interface, the plurality of jobs are controlled by the predetermined interface. Exclusive control method for a plurality of jobs, characterized by having a predetermined job for requesting processing of a job occupying the same.
【請求項4】 上記請求項1〜請求項3のいずれかに記
載の複数ジョブの排他制御方法において、 上記排他制御工程は、上記複数ジョブについて上記所定
のインターフェースを占有する期間を予め認識するとと
もに、占有しているジョブが所定のインターフェースを
長期間占有するジョブであると、上記占有通知工程にお
いて占有しているジョブの次に所定のインターフェース
を占有する占有予約を実行することを特徴とする複数ジ
ョブの排他制御方法。
4. The exclusive control method for a plurality of jobs according to claim 1, wherein the exclusive control step recognizes in advance a period during which the plurality of jobs occupies the predetermined interface and If the occupied job is a job that occupies a predetermined interface for a long period of time, an occupation reservation that occupies the predetermined interface is executed next to the occupied job in the occupation notifying step. Exclusive control method of the job.
【請求項5】 所定の一ジョブに対して所定のインター
フェースの占有を許容する基本プログラム上にて相互に
認識不能な複数ジョブからの上記印刷インターフェース
へのアクセスを排他制御する排他制御装置であって、上
記所定のインターフェースの占有状態の有無を問い合わ
せるとともに、同占有状態を取得する占有状態取得手段
と、 上記占有状態取得手段より上記所定のインターフェース
の占有状態を入力するととともに、複数のジョブのアク
セスによる同所定のインターフェースの占有に競合が発
生しないように排他制御を実行する排他制御手段と、 上記排他制御手段にてアクセスを許可されると、上記所
定のインターフェースにアクセスするとともに、同所定
のインターフェースの占有を通知するインターフェース
アクセス手段とを具備することを特徴とする排他制御装
置。
5. An exclusive control device for exclusively controlling access to the print interface from a plurality of jobs that cannot be mutually recognized on a basic program that allows a predetermined job to occupy a predetermined interface. An occupancy status acquisition unit for acquiring the occupancy status of the predetermined interface, and inputting the occupancy status of the predetermined interface from the occupancy status acquisition unit. An exclusive control means for executing exclusive control so as not to cause a conflict in the occupation of the predetermined interface; and when the exclusive control means permits access, accesses the predetermined interface and Interface access means to notify occupancy Exclusive control apparatus characterized by comprising.
【請求項6】 所定の一ジョブに対して所定のインター
フェースの占有を許容する基本プログラム上にて複数ジ
ョブからの上記印刷インターフェースへのアクセスを排
他制御する相互に認識不能な複数ジョブの排他制御プロ
グラムを記録した媒体であって、 上記所定のインターフェースの占有状態の有無を問い合
わせるとともに、同占有状態を取得する占有状態取得ス
テップと、 上記占有状態取得ステップより上記所定のインターフェ
ースの占有状態を入力するととともに、複数のジョブの
アクセスによる同所定のインターフェースの占有に競合
が発生しないように排他制御を実行する排他制御ステッ
プと、 上記排他制御ステップにてアクセスを許可されると、上
記所定のインターフェースにアクセスするとともに、同
所定のインターフェースの占有を通知するインターフェ
ースアクセスステップとを具備することを特徴とする複
数ジョブの排他制御プログラムを記録した媒体。
6. An exclusive control program for a plurality of mutually unrecognizable jobs which exclusively controls access to the print interface from a plurality of jobs on a basic program which allows a predetermined job to occupy a predetermined interface. A medium for recording the occupation state of the predetermined interface, and an occupation state acquisition step of acquiring the occupation state, and inputting the occupation state of the predetermined interface from the occupation state acquisition step. An exclusive control step of executing exclusive control so as not to cause a conflict in occupation of the predetermined interface by accessing a plurality of jobs; and, when the exclusive control step permits access, accesses the predetermined interface. Together with the specified interface An exclusive access control program for a plurality of jobs.
JP11027489A 1999-02-04 1999-02-04 Method and device for exclusively controlling plural jobs, and medium recorded with exclusive control program for plural jobs Pending JP2000222229A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11027489A JP2000222229A (en) 1999-02-04 1999-02-04 Method and device for exclusively controlling plural jobs, and medium recorded with exclusive control program for plural jobs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11027489A JP2000222229A (en) 1999-02-04 1999-02-04 Method and device for exclusively controlling plural jobs, and medium recorded with exclusive control program for plural jobs

Publications (1)

Publication Number Publication Date
JP2000222229A true JP2000222229A (en) 2000-08-11

Family

ID=12222558

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11027489A Pending JP2000222229A (en) 1999-02-04 1999-02-04 Method and device for exclusively controlling plural jobs, and medium recorded with exclusive control program for plural jobs

Country Status (1)

Country Link
JP (1) JP2000222229A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010191584A (en) * 2009-02-17 2010-09-02 Canon Inc Information processing apparatus, control method thereof and program
JP2010532046A (en) * 2007-06-27 2010-09-30 マイクロソフト コーポレーション Hybrid resource manager
JP2013073313A (en) * 2011-09-27 2013-04-22 Seiko Epson Corp Control apparatus, method for controlling compound machine and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010532046A (en) * 2007-06-27 2010-09-30 マイクロソフト コーポレーション Hybrid resource manager
JP2010191584A (en) * 2009-02-17 2010-09-02 Canon Inc Information processing apparatus, control method thereof and program
JP2013073313A (en) * 2011-09-27 2013-04-22 Seiko Epson Corp Control apparatus, method for controlling compound machine and program
US9473663B2 (en) 2011-09-27 2016-10-18 Seiko Epson Corporation Control device, method of controlling a multifunction device, and a storage medium storing a program executed by a control unit that controls a recording device

Similar Documents

Publication Publication Date Title
JP3532268B2 (en) Networked copier
JP2002120432A (en) Printer
US4991114A (en) Printer comprising display means for displaying operation state thereof
JP2000231458A (en) Composite device apparatus, composite device system, composite device controlling method and medium in which composite device control program is recorded
US7016083B2 (en) Copying machine, copying-operation control device and computer readable recording medium
JP2000222229A (en) Method and device for exclusively controlling plural jobs, and medium recorded with exclusive control program for plural jobs
US5467181A (en) Image forming system
US4975858A (en) Controller for a printer for printing data received from an external data processor
JPH0199364A (en) Composite copying system
JPH11143667A (en) Computer readable recording medium with recorded program and image forming device
US6415116B2 (en) Image forming apparatus, job controlling apparatus, and job controlling method
JP2005085022A (en) Image output device
US6624906B1 (en) Image forming apparatus
JP3983570B2 (en) Image forming apparatus
JP3205174B2 (en) Printing apparatus and control method thereof
JP2011121371A (en) Recording device, computer and recording system
JP3209857B2 (en) PRINTING SYSTEM, PRINTING DEVICE, DATA DISTRIBUTION DEVICE, PRINTING SYSTEM CONTROL METHOD, PRINTING DEVICE CONTROL METHOD, AND DATA DISTRIBUTION DEVICE CONTROL METHOD
JP3444282B2 (en) Printer / scanner multifunction peripheral, control method therefor, and storage medium storing computer readable program
JPH07129336A (en) Printer device and its system
KR100280959B1 (en) Complex system that can selectively execute printing function and image reading function
JP2001166894A (en) Printing system, printing controller, printer, printing processing method, and storage medium
JP3167062B2 (en) Image recording device
JP3728057B2 (en) Printing apparatus and printing processing method
JP4274512B2 (en) Printer
JPH07214842A (en) Printer

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040708

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20041124