JP5162515B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP5162515B2
JP5162515B2 JP2009091212A JP2009091212A JP5162515B2 JP 5162515 B2 JP5162515 B2 JP 5162515B2 JP 2009091212 A JP2009091212 A JP 2009091212A JP 2009091212 A JP2009091212 A JP 2009091212A JP 5162515 B2 JP5162515 B2 JP 5162515B2
Authority
JP
Japan
Prior art keywords
thread
image
image data
sleep
control unit
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
Application number
JP2009091212A
Other languages
Japanese (ja)
Other versions
JP2010243717A (en
Inventor
洋平 山田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2009091212A priority Critical patent/JP5162515B2/en
Publication of JP2010243717A publication Critical patent/JP2010243717A/en
Application granted granted Critical
Publication of JP5162515B2 publication Critical patent/JP5162515B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Or Security For Electrophotography (AREA)
  • Facsimiles In General (AREA)

Description

本発明は、原稿の画像を表す画像データを読み取って、読み取られた画像データで表される画像を記録媒体に形成するコピー処理を少なくとも実行する画像処理装置に関するものである。   The present invention relates to an image processing apparatus that reads image data representing an image of a document and executes at least a copy process for forming an image represented by the read image data on a recording medium.

特許文献1において、画像処理装置としてフルカラー複写機が例示されている。この種のフルカラー複写機は、ブラック、シアン、マゼンダ、及びイエローの各々の画像を搬送ベルトに形成するための画像形成領域を備えている。このような各々の画像形成領域において、ブラック、シアン、マゼンダ、及びイエローの各々の画像が搬送ベルトに形成される。その結果、搬送ベルトにはフルカラーの画像が形成される。このように搬送ベルトに形成されたフルカラーの画像は搬送ベルト上を搬送されてきた転写紙に転写され、定着される。このような処理を経て、転写紙にはフルカラー画像が転写される。   In Japanese Patent Application Laid-Open No. 2004-228561, a full color copying machine is exemplified as an image processing apparatus. This type of full-color copying machine includes an image forming area for forming black, cyan, magenta, and yellow images on a conveyance belt. In each of these image forming areas, black, cyan, magenta, and yellow images are formed on the conveyance belt. As a result, a full color image is formed on the transport belt. The full-color image formed on the transport belt in this way is transferred and fixed on the transfer paper transported on the transport belt. Through such processing, a full color image is transferred onto the transfer paper.

このようなフルカラー複写機には、原稿の画像を表す画像データを読み取るスキャナが設けられていることがある。この種のフルカラー複写機では、スキャナによって読み取られた画像データで表される画像が転写紙に転写される。このように、スキャナによって画像を表す画像データが読み取られて、読み取られた画像データで表される画像が転写紙に形成される処理は、コピー処理と呼ばれる。   Such a full-color copying machine may be provided with a scanner that reads image data representing an image of a document. In this type of full-color copying machine, an image represented by image data read by a scanner is transferred to a transfer sheet. A process in which image data representing an image is read by the scanner and an image represented by the read image data is formed on the transfer paper is called a copy process.

このようなコピー処理が実行される際には、画像処理装置において以下に示されるようなソフトウェア処理が行われている。制御部は、コピー処理の実行を指示するための操作があったとき、カーネルに対して、スキャナを駆動させる機能を割り当てたスレッド、及び、プリンタを駆動させる機能を割り当てたスレッドを生成させる。そして、これらの各々のスレッドが実行中の状態となり、スキャナ及びプリンタの各々が駆動する。以上に示される処理によって、コピー処理が実現される。尚、カーネルは、オペレーティングシステムの中核部分をなすプログラムモジュールである。   When such copy processing is executed, software processing as described below is performed in the image processing apparatus. When an operation for instructing execution of copy processing is performed, the control unit causes the kernel to generate a thread to which a function for driving the scanner and a thread to which a function for driving the printer are allocated. Then, each of these threads is being executed, and each of the scanner and the printer is driven. Copy processing is realized by the processing described above. The kernel is a program module that forms the core of the operating system.

特開2004−178387号公報JP 2004-178387 A

ところで、近時、コピー処理の高速化が求められている。このようなコピー処理の一例であるプラテンカラーコピーに要される時間は、例えば、6.3sであることが望ましい。ここに、プラテンカラーコピーは、原稿台に載置された原稿のカラー画像を表すカラー画像データを読み取って、カラー画像データで表されるカラー画像を記録媒体に形成する処理である。   Recently, there has been a demand for faster copy processing. The time required for platen color copying, which is an example of such copying processing, is preferably 6.3 s, for example. Here, the platen color copy is a process of reading color image data representing a color image of a document placed on a document table and forming a color image represented by the color image data on a recording medium.

ところが、プラテンカラーコピーに要される時間のうち、プリンタを起動して画像を記録媒体に形成するための画像形成用デバイスドライバによってプリンタが実際に駆動している時間は、ある程度固定されている。このように、プリンタが実際に駆動している時間は、6.15sであることが本発明者の実験によって判った。そのため、プリンタが実際に駆動している時間は、プラテンカラーコピーに要される時間を短縮することにとってボトルネックとなる。   However, of the time required for platen color copying, the time during which the printer is actually driven by the image forming device driver for starting the printer and forming an image on a recording medium is fixed to some extent. As described above, it has been found by the inventors' experiment that the time during which the printer is actually driven is 6.15 s. For this reason, the time during which the printer is actually driven becomes a bottleneck for reducing the time required for platen color copying.

そこで、プリンタが実際に駆動している時間を短縮すれば、コピー処理に要される時間が短縮する。しかしながら、プリンタが実際に駆動している時間を短縮することは、以下に示される理由から困難なことが判る。プリンタが実際に駆動している時間を短縮する方法として、例えば、プリンタの画像形成速度を向上させることが挙げられる。しかしながら、そのためには、画像の読取精度及び画像の形成精度を悪化させることなく、スキャナ及びプリンタのハードウェア構成を改良することが要される。   Therefore, if the time during which the printer is actually driven is shortened, the time required for the copy process is shortened. However, it can be seen that it is difficult to reduce the actual driving time of the printer for the following reason. As a method for shortening the time during which the printer is actually driven, for example, the image forming speed of the printer can be improved. However, for this purpose, it is necessary to improve the hardware configurations of the scanner and the printer without deteriorating the image reading accuracy and the image forming accuracy.

また、プリンタが駆動を開始してから、実際にスキャナによって読み取られた画像データで表される画像が記録媒体に形成され始めるまで前処理として、スキャナによって読み取られた画像データをオペレーティングシステム内のファイルシステムに格納することが要される。その際、画像データをスキャナによって読み取るタスクと、オペレーティングシステム内のファイルシステムに画像データを格納するタスクとでなされるタスク間通信に一定の時間(例えば200ms)の時間が要される。   Also, as a pre-process until the image represented by the image data actually read by the scanner starts to be formed on the recording medium after the printer starts driving, the image data read by the scanner is stored in a file in the operating system. It must be stored in the system. At that time, a certain amount of time (for example, 200 ms) is required for communication between tasks performed by a task of reading image data by a scanner and a task of storing image data in a file system in the operating system.

以上に示されるように、画像の読取精度及び画像の形成精度を悪化させることなく、スキャナ及びプリンタのハードウェア構成を改良することが要され、且つ、画像データをスキャナによって読み取るタスクと、オペレーティングシステム内のファイルシステムに画像データを格納するタスクとでなされるタスク間通信に一定の時間が要される。そのため、プリンタが実際に駆動している時間そのものを短縮することは困難である。   As described above, it is necessary to improve the hardware configuration of the scanner and the printer without deteriorating the image reading accuracy and the image forming accuracy, and the task of reading the image data by the scanner and the operating system A certain amount of time is required for communication between tasks performed by the task of storing image data in the internal file system. Therefore, it is difficult to shorten the time that the printer is actually driven.

従って、コピー処理に要される時間を短縮するためには、スタートキーが操作されてからプリンタが起動するまでの時間を短縮することが望ましい。このような時間は、例えば、150ms以内の時間であることが望ましい。   Therefore, in order to shorten the time required for the copy process, it is desirable to shorten the time from when the start key is operated until the printer is activated. Such a time is desirably a time within 150 ms, for example.

ところで、カーネルは、新規に生成されたスレッドの優先度を、動的に変更する機能を有することが判っている。このような機能は、リナックス(登録商標)などの汎用オペレーティングシステムが通常備えている機能である。そのため、スレッドが生成される際に当該スレッドの優先度がユーザによって高く設定されていても、当該スレッドの優先度が低くされることがありうる。その場合、新規に生成されたスレッドが実行中の状態に遷移するまで、ある程度の時間が要される。   By the way, it is known that the kernel has a function of dynamically changing the priority of a newly generated thread. Such a function is a function normally provided in a general-purpose operating system such as Linux (registered trademark). Therefore, even when the priority of the thread is set high by the user when the thread is generated, the priority of the thread may be lowered. In that case, a certain amount of time is required until the newly generated thread transitions to the running state.

本発明者の実験によれば、スキャナを駆動させる機能が割り当てられたスレッドが生成されてから実行中の状態に遷移するまで200msの時間が要されることが判った。このように、スキャナを駆動させる機能が割り当てられたスレッドが生成されてから実行中の状態に遷移するまでに要される時間は、スタートキーが操作されてからプリンタが起動するまでの時間の中に含まれる。そのため、従来の画像処理装置では、スタートキーが操作されてからプリンタが起動するまでの時間を、150ms以内の時間にすることは困難であることが判った。   According to the experiment by the present inventor, it has been found that it takes 200 ms from the generation of the thread assigned the function for driving the scanner to the transition to the running state. As described above, the time required from the generation of the thread assigned the function for driving the scanner to the transition to the running state is the time from when the start key is operated until the printer is started. include. For this reason, it has been found that it is difficult for the conventional image processing apparatus to set the time from when the start key is operated to when the printer is activated to within 150 ms.

本発明は、上記の問題を解決するためになされたもので、コピー処理の実行が要求されてから、スキャナによって画像を表す画像データを読み取ることが開始されるタイミングを簡易な手法で短縮することができ、そのために、コピー処理に要される時間を短縮することができる画像処理装置を提供することを目的とする。   The present invention has been made to solve the above-described problem, and shortens the timing at which image data representing an image is started to be read by a scanner after a copy process is requested. Therefore, an object of the present invention is to provide an image processing apparatus capable of reducing the time required for the copy process.

本発明の一局面に係る画像処理装置は、原稿の画像を表す画像データを読み取って、読み取られた画像データで表される画像を記録媒体に形成するコピー処理を実行する制御部と、前記制御部によって実行されない休止スレッドを生成する処理、前記休止スレッドが生成されてから前記制御部によって実行されずに経過した時間が長くなるほど当該休止スレッドの優先度を高くする処理、及び、前記優先度が高い前記休止スレッドへ、前記制御部によって実行される処理を割り当てる処理を割り当てる処理、を行うオペレーティングシステムと、を備えており、前記制御部は、前記コピー処理を実行する前の前処理として、予め、前記オペレーティングシステムに対して前記休止スレッドを生成させる処理を行っておき、前記コピー処理を実行する際には、前記オペレーティングシステムに対して、前記優先度が高い前記休止スレッドへ、前記画像データを読み取る処理を割り当てて、当該休止スレッドを、前記画像データを読み取る処理を表す画像データ読取用スレッドとさせる処理を行い、当該画像データ読取用スレッドを実行することを特徴とする(請求項1)。   An image processing apparatus according to an aspect of the present invention reads image data representing an image of a document and executes a copy process for forming an image represented by the read image data on a recording medium, and the control A process of generating a pause thread that is not executed by the unit, a process of increasing the priority of the pause thread as the time elapsed since the pause thread was generated and not being executed by the control unit, and the priority is An operating system that performs a process of assigning a process for assigning a process executed by the control unit to the high sleep thread, and the control unit performs in advance as a pre-process before executing the copy process. The copy processing is executed by causing the operating system to generate the pause thread. In doing so, the image data reading thread representing the process of reading the image data is assigned to the operating system, the process of reading the image data assigned to the sleep thread having the higher priority. And executing the image data reading thread (claim 1).

この構成によれば、コピー処理が実行される前に、予め、制御部によって実行されない休止スレッドが生成される。このような休止スレッドは、オペレーティングシステムによって、優先度が、当該休止スレッドが生成されてから制御部によって実行されずに経過した時間が長くなるほど高められる。また、優先度が高い休止スレッドには、オペレーティングシステムによって、優先的に、制御部によって実行される処理が割り当てられる。   According to this configuration, a sleep thread that is not executed by the control unit is generated in advance before the copy process is executed. The priority of such a sleep thread is increased by the operating system as the time that has passed without the execution of the control thread from the generation of the sleep thread becomes longer. In addition, a process executed by the control unit is preferentially assigned by the operating system to the sleep thread having a high priority.

そのため、コピー処理が実行される際には、優先度が高い休止スレッドに対して、オペレーティングシステムによって画像データを読み取る処理が割り当てられる。従って、画像データを読み取る処理が割り当てられて画像データ読取用スレッドとされた休止スレッドは、優先度が高いので、優先的に実行中の状態に遷移する。   Therefore, when the copy process is executed, a process for reading image data by the operating system is assigned to a sleep thread having a high priority. Accordingly, the sleep thread assigned as the image data reading thread to which the process for reading the image data is assigned has a high priority, and therefore transitions to a preferentially executed state.

従って、コピー処理が開始されてから、制御部が画像データを読み取る処理が割り当てられた画像データ読取用スレッドを実行できる状態になるまでの時間が短縮される。そのため、コピー処理の実行が要求されてから、スキャナによって画像を表す画像データを読み取ることが開始されるタイミングを簡易な手法で短縮することができ、そのために、コピー処理に要される時間を短縮することができる。   Accordingly, the time from the start of the copy process to the state in which the control unit can execute the image data reading thread assigned with the process of reading the image data is shortened. For this reason, it is possible to shorten the timing at which reading of image data representing an image by a scanner is started after a copy process is requested by a simple method, thereby reducing the time required for the copy process. can do.

上記構成において、前記制御部は、前記オペレーティングシステムに対して、前記休止スレッドを前記画像データ読取用スレッドとさせる処理を行う際に、前記制御部が前記画像データ読取用スレッドを実行することができる状態となるまでの時間を表す遅延時間を設定し、前記オペレーティングシステムは、前記休止スレッドを前記画像データ読取用スレッドとしてから前記遅延時間が経過するまでの間、当該画像データ読取用スレッドを前記制御部が実行することができない状態にし、前記遅延時間が経過したときに、前記画像データ読取用スレッドを前記制御部が実行することができる状態とする構成とすることができる(請求項2)。   In the above-described configuration, the control unit can execute the image data reading thread when the control unit performs processing for causing the sleep thread to be the image data reading thread with respect to the operating system. A delay time indicating a time until a state is reached, and the operating system controls the image data reading thread until the delay time elapses after the sleep thread is set as the image data reading thread. When the delay time elapses, the image data reading thread can be in a state in which the control unit can execute it.

この構成によれば、休止スレッドが画像データ読取用スレッドとされてから遅延時間が経過したときに当該画像データ読取用スレッドを制御手段が実行できる状態となる。そのため、遅延時間が経過するまでの間に、画像データ読取用スレッドとされた休止スレッド以外のスレッドに対して、他の処理を割り当てて制御部が実行できる状態とすることが可能となる。従って、制御部において、画像データ読取用スレッドで表される処理と、他のスレッドで表される処理とが競合することが防止される。   According to this configuration, the control unit can execute the image data reading thread when the delay time has elapsed since the sleep thread is set as the image data reading thread. Therefore, before the delay time elapses, it is possible to allocate a different process to a thread other than the sleep thread that is set as the image data reading thread and to enable the control unit to execute. Therefore, in the control unit, it is possible to prevent the process represented by the image data reading thread from competing with the process represented by another thread.

上記構成において、前記制御部は、前記前処理において、前記オペレーティングシステムに対して、複数の前記休止スレッドを生成させる処理を行っておき、前記コピー処理を行う際には、前記遅延時間の間に、前記オペレーティングシステムに対して、前記画像データ読取用スレッドとされた前記休止スレッドの次に優先度が高い前記休止スレッドへ、前記画像を前記記録媒体に形成する処理を割り当てて、当該休止スレッドを、前記画像を前記記録媒体に形成する処理を表す画像形成用スレッドとさせる処理を行い、当該画像形成用スレッドを実行する構成とすることができる(請求項3)。   In the above configuration, the control unit performs processing for generating a plurality of the sleep threads for the operating system in the preprocessing, and performs the copy processing during the delay time. , Assigning the operating system a process for forming the image on the recording medium to the sleep thread having the second highest priority after the sleep thread set as the image data reading thread. The image forming thread may be executed by performing a process for causing the image forming thread to represent the process for forming the image on the recording medium.

この構成によれば、画像データ読取用スレッドを制御部が実行することができない状態が継続する遅延時間が経過するまでの間に、画像データ読取用スレッドとされた休止スレッドの次に優先度が高い休止スレッドが、画像形成用スレッドとされる。そして、当該画像形成用スレッドは、遅延時間が経過するまでの間に、制御部によって実行される。   According to this configuration, the priority is next to the sleep thread that is set as the image data reading thread until a delay time elapses when the control unit cannot execute the image data reading thread. A high pause thread is used as an image forming thread. The image forming thread is executed by the control unit until the delay time elapses.

そのため、コピー処理の実行が開始されてから、制御部において、まず、画像形成用スレッドが実行される。その後、制御部において、画像データ読取用スレッドが実行される。従って、コピー処理において、プリンタが起動し、その後、スキャナが起動するというスムースな処理シーケンスが実現される。   For this reason, after the execution of the copy process is started, an image forming thread is first executed in the control unit. Thereafter, an image data reading thread is executed in the control unit. Therefore, in the copy process, a smooth processing sequence is realized in which the printer is activated and then the scanner is activated.

上記構成において、前記遅延時間は、100msec〜200msecの範囲内であることが望ましい(請求項4)。前記遅延時間がこの範囲内にあると、画像処理装置において、プリンタの起動とスキャナの起動との一連の処理シーケンスが特にスムースとなる。   In the above configuration, the delay time is preferably within a range of 100 msec to 200 msec. When the delay time is within this range, a series of processing sequence of printer activation and scanner activation is particularly smooth in the image processing apparatus.

上記構成において、前記画像データを読み取るための画像読取用デバイスドライバによって駆動して、前記画像データを読み取る画像読取部と、前記画像を前記記録媒体に形成するための画像形成用デバイスドライバによって駆動して、前記画像データで表される画像を前記記録媒体に形成する画像形成部と、をさらに備える構成とすることができる(請求項5)。この構成によれば、画像データを読み取る画像読取部と、画像を記録媒体に形成する画像形成部とをさらに備えるので、請求項1乃至4の効果が奏される複写機が提供される。   In the above configuration, the image reading device driver for reading the image data drives the image reading unit for reading the image data, and the image forming device driver for forming the image on the recording medium. And an image forming unit that forms an image represented by the image data on the recording medium. According to this configuration, since the image reading unit that reads the image data and the image forming unit that forms the image on the recording medium are further provided, a copying machine that can achieve the effects of claims 1 to 4 is provided.

本発明によれば、コピー処理が開始されてから、制御部が画像データを読み取る処理が割り当てられた画像データ読取用スレッドを実行できる状態になるまでの時間が短縮される。そのため、コピー処理の実行が要求されてから、スキャナによって画像を表す画像データを読み取ることが開始されるタイミングを簡易な手法で短縮することができ、そのために、コピー処理に要される時間を短縮することができる。   According to the present invention, the time from when the copy process is started until the control unit can execute the image data reading thread to which the process of reading the image data is assigned is shortened. For this reason, it is possible to shorten the timing at which reading of image data representing an image by a scanner is started after a copy process is requested by a simple method, thereby reducing the time required for the copy process. can do.

本発明の一実施形態に係る複写機の概略断面図である。1 is a schematic sectional view of a copying machine according to an embodiment of the present invention. 本発明の一実施形態に係る複写機の機能モジュールの一例を示したブロック図である。FIG. 2 is a block diagram illustrating an example of a functional module of a copier according to an embodiment of the present invention. スレッドプールが生成される際における制御部側の処理を概略的に示したフローチャートである。It is the flowchart which showed roughly the process by the side of the control part at the time of a thread pool being produced | generated. スレッドプールが生成される際におけるカーネル側の処理を概略的に示したフローチャートである。6 is a flowchart schematically showing processing on the kernel side when a thread pool is generated. コピー処理が実行される際における制御部側の処理を概略的に示したフローチャートである。It is the flowchart which showed roughly the process by the side of a control part at the time of a copy process being performed. コピー処理が実行される際におけるカーネル側の処理を概略的に示したフローチャートである。It is the flowchart which showed roughly the process by the side of a kernel at the time of a copy process being performed.

以下、本発明の一実施形態に係る画像処理装置について説明する。本実施の一実施形態における画像処理装置は複写機である。尚、本発明に係る画像処理装置は、複写機能を備えた、ファクシミリ又は複合機であってもよい。   Hereinafter, an image processing apparatus according to an embodiment of the present invention will be described. The image processing apparatus according to the present embodiment is a copying machine. Note that the image processing apparatus according to the present invention may be a facsimile machine or a multifunction machine having a copying function.

図1は、本発明の一実施形態に係る複写機の概略断面図である。尚、図1において、本発明の一実施形態に係る画像処理装置として、タンデム方式の複写機1が例示されている。しかしながら、本発明に係る画像処理装置は、中間転写ベルト方式の複写機であってもよい。   FIG. 1 is a schematic sectional view of a copying machine according to an embodiment of the present invention. In FIG. 1, a tandem type copying machine 1 is illustrated as an image processing apparatus according to an embodiment of the present invention. However, the image processing apparatus according to the present invention may be an intermediate transfer belt type copying machine.

図1に示される複写機1は、原稿を読み取って原稿の画像を表す画像データを生成する画像読取部(画像読取部)7、画像読取部7で読み取られた画像データで表される画像を記録紙(記録媒体)Pに転写する本体部2、及び、本体部2で画像データで表される画像が転写された記録紙が排出される記録紙排出部6を備える。   The copier 1 shown in FIG. 1 reads an original and generates image data representing an image of the original, and an image reading unit (image reading unit) 7, and an image represented by the image data read by the image reading unit 7. A main body unit 2 to be transferred to a recording paper (recording medium) P, and a recording paper discharge unit 6 from which the recording paper to which the image represented by the image data is transferred in the main body unit 2 are discharged.

画像読取部7は、CCD(Charge Coupled Device)などにより構成されたスキャナ71を備える。画像読取部7は、このスキャナ71により原稿台72に載置された原稿を読み取って原稿の画像データを生成する。また、画像読取部7は、原稿載置部73に積層された複数枚の原稿を順次読取窓74上に送り出し、この読取窓74の位置で、スキャナ71によって原稿を読み取らせて原稿の画像データを生成させる。   The image reading unit 7 includes a scanner 71 configured by a CCD (Charge Coupled Device) or the like. The image reading unit 7 reads the document placed on the document table 72 by the scanner 71 and generates image data of the document. Further, the image reading unit 7 sequentially sends out a plurality of documents stacked on the document placing unit 73 onto the reading window 74, and causes the scanner 71 to read the document at the position of the reading window 74 and image data of the document. Is generated.

本体部2は、給紙部10、画像形成部30、転写搬送部40、定着ユニット50、記録紙搬送部20、及び、制御部9を備える。給紙部10は、記録紙Pの束が給紙カセットに積載されており、給紙カセットに積載された記録紙Pの束を、最上位の記録紙Pから1枚ずつ記録紙搬送部20の最下流部に給紙する。   The main body 2 includes a paper feeding unit 10, an image forming unit 30, a transfer conveyance unit 40, a fixing unit 50, a recording paper conveyance unit 20, and a control unit 9. The paper feeding unit 10 has a stack of recording papers P stacked on a paper feeding cassette. The recording paper P stacked on the paper feeding cassettes is fed one by one from the uppermost recording paper P to the recording paper transport unit 20. Paper is fed to the most downstream part of the paper.

記録紙搬送部20は、給紙部10から最下流部に給紙された記録紙Pを各種ローラ対によって、画像形成部30および転写搬送部40と、定着ユニット50にこの順序で通紙し、記録紙搬送部20の最下流部近傍に設けられた記録紙排出部6まで搬送する。   The recording paper transport unit 20 passes the recording paper P fed from the paper feeding unit 10 to the most downstream portion through the image forming unit 30 and the transfer transport unit 40 and the fixing unit 50 in this order by various roller pairs. Then, the recording paper is conveyed to the recording paper discharge unit 6 provided in the vicinity of the most downstream portion of the recording paper conveyance unit 20.

画像形成部30は、記録紙搬送部20により通紙される記録紙Pに複数のトナー画像を多重形成する。画像形成部30は、マゼンダのトナー画像を形成する第1の画像形成ユニット30M、シアンのトナー画像を形成する第2の画像形成ユニット30C、イエローのトナー画像を形成する第3の画像形成ユニット30Y、及び、ブラックのトナー画像を形成する第4の画像形成ユニット30K、を備える。各画像形成ユニット30M,30C,30Y,30Kは、この順序で、記録紙Pが搬送される方向に沿って所定間隔をおいて画像形成部30に配設されている。   The image forming unit 30 multiplexly forms a plurality of toner images on the recording paper P passed by the recording paper transport unit 20. The image forming unit 30 includes a first image forming unit 30M that forms a magenta toner image, a second image forming unit 30C that forms a cyan toner image, and a third image forming unit 30Y that forms a yellow toner image. , And a fourth image forming unit 30K that forms a black toner image. The image forming units 30M, 30C, 30Y, and 30K are arranged in this order in the image forming unit 30 at predetermined intervals along the direction in which the recording paper P is conveyed.

各画像形成ユニット30M、30C、30Y、及び30Kは、それぞれ、感光体ドラム31、帯電部32、現像部34、及び、クリーニング部35を備える。帯電部32、現像部34、及び、クリーニング部35は、いずれも、感光体ドラム31の周面に対向して配設されている。帯電部32は、感光体ドラム31を帯電する。露光部33は、帯電がされた感光体ドラム31に潜像を形成する。現像部34は、形成された潜像にトナーを付着させることによって現像して、感光体ドラム31の周面にトナー像を形成する。このように感光体ドラム31の周面に形成されたトナー像が、転写搬送部40に搬送されて感光体ドラム31の位置に通紙される記録紙Pに転写される。クリーニング部35は、感光体ドラム31の周面に残存するトナーを除去する。   Each of the image forming units 30M, 30C, 30Y, and 30K includes a photosensitive drum 31, a charging unit 32, a developing unit 34, and a cleaning unit 35, respectively. The charging unit 32, the developing unit 34, and the cleaning unit 35 are all disposed so as to face the peripheral surface of the photosensitive drum 31. The charging unit 32 charges the photosensitive drum 31. The exposure unit 33 forms a latent image on the charged photosensitive drum 31. The developing unit 34 develops the toner by attaching toner to the formed latent image, and forms a toner image on the peripheral surface of the photosensitive drum 31. The toner image formed on the peripheral surface of the photosensitive drum 31 in this way is transferred to the recording paper P that is conveyed to the transfer conveying unit 40 and passed through the position of the photosensitive drum 31. The cleaning unit 35 removes the toner remaining on the peripheral surface of the photosensitive drum 31.

現像部34は、トナー収納部341を備える。各画像形成ユニット30M、30C、30Y、及び30Kのトナー収納部341は、それぞれ、マゼンタ、シアン、イエロー、ブラックの各色のトナーが収納される。各画像形成ユニット30M、30C、30Y、及び30Kの現像部34は、自己のトナー収納部341に収納されたトナーを用いて、感光体ドラム31に形成された潜像を現像する。これにより、各現像部34は、それぞれ、マゼンタ、シアン、イエロー、ブラックの各色のトナー像を各感光体ドラム31に形成する。このように各感光体ドラム31に形成されたトナー像は、記録紙Pが転写ベルト41によって搬送されてきた際に、記録紙Pへ転写される。   The developing unit 34 includes a toner storage unit 341. The toner storage portions 341 of the image forming units 30M, 30C, 30Y, and 30K store toners of magenta, cyan, yellow, and black, respectively. The developing unit 34 of each of the image forming units 30M, 30C, 30Y, and 30K develops the latent image formed on the photosensitive drum 31 using the toner stored in its own toner storage unit 341. Accordingly, each developing unit 34 forms a toner image of each color of magenta, cyan, yellow, and black on each photoconductive drum 31. Thus, the toner image formed on each photoconductive drum 31 is transferred to the recording paper P when the recording paper P is conveyed by the transfer belt 41.

転写搬送部40は、従動ローラ42、駆動ローラ43、従動ローラ42及び駆動ローラ43の間に跨って配設された無端状の転写ベルト41、及び、4個の転写ローラ44、を備える。各画像形成ユニット30M、30C、30Y、及び30Kにおいて、4個の転写ローラ44の各々は、感光体ドラム31近傍に1個ずつ設けられ、各感光体ドラム31に対向して設けられている。   The transfer conveyance unit 40 includes a driven roller 42, a driving roller 43, an endless transfer belt 41 disposed between the driven roller 42 and the driving roller 43, and four transfer rollers 44. In each of the image forming units 30M, 30C, 30Y, and 30K, each of the four transfer rollers 44 is provided in the vicinity of the photosensitive drum 31 and is provided to face the photosensitive drum 31.

転写搬送部40は、記録紙搬送部20によって搬送されてきた記録紙Pを、各画像形成ユニット30M、30C、30Y、及び30Kに沿って搬送する。記録紙Pは、各画像形成ユニット30M、30C、30Y、及び30Kの各々において、感光体ドラム41と転写ローラ44との間で形成される転写ニップ部を通過する際に、感光体ドラム41に形成された各色のトナー像が転写される。転写搬送部40は、各画像形成ユニット30M、30C、30Y、及び30Kにおいて各色のトナー像が転写された記録紙Pを定着ユニット50へ搬送する。   The transfer conveyance unit 40 conveys the recording paper P conveyed by the recording paper conveyance unit 20 along the image forming units 30M, 30C, 30Y, and 30K. When the recording paper P passes through the transfer nip formed between the photosensitive drum 41 and the transfer roller 44 in each of the image forming units 30M, 30C, 30Y, and 30K, the recording paper P is transferred to the photosensitive drum 41. The formed toner images of respective colors are transferred. The transfer conveyance unit 40 conveys the recording paper P onto which the toner images of the respective colors have been transferred in the image forming units 30M, 30C, 30Y, and 30K to the fixing unit 50.

定着ユニット50は、転写搬送部40により搬入された記録紙を加熱することにより、先に4つの画像形成ユニット30M、30C、30Y、及び30Kにより当該記録紙に転写されたトナー像を当該記録紙に定着させる。   The fixing unit 50 heats the recording paper carried in by the transfer conveyance unit 40, whereby the toner images previously transferred onto the recording paper by the four image forming units 30M, 30C, 30Y, and 30K are recorded on the recording paper. To settle.

画像形成ユニット30M、30C、30Y、及び30Kのトナー収納部341は、それぞれ、当該トナー収納部341に収納されたトナーの残量を検出するセンサSM、SC、SY、及びSKを備えており、画像形成ユニット30M、30C、30Y、及び30Kの各々のトナー収納部341に収納されたマゼンタ、シアン、イエロー、ブラックの各色のトナーの残量を検出する。制御部9は、CPUやマイクロプロセッサなどで構成されており、複写機1を統括的に制御する。   The toner storage units 341 of the image forming units 30M, 30C, 30Y, and 30K respectively include sensors SM, SC, SY, and SK that detect the remaining amount of toner stored in the toner storage unit 341. The remaining amounts of magenta, cyan, yellow, and black toners stored in the toner storage units 341 of the image forming units 30M, 30C, 30Y, and 30K are detected. The control unit 9 is constituted by a CPU, a microprocessor, and the like, and comprehensively controls the copying machine 1.

図2は、本発明の一実施形態に係る複写機の機能モジュールの一例を示すブロック図である。図2において、複写機1は、制御部9、スキャナ71、画像形成部30、操作部5、及び記憶部67を備える。尚、以下の説明において、図1と同じ構成要素は、同一の符号が付されて説明が省略される。   FIG. 2 is a block diagram showing an example of a functional module of the copying machine according to the embodiment of the present invention. In FIG. 2, the copying machine 1 includes a control unit 9, a scanner 71, an image forming unit 30, an operation unit 5, and a storage unit 67. In the following description, the same components as those in FIG. 1 are denoted by the same reference numerals and description thereof is omitted.

このような複写機1において、制御部9は、ユーザから操作部5に入力された各種の指示信号等に応じて、図略のROM又は記憶部67に記憶されている制御プログラム100に基づいた処理を実行し、各機能部への指示信号の出力、データ転送等を行って複写機1を統括的に制御する。   In such a copying machine 1, the control unit 9 is based on a control program 100 stored in a ROM (not shown) or the storage unit 67 in accordance with various instruction signals input from the user to the operation unit 5. The processing is executed, and the copier 1 is controlled in an integrated manner by outputting an instruction signal to each functional unit, transferring data, and the like.

操作部5は、使用者がコピー機能、プリンタ機能、及びスキャナ機能等に関する操作を行うために使用され、使用者による操作命令(コマンド)等を制御部9に与える。また、操作部5は、ユーザが複写機1に対してコピー処理を行わせるために操作するためのスタートキー51を備える。   The operation unit 5 is used for a user to perform operations related to a copy function, a printer function, a scanner function, and the like, and gives an operation command (command) or the like by the user to the control unit 9. The operation unit 5 also includes a start key 51 that is operated by the user to cause the copying machine 1 to perform a copy process.

記憶部67は、スキャナ71において生成された画像データを記憶する記憶部や、ファクシミリ通信を行う時の短縮釦登録の相手先名称やファクシミリ番号、或いは、ネットワークスキャナとして使用される際の送信相手先のIPアドレスなどを予め記憶したりする記憶部を有して構成されている。   The storage unit 67 stores a storage unit that stores image data generated by the scanner 71, a destination name or a facsimile number for registration of a shortened button when performing facsimile communication, or a transmission destination when used as a network scanner. The storage unit stores the IP address and the like in advance.

また、記憶部67は、少なくともコピー処理モジュール101を含む制御プログラム100を記憶している。このようにコピー処理モジュール101を含む制御プログラム100は、オペレーティングシステム102の上位に位置するプログラムである。制御部9は、コピー処理モジュール101によってコピー処理を実行する。そして、制御部9は、コピー処理モジュール101によって、スレッド生成モジュール107によって生成されたスレッドを蓄積するためのスレッドプール106を生成する。   The storage unit 67 stores a control program 100 including at least the copy processing module 101. As described above, the control program 100 including the copy processing module 101 is a program positioned above the operating system 102. The control unit 9 executes a copy process using the copy process module 101. Then, the control unit 9 uses the copy processing module 101 to generate a thread pool 106 for storing the threads generated by the thread generation module 107.

ここに、コピー処理は、スキャナ71が原稿台72に載置された原稿を読み取って原稿の画像データを生成する処理(又は、スキャナ71が原稿載置部73から順次読取窓74に送り出される原稿を読取窓74の位置で読み取って画像データを生成する処理)、画像形成部30において当該画像データで表される画像を記録紙Pへ形成する処理、及び、記録紙Pに転写された画像が定着ユニット50によって定着される処理からなる一連の処理である。   Here, in the copy process, the scanner 71 reads the document placed on the document table 72 and generates image data of the document (or the document that the scanner 71 sequentially sends out from the document placement unit 73 to the reading window 74. Is read at the position of the reading window 74 to generate image data), the image forming unit 30 forms the image represented by the image data on the recording paper P, and the image transferred to the recording paper P This is a series of processes consisting of processes fixed by the fixing unit 50.

また、記憶部67は、オペレーティングシステム102を記憶している。このようなオペレーティングシステム102として、例えば、汎用オペレーティングシステムであるリナックス(登録商標)が挙げられる。そして、オペレーティングシステム102は、スキャナドライバ(画像データ読取用デバイスドライバ)103、プリンタドライバ(画像形成用デバイスドライバ)104、及びカーネル105を備える。   The storage unit 67 stores an operating system 102. An example of such an operating system 102 is Linux (registered trademark) which is a general-purpose operating system. The operating system 102 includes a scanner driver (image data reading device driver) 103, a printer driver (image forming device driver) 104, and a kernel 105.

オペレーティングシステム102において、スキャナドライバ(画像読取用デバイスドライバ)103は、画像読取部7(主に、スキャナ71)を駆動させて画像データを読み取るためのプログラムモジュールである。また、プリンタドライバ(画像形成用デバイスドライバ)104は、画像形成部30及び定着ユニット50を起動させて画像データで表される画像を記録紙Pに転写し、記録紙Pに転写された画像を定着させるためのプログラムモジュールである。スキャナドライバ103及びプリンタドライバ104は、カーネル105の上位に位置するプログラムモジュールである。   In the operating system 102, a scanner driver (image reading device driver) 103 is a program module for driving the image reading unit 7 (mainly the scanner 71) to read image data. The printer driver (image forming device driver) 104 activates the image forming unit 30 and the fixing unit 50 to transfer the image represented by the image data to the recording paper P, and the image transferred to the recording paper P is transferred to the recording paper P. It is a program module for fixing. The scanner driver 103 and the printer driver 104 are program modules positioned above the kernel 105.

カーネル105は、オペレーティングシステム102の中核部分となるプログラムモジュールである。カーネル105は、システムコールインタフェース106、スレッド生成モジュール107、スケジューリングモジュール108、及びスレッド管理モジュール109を備える。システムコールインタフェース106は、カーネル105へ出力されるシステムコールの窓口となるものであり、カーネル105よりも上位に位置するプログラムモジュールと、カーネル105との間の遷移メカニズムを提供する。   The kernel 105 is a program module that is a core part of the operating system 102. The kernel 105 includes a system call interface 106, a thread generation module 107, a scheduling module 108, and a thread management module 109. The system call interface 106 serves as a window for a system call output to the kernel 105, and provides a transition mechanism between the program module positioned above the kernel 105 and the kernel 105.

スレッド生成モジュール107は、カーネル105が制御部9からのスレッド生成要求を受け付けた際に各種のスレッドを生成し、カーネル105が管理するメモリ(図示せず)に記憶させる処理を行うプログラムモジュールである。ここに、スレッドは、制御部9によって実行される処理を表し、例えば、制御部9が実行すべきプログラムモジュールを記憶したメモリのアドレス、及び、ローカル変数が挙げられる。本実施形態では、スレッド生成モジュール107は、制御部10によって実行されない休止スレッドを生成し、メモリに記憶させる。   The thread generation module 107 is a program module that generates various threads when the kernel 105 receives a thread generation request from the control unit 9 and stores them in a memory (not shown) managed by the kernel 105. . Here, the thread represents a process executed by the control unit 9, and includes, for example, an address of a memory storing a program module to be executed by the control unit 9 and a local variable. In the present embodiment, the thread generation module 107 generates a pause thread that is not executed by the control unit 10 and stores it in the memory.

スケジューリングモジュール108は、スレッド生成モジュール107によって生成されたスレッドの各々を、優先度が高いスレッドから優先度が低い順番で、制御部9によって実行されることが可能な状態に遷移させる。つまり、スケジューリングモジュール108は、スレッドの各々を、優先度が高いスレッドから優先度が低い順番で、待機状態から実行中の状態に遷移させる。   The scheduling module 108 causes each of the threads generated by the thread generation module 107 to transition to a state that can be executed by the control unit 9 in order from the thread with the highest priority to the thread with the lowest priority. In other words, the scheduling module 108 causes each of the threads to transition from the standby state to the executing state in the order of priority from the thread with the highest priority.

スレッド管理モジュール109は、スレッド生成モジュール107によってスレッドが生成されてから、制御部9によって実行されずに経過した時間を監視する。そして、当該経過した時間が長くなるほど、対応するスレッドの優先度を高くする。そして、当該スレッドの優先度を記憶する。そのため、当該スレッドの優先度は、予めユーザによって設定された優先度とは異なる優先度となりうる。   The thread management module 109 monitors the time that has not been executed by the control unit 9 since the thread generation module 107 generated the thread. The priority of the corresponding thread is increased as the elapsed time becomes longer. Then, the priority of the thread is stored. Therefore, the priority of the thread can be different from the priority set in advance by the user.

記憶部67は、スレッドプール106を記憶している。スレッドプール106は、スレッドのスレッド識別情報106A及び使用状態を示す情報106Bを記憶するように構成されている。ここに、スレッド識別情報106Aはスレッドプール106が生成される際に記憶される。一方、使用状態を示す情報106Bにおいて、「使用中」を表す情報は、コピー処理が実行される際に実行状態とされたスレッドの識別情報をカーネル105から受け付けた際に記憶される。また、「未使用中」を表す情報は、スレッドが休止状態及び実行待ち状態のときに記憶される。   The storage unit 67 stores the thread pool 106. The thread pool 106 is configured to store thread identification information 106A of a thread and information 106B indicating a usage state. Here, the thread identification information 106A is stored when the thread pool 106 is generated. On the other hand, in the information 106B indicating the use state, information indicating “in use” is stored when the identification information of the thread that is in the execution state when the copy process is executed is received from the kernel 105. Information indicating “not in use” is stored when the thread is in a sleep state or an execution wait state.

このようなスレッドプール106は、以下に示される手順により生成される。以下に示される手順によりスレッドプール106を生成することができるオペレーティングシステム102として、汎用オペレーティングシステムであるリナックス(登録商標)(バージョンは2.6)が知られている。   Such a thread pool 106 is generated by the following procedure. As an operating system 102 that can generate the thread pool 106 by the following procedure, Linux (registered trademark) (version 2.6), which is a general-purpose operating system, is known.

図3は、スレッドプール106が生成される際における制御部9側の処理を概略的に示したフローチャートである。図4は、スレッドプール106が生成される際におけるカーネル105側の処理を概略的に示したフローチャートである。このように、スレッドプール106を生成する処理は、例えば、複写機1の電源がONされた際に行われることが望ましい。   FIG. 3 is a flowchart schematically showing processing on the control unit 9 side when the thread pool 106 is generated. FIG. 4 is a flowchart schematically showing processing on the kernel 105 side when the thread pool 106 is generated. As described above, it is desirable that the process for generating the thread pool 106 be performed when the power of the copying machine 1 is turned on, for example.

図3に示されるように、制御部9は、カーネル105に対して、休止状態を維持する機能を割り当てた休止スレッドの生成を要求する(ステップS1)。このようなステップS1に示される処理は、例えば、システムコール“clone( )”及び、システムコール“sleep”を用いることで実現される。そして、制御部9は、当該スレッドの識別情報をスレッドプール106に記憶させる(ステップS2)。制御部9は、ステップS1及びS2に示される処理を、生成を要求した休止スレッドの数が予め定められた個数(N個)となるまで繰り返す(ステップS3)。   As shown in FIG. 3, the control unit 9 requests the kernel 105 to generate a sleep thread to which a function for maintaining a sleep state is assigned (step S1). The processing shown in step S1 is realized by using, for example, the system call “clone ()” and the system call “sleep”. And the control part 9 memorize | stores the identification information of the said thread | sled in the thread pool 106 (step S2). The controller 9 repeats the processing shown in steps S1 and S2 until the number of sleep threads that have requested generation reaches a predetermined number (N) (step S3).

一方、カーネル105は、図4に示されるように、制御部9によって、休止状態を維持する機能を割り当てた休止スレッドの生成が要求される毎に(ステップS10のYES)、制御部9によって実行されない機能を割り当てた休止スレッドを生成し(ステップS11)、生成した休止スレッドをメモリへ記憶させる(ステップS12)。   On the other hand, as shown in FIG. 4, the kernel 105 is executed by the control unit 9 every time the control unit 9 requests generation of a sleep thread to which a function for maintaining the sleep state is assigned (YES in step S10). A sleep thread to which a function that is not performed is assigned is generated (step S11), and the generated sleep thread is stored in the memory (step S12).

以上に示されるスレッドプール生成処理は、コピー処理が実行される際にすぐに休止スレッドを画像データ読取用スレッド(以下、スキャナ駆動用スレッドという)とできるようにする観点からは、複写機1の電源がONされた際に実行されることが望ましい。   The thread pool generation process described above is performed from the viewpoint of enabling the sleep thread to be an image data reading thread (hereinafter referred to as a scanner driving thread) immediately after the copy process is executed. It is desirable to be executed when the power is turned on.

このように、コピー処理に先立って準備された休止スレッドは、コピー処理の際に新規に生成されるスレッドと比較して、スレッド管理モジュール109によって優先度が高くされる。そのため、複写機1は、以下に示されるコピー処理を実行することができる。図5は、コピー処理が実行される際における制御部9側の処理を概略的に示したフローチャートである。図6は、コピー処理が行われる際におけるカーネル105側の処理を概略的に示したフローチャートである。ここに、以下に示される手順によりコピー処理を実行することができるオペレーティングシステム102として、汎用オペレーティングシステムであるリナックス(登録商標)(バージョンは2.6)が知られている。   As described above, the thread management module 109 increases the priority of the sleep thread prepared prior to the copy process, compared to a thread newly generated during the copy process. Therefore, the copying machine 1 can execute the copy process shown below. FIG. 5 is a flowchart schematically showing processing on the control unit 9 side when copy processing is executed. FIG. 6 is a flowchart schematically showing processing on the kernel 105 side when copy processing is performed. Here, Linux (registered trademark) (version 2.6), which is a general-purpose operating system, is known as an operating system 102 that can execute copy processing according to the following procedure.

スタートキー51が操作された際には、制御部9は、図5に示されるように、制御部9は、以下に示される処理(ステップS21)を行う。つまり、ステップS21に示されるように、制御部9は、カーネル105に対して、カーネル105が管理する休止スレッドのうち、優先度が最も高い休止スレッドをスキャナ駆動用スレッドとする指示を行う。その際、制御部9は、当該休止スレッドがスキャナ駆動用スレッドとされてから、当該スキャナ駆動用スレッドが制御部9によって実行されることが可能な状態となるまでの遅延時間(例えば、100ms)の指定を行う。   When the start key 51 is operated, the control unit 9 performs the following process (step S21) as shown in FIG. That is, as shown in step S <b> 21, the control unit 9 instructs the kernel 105 to set the sleep thread having the highest priority among the sleep threads managed by the kernel 105 as the scanner driving thread. At this time, the control unit 9 determines a delay time (for example, 100 ms) from when the pause thread is set as a scanner driving thread until the scanner driving thread can be executed by the control unit 9. Specify.

ステップS21に示される処理は、例えば、スキャナドライバ103を構成するプログラムモジュールが記憶されているメモリアドレス、及び、システムコール“nanosleep( )”を用いることによって実現される。   The process shown in step S21 is realized by using, for example, a memory address in which a program module constituting the scanner driver 103 is stored and a system call “nanosleep ()”.

その後、制御部9は、カーネル105に対して、カーネル105が管理する休止スレッドのうち、優先度が2番目に高い休止スレッドを画像形成用スレッド(以下、プリンタ駆動用スレッドという)とする指示を行う(ステップS22)。このようなステップS22に示される処理は、例えば、プリンタドライバ104を構成するプログラムモジュールが記憶されているメモリアドレスを用いることによって実現される。   After that, the control unit 9 instructs the kernel 105 to set a pause thread having the second highest priority among pause threads managed by the kernel 105 as an image forming thread (hereinafter referred to as a printer driving thread). This is performed (step S22). Such processing shown in step S22 is realized by using, for example, a memory address in which a program module constituting the printer driver 104 is stored.

そして、制御部9は、カーネル105によって実行することができる状態とされたプリンタ駆動用スレッドを実行してプリンタを駆動させる。次に、制御部9は、カーネル105によって実行することができる状態とされたスキャナ駆動用スレッドを実行してスキャナを駆動させる。以上に示される制御部9の処理は、コピー処理モジュール101によって行われる。   Then, the control unit 9 drives the printer by executing a printer driving thread that can be executed by the kernel 105. Next, the control unit 9 drives the scanner by executing a scanner driving thread that can be executed by the kernel 105. The processing of the control unit 9 shown above is performed by the copy processing module 101.

一方、カーネル105は、図6に示されるように、制御部9から、優先度が最も高い休止スレッドをスキャナ駆動用スレッドとする指示を受け付ける(ステップS30のYES)。すると、スケジューリングモジュール108が、スレッド管理モジュール109に記憶されている優先度を参照して、優先度が最も高い休止スレッドを判別する(ステップS31)。そして、スケジューリングモジュール108が、優先度が最も高い休止スレッドをスキャナ駆動用スレッドとする(ステップS32)。ステップS32に示される処理は、例えば、制御部9によって通知された、スキャナドライバ103を構成するプログラムモジュールが記憶されているメモリアドレスを、休止スレッドに割り当てることによって実現される。そして、スケジューリングモジュール108は、指定された遅延時間(例えば、100ms)の間、スキャナ駆動用スレッドを待機状態とする。このように、当該スキャナ駆動用スレッドが遅延時間の間待機状態とされるので、遅延時間が経過するまでは、当該スキャナ駆動用スレッドを制御部9が実行することができない状態となる。   On the other hand, as shown in FIG. 6, the kernel 105 receives an instruction from the control unit 9 to set the sleep thread with the highest priority as a scanner driving thread (YES in step S30). Then, the scheduling module 108 refers to the priority stored in the thread management module 109 to determine the sleep thread with the highest priority (step S31). Then, the scheduling module 108 sets the sleep thread with the highest priority as a scanner driving thread (step S32). The process shown in step S32 is realized, for example, by assigning a memory address notified by the control unit 9 and storing a program module constituting the scanner driver 103 to a sleep thread. Then, the scheduling module 108 sets the scanner driving thread in a standby state for a specified delay time (for example, 100 ms). As described above, the scanner driving thread is in a standby state for the delay time, and therefore, the controller 9 cannot execute the scanner driving thread until the delay time elapses.

次に、カーネル105は、制御部9から、優先度が2番目に高い休止スレッドをプリンタ駆動用スレッドとする指示を受け付ける(ステップS33のYES)。すると、スケジューリングモジュール108が、スレッド管理モジュール109に記憶されている優先度を参照して、優先度が2番目に高い休止スレッドを判別する(ステップS34)。そして、スケジューリングモジュール108は、優先度が2番目最も高い休止スレッドをプリンタ駆動用スレッドとする(ステップS35)。ステップS35に示される処理は、例えば、制御部9によって通知された、プリンタドライバ104を構成するプログラムモジュールが記憶されているメモリアドレスを、休止スレッドに割り当てることによって実現される。   Next, the kernel 105 receives an instruction from the control unit 9 to set the sleep thread having the second highest priority as a printer driving thread (YES in step S33). Then, the scheduling module 108 refers to the priority stored in the thread management module 109 and determines a suspended thread having the second highest priority (step S34). Then, the scheduling module 108 sets the pause thread having the second highest priority as a printer driving thread (step S35). The process shown in step S35 is realized by, for example, allocating the memory address notified by the control unit 9 and storing the program module constituting the printer driver 104 to the sleep thread.

そして、スケジューリングモジュール108は、最も優先度が高い休止スレッドからなる画像データ読取用スレッドが待機状態とされているので、次に優先度が高い休止スレッドからなるプリンタ駆動用スレッドを実行中の状態とする(ステップS36)。その際、当該プリンタ駆動用スレッドを制御部9が実行することができる状態となる。   The scheduling module 108 is in a state in which the image data reading thread consisting of the sleep thread with the highest priority is in the standby state, and is executing the printer driving thread consisting of the sleep thread with the next highest priority. (Step S36). At this time, the controller 9 can execute the printer driving thread.

そして、スケジューリングモジュール108は、優先度が最も高いスレッドをスキャナ駆動用スレッドとしてから遅延時間が経過した際には(ステップS37のYES)、当該スキャナ駆動用スレッドを実行中の状態とする(ステップS38)。その際、当該スキャナ駆動用スレッドを制御部9が実行することができる状態となる。   Then, when the delay time has elapsed since the thread having the highest priority is set as the scanner driving thread (YES in step S37), the scheduling module 108 sets the scanner driving thread to the executing state (step S38). ). At this time, the controller 9 can execute the scanner driving thread.

