JPH10283204A - Multi-task processing method, multi-task processor and recording medium recording task - Google Patents
Multi-task processing method, multi-task processor and recording medium recording taskInfo
- Publication number
- JPH10283204A JPH10283204A JP8650997A JP8650997A JPH10283204A JP H10283204 A JPH10283204 A JP H10283204A JP 8650997 A JP8650997 A JP 8650997A JP 8650997 A JP8650997 A JP 8650997A JP H10283204 A JPH10283204 A JP H10283204A
- Authority
- JP
- Japan
- Prior art keywords
- task
- tasks
- read
- sleep
- time
- 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
Links
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、複数のタスクを所
定時間毎に切り替えて各タスクを処理するマルチタスク
処理方法、装置、および、タスクを記録した記録媒体に
関する。特に、共通のデバイスに対してアクセスする複
数のタスクをマルチタスク処理する方法、装置、およ
び、タスクを記録した記録媒体に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multitask processing method and apparatus for switching a plurality of tasks at predetermined time intervals and processing each task, and a recording medium recording the tasks. In particular, the present invention relates to a method, an apparatus, and a recording medium on which tasks are multi-task processed for a plurality of tasks accessing a common device.
【0002】[0002]
【従来の技術】現在のコンピュータなどの処理装置は、
マルチタスク処理に対応している。このマルチタスク処
理とは、処理装置の中枢であるCPU(中央演算処理装
置)は一度に一つのプロセスしか実行できないために、
複数のタスクの各々にCPUを占有する時間を与え、見
掛け上、1つの処理装置上で複数のタスクを処理するこ
とである。このうちでも、OS(オペレーティングシス
テム)が複数のタスクを管理し、複数のタスクを所定時
間毎に切り替えて各タスクを処理するマルチタスクがあ
る(本明細書で言うマルチタスク)。2. Description of the Related Art At present, processing devices such as computers are:
It supports multitask processing. This multi-task processing means that the central processing unit (CPU), which is the center of the processing unit, can execute only one process at a time.
To give each of a plurality of tasks time to occupy the CPU and apparently process the plurality of tasks on one processing device. Among them, there is a multitask in which an OS (operating system) manages a plurality of tasks, switches the plurality of tasks at predetermined time intervals, and processes each task (multitask referred to in this specification).
【0003】このマルチタスク処理を模式的に示した図
5(a)に基づいて説明すると、第1タスクと第2タス
クとをマルチタスクで処理する際には、予め決められた
時間(ここでは、約0.1秒)毎に、第1タスクの処
理、第2タスクの処理、第1タスクの処理、・・・と、
各タスクが処理するためにCPUを占有させる。こうす
ることにより、第1タスクと第2タスクがあたかも同時
並列的に処理されるように見える。Referring to FIG. 5A schematically showing this multitask processing, when processing the first task and the second task by the multitask, a predetermined time (here, , About 0.1 seconds), the processing of the first task, the processing of the second task, the processing of the first task,...
Each task occupies the CPU for processing. By doing so, it looks as if the first task and the second task are processed simultaneously and in parallel.
【0004】[0004]
【発明が解決しようとする課題】上述したマルチタスク
処理において、第1タスクによりアクセスするデバイス
が第2タスクによりアクセスするデバイスが同じ場合、
例えば、第1タスクが処理装置に内蔵されるハードディ
スクに情報を書き込むタスクであり、第2タスクがハー
ドディスクに記憶されている情報を読み出すタスクであ
る場合には、問題が生じる。特に、一方のタスクがリア
ルタイム性が要求されるようなタスクである場合には顕
著となる。In the multitask processing described above, if the device accessed by the first task is the same as the device accessed by the second task,
For example, a problem occurs when the first task is a task of writing information to a hard disk incorporated in the processing device and the second task is a task of reading information stored in the hard disk. In particular, this is remarkable when one of the tasks is a task that requires real-time properties.
【0005】これを図5(b)に基づいて説明する。こ
こで、第1タスクにリアルタイム性が要求される(すな
わち、優先レベルが高い)タスクとする。まず、第1タ
スクを約0.1秒処理し、その後第2タスクを処理す
る。この場合、第2タスクが大きなデータ量を読み出す
タスクであると、CPUの占有はそれほどしないが、第
1タスクと共有するデバイス(共通のデバイスであるハ
ードディスク)の読み出しには、約1秒要する(図中の
一点鎖線)。そして、第2タスクの処理が始まってから
約0.1秒経過し、CPUの占有が第1タスクに移った
としても、このときの第1タスクがハードディスクへの
書き込みであった場合、ハードディスクは第2タスクに
基づいて読み出しがなされているため、第1タスクに基
づく書き込みを行うことができない。そのために、第1
タスクは、第2タスクに基づく読み出しが終了した後の
約1秒後まで待つことになる。すなわち、この場合、図
5(c)に示すように、リアルタイム性が要求されてい
る第1タスクではあるが、第1タスクよりリアルタイム
性が要求されない(すなわち、優先レベルが低い)第2
タスクに基づいて共通のデバイスがアクセスされている
ために、1秒も待たねばならず、要求されているリアル
タイム性を達成することができない。[0005] This will be described with reference to FIG. Here, it is assumed that the first task requires a real-time property (that is, a task having a high priority level). First, the first task is processed for about 0.1 second, and then the second task is processed. In this case, if the second task is a task for reading a large amount of data, the CPU is not occupied so much, but it takes about one second to read a device shared with the first task (a hard disk that is a common device) ( (A chain line in the figure). Then, even if about 0.1 second has elapsed after the processing of the second task has started and the occupation of the CPU has shifted to the first task, if the first task at this time is writing to the hard disk, Since reading is performed based on the second task, writing based on the first task cannot be performed. Therefore, the first
The task will wait until about one second after the completion of the reading based on the second task. That is, in this case, as shown in FIG. 5C, the second task is a first task that requires real-time property but does not require real-time property than the first task (ie, has a lower priority level).
Since a common device is being accessed based on the task, it has to wait for one second, and the required real-time property cannot be achieved.
【0006】また、マルチタスクとしてタスク優先制
御、すなわち、重要なタスクにCPUの占有時間を多く
与えるように、プライオリティ(優先度)制御が行われ
るようになっているが、CPUの占有時間を多く与えた
としても共通のデバイスが使用できないため、この方法
では実質的に役をなさない。In addition, priority control (priority control) is performed so that task priority control is given as a multitask, that is, important tasks are given more CPU occupation time. Even if given, this method is practically useless because a common device cannot be used.
【0007】そこで、本発明では、リアルタイム性が要
求されるタスクに対して、その要求を満たすことができ
るマルチタスク処理を提供することを課題とする。[0007] Therefore, an object of the present invention is to provide a multitask process capable of satisfying a task that requires real-time properties.
【0008】[0008]
【課題を解決するための手段】上記の課題は以下の構成
により達成することができる。The above object can be achieved by the following constitution.
【0009】(1) 複数のタスクを所定時間毎に切り
替えて各タスクを処理するマルチタスク処理方法におい
て、前記複数のタスク各々が、共通のデバイスに対して
アクセスするタスクであるとき、前記複数のタスクのう
ち優先レベルの低いタスクの中にスリープを入れ、該ス
リープが入れられたタスクがスリープ中であるとき、ス
リープでないタスクを処理することを特徴とするマルチ
タスク処理方法。(1) In a multitask processing method for processing a plurality of tasks by switching the plurality of tasks at predetermined time intervals, when each of the plurality of tasks is a task that accesses a common device, A multitask processing method, wherein a sleep is placed in a task having a lower priority level among tasks, and a non-sleep task is processed when the task in which the sleep is put is sleeping.
【0010】(2) 複数のタスクを所定時間毎に切り
替えて各タスクを処理するマルチタスク処理方法におい
て、前記複数のタスク各々が、共通のデバイスに対して
アクセスするタスクであるとき、前記複数のタスクのう
ち優先レベルの低いタスクが前記共通のデバイスに対し
てアクセスする1回の時間を短縮することを特徴とする
マルチタスク処理方法。(2) In a multitask processing method for processing a plurality of tasks by switching the plurality of tasks at predetermined time intervals, when each of the plurality of tasks is a task that accesses a common device, A multi-task processing method, wherein one task of a task having a lower priority level among tasks accesses one common device at a time.
【0011】(3) 前記複数のタスクのうち優先レベ
ルの低いタスクが、記憶手段に記憶された画像情報を読
み出すまたは前記記憶手段へ画像情報を記憶させるタス
クであるとき、前記記憶手段に記憶された画像情報また
は前記記憶手段へ記憶させる画像情報の全データを複数
回に分けて読み出すまたは記憶させることを特徴とする
(2)に記載のマルチタスク処理方法。(3) When the task having a lower priority level among the plurality of tasks is a task for reading out image information stored in the storage means or causing the storage means to store the image information, the task stored in the storage means is stored. The multi-task processing method according to (2), wherein the read image information or the entire data of the image information to be stored in the storage means is read out or stored in a plurality of times.
【0012】(4) 前記優先レベルの低いタスクの中
にスリープを入れ、該スリープが入れられたタスクがス
リープ中であるとき、スリープでないタスクを処理する
ことを特徴とする(2)または(3)に記載のマルチタ
スク処理方法。(4) A sleep is placed in the task with the lower priority level, and when the task in which the sleep is put is in a sleep state, a task that is not in a sleep state is processed (2) or (3). ).
【0013】(5) 前記複数のタスクのうち優先レベ
ルの低いタスクは、前記記憶手段に記憶された画像情報
を読み出すまたは前記記憶手段へ画像情報を記憶させる
第2タスクであるとき、前記第2タスクは、前記記憶手
段から読み出すまたは前記記憶手段へ記憶させる毎にス
リープを入れることを特徴とする(4)に記載のマルチ
タスク処理方法。(5) When the task with the lower priority level among the plurality of tasks is the second task for reading out the image information stored in the storage means or storing the image information in the storage means, The multitask processing method according to (4), wherein the task puts a sleep every time the task is read from the storage means or stored in the storage means.
【0014】(6) 前記スリープは、優先レベルに応
じて時間が変更されることを特徴とする(1)、
(4)、(5)のいずれか1つに記載のマルチタスク処
理方法。(6) In the sleep, the time is changed according to a priority level (1).
(4) The multitask processing method according to any one of (5).
【0015】(7) 前記複数のタスクのうち優先レベ
ルの高いタスクは、画像読取装置によって読み取られた
画像情報を記憶手段に記憶させる第1タスクであり、前
記複数のタスクのうち優先レベルの低いタスクは、前記
記憶手段に記憶された画像情報を読み出すまたは前記記
憶手段へ画像情報を記憶させる第2タスクであることを
特徴とする(1)〜(6)のいずれか1つに記載のマル
チタスク処理方法。(7) The task having a higher priority level among the plurality of tasks is a first task for storing the image information read by the image reading device in the storage means, and the task having a lower priority level among the plurality of tasks. The multitask according to any one of (1) to (6), wherein the task is a second task for reading out the image information stored in the storage unit or storing the image information in the storage unit. Task processing method.
【0016】(8) 複数のタスクを所定時間毎に切り
替えて各タスクを処理するマルチタスク処理装置におい
て、前記複数のタスクが、画像読取装置によって読み取
られた画像情報を記憶手段に記憶させる第1タスクと、
前記記憶手段に記憶された画像情報を読み出すまたは前
記記憶手段へ画像情報を記憶させる第2タスクであると
き、前記第2タスクに対して、前記記憶手段から読み出
す1回の読出データ量を変更させて、前記記憶手段から
読み出す画像情報の全データを複数回に分けて読み出す
ように設定する手段と、前記第2タスクに対して、前記
記憶手段から1回または複数回の読み出す毎に所定時間
だけスリープさせるように設定する手段と、を有し、処
理するタスクがスリープ中であるとき、スリープしてい
ないタスクを処理することを特徴とするマルチタスク処
理装置。(8) In a multitask processing apparatus for processing a plurality of tasks by switching the plurality of tasks at predetermined time intervals, the plurality of tasks store image information read by an image reading device in a storage unit. Tasks and
When the second task is to read out the image information stored in the storage means or to store the image information in the storage means, the second task is caused to change the amount of data read out once from the storage means. Means for setting all data of the image information read from the storage means to be read in a plurality of times; and for the second task, only once or a plurality of times of reading from the storage means for a predetermined time. Means for setting to sleep, wherein when the task to be processed is sleeping, the non-sleeping task is processed.
【0017】(9) 複数のタスクを所定時間毎に切り
替えて各タスクを処理するマルチタスク処理に用いら
れ、他のタスクと共通のデバイスに対してアクセスする
タスクを記録した記録媒体において、タスクの優先レベ
ルに応じて、共通のデバイスにアクセスする1回の時
間、および/または、アクセス後にスリープする時間を
決定し、前記決定された時間に応じて、共通デバイスに
アクセスする、および/または、アクセス後にスリープ
をすることを特徴とするタスクを記録した記録媒体。(9) A multi-task process in which a plurality of tasks are switched at predetermined time intervals to process each task, and a task for accessing a device common to other tasks is recorded on a recording medium. One time to access the common device and / or a time to sleep after the access is determined according to the priority level, and the common device is accessed and / or accessed according to the determined time. A recording medium on which a task characterized by sleeping later is recorded.
【0018】[0018]
【発明の実施の形態】以下、本発明の一実施の形態につ
いて、図に基づき説明する。図1はハードウェアの概略
構成図である。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a schematic configuration diagram of hardware.
【0019】画像読取装置10は、画像を光電変換など
により電気信号へと変換して、画像情報を読み取る装置
であり、例えば、スキャナーやリーダーや放射線画像読
取装置などが用いられる。この画像読取装置10は、画
像の読み取りのサンプリングピッチ、幅、高さ、1画素
当たりの情報量(ビット数)など種々変更、すなわち、
画像読取装置が読み取る単位時間当たりの読取データ量
を種々変更できる構成になっている。The image reading device 10 is a device that converts an image into an electric signal by photoelectric conversion or the like and reads image information, and for example, a scanner, a reader, a radiation image reading device, or the like is used. The image reading apparatus 10 can make various changes, such as a sampling pitch, a width, a height, and an information amount (bit number) per pixel, for reading an image.
The configuration is such that the amount of read data per unit time read by the image reading device can be variously changed.
【0020】読取制御部であるコントローラ11は、画
像読取装置10を制御する手段であり、画像読取装置1
0による画像の読取のサンプリングピッチ、幅、高さ、
1画素当たりの情報量(ビット数)など種々変更、すな
わち、画像読取装置が読み取る単位時間当たりの読取デ
ータ量を設定し、この設定に基づいて画像読取装置10
を制御する。このコントローラ11には第1記憶手段で
ある第1メモリ12が設けられている。この第1メモリ
12は画像読取装置10によって読み取られた画像情報
を一旦記憶する手段であり、画像読取装置10が読み取
った画像を読み取った順に(シェーディング補正など画
像処理を施した後)画像データとして逐次記憶する。な
お、コントローラ11自体で画像読取手段10を制御し
ても良いが、後述するように、コンピュータ20の指示
によってコントローラ11を介して画像読取手段10を
制御してもよい。A controller 11, which is a reading control unit, is a means for controlling the image reading device 10, and controls the image reading device 1.
The sampling pitch, width, height,
Various changes such as the information amount (bit number) per pixel, that is, the amount of read data per unit time read by the image reading device are set, and the image reading device 10 is set based on this setting.
Control. The controller 11 is provided with a first memory 12 as a first storage means. The first memory 12 is a means for temporarily storing image information read by the image reading device 10, and as image data in the order in which the images read by the image reading device 10 are read (after image processing such as shading correction is performed). Store sequentially. The image reading unit 10 may be controlled by the controller 11 itself, but may be controlled by the computer 20 via the controller 11 according to an instruction from the computer 20 as described later.
【0021】コンピュータ20は、ワークステーション
やパーソナルコンピュータであり、所定のプログラム
(タスク)に基づいて、コンピュータ20に接続されて
いる種々のデバイスにデータの授受を行い、また、種々
のデバイスを制御する手段である。このコンピュータ2
0には、データの授受や制御を行うために、SCSIボ
ード21、Etheretボード23、グラフィックボ
ード24などの各種インターフェースを内蔵している。
また、このコンピュータ20には、種々のデバイス間で
データの授受を行う際に、データを一時貯留するメイン
メモリ26が設けられており、コンピュータ20内の各
構成は、中央演算処理装置であるCPU26によって所
定のタスクによって制御される。The computer 20 is a workstation or a personal computer, and sends and receives data to and from various devices connected to the computer 20 based on a predetermined program (task) and controls the various devices. Means. This computer 2
0 incorporates various interfaces, such as a SCSI board 21, an Ethernet board 23, and a graphic board 24, in order to transfer and control data.
Further, the computer 20 is provided with a main memory 26 for temporarily storing data when data is exchanged between various devices. Each component in the computer 20 includes a CPU 26 serving as a central processing unit. Is controlled by a predetermined task.
【0022】SCSIボード21には、バスを介して上
述したコントローラ11、コンピュータ20に内蔵(外
付けでもよい)される記憶手段としてのハードディスク
22、外部記憶手段としてのMO(光磁気ディスク)装
置33などが接続されている。コントローラ11は、上
述したように、画像読取装置10を制御する手段であ
る、画像読取装置10によって読み取られた画像データ
を逐次記憶させる第1メモリ12を有している。また、
ハードディスク22、MO装置33は、種々のプログラ
ム(タスク)や画像データなどのデータを記憶する手段
である。これらコントローラ11、ハードディスク2
2、MO装置33は、SCSIボード21経由で、例え
ば、10MB/sの転送レートによってデータの授受
(転送)がなされる。The SCSI board 21 has the above-described controller 11 via a bus, a hard disk 22 as a storage means built in the computer 20 (may be externally attached), and an MO (magneto-optical disk) device 33 as an external storage means. Etc. are connected. As described above, the controller 11 has the first memory 12, which is a unit for controlling the image reading device 10, and stores the image data read by the image reading device 10 sequentially. Also,
The hard disk 22 and the MO device 33 are means for storing various programs (tasks) and data such as image data. These controller 11 and hard disk 2
2. The MO device 33 exchanges (transfers) data via the SCSI board 21 at a transfer rate of, for example, 10 MB / s.
【0023】また、このコンピュータ20は、Ethe
netボード23によって、ネットワーク(例えば、L
AN)に接続されており、ホストコンピュータ30やプ
リンタ32などが接続されている。ホストコンピュータ
30は、画像データなどを記憶する手段であり、また、
プリンタ32は、画像データなどをプリントアウトする
手段である。また、グラフィックボード24には、画像
読取手段10によって読み取った画像データなどを表示
する表示手段であるCRT31が接続されている。Further, the computer 20 is provided with an Ethe
The network (for example, L
AN), and a host computer 30, a printer 32, and the like. The host computer 30 is means for storing image data and the like.
The printer 32 is means for printing out image data and the like. The graphic board 24 is connected to a CRT 31 which is a display unit for displaying image data read by the image reading unit 10 and the like.
【0024】このコンピュータ20は、マルチタスク処
理に対応しているOS(オペレーティングシステム)に
よって、複数のタスクを処理するものであり、このタス
クに基づいて種々のデバイスを制御するものである。マ
ルチタスク処理として、このOSが複数のタスクを管理
し、複数のタスクを所定時間毎に切り替えて各タスクを
処理する。また、このOSは、タスクがスリープ(プロ
セスの実行を一時休止)状態であるとき、そのタスクを
スキップして、次のタスクの処理を行うようになってい
る。The computer 20 processes a plurality of tasks using an OS (operating system) that supports multitask processing, and controls various devices based on the tasks. As multitask processing, the OS manages a plurality of tasks, switches the plurality of tasks at predetermined time intervals, and processes each task. When a task is in a sleep state (temporarily suspends execution of a process), the OS skips that task and processes the next task.
【0025】次の、各種のタスクについて説明するが、
以下の説明では、画像読取装置10によって読み取った
画像データ(第1メモリ12に記憶されている)をハー
ドディスク22に記憶させるタスクと、ハードディスク
22に記憶されている画像データ(画像読取装置10に
よって読み取られた画像データ)を出力装置(プリンタ
32やMO装置33やホスト30など)に出力するタス
クの2つについて説明する。Next, various tasks will be described.
In the following description, the task of storing the image data (stored in the first memory 12) read by the image reading device 10 in the hard disk 22 and the image data (read by the image reading device 10) stored in the hard disk 22 Two tasks for outputting the output image data) to an output device (the printer 32, the MO device 33, the host 30, etc.) will be described.
【0026】まず、画像読取装置10によって読み取っ
た画像データの読み出しハードディスク22に記憶させ
るタスクについて、フローチャート図である図2に基づ
いて説明する。なお、図2の例は、画像読取装置10に
よって読み取られ第1メモリ12に逐次記憶された画像
データを読み出し、ハードディスク22に記憶させる
(すなわち、画像読取装置によって読み取った画像デー
タを第1メモリ12からハードディスク22に転送させ
る)とともに、CRT31に表示させる転送する際のフ
ローチャートである。First, the task of storing image data read by the image reading device 10 in the read hard disk 22 will be described with reference to FIG. 2 which is a flowchart. In the example of FIG. 2, the image data read by the image reading device 10 and sequentially stored in the first memory 12 is read and stored in the hard disk 22 (that is, the image data read by the image reading device is stored in the first memory 12). Is transferred to the hard disk 22) and displayed on the CRT 31.
【0027】まず、画像読取装置10によって画像を読
み取るに際して、読取に先立ち、図示しないコンピュー
タ20外部から情報を入力するキーボードなどの外部入
力手段により、画像読取装置10による画像の読取のサ
ンプリングピッチ、幅、高さ、1画素当たりの情報量
(ビット数)など(画像読取装置が読み取る単位時間当
たりの読取データ量)の読取情報を設定する(S1)。
コンピュータ20は、この読取情報に応じて、1回の読
出データ量(転送データ量と同意である)を設定する
(S2)。なお、この設定は、サンプリングピッチ、
幅、高さ、1画素当たりの情報量が大きい程(すなわ
ち、単位時間当たりの読取データ量が多い程)、1回の
読出データ量を多くし、単位時間当たりの読取データ量
が少ない程1回の読出データ量を少なくなるように設定
する。一方、設定された読取情報は、SCSIボード2
1を介してコントローラ11へ伝達され、この読取情報
に基づいてコントローラ11は画像読取装置10を制御
して、画像の読取を開始する。First, when an image is read by the image reading device 10, the sampling pitch and width of the image reading by the image reading device 10 are read by external input means such as a keyboard for inputting information from outside the computer 20 (not shown) prior to reading. Then, read information such as the height, the amount of information per pixel (the number of bits), and the like (the amount of read data per unit time read by the image reading device) is set (S1).
The computer 20 sets the amount of read data at one time (which is the same as the amount of transfer data) according to the read information (S2). This setting depends on the sampling pitch,
The width, height, and the larger the amount of information per pixel (ie, the larger the amount of read data per unit time), the larger the amount of read data per operation, and the smaller the amount of read data per unit time, the more It is set so that the amount of read data per time is reduced. On the other hand, the set read information is stored in the SCSI board 2
1, the controller 11 controls the image reading apparatus 10 based on the read information, and starts reading an image.
【0028】画像の読取が開始されると、設定された読
取データ量に基づいて画像読取装置10によって読み取
られた画像データは、読み取った順に逐次第1メモリ1
2に記憶される。この第1メモリ12に記憶された画像
データを、S2において設定された1回の読出データ量
に基づいて、読み出す(S3)。すなわち、画像読取装
置10によって読み取られる1枚の画像の全画像データ
が数十MB(メガバイト)であるが、これを一旦第1メ
モリ12に全てを記憶させ、その後に第1メモリ12か
ら画像データを読み出すのではなく、画像読取装置10
によって読み取られた順に第1メモリ12に逐次記憶さ
れた画像データを、数百KB〜数十KB(S2におい
て、読取情報に応じて設定される)のデータのかたまり
として読み出し、これを複数回繰り返して、1枚の全画
像データを読み出す。When the image reading is started, the image data read by the image reading apparatus 10 based on the set read data amount is sequentially stored in one memory 1 in the reading order.
2 is stored. The image data stored in the first memory 12 is read based on the one-time read data amount set in S2 (S3). That is, although the entire image data of one image read by the image reading device 10 is several tens MB (megabytes), the entire image data is temporarily stored in the first memory 12, and then the image data is read from the first memory 12. Instead of reading out the image
The image data sequentially stored in the first memory 12 in the order in which they were read is read out as a block of data of several hundred KB to several tens KB (set in S2 according to the read information), and this is repeated a plurality of times. Read all the image data of one sheet.
【0029】読み出された1回の読出データ量分の画像
データは、一旦メインメモリ25に記憶させた後、SC
SIボード21を介して、ハードディスク22に書き込
みを行う(S4)。また、メインメモリ25に記憶され
た画像データを、ハードディスク22に記憶しCRT3
1に表示させるための画像処理を施して間引き画像を作
成し(S5)、CRT31に画像表示を行う。The read image data for one read data amount is temporarily stored in the main memory 25, and then stored in the SC.
Writing is performed on the hard disk 22 via the SI board 21 (S4). The image data stored in the main memory 25 is stored in the hard disk 22 and stored in the CRT 3.
1 to perform image processing for display on the CRT 31 (S5), and display the image on the CRT 31.
【0030】そして、画像読取装置10によって読み取
られる画像の全画像データが読み出しが終わっていなけ
れば(S7)、S3のに戻る。すなわち、1枚の全画像
データを読み出すまで、画像読取装置10によって読み
取られた順に第1メモリ12に逐次記憶された画像デー
タを、数百KB〜数十KB(S2において、読取情報に
応じて設定される)のデータのかたまりとして読み出
し、これを複数回繰り返す。全読出が終了すると、メイ
ンメモリ25に記憶された全画像データ(詳細には、S
5において間引き画像のデータ)を、コントラスト調整
のための階調処理のパラメータを求め、画像処理を施し
(S8)、コントラスト変換をして、CRT31に再表
示する(S9)。If all the image data of the image read by the image reading device 10 has not been read (S7), the process returns to S3. That is, the image data sequentially stored in the first memory 12 in the order of being read by the image reading device 10 is read from several hundred KB to several tens KB (in S2, according to the read information, until all the image data of one sheet is read). (Set) is read out as a block of data, and this is repeated a plurality of times. When all reading is completed, all image data stored in the main memory 25 (specifically, S
In step 5, the thinned image data) is subjected to image processing (S8) by obtaining the parameters of gradation processing for contrast adjustment, converted into a contrast, and displayed again on the CRT 31 (S9).
【0031】このタスクによると、コントローラ11に
よって読み取られ第1メモリ12に記憶された画像デー
タを第1メモリ12から読み出す際に、画像読取装置1
0が読み取る単位時間当たりの読取データ量に応じて、
第1メモリ12から読み出す読出データ量を設定し(S
2)、この読出データ量に基づいて第1メモリ12から
画像データを読み出すので、画像読取装置10により読
み取られる読取データ量に対して読出のデータ量が不足
あるいは過多を生じることがなく、読取データ量が揃う
まで読み出しを待つ必要がなく、また、第1メモリ12
を大きな容量のメモリとする必要がなく、画像読取装置
10による読取を中断するなどの処置の必要がない。According to this task, when the image data read by the controller 11 and stored in the first memory 12 is read from the first memory 12, the image reading device 1
0 corresponds to the read data amount per unit time to be read,
The amount of read data to be read from the first memory 12 is set (S
2) Since the image data is read from the first memory 12 based on the read data amount, the read data amount does not become insufficient or excessive with respect to the read data amount read by the image reading device 10, and the read data amount does not occur. There is no need to wait for reading until the amount is equal.
Does not need to be a large-capacity memory, and there is no need to take measures such as interrupting reading by the image reading device 10.
【0032】次に、ハードディスク22に記憶されてい
る画像データを出力装置(プリンタ32やMO装置33
やホスト30など)に出力するタスクについて、フロー
チャート図である図3に基づいて説明する。なお、この
タスクは、上述した画像読取装置10によって読み取っ
た画像データの読み出しハードディスク22に記憶させ
るタスクより、優先度(優先レベル)の低い、すなわ
ち、上述のタスクよりリアルタイム性が要求されないタ
スクである。これは、画像読取装置10によって読み出
された画像データは第1メモリ12に、読み出された順
に逐次記憶されるので、第1メモリ12に記憶されてい
る時間を短縮させ第1メモリ12の容量を小さくするた
めに、上述のタスクの優先度(優先レベル)を上げる必
要があるためである。特に、医療用の画像読取装置10
としてX線画像読取装置などを用いた場合、患者の撮影
時間を効率化、あるいは、患者に撮影を素早く終了させ
るために、上述のタスクのリアルタイム性が要求され
る。また、このようなタスクは、情報記録媒体に記憶さ
れ、コンピュータ20によって処理される。Next, the image data stored in the hard disk 22 is output to an output device (the printer 32 or the MO device 33).
And the task output to the host 30) will be described with reference to FIG. 3 which is a flowchart. This task has a lower priority (priority level) than the task of storing the image data read by the image reading device 10 on the read hard disk 22, that is, a task that does not require real-time performance than the above-described task. . This is because the image data read by the image reading device 10 is sequentially stored in the first memory 12 in the reading order, so that the time stored in the first memory 12 is shortened, and the first memory 12 This is because it is necessary to increase the priority (priority level) of the above-mentioned task in order to reduce the capacity. In particular, the medical image reading apparatus 10
When an X-ray image reading device or the like is used, the above-described task needs to be performed in real time in order to make the imaging time of the patient more efficient or to quickly end the imaging by the patient. Such a task is stored in the information recording medium and processed by the computer 20.
【0033】まず、出力装置に画像出力するに際して、
出力に先立ち、図示しないコンピュータ20外部から情
報を入力するキーボードなどの外部入力手段により、画
像出力する画像データ(画像ID)の指定、幅、高さな
どの出力情報を設定する(S11)。次に、コンピュー
タ20で処理されているタスクを調査して、他のタスク
がコンピュータ20で処理されているならば、他のタス
クと本タスクとの優先レベル(優先度であり、リアルタ
イム性)に基づいて、ハードディスク22から読み出す
1回の読出データ量と、スリープ時間を設定する。本タ
スクが最も優先レベルの高いタスクであれば、読出デー
タ量をマルチタスク処理による切替時間に相当するデー
タ量とし、スリープ時間を0(零)とする。また、本タ
スクが優先レベルが低いタスクであれば、読出データ量
を少なくし、かつ、スリープ時間を長く設定する。First, when outputting an image to an output device,
Prior to output, output information such as designation of image data (image ID) to be output as an image, width and height is set by an external input means such as a keyboard for inputting information from outside the computer 20 (not shown) (S11). Next, the task being processed by the computer 20 is checked, and if another task is being processed by the computer 20, the priority level (priority, real-time property) between the other task and this task is determined. Based on this, the amount of data read from the hard disk 22 at one time and the sleep time are set. If this task has the highest priority level, the read data amount is set to the data amount corresponding to the switching time by the multitask process, and the sleep time is set to 0 (zero). If this task is a task with a low priority level, the read data amount is reduced and the sleep time is set long.
【0034】なお、この優先レベルは、予めタスクに付
与されており、本実施の形態では、画像読取装置10か
らハードディスク22へ画像データを転送するタスクを
最も優先レベルの高いタスクとし、次に、プリンタ32
への出力するタスクと続き、ホスト30への出力のタス
クとMOへの出力のタスクが優先レベルの低いタスクと
なるようにしている。また、このとき決定される読出デ
ータ量は、マルチタスク処理によってタスクが切り替え
られる時間内に読み出しが完了するデータ量(転送速度
との兼ね合いで決定され、本実施の形態では、SCSI
ボードが10MB/sであり、切替時間が100msで
あるので、最大で1MBの読出データ量とする)となる
ように設定される。Note that this priority level is assigned to the task in advance, and in the present embodiment, the task of transferring image data from the image reading device 10 to the hard disk 22 is set as the task with the highest priority level. Printer 32
The task of outputting to the host 30 and the task of outputting to the MO are tasks having a low priority level. The read data amount determined at this time is determined based on the amount of data that is completely read out within a time period during which the task is switched by the multitask processing (determined in consideration of the transfer speed.
Since the board is 10 MB / s and the switching time is 100 ms, the maximum read data amount is set to 1 MB).
【0035】そして、設定された読出データ量に基づい
て、ハードディスク22に記憶されている画像データ
(S11で設定された画像IDの画像データ)をメイン
メモリ25へ読み出す(S13)。なお、ハードディス
ク22に記憶されている1枚の画像の全画像データは数
十MB(メガバイト)であるが、画像データを、数百K
B〜数MB(S12において、決定された読出データ
量)のデータのかたまりとして読み出し、これを複数回
繰り返して、1枚の全画像データを読み出す。これによ
り、画像データを一気に読み出すことがなく、ハードデ
ィスク22を1枚の画像を読み出す間じゅうこのタスク
が占有することがない。すなわち、図5(c)に示され
る如く1秒間も占有することはない。Then, based on the set read data amount, image data (image data of the image ID set in S11) stored in the hard disk 22 is read out to the main memory 25 (S13). The entire image data of one image stored on the hard disk 22 is several tens of megabytes (MB).
Data is read out as a block of data of B to several MBs (the read data amount determined in S12), and this is repeated a plurality of times to read out all the image data of one sheet. As a result, the image data is not read at a stretch, and this task is not occupied while reading one image from the hard disk 22. That is, it does not occupy for one second as shown in FIG.
【0036】1回の読出データ量分だけハードディスク
22からメインメモリ25へ画像を読み出す(S13)
と、全画像データが読み出しが終わっていなければ(S
14)、S12で決定されたスリープ時間だけ本タスク
をスリープさせる(S15)。そして、スリープ時間経
過すると、S13に戻り、引き続いて画像データの読出
を行う。このように、本実施の形態では、優先レベルの
低いタスクに対してはスリープが入るので、スリープ中
のタスクに対しては、実行をスキップするため、その分
優先レベルの高いタスクを処理することができる。An image is read from the hard disk 22 to the main memory 25 by the amount of one read data (S13).
And if all image data has not been read (S
14) The task is put to sleep for the sleep time determined in S12 (S15). Then, when the sleep time has elapsed, the process returns to S13, and the image data is subsequently read. As described above, in the present embodiment, since a sleep is entered for a task with a low priority level, a task with a high priority level is processed correspondingly in order to skip execution of a task in sleep. Can be.
【0037】S14において全画像データの読み出しが
終了すると、メインメモリ25に読み出された画像デー
タを必要に応じて出力用画像処理(例えば、イコライゼ
ーション処理、周波数処理、階調処理、拡大/縮小処
理)を施し(S16)、各出力装置へ出力するS17。When the reading of all the image data is completed in S14, the image data read into the main memory 25 is subjected to image processing for output (for example, equalization processing, frequency processing, gradation processing, enlargement / reduction processing) as necessary. ) (S16), and output to each output device S17.
【0038】次に、このようなタスクを複数処理する場
合(OSによる複数のタスクの管理)について、マルチ
タスク処理時のタイムチャート図である図4に基づいて
説明する。本説明においては、図2で示したような画像
読取装置10によって読み取られた画像データをハード
ディスク22に記憶させるタスク(以下、画像読取タス
クともいう)、図3で示したようなハードディスク22
に記憶された画像データをプリンタ32に出力させるタ
スク(以下、プリンタ出力タスクともいう)、図3で示
したようなハードディスク22に記憶された画像データ
をホスト30へ出力させるタスク(以下、ホスト出力タ
スクともいう)、および、図3で示したようなハードデ
ィスク22に記憶された画像データをMO装置33へ出
力させるタスク(以下、MO出力タスクともいう)の4
つのタスクをマルチタスク処理する場合について説明す
る。Next, a case where a plurality of such tasks are processed (management of a plurality of tasks by the OS) will be described with reference to FIG. 4 which is a time chart at the time of multitask processing. In the present description, a task of storing image data read by the image reading apparatus 10 as shown in FIG. 2 in the hard disk 22 (hereinafter, also referred to as an image reading task), and the hard disk 22 as shown in FIG.
A task for outputting image data stored in the hard disk 22 to the host 30 (hereinafter, also referred to as a printer output task) as shown in FIG. 4) and a task (hereinafter also referred to as an MO output task) for outputting image data stored in the hard disk 22 to the MO device 33 as shown in FIG.
A case in which one task is multitasked will be described.
【0039】なお、優先レベルは、画像読取タスク、プ
リンタ出力タスク、ホスト出力タスクの順で低くなり、
MO出力タスクはホスト出力タスクと同じ優先レベルで
あるとする。また、この場合、プリンタ出力タスクに対
してS12において決定される1回の読出データ量は1
MBでスリープ時間を300ms、ホスト出力タスクお
よびMO出力タスクに対してS12において決定される
1回の読出データ量は500KBでスリープ時間を40
0msとする。また、本実施の形態では、OSによるタ
スクの切替時間は100ms毎であるとし、画像読取タ
スクよるハードディスク22へ記憶させるデータ量は、
(画像読取装置10が読み取る単位時間当たりの読取デ
ータ量に応じて決められるが)、その切替時間内には終
了する大きさのデータ量である。Note that the priority level becomes lower in the order of the image reading task, the printer output task, and the host output task.
It is assumed that the MO output task has the same priority level as the host output task. Further, in this case, the amount of data read at one time determined in S12 for the printer output task is 1
The sleep time is 300 ms in MB, and the read data amount determined in S12 for the host output task and MO output task is 500 KB and the sleep time is 40
0 ms. In the present embodiment, the task switching time by the OS is assumed to be every 100 ms, and the amount of data stored in the hard disk 22 by the image reading task is:
(Depending on the amount of read data per unit time read by the image reading device 10), the data amount has a size that ends within the switching time.
【0040】まず、図4に示すように、OSは、画像読
取タスクの処理を開始し、100ms経過後、画像読取
タスクの区切り(例えば、図2におけるいずれかのステ
ップが終了した時点)で、画像読取タスクからプリンタ
出力タスクへと切り替える。そして、OSは、プリンタ
出力タスクを(S12で設定された読出データ量が1M
B、SCSIボード21の転送レートが10MB/s)
100msの間処理し、このときプリンタ出力タスクに
よりハードディスク22から画像データを読み出す。そ
して、このプリンタ出力のタスクはスリープ(スリープ
時間が300ms)に入る。First, as shown in FIG. 4, the OS starts the processing of the image reading task, and after 100 ms has elapsed, at the end of the image reading task (for example, when any step in FIG. 2 ends), Switch from the image reading task to the printer output task. Then, the OS executes the printer output task (the read data amount set in S12 is 1M).
B, the transfer rate of the SCSI board 21 is 10 MB / s)
Processing is performed for 100 ms. At this time, image data is read from the hard disk 22 by the printer output task. Then, this printer output task enters sleep (sleep time 300 ms).
【0041】一方、OSは、プリンタ出力タスクが処理
を開始してから100ms経過後、すなわち、1回の画
像データの読み出しが終了すると、ホスト出力タスクの
処理を始める。ここで、ホスト出力タスクは、1回の読
み出しデータ量が500KBであるので、50ms間ハ
ードディスク22から画像データを読み出し、その後こ
のホスト出力タスクはスリープ(スリープ時間400m
s)に入る。そのため、OSは、ホスト出力タスクを5
0ms間だけ処理を施し、その後本来処理するホスト出
力タスクがスリープに入ったのでこのタスクをスキップ
し、次のタスクであるMO出力タスクの処理を開始す
る。ここで、このMO出力タスクは、上述のホスト出力
タスクと同様に、50ms間ハードディスク22から画
像データを読み出し、スリープに入る。したがって、O
Sは、このMO出力タスクを50msだけ処理をし、次
のタスクである画像読取タスクへと切り替える。On the other hand, the OS starts the processing of the host output task 100 ms after the start of the processing of the printer output task, that is, when one reading of the image data is completed. Here, the host output task reads image data from the hard disk 22 for 50 ms because the amount of data read at one time is 500 KB, and then the host output task sleeps (sleep time 400 m).
Enter s). Therefore, the OS sets the host output task to 5
The processing is performed only for 0 ms, and then the host output task to be originally processed has entered sleep. Therefore, this task is skipped, and the processing of the next task, the MO output task, is started. Here, the MO output task reads image data from the hard disk 22 for 50 ms and goes to sleep similarly to the host output task described above. Therefore, O
S processes this MO output task for 50 ms and switches to the next task, the image reading task.
【0042】OSは、画像読取タスクを100ms間処
理し、次のプリンタ出力タスクへと切り替える。ところ
が、このときプリンタ出力タスクは、スリープ中である
ので、スキップされ、次のタスクであるホスト出力タス
クへ切り替える。さらに、この場合も、ホスト出力タス
クがスリープ中であるのでスキップされ、次のタスクで
あるMO出力タスクへ切り替える。さらに、この場合
も、MO出力タスクがスリープ中であるのでスキップさ
れ、次のタスクである画像読取タスクへと切り替える。
すなわち、OSは、画像タスクを100ms処理した
後、スリープ中であるプリンタ出力タスク、ホスト出力
タスク、MO出力タスクをスキップし、引き続いて画像
読取タスクを100ms処理する。The OS processes the image reading task for 100 ms and switches to the next printer output task. However, at this time, since the printer output task is sleeping, the printer output task is skipped and switched to the next task, the host output task. Further, also in this case, since the host output task is sleeping, it is skipped, and is switched to the next task, the MO output task. Further, also in this case, since the MO output task is sleeping, the task is skipped, and the task is switched to the next task, the image reading task.
That is, the OS processes the image task for 100 ms, then skips the sleeping printer output task, host output task, and MO output task, and subsequently processes the image reading task for 100 ms.
【0043】そして、OSは、この引き続いて処理する
画像読取タスクを100ms間処理した後、次のタスク
であるプリンタ出力タスクを処理する。このとき、プリ
ンタ出力タスクは、スリープ時間(300ms)経過
し、スリープ状態が解除されているので、OSにより1
00ms間処理される(この処理後は、再びスリープに
入る)。そして、100ms経過後、次のホスト出力タ
スクへと切り替わるが、この時点においても、ホスト出
力タスクはスリープ中であるのでスキップし、同様に、
MO出力タスクもスキップし、画像読取タスクが処理さ
れる。すなわち、OSは、引き続いて処理する画像読取
タスクを100ms間処理した後、プリンタ出力タスク
を100ms間処理し、再び、画像読取タスクを処理す
る。Then, the OS processes the subsequent image reading task for 100 ms, and then processes the next task, the printer output task. At this time, since the sleep time (300 ms) has elapsed and the sleep state has been released, the printer output task executes 1
The process is performed for 00 ms (after this process, the process goes to sleep again). Then, after a lapse of 100 ms, the processing is switched to the next host output task. At this time, the host output task is in a sleep state and is skipped.
The MO output task is also skipped, and the image reading task is processed. That is, the OS processes the image reading task to be processed subsequently for 100 ms, then processes the printer output task for 100 ms, and processes the image reading task again.
【0044】このように、本実施の形態では、共通のデ
バイス(ハードディスク22)を使用する複数のタスク
のうち、優先レベルの低いタスクにスリープを入れおよ
び/またはデバイスにアクセスする時間を短縮すること
により、優先レベルの高いタスクに対してその要求(リ
アルタイム性)を満たすことができる。特に、タスク優
先制御可能なマルチタスク処理においては、本来優先度
の設定によりタスクの処理回数を増やすことができる
が、複数のタスクのうち1つでも大容量のデータの読み
出し/書き込みなどのアクセスを行う場合は、この処理
回数を増やす方法ではリアルタイム性を確保することが
できないが、本実施の形態によれば、これを容易にする
ことができる。As described above, in the present embodiment, of a plurality of tasks using a common device (hard disk 22), a task having a low priority level is put to sleep and / or the time for accessing the device is reduced. Accordingly, the request (real-time property) for a task with a high priority level can be satisfied. In particular, in multitask processing in which task priority control is possible, the number of times of processing of a task can be increased by setting the priority. However, even for one of a plurality of tasks, access such as reading / writing of a large amount of data is restricted. In the case of performing the processing, the method of increasing the number of times of processing cannot secure the real-time property, but according to the present embodiment, this can be facilitated.
【0045】特に、画像読取装置10によって読み取ら
れた画像データを記憶手段(本実施の形態ではハードデ
ィスク22)に記憶させる第1タスク(本実施の形態で
は図2におけるタスク)、記憶手段に記憶された画像デ
ータを読み出す第2タスクとした場合、第1タスクを優
先レベルの高いタスクとして、第2タスクに対してスリ
ープを入れおよび/または記憶手段にアクセスする時間
を短縮(読み出すデータ量を少なくさせる)することに
より、画像読取装置10の第1メモリ12の容量を少な
くすることができる。In particular, the first task (the task in FIG. 2 in the present embodiment) for storing the image data read by the image reading device 10 in the storage means (the hard disk 22 in the present embodiment), and the first task is stored in the storage means. When the second task for reading out the image data is a second task, the first task is set as a task with a high priority level, and the second task is put to sleep and / or the time for accessing the storage unit is shortened (the data amount to be read is reduced. 2), the capacity of the first memory 12 of the image reading apparatus 10 can be reduced.
【0046】なお、本実施の形態では、優先レベルの低
いタスク(図3におけるタスク)をハードディスク22
からの読み出しについて説明したが、これに限られず、
ハードディスク22への書き込み(例えば、ホスト30
やMO装置33から画像データをハードディスク22へ
書き込む)などであってもよい。In the present embodiment, a task with a low priority level (a task in FIG. 3) is
Has been described, but is not limited to this.
Writing to the hard disk 22 (for example, the host 30
Or writing image data from the MO device 33 to the hard disk 22).
【0047】また、本実施の形態では、全読出を終了す
るまでS12で決定した読出データ量およびスリープ時
間を維持するようにしたが、これに限られず、S15の
戻りをS12にして、毎回の他のタスクと本タスクとの
優先レベルに応じて読出データ量とスリープ時間を決定
するようにしてもよい。また、他のタスクを監視を行
い、他のタスクが開始(起動)されたときに、S12に
戻り、起動されたタスクと本タスクとの優先レベルに応
じて1回の読出データ量、スリープ時間を決定するよう
にしてもよい。Further, in the present embodiment, the read data amount and the sleep time determined in S12 are maintained until all readings are completed. However, the present invention is not limited to this. The read data amount and the sleep time may be determined according to the priority level of the other task and the present task. In addition, the other task is monitored, and when the other task is started (started), the process returns to S12, and the read data amount and the sleep time per one-time operation according to the priority level of the started task and the present task. May be determined.
【0048】また、本実施の形態では、共通のデバイス
としてハードディスク22の例を示したが、これに限ら
れることなく、1つのタスクが占有するようなデバイス
であればよい。In this embodiment, the hard disk 22 has been described as an example of a common device. However, the present invention is not limited to this, and any device occupied by one task may be used.
【0049】[0049]
【発明の効果】以上詳述したように、本発明によると、
複数のタスクを所定時間毎に切り替えて各タスクを処理
するマルチタスク処理において、複数のタスクが共通の
デバイスに対してアクセスするタスクであるとき、優先
レベルの低いタスクの中にスリープを入れるおよび/ま
たは共通のデバイスにアクセスする1回の時間を短縮す
ることにより、リアルタイム性が要求される優先レベル
の高いタスクに対して、その要求を満足させることがで
きる。As described in detail above, according to the present invention,
In multitask processing in which a plurality of tasks are switched at predetermined time intervals to process each task, when a plurality of tasks are tasks that access a common device, sleep is set to a task with a lower priority level and / or Alternatively, by shortening one time for accessing a common device, it is possible to satisfy a request with a high priority level that requires real-time properties.
【図1】ハードウェアの概略構成図である。FIG. 1 is a schematic configuration diagram of hardware.
【図2】画像読取装置によって読み取った画像データを
ハードディスクに記憶させるタスクのフローチャートで
ある。FIG. 2 is a flowchart of a task of storing image data read by an image reading device on a hard disk.
【図3】ハードディスクに記憶されている画像データを
出力装置に出力するタスクのフローチャート図である。FIG. 3 is a flowchart illustrating a task of outputting image data stored in a hard disk to an output device.
【図4】本発明のマルチタスク処理を模式的に示したタ
イムチャート図である。FIG. 4 is a time chart schematically showing the multitask processing of the present invention.
【図5】従来のマルチタスク処理を模式的に示した図で
ある。FIG. 5 is a diagram schematically showing a conventional multitask process.
10 画像読取装置 11 コントローラ 12 第1メモリ(第1記憶手段) 20 コンピュータ 22 ハードディスク 31 CRT 30 ホストコンピュータ 32 プリンタ 33 MO装置 DESCRIPTION OF SYMBOLS 10 Image reading apparatus 11 Controller 12 1st memory (1st storage means) 20 Computer 22 Hard disk 31 CRT 30 Host computer 32 Printer 33 MO device
Claims (9)
各タスクを処理するマルチタスク処理方法において、 前記複数のタスク各々が、共通のデバイスに対してアク
セスするタスクであるとき、前記複数のタスクのうち優
先レベルの低いタスクの中にスリープを入れ、 該スリープが入れられたタスクがスリープ中であると
き、スリープでないタスクを処理することを特徴とする
マルチタスク処理方法。1. A multi-task processing method for processing a plurality of tasks by switching a plurality of tasks at predetermined time intervals, wherein each of the plurality of tasks is a task for accessing a common device. A sleep task is placed in a task having a lower priority level, and a non-sleep task is processed when the sleep task is sleeping.
各タスクを処理するマルチタスク処理方法において、 前記複数のタスク各々が、共通のデバイスに対してアク
セスするタスクであるとき、前記複数のタスクのうち優
先レベルの低いタスクが前記共通のデバイスに対してア
クセスする1回の時間を短縮することを特徴とするマル
チタスク処理方法。2. A multi-task processing method for processing a plurality of tasks by switching a plurality of tasks at predetermined time intervals, wherein each of the plurality of tasks is a task for accessing a common device. A multi-task processing method, wherein a task having a lower priority level among the above-mentioned tasks reduces one time for accessing the common device.
いタスクが、記憶手段に記憶された画像情報を読み出す
または前記記憶手段へ画像情報を記憶させるタスクであ
るとき、前記記憶手段に記憶された画像情報または前記
記憶手段へ記憶させる画像情報の全データを複数回に分
けて読み出すまたは記憶させることを特徴とする請求項
2に記載のマルチタスク処理方法。3. When a task with a lower priority level among the plurality of tasks is a task of reading image information stored in a storage unit or storing image information in the storage unit, the task stored in the storage unit is stored. 3. The multitask processing method according to claim 2, wherein the image information or all data of the image information to be stored in the storage unit is read or stored in a plurality of times.
ープを入れ、該スリープが入れられたタスクがスリープ
中であるとき、スリープでないタスクを処理することを
特徴とする請求項2または3に記載のマルチタスク処理
方法。4. The task according to claim 2, wherein a sleep is put in the task with the lower priority level, and a task that is not in a sleep state is processed when the task in which the sleep is put is in a sleep state. Multitasking processing method.
いタスクは、前記記憶手段に記憶された画像情報を読み
出すまたは前記記憶手段へ画像情報を記憶させる第2タ
スクであるとき、前記第2タスクは、前記記憶手段から
読み出すまたは前記記憶手段へ記憶させる毎にスリープ
を入れることを特徴とする請求項4に記載のマルチタス
ク処理方法。5. When the task having a lower priority level among the plurality of tasks is a second task for reading image information stored in the storage means or storing image information in the storage means, the second task 5. The multitask processing method according to claim 4, wherein a sleep mode is set every time data is read from said storage means or stored in said storage means.
間が変更されることを特徴とする請求項1、4、5のい
ずれか1つに記載のマルチタスク処理方法。6. The multitask processing method according to claim 1, wherein a time of the sleep is changed according to a priority level.
いタスクは、画像読取装置によって読み取られた画像情
報を記憶手段に記憶させる第1タスクであり、前記複数
のタスクのうち優先レベルの低いタスクは、前記記憶手
段に記憶された画像情報を読み出すまたは前記記憶手段
へ画像情報を記憶させる第2タスクであることを特徴と
する請求項1〜6のいずれか1つに記載のマルチタスク
処理方法。7. A task having a higher priority level among the plurality of tasks is a first task for storing image information read by an image reading device in a storage unit, and a task having a lower priority level among the plurality of tasks. 7. The multi-task processing method according to claim 1, wherein the second task is a second task for reading image information stored in the storage unit or storing image information in the storage unit. .
各タスクを処理するマルチタスク処理装置において、 前記複数のタスクが、画像読取装置によって読み取られ
た画像情報を記憶手段に記憶させる第1タスクと、前記
記憶手段に記憶された画像情報を読み出すまたは前記記
憶手段へ画像情報を記憶させる第2タスクであるとき、 前記第2タスクに対して、前記記憶手段から読み出す1
回の読出データ量を変更させて、前記記憶手段から読み
出す画像情報の全データを複数回に分けて読み出すよう
に設定する手段と、 前記第2タスクに対して、前記記憶手段から1回または
複数回の読み出す毎に所定時間だけスリープさせるよう
に設定する手段と、を有し、 処理するタスクがスリープ中であるとき、スリープして
いないタスクを処理することを特徴とするマルチタスク
処理装置。8. A multi-task processing device for processing a plurality of tasks by switching the plurality of tasks at predetermined time intervals, wherein the plurality of tasks are a first task for storing image information read by an image reading device in a storage unit. Reading out the image information stored in the storage means or storing the image information in the storage means, and reading the image information from the storage means for the second task.
Means for changing the amount of data to be read out each time and setting so that all data of image information read out from the storage means is read out in a plurality of times; and for the second task, one or more times from the storage means Means for setting to sleep for a predetermined time every time reading is performed, wherein when the task to be processed is sleeping, the non-sleeping task is processed.
各タスクを処理するマルチタスク処理に用いられ、他の
タスクと共通のデバイスに対してアクセスするタスクを
記録した記録媒体において、 タスクの優先レベルに応じて、共通のデバイスにアクセ
スする1回の時間、および/または、アクセス後にスリ
ープする時間を決定し、 前記決定された時間に応じて、共通デバイスにアクセス
する、および/または、アクセス後にスリープをするこ
とを特徴とするタスクを記録した記録媒体。9. A recording medium for recording a task for accessing a common device with another task, which is used for multitask processing for processing each task by switching a plurality of tasks at predetermined time intervals. According to the level, one time to access the common device and / or a time to sleep after the access is determined. According to the determined time, the common device is accessed and / or after the access. A recording medium on which a task characterized by sleeping is recorded.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8650997A JPH10283204A (en) | 1997-04-04 | 1997-04-04 | Multi-task processing method, multi-task processor and recording medium recording task |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8650997A JPH10283204A (en) | 1997-04-04 | 1997-04-04 | Multi-task processing method, multi-task processor and recording medium recording task |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH10283204A true JPH10283204A (en) | 1998-10-23 |
Family
ID=13888957
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8650997A Pending JPH10283204A (en) | 1997-04-04 | 1997-04-04 | Multi-task processing method, multi-task processor and recording medium recording task |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH10283204A (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2005119447A1 (en) * | 2004-06-01 | 2005-12-15 | Sony Computer Entertainment Inc. | Task management method, task management device, semiconductor integrated circuit, electronic device, and task management system |
| CN100459681C (en) * | 2004-08-18 | 2009-02-04 | 佳能株式会社 | Image sensing/playback apparatus, image data processing method, and data processing method |
| JP2009054055A (en) * | 2007-08-28 | 2009-03-12 | Hakko Denki Kk | Read data length adjustment method and programmable display using the same |
| US7561184B2 (en) | 2004-08-18 | 2009-07-14 | Canon Kabushiki Kaisha | Image sensing/playback apparatus, image data processing method, and data processing method |
| JP2011028751A (en) * | 2009-07-23 | 2011-02-10 | Biosense Webster Inc | Preventing disruptive events of computer during medical procedures |
| JP2014094140A (en) * | 2012-11-09 | 2014-05-22 | Hoya Corp | Endoscope device |
| JP2014521131A (en) * | 2011-06-29 | 2014-08-25 | 日本電気株式会社 | Multiprocessor system and energy saving method thereof |
| US10949634B2 (en) | 2005-06-03 | 2021-03-16 | Hand Held Products, Inc. | Apparatus having hybrid monochrome and color image sensor array |
| US11317050B2 (en) | 2005-03-11 | 2022-04-26 | Hand Held Products, Inc. | Image reader comprising CMOS based image sensor array |
-
1997
- 1997-04-04 JP JP8650997A patent/JPH10283204A/en active Pending
Cited By (31)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7954101B2 (en) | 2004-06-01 | 2011-05-31 | Sony Computer Entertainment Inc. | Skipping non-time-critical task according to control table when operating frequency falls |
| WO2005119447A1 (en) * | 2004-06-01 | 2005-12-15 | Sony Computer Entertainment Inc. | Task management method, task management device, semiconductor integrated circuit, electronic device, and task management system |
| CN100459681C (en) * | 2004-08-18 | 2009-02-04 | 佳能株式会社 | Image sensing/playback apparatus, image data processing method, and data processing method |
| US7561184B2 (en) | 2004-08-18 | 2009-07-14 | Canon Kabushiki Kaisha | Image sensing/playback apparatus, image data processing method, and data processing method |
| JP2010259122A (en) * | 2004-08-18 | 2010-11-11 | Canon Inc | Image photographing / reproducing apparatus and data processing method |
| US11317050B2 (en) | 2005-03-11 | 2022-04-26 | Hand Held Products, Inc. | Image reader comprising CMOS based image sensor array |
| US12185006B2 (en) | 2005-03-11 | 2024-12-31 | Hand Held Products, Inc. | Image reader comprising CMOS based image sensor array |
| US12075176B2 (en) | 2005-03-11 | 2024-08-27 | Hand Held Products, Inc. | Image reader comprising CMOS based image sensor array |
| US11968464B2 (en) | 2005-03-11 | 2024-04-23 | Hand Held Products, Inc. | Image reader comprising CMOS based image sensor array |
| US11863897B2 (en) | 2005-03-11 | 2024-01-02 | Hand Held Products, Inc. | Image reader comprising CMOS based image sensor array |
| US11323650B2 (en) | 2005-03-11 | 2022-05-03 | Hand Held Products, Inc. | Image reader comprising CMOS based image sensor array |
| US11323649B2 (en) | 2005-03-11 | 2022-05-03 | Hand Held Products, Inc. | Image reader comprising CMOS based image sensor array |
| US12020111B2 (en) | 2005-06-03 | 2024-06-25 | Hand Held Products, Inc. | Apparatus having hybrid monochrome and color image sensor array |
| US12001914B2 (en) | 2005-06-03 | 2024-06-04 | Hand Held Products, Inc. | Apparatus having hybrid monochrome and color image sensor array |
| US11238252B2 (en) | 2005-06-03 | 2022-02-01 | Hand Held Products, Inc. | Apparatus having hybrid monochrome and color image sensor array |
| US11604933B2 (en) | 2005-06-03 | 2023-03-14 | Hand Held Products, Inc. | Apparatus having hybrid monochrome and color image sensor array |
| US11625550B2 (en) | 2005-06-03 | 2023-04-11 | Hand Held Products, Inc. | Apparatus having hybrid monochrome and color image sensor array |
| US10949634B2 (en) | 2005-06-03 | 2021-03-16 | Hand Held Products, Inc. | Apparatus having hybrid monochrome and color image sensor array |
| US12450457B2 (en) | 2005-06-03 | 2025-10-21 | Hand Held Products, Inc. | Apparatus having hybrid monochrome and color image sensor array |
| US12321815B2 (en) | 2005-06-03 | 2025-06-03 | Hand Held Products, Inc. | Apparatus having hybrid monochrome and color image sensor array |
| US12001913B2 (en) | 2005-06-03 | 2024-06-04 | Hand Held Products, Inc. | Apparatus having hybrid monochrome and color image sensor array |
| US12321813B2 (en) | 2005-06-03 | 2025-06-03 | Hand Held Products, Inc. | Apparatus having hybrid monochrome and color image sensor array |
| US12026580B2 (en) | 2005-06-03 | 2024-07-02 | Hand Held Products, Inc. | Apparatus having hybrid monochrome and color image sensor array |
| US12321814B2 (en) | 2005-06-03 | 2025-06-03 | Hand Held Products, Inc. | Apparatus having hybrid monochrome and color image sensor array |
| US12073283B2 (en) | 2005-06-03 | 2024-08-27 | Hand Held Products, Inc. | Apparatus having hybrid monochrome and color image sensor array |
| US11238251B2 (en) | 2005-06-03 | 2022-02-01 | Hand Held Products, Inc. | Apparatus having hybrid monochrome and color image sensor array |
| US12236312B2 (en) | 2005-06-03 | 2025-02-25 | Hand Held Products, Inc. | Apparatus having hybrid monochrome and color image sensor array |
| JP2009054055A (en) * | 2007-08-28 | 2009-03-12 | Hakko Denki Kk | Read data length adjustment method and programmable display using the same |
| JP2011028751A (en) * | 2009-07-23 | 2011-02-10 | Biosense Webster Inc | Preventing disruptive events of computer during medical procedures |
| JP2014521131A (en) * | 2011-06-29 | 2014-08-25 | 日本電気株式会社 | Multiprocessor system and energy saving method thereof |
| JP2014094140A (en) * | 2012-11-09 | 2014-05-22 | Hoya Corp | Endoscope device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3573614B2 (en) | Image processing apparatus and image processing system | |
| JP2001216194A (en) | Arithmetic processing unit | |
| JPH10283204A (en) | Multi-task processing method, multi-task processor and recording medium recording task | |
| EP0844566A1 (en) | Interface apparatus for adapting data width to system bus width | |
| JP3161031B2 (en) | Image processing device | |
| JP2000148999A (en) | Data processing system | |
| EP0898264B1 (en) | Display memory control apparatus | |
| JPH04180174A (en) | electronic filing device | |
| JP2913664B2 (en) | Image information division processing apparatus and method | |
| JPH11331209A (en) | Data acquisition device and memory controller | |
| JPS58169390A (en) | Writing for buffer memory | |
| JP4150953B2 (en) | Information processing device | |
| JPH10285323A (en) | Image data transferring method, device therefor, image data reading method and device therefor | |
| JP2573816B2 (en) | Parallel input / output device and method | |
| JP3217815B2 (en) | Address translation method | |
| EP0276017B1 (en) | Stored data high speed processing apparatus | |
| JPH0143332B2 (en) | ||
| JPH05258048A (en) | Image processing system | |
| JP2845746B2 (en) | Micro program controller | |
| EP0411836A2 (en) | Image processing apparatus | |
| KR0135896B1 (en) | Video graphic card | |
| JPH02170255A (en) | Bus controller and picture information processor | |
| JPH1063237A (en) | Data transfer system | |
| JPS6029837A (en) | Information processor | |
| JPS60225889A (en) | Ct image display unit having animation display function |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050921 |
|
| A131 | Notification of reasons for refusal |
Effective date: 20051101 Free format text: JAPANESE INTERMEDIATE CODE: A131 |
|
| A02 | Decision of refusal |
Effective date: 20060307 Free format text: JAPANESE INTERMEDIATE CODE: A02 |