以上に示されるように、複写機1において、コピー処理が開始された際には、まず、スキャナ駆動用スレッドが実行待ち状態となる一方でプリンタ駆動用スレッドが実行可能な状態となる。そして、スキャナ駆動用スレッドが実行待ち状態となってから遅延時間が経過したときに当該スキャナ駆動用スレッドが実行可能な状態となる。そのため、コピー処理が実行される際に、プリンタが起動し、その後、スキャナが起動する一連の処理シーケンスがスムースとなる。尚、遅延時間は、100ms〜200msの範囲内であることが望ましい。遅延時間がこの範囲内であると、コピー処理が実行される際に、プリンタが起動し、その後、スキャナが起動する一連の処理シーケンスが特にスムースとなる。特に、遅延時間が100msである際には、当該一連の処理シーケンスが一層スムースとなる。   As described above, in the copying machine 1, when the copying process is started, first, the scanner driving thread is in a waiting state while the printer driving thread is in an executable state. Then, when the delay time elapses after the scanner driving thread enters the execution waiting state, the scanner driving thread becomes executable. Therefore, when the copy process is executed, a series of processing sequences in which the printer is activated and then the scanner is activated become smooth. The delay time is preferably in the range of 100 ms to 200 ms. When the delay time is within this range, a series of processing sequences in which the printer is activated and then the scanner is activated when the copy process is executed are particularly smooth. In particular, when the delay time is 100 ms, the series of processing sequences becomes smoother.

1 複写機
7 画像読取部
9 制御部
30 画像形成部
102 オペレーティングシステム
103 スキャナドライバ
104 プリンタドライバ
P 記録紙
DESCRIPTION OF SYMBOLS 1 Copy machine 7 Image reading part 9 Control part 30 Image formation part 102 Operating system 103 Scanner driver 104 Printer driver P Recording paper

Claims (5)

原稿の画像を表す画像データを読み取って、読み取られた画像データで表される画像を記録媒体に形成するコピー処理を実行する制御部と、
前記制御部によって実行されない休止スレッドを生成する処理、
前記休止スレッドが生成されてから前記制御部によって実行されずに経過した時間が長くなるほど当該休止スレッドの優先度を高くする処理、及び、
前記優先度が高い前記休止スレッドへ、前記制御部によって実行される処理を割り当てる処理を割り当てる処理、を行うオペレーティングシステムと、
を備えており、
前記制御部は、
前記コピー処理を実行する前の前処理として、予め、前記オペレーティングシステムに対して前記休止スレッドを生成させる処理を行っておき、
前記コピー処理を実行する際には、前記オペレーティングシステムに対して、前記優先度が高い前記休止スレッドへ、前記画像データを読み取る処理を割り当てて、当該休止スレッドを、前記画像データを読み取る処理を表す画像データ読取用スレッドとさせる処理を行い、当該画像データ読取用スレッドを実行することを特徴とする画像処理装置。
A control unit that reads image data representing an image of a document and executes a copy process for forming an image represented by the read image data on a recording medium;
A process for generating a sleep thread that is not executed by the control unit;
A process of increasing the priority of the paused thread as the time elapsed without being executed by the control unit since the paused thread is generated, and
An operating system that performs a process of allocating a process of allocating a process to be executed by the control unit to the suspended thread having a high priority;
With
The controller is
As pre-processing before executing the copy processing, processing for generating the sleep thread for the operating system is performed in advance.
When executing the copy process, the process of reading the image data is assigned to the sleep thread having a high priority to the operating system, and the sleep thread represents the process of reading the image data. An image processing apparatus that performs a process for setting an image data reading thread and executes the image data reading thread.
前記制御部は、
前記オペレーティングシステムに対して、前記休止スレッドを前記画像データ読取用スレッドとさせる処理を行う際に、前記制御部が前記画像データ読取用スレッドを実行することができる状態となるまでの時間を表す遅延時間を設定し、
前記オペレーティングシステムは、
前記休止スレッドを前記画像データ読取用スレッドとしてから前記遅延時間が経過するまでの間、当該画像データ読取用スレッドを前記制御部が実行することができない状態にし、前記遅延時間が経過したときに、前記画像データ読取用スレッドを前記制御部が実行することができる状態とすることを特徴とする請求項1に記載の画像処理装置。
The controller is
A delay that represents a time until the control unit can execute the image data reading thread when the operating system performs processing for setting the sleep thread as the image data reading thread. Set the time,
The operating system is
Until the delay time elapses after the sleep thread is set as the image data reading thread, the control unit cannot execute the image data reading thread, and when the delay time elapses, The image processing apparatus according to claim 1, wherein the control unit can execute the image data reading thread.
前記制御部は、
前記前処理において、前記オペレーティングシステムに対して、複数の前記休止スレッドを生成させる処理を行っておき、
前記コピー処理を行う際には、
前記遅延時間の間に、前記オペレーティングシステムに対して、前記画像データ読取用スレッドとされた前記休止スレッドの次に優先度が高い前記休止スレッドへ、前記画像を前記記録媒体に形成する処理を割り当てて、当該休止スレッドを、前記画像を前記記録媒体に形成する処理を表す画像形成用スレッドとさせる処理を行い、当該画像形成用スレッドを実行することを特徴とする請求項2に記載の画像処理装置。
The controller is
In the preprocessing, the operating system is caused to generate a plurality of the sleep threads,
When performing the copy process,
During the delay time, the operating system is assigned processing for forming the image on the recording medium to the sleep thread having the second highest priority after the sleep thread used as the image data reading thread. 3. The image processing according to claim 2, wherein the image processing thread is executed by performing a process of causing the pause thread to be an image forming thread representing a process of forming the image on the recording medium. apparatus.
前記遅延時間は、100msec〜200msecの範囲内であることを特徴とする請求項3に記載の画像処理装置。   The image processing apparatus according to claim 3, wherein the delay time is in a range of 100 msec to 200 msec. 前記画像データを読み取るための画像読取用デバイスドライバによって駆動して、前記画像データを読み取る画像読取部と、
前記画像を前記記録媒体に形成するための画像形成用デバイスドライバによって駆動して、前記画像データで表される画像を前記記録媒体に形成する画像形成部と、
をさらに備えることを特徴とする請求項1乃至請求項4のいずれか一項に記載の画像処理装置。
An image reading unit that is driven by an image reading device driver for reading the image data and reads the image data;
An image forming unit that drives the image forming device driver for forming the image on the recording medium and forms an image represented by the image data on the recording medium;
The image processing apparatus according to claim 1, further comprising:
JP2009091212A 2009-04-03 2009-04-03 Image processing device Expired - Fee Related JP5162515B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009091212A JP5162515B2 (en) 2009-04-03 2009-04-03 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009091212A JP5162515B2 (en) 2009-04-03 2009-04-03 Image processing device

Publications (2)

Publication Number Publication Date
JP2010243717A JP2010243717A (en) 2010-10-28
JP5162515B2 true JP5162515B2 (en) 2013-03-13

Family

ID=43096807

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009091212A Expired - Fee Related JP5162515B2 (en) 2009-04-03 2009-04-03 Image processing device

Country Status (1)

Country Link
JP (1) JP5162515B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7015203B2 (en) * 2018-04-11 2022-02-02 株式会社日立製作所 How to run the app
CN114968569A (en) * 2022-05-18 2022-08-30 浙江工商大学 Intelligent task processing method based on distributed heterogeneous system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU6244686A (en) * 1985-09-17 1987-03-19 Codex Corporation Multiple task control
JPH08190490A (en) * 1995-01-10 1996-07-23 Toshiba Corp Multitask management device
JP4179110B2 (en) * 2003-09-04 2008-11-12 富士ゼロックス株式会社 Information processing apparatus, information processing program, and information processing method

Also Published As

Publication number Publication date
JP2010243717A (en) 2010-10-28

Similar Documents

Publication Publication Date Title
EP1816848A1 (en) Freeing of memory areas in an image forming apparatus
JP5565216B2 (en) Image forming apparatus
JP5058512B2 (en) Printing apparatus and printing method
JP4402083B2 (en) Image forming apparatus
JP2008173797A (en) Image forming apparatus, image forming method and program
JP2017194629A (en) Image formation apparatus
JP6494300B2 (en) Image forming apparatus
JP5162515B2 (en) Image processing device
US8675212B2 (en) Image processing apparatus, image processing method, and recording medium
JP2008102204A (en) Image forming apparatus
JP2007017656A (en) Image forming method and image forming apparatus
JP5841633B2 (en) Printing apparatus, control method thereof, and program
JP2018062157A (en) Image formation apparatus, information processing apparatus and program
JP2010028431A (en) Data processing apparatus, control method for data processing apparatus, storage medium, and program
US10198227B2 (en) Electronic apparatus and image forming apparatus
JP2018089830A (en) Image formation apparatus
JP5078449B2 (en) Image forming apparatus
JP5804708B2 (en) Image forming apparatus and control method thereof
JP5429249B2 (en) Image forming apparatus
JP2009122273A (en) Image forming apparatus, controller, and program
JP4942159B2 (en) Image forming apparatus
JP2005239386A (en) Image forming device
JP5287192B2 (en) Image forming apparatus and image forming method
JP5006980B2 (en) Printing apparatus, printing method, and program
JP2015130603A (en) Image forming apparatus and image forming method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110822

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: 20121120

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121121

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121217

R150 Certificate of patent or registration of utility model

Ref document number: 5162515

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20151221

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees