JPH04188332A - Data outputting system - Google Patents

Data outputting system

Info

Publication number
JPH04188332A
JPH04188332A JP2318862A JP31886290A JPH04188332A JP H04188332 A JPH04188332 A JP H04188332A JP 2318862 A JP2318862 A JP 2318862A JP 31886290 A JP31886290 A JP 31886290A JP H04188332 A JPH04188332 A JP H04188332A
Authority
JP
Japan
Prior art keywords
output
data
area
read
cpu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2318862A
Other languages
Japanese (ja)
Inventor
Hiroshi Takadera
高寺 浩
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2318862A priority Critical patent/JPH04188332A/en
Publication of JPH04188332A publication Critical patent/JPH04188332A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To allocate a CPU uniformly to the processes of a CPU boundary and an I/O boundary by referring to an access inhibition information table, and issuing an output instruction after storing data in an area in an output data area other than an access inhibited area. CONSTITUTION:By issuing the output instruction by the process to which the CPU is allocated, this process is registered in a timer queue 3, and simultaneously, information showing the area in the data output area in which the process stored output data to an output device is stored in the access inhibition information table 8 as the information to show the access inhibited area. Then, by completing the output of the data to the output device by a data output means, the process registered in the timer queue 3 is re-registered in the queue 3, and simultaneously, the information related to this process in the access inhibition information table 8 is deleted, and the area in the output data area having been used by the process for outputting the data is released. Thus, the CPU can be allocated uniformly to the processes of the CPU boundary and the I/O boundary.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプロセスをCPUの割り当て単位とし、複数の
プロセスをキューに登録してそれぞれの優先度によりC
PUの割り当て順を決定しているコンピュータシステム
から出力装置へデータを出力するデータ出力方式に関す
る。
Detailed Description of the Invention [Industrial Application Field] The present invention uses a process as a unit of CPU allocation, registers a plurality of processes in a queue, and assigns a CPU according to their respective priorities.
The present invention relates to a data output method for outputting data from a computer system that determines the order of PU allocation to an output device.

〔従来の技術〕 コンピュータシステムに於けるCPUの割り当て単位で
あるプロセスは、一般にキューに登録され、優先度の高
いものがCPUの割り当てを受ける。ところで、CPU
の割り当てを受けたプロセスがプリンタ装置等の出力装
置に対する出力命令を発行すると、従来は、出力装置へ
の出力データが格納されるバッファ上のデータ出力領域
をデータ出力完了後直ちに解放し資源を有効利用するた
めに、出力命令を発行したプロセスの優先度を高めると
いうことが行なわれている。このようにすることにより
、データ出力処理終了後に出力命令を発行したプロセス
に速やかにCPUが割り当てられ、このプロセスによっ
てデータ出力に使用されていたデータ出力領域中の領域
が解放され、資源の有効利用が図れる。尚、データ出力
に伴って優先度を高められたプロセスは、データ出力終
了後に再びCPUを割り当てられることにより、元の優
先度に戻される。
[Prior Art] Processes, which are the unit of CPU allocation in a computer system, are generally registered in a queue, and those with higher priority receive CPU allocation. By the way, the CPU
When a process that has been allocated an output command issues an output command to an output device such as a printer, conventionally, the data output area on the buffer where the output data to the output device is stored is immediately released after the data output is completed, and the resources are made available. In order to utilize the output command, the priority of the process that issued the output command is increased. By doing this, the CPU is immediately assigned to the process that issued the output command after the data output processing is completed, and the area in the data output area that was used for data output is released by this process, making effective use of resources. can be achieved. Note that a process whose priority level has been increased due to data output is returned to its original priority level by being assigned a CPU again after data output is completed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述したように、従来は、CPUを割り当てられたプロ
セスが出力命令を発行すると、そのプロセスの優先度が
高められるため、データ出力をほとんど行なわないCP
Uバウンダリのプロセスと、データ出力をたびたび行な
うI10バウンダリのプロセスとがキューに登録されて
いると、CPUバウンダリのプロセスにCPUがなかな
め)書11Q当てられなくなるという問題があった。
As mentioned above, conventionally, when a process to which a CPU is assigned issues an output command, the priority of that process is increased, so a CPU that rarely outputs data
If a U boundary process and an I10 boundary process that frequently outputs data are registered in the queue, there is a problem that the CPU cannot be allocated to the CPU boundary process.

本発明の目的はデータ出力完了後、直ちに出力データ領
域を解放でき、且つ、CPUバウンダリのプロセスとI
10バウンダリのプロセスとに平均的にCPUを割り当
てることができるデータ出力方式を提供することにある
An object of the present invention is to be able to release the output data area immediately after data output is completed, and to be able to release the output data area immediately after data output is completed, and to
The object of the present invention is to provide a data output method that allows CPUs to be allocated on average to 10 boundary processes.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は上記目的を達成するため、 複数のプロセスが登録されるキューを有し、前記キュー
に登録されている各プロセスの優先度に基づいてCPU
を割り当てるプロセスを決定するコンピュータシステム
から出力装置へデータを出力するデータ出力方式に於い
て、 前記コンピュータシステムは、 プロセスが出力装置へ出力するデータが格納される出力
データ領域と、 該出力データ領域中のアクセス禁止領域を示す情報が登
録されるアクセス禁止情報テーブルと、前記CPUの割
り当てを受けているプロセスが出力命令を発行すること
により、前記出力装置にリード命令要求を送出すると共
に、前記CPUの割り当てを受けたプロセスがデータを
格納した前記データ出力領域中の領域を示す情報をアク
セス禁止領域を示す情報として前記アクセス禁止情報テ
ーブルに登録するリード命令要求手段と、前記CPUの
割り当てを受けたプロセスが出力命令を発行することに
より該プロセスをタイマキューに登録し、前記出力装置
からリード完了通知を受けることにより前記タイマキュ
ーに登録した前記プロセスを前記キューに再登録すると
共に、前記アクセス禁止情報テーブルから該プロセスに
関する情報を削除するリード完了待ち合わせ手段と、 前記出力装置からり−ト命令が加えられることにより前
記出力データ領域に格納されているデータを読み出して
前記出力装置へ出力するデータ出力手段とを含み、 前記出力装置は、 前記リード命令要求に応答してリード命令を前記データ
出力手段に対して発行するリード命令発行手段と、 データのリードが終了することにより、リード完了通知
を出力するリード完了通知手段とを含み、前記プロセス
は前記出力装置へデータを出力する際、前記アクセス禁
止情報テーブルを参照し、前記出力データv4域中のア
クセス禁止領域以外の領域にデータを格納した後、出力
命令を発行する。
In order to achieve the above object, the present invention has a queue in which a plurality of processes are registered, and based on the priority of each process registered in the queue, CPU
In a data output method in which data is output from a computer system to an output device, the computer system includes: an output data area in which data output by a process to the output device is stored; and an output data area in the output data area. An access prohibition information table in which information indicating an access prohibited area of the CPU is registered, and a process assigned to the CPU issues an output command, thereby sending a read command request to the output device and controlling the access of the CPU. read command requesting means for registering information indicating an area in the data output area in which the allocated process has stored data in the access prohibited information table as information indicating an access prohibited area; and a process to which the CPU has been allocated. registers the process in the timer queue by issuing an output command, re-registers the process registered in the timer queue in the queue by receiving a read completion notification from the output device, and also registers the process in the access prohibition information table. read completion waiting means for deleting information related to the process from the output device; and data output means for reading data stored in the output data area and outputting it to the output device when a read command is added from the output device. The output device includes: read command issuing means for issuing a read command to the data output means in response to the read command request; and a read command issuing means for issuing a read command to the data output means in response to the read command request; and completion notification means, the process refers to the access prohibition information table when outputting data to the output device, stores the data in an area other than the access prohibited area in the output data v4 area, and then outputs the data. Issue orders.

また、本発明は、プロセスが出力命令を発行した後、所
定時間が経過してもデータ出力が完了しなかった場合に
も、出力データ領域を解放できるようにするため、上記
構成に加え、 前記コンピュータシステムに、プロセスを前記タイマキ
ューに登録した後、所定時間が経過してもリード完了通
知が前記出力装置から出力されなかった場合、前記タイ
マキューに登録したプロセスをアボートすると共に、前
記アクセス禁止情報テーブルから前記プロセスに関する
情報を削除するプロセスアボート手段を設けたものであ
る。
In addition to the above configuration, the present invention also provides the above configuration in order to enable the output data area to be released even if data output is not completed even after a predetermined period of time has passed after a process issues an output command. If a read completion notification is not output from the output device even after a predetermined period of time has passed after registering a process in the timer queue in the computer system, the process registered in the timer queue is aborted and the access is prohibited. A process abort means is provided for deleting information regarding the process from the information table.

〔作 用〕[For production]

CPUが割り当てられたプロセスは出力装置にデータを
出力する場合、アクセス禁止情報テーブルを参照し、ア
クセス禁止領域以外の領域にデータを格納し、その後、
出力命令を発行する。
When a process to which a CPU is assigned outputs data to an output device, it refers to the access prohibition information table, stores the data in an area other than the access prohibited area, and then
Issue an output command.

CPUの割り当てを受けているプロセスが出力命令を発
行すると、リード命令要求手段は出力装置にリード命令
の発行を要求するリード命令要求を出力すると共に、プ
ロセスがデータを格納した出力データ領域中の領域を示
す情報をアクセス禁止領域を示す情報としてアクセス禁
止情報テーブルに登録する。また、リード完了待ち合わ
せ手段はCPUの割り当てを受けていたプロセスがデー
タの出力命令を発行することにより、そのプロセスをタ
イマキューに登録する。
When a process allocated to the CPU issues an output command, the read command request means outputs a read command request requesting the output device to issue a read command, and also outputs an area in the output data area in which the process stores data. The information indicating the access-prohibited area is registered in the access-prohibited information table as information indicating the access-prohibited area. Further, the read completion waiting means registers the process to which the CPU has been assigned in the timer queue by issuing a data output command.

出力装置に設けられたリード命令発行手段はリード命令
要求手段が出力したリード命令要求を受信すると、リー
ド篇令を出力する。
When the read command issuing means provided in the output device receives the read command request output by the read command requesting means, it outputs a read command.

コンピュータシステム内のデータ出力手段は出力装置か
らのリード命令を受信すると、出力データ領域に格納さ
れているデータを読み出し、出力装置へ出力する。そし
て、データの出力が完了すると、出力装置内のリード完
了通知手段はリード完了通知を出力する。
When the data output means in the computer system receives a read command from the output device, it reads the data stored in the output data area and outputs it to the output device. Then, when the data output is completed, the read completion notification means in the output device outputs a read completion notification.

コンピュータシステム内の待ち合わせ手段は出力装置か
らのリード完了通知を受信すると、タイマキューに登録
したプロセスをキューに再登録すると共に、アクセス禁
止情報テーブルからそのプロセスに関する情報を削除す
る。
When the waiting means in the computer system receives the read completion notification from the output device, it re-registers the process registered in the timer queue in the queue and deletes information regarding the process from the access prohibition information table.

また、コンピュータシステム内のプロセスアボート手段
はプロセスをタイマキューに登録した後、所定時間が経
過しても出力装置からリード完了通知が出力されなかっ
た場合、タイマキューに登録したプロセスをアボートす
ると共に、そのプロセスに関する情報をアクセス禁止情
報テーブルから削除する。
Further, the process abort means in the computer system aborts the process registered in the timer queue if a read completion notification is not output from the output device even after a predetermined period of time has passed after registering the process in the timer queue, and Delete information about that process from the access prohibition information table.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して詳細に説明
する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は本発明の実施例のブロック図であり、ホストコ
ンピュータ1と、プリンタ装置12とから構成されてい
る。
FIG. 1 is a block diagram of an embodiment of the present invention, which is composed of a host computer 1 and a printer device 12. As shown in FIG.

ホストコンピュータ1は複数のプロセスが登録されるキ
ュー2と、出力完了待ちのプロセスが登録されるタイマ
キュー3と、CPUが割り当てられている処理中プロセ
ス4と、プリンタ装置12への出力データが格納される
へソファ上に設けられた出力データ領域5と、処理中プ
ロセス4が出力命令を発行したことを検出する出力処理
発生検出手段6と、出力処理発生検出手段i力咄力命令
の発行を検出することによりプリンタ装置12に対して
リード命令の発行を要求するリード命令要求を、出力す
ると共に、処理中プロセス4がデータを格納した出力デ
ータ領域5中の領域を示すアドレスをアクセス禁止領域
のアドレスとしてアクセス禁止アドレステーブル8に登
録するリード命令要求手段7と、CPUの割り当てを受
けている処理中プロセス4がデータの出力命令を発行す
ることにより処理中プロセス4をタイマキュー3に登録
し、プリンタ装置12からリート完了通知を受けること
によりタイマキュー3に登録されている該当するプロセ
スをキュー2に再登録すると共に、アクセス禁止アドレ
ステーブル8からそのプロセスに関するアドレスを削除
するリード完了待ち合わせ手段9と、タイムアウトした
プロセスをアボートするプロセスアボート手段10と、
プリンタ装置12からリード命令が加えられることによ
り、CPUとは無関係に出力データ領域5からデータを
読み出してプリンタ装置12へ出力するハードウェア或
いはファームウェアレベルのデータ出力手段11とを含
んでいる。
The host computer 1 stores a queue 2 in which a plurality of processes are registered, a timer queue 3 in which processes waiting for output completion are registered, a process 4 in progress to which a CPU is assigned, and output data to a printer device 12. An output data area 5 provided on the sofa, an output processing occurrence detection means 6 for detecting that the process 4 in process has issued an output command, and an output processing occurrence detection means for detecting the issuance of a forceful command. Upon detection, a read command request is output to the printer device 12 to request the issuance of a read command, and the address indicating the area in the output data area 5 in which the processing process 4 stores data is set as an access-prohibited area. The read command requesting means 7 registers the address in the access-prohibited address table 8, and the processing process 4 assigned to the CPU issues a data output command, thereby registering the processing process 4 in the timer queue 3, A read completion waiting means 9 for re-registering the corresponding process registered in the timer queue 3 in the queue 2 upon receiving a read completion notification from the printer device 12, and deleting the address related to the process from the access prohibited address table 8; , process abort means 10 for aborting a timed out process;
It includes data output means 11 at the hardware or firmware level that reads data from the output data area 5 and outputs it to the printer device 12 independently of the CPU when a read command is applied from the printer device 12.

また、プリンタ装置12はホストコンピュータ1内のリ
ード命令要求手段7からのリード命令要求を受信してリ
ードすべきデータの開始アドレスとハイド数とを認識す
る出力データ情報処理手段13と、出力データ情報処理
手段13が認識した開始アドレスとバイト数とに従って
リード命令を発行するリード命令発行手段14と、デー
タの出力が完了したことを示すリード完了通知を出力す
るり一ド完了通知手段15とを含んでいる。
The printer device 12 also includes output data information processing means 13 that receives a read command request from the read command request means 7 in the host computer 1 and recognizes the start address and hide number of data to be read; It includes a read command issuing means 14 for issuing a read command according to the start address and number of bytes recognized by the processing means 13, and a read completion notification means 15 for outputting a read completion notification indicating that data output has been completed. I'm here.

第2図はホストコンピュータ1の処理例を示すフローチ
ャー1・、第3図はプリンタ装置12の処理例を示すフ
ローチャー1・であり、以下各図を参照して本実施例の
動作を説明する。
FIG. 2 is a flowchart 1 showing an example of processing by the host computer 1, and FIG. 3 is a flowchart 1 showing an example of processing by the printer device 12.The operation of this embodiment will be explained below with reference to each figure. do.

ホストコンピュータ1はタイマキュー3中にタイムアウ
トしたプロセスがなく (ステップS2−1)、リード
完了通知を受信していなければ(ステップS2−2)、
キュー2に登録されているプロセス中で最も優先度の高
いプロセスにCPUを割り当てる (ステップS2−3
)。
If the host computer 1 does not have a timed-out process in the timer queue 3 (step S2-1) and has not received the read completion notification (step S2-2),
Allocate the CPU to the process with the highest priority among the processes registered in queue 2 (Step S2-3
).

CPUの割り当てを受けた処理中プロセス4ば、プリン
タ装置12にデータを出力する場合、アクセス禁止アド
レステーブル8を参照し、バッファ上に設けられた出力
データ領域5中のアクセス禁止領域以外の領域に出力デ
ータを格納し、その後、出力命令を発行する。処理中プ
ロセス4から出力命令が発行されると、出力処理発生検
出手段6によりそれが検出され(ステップS2−4)、
リード命令要求手段7は出力処理発生検出手段6が出力
命令の発行を検出すると、プリンタ装置12に対してリ
ード命令の発行を要求するリード命令要求(出力データ
領域5に格納された出力データの先頭アドレス及びハイ
ド数を含む)を出力した後(ステップS2−5)、アク
セス禁止アドレステーブル8に出力データ領域5中の出
力データが格納されている領域の先頭アドレス及び最終
アドレスを登録して他のプロセスによってその領域がア
クセスされないようにしくステップS2−6)、更に、
処理中プロセス4をタイマキュー3に登録する (ステ
ップS2−7)。
When the processing process 4 assigned to the CPU outputs data to the printer device 12, it refers to the access-prohibited address table 8 and outputs data to an area other than the access-prohibited area in the output data area 5 provided on the buffer. Store the output data and then issue the output command. When an output command is issued from the process 4 being processed, it is detected by the output processing occurrence detection means 6 (step S2-4).
When the output processing occurrence detection means 6 detects the issuance of an output command, the read command request means 7 requests the printer device 12 to issue a read command (the beginning of the output data stored in the output data area 5). (including address and Hyde number) (step S2-5), register the start address and end address of the area where the output data in the output data area 5 is stored in the access-prohibited address table 8, and Preventing the area from being accessed by the process (step S2-6);
The process 4 being processed is registered in the timer queue 3 (step S2-7).

プリンタ装置12内の出力データ情報処理手段13はリ
ード命令要求手段7からのリード命令要求を受信すると
、それに含まれている先頭アドレス及びハイド数を認識
する (ステップS3−1)。
When the output data information processing means 13 in the printer device 12 receives the read command request from the read command requesting means 7, it recognizes the start address and hide number contained therein (step S3-1).

リード命令発行手段14は出力データ情報処理手段13
が認識したハイド数が予め決められているサイズ未満の
場合は出力データ情報処理手段13が認識した先頭アド
レス及びハイド数を読取り開始アドレス及び読取りバイ
ト数としたリード命令を発行し、出力データ情報処理手
段13が認識したハイド数が予め定められているサイズ
以上の場合は、先ず、出力データ情報処理手段13が認
識した先頭アドレス及び予め定められているサイズを読
取り開始アドレス及び読取りバイI・数としたリード命
令を発行し、以後、読取りの済んでいないデータのサイ
ズが予め定められているサイズ未満になるまで、読取り
開始アドレスとして前回発行したリード命令中の読取り
開始アドレスに上記所定サイズを加算したアドレスを含
み、読取りハイド数として上記所定サイズを含むリート
命令を発行し、読取りの済んでいないデータのサイズが
予め定められているサイズ未満となることにより、読取
り開始アドレスとして前回発行したリード命令中の読取
り開始アドレスに上記所定サイズを加算したアドレスを
含み、読取りハイド数として読取りの済んでいないデー
タのハイド数を含むリード命令を発行する(ステップS
3〜2.ステップS3−3)。
The read command issuing means 14 is the output data information processing means 13
If the number of hides recognized is less than a predetermined size, the output data information processing means 13 issues a read command with the recognized start address and number of hides as the read start address and the number of bytes to read, and output data information processing is performed. If the number of hides recognized by the means 13 is greater than or equal to a predetermined size, first, the output data information processing means 13 reads the head address and predetermined size recognized by the output data information processing means 13 and uses them as a read start address and a read by I/number. Then, the predetermined size is added to the read start address in the previously issued read command as the read start address until the size of the unread data becomes less than the predetermined size. By issuing a read command that includes an address and having the predetermined size as the number of read hides, and when the size of the unread data becomes less than the predetermined size, the read start address is set as the read command that was previously issued. A read command is issued that includes an address obtained by adding the predetermined size to the read start address of , and includes the number of hides of data that has not been read as the number of hides read (step S
3-2. Step S3-3).

ホストコンピュータ1内のデータ出力手段11はプリン
タ装置f12からリード命令が加えられる毎に、出力デ
ータ領域5からそのリード命令によって指定されたデー
タを読み出し、プリンタ装置12に加える。
Every time a read command is applied from the printer f12, the data output means 11 in the host computer 1 reads data designated by the read command from the output data area 5 and adds it to the printer device 12.

プリンタ装置12内のリード完了通知手段15はデータ
の出力が完了すると、即ち出力データ情報処理手段13
が認識したバイト数のデータがホストコンピュータ1か
ら送られてくると、リード完了通知をホストコンピュー
タ1へ出力する(ステップS3−4)。
When the data output is completed, the read completion notification means 15 in the printer device 12 informs the output data information processing means 13.
When data of the recognized number of bytes is sent from the host computer 1, a read completion notification is output to the host computer 1 (step S3-4).

ホストコンピュータ1内のリード完了待ち合わせ手段9
はプリンタ装置12からのリード完了通知を受信すると
(ステップS2−2)、アクセス禁止アドレステーブル
8から該当するアドレスを削除してプロセス4がデータ
出力のために使用していた出力データ領域5内の領域を
解放しくステップS2−9) 、その後、タイマキュー
3に登録していたプロセス4をキュー2に再登録する(
ステップ52−10)。
Read completion waiting means 9 in host computer 1
When receiving the read completion notification from the printer device 12 (step S2-2), the corresponding address is deleted from the access-prohibited address table 8 and the address in the output data area 5 used by the process 4 for data output is deleted. To free up the area, step S2-9), and then re-register process 4, which was registered in timer queue 3, in queue 2 (
Step 52-10).

また、リード完了待ち合わせ手段9はプロセス4をタイ
マキュー3に登録してから所定時間経過してもリード完
了通知がプリンタ装置12から送られてこなかった場合
は(ステップS2−1)、その旨をプロセスアボート手
段IOに通知し、この通知を受けたプロセスアボート手
段10はタイマキュー3に登録されているプロセス4を
アボートさせると共に、アクセス禁止アドレステーブル
8に登録されているこのプロセス4に関するアドレスを
削除する(ステップS2−8)。
Further, if a read completion notification is not sent from the printer device 12 even after a predetermined period of time has passed since the process 4 was registered in the timer queue 3, the read completion waiting means 9 sends a message to that effect (step S2-1). The process abort means IO is notified, and the process abort means 10 that receives this notification aborts the process 4 registered in the timer queue 3 and deletes the address related to this process 4 registered in the access prohibited address table 8. (Step S2-8).

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は、CPUの割り当てを受
けたプロセスが出力命令を発行することにより、そのプ
ロセスをタイマキューに登録すると共に、そのプロセス
が出力装置への出力データを格納したデータ出力領域中
の領域を示す情報をアクセス禁止領域を示す情報として
アクセス禁止、情報テーブルに格納し、データ出力手段
による出刃装置へのデータの出力が完了することにより
、タイマキューに登録したプロセスをキューに再登録す
ると共にアクセス禁止情報テーブル中のそのプロセスに
関する情報を削除してプロセスがデータ出力のために使
用していた出力データ領域中の領域を解放するようにし
たものであるので、データ出力完了後、直ちに出力デー
タ領域を解放でき、且つ、CPUバウンダリのプロセス
とI10バウンダリのプロセスとに平均的にCPUを割
り当てることができる効果がある。
As explained above, in the present invention, when a process assigned to a CPU issues an output command, the process is registered in a timer queue, and the process outputs data storing output data to an output device. The information indicating the area in the area is prohibited from access as the information indicating the prohibited area, and is stored in the information table. When the output of data to the blade device by the data output means is completed, the process registered in the timer queue is queued. At the same time as re-registering, the information about the process in the access prohibition information table is deleted and the area in the output data area used by the process for data output is released, so after the data output is completed. , the output data area can be immediately released, and the CPU can be allocated evenly to the CPU boundary process and the I10 boundary process.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の実施例のブロック図、第2図はホスト
コンピュータの処理例を示すフローチャート及び、 第3図はプリンタ装置の処理例を示すフローチャートで
ある。 図に於いて、1・・・ホストコンピュータ、2・・・キ
ュー、3・・・タイマキュー、4・・・処理中プロセス
、5・・・出力データ領域、6・・・出力処理発生検出
手段、7・・・リード命令要求手段、8・・・アクセス
禁止アドレステーブル、9・・・リード完了待ち合わせ
手段、10・・・プロセスアボート手段、11・・・デ
ータ出力手段、12・・・プリンタ装置、13・・・出
力データ情報処理手段、14・・・リード命令発行手段
、15・・・リード完了通知手段。
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a flowchart showing an example of processing by a host computer, and FIG. 3 is a flowchart showing an example of processing by a printer device. In the figure, 1... host computer, 2... queue, 3... timer queue, 4... processing process, 5... output data area, 6... output processing occurrence detection means , 7... Read command requesting means, 8... Access prohibited address table, 9... Read completion waiting means, 10... Process abort means, 11... Data outputting means, 12... Printer device , 13... Output data information processing means, 14... Read command issuing means, 15... Read completion notification means.

Claims (2)

【特許請求の範囲】[Claims] (1)複数のプロセスが登録されるキューを有し、前記
キューに登録されている各プロセスの優先度に基づいて
CPUを割り当てるプロセスを決定するコンピュータシ
ステムから出力装置へデータを出力するデータ出力方式
に於いて、 前記コンピュータシステムは、 プロセスが出力装置へ出力するデータが格納される出力
データ領域と、 該出力データ領域中のアクセス禁止領域を示す情報が登
録されるアクセス禁止情報テーブルと、前記CPUの割
り当てを受けているプロセスが出力命令を発行すること
により、前記出力装置にリード命令要求を送出すると共
に、前記CPUの割り当てを受けたプロセスがデータを
格納した前記データ出力領域中の領域を示す情報をアク
セス禁止領域を示す情報として前記アクセス禁止情報テ
ーブルに登録するリード命令要求手段と、前記CPUの
割り当てを受けたプロセスが出力命令を発行することに
より該プロセスをタイマキューに登録し、前記出力装置
からリード完了通知を受けることにより前記タイマキュ
ーに登録した前記プロセスを前記キューに再登録すると
共に、前記アクセス禁止情報テーブルから該プロセスに
関する情報を削除するリード完了待ち合わせ手段と、 前記出力装置からリード命令が加えられることにより前
記出力データ領域に格納されているデータを読み出して
前記出力装置へ出力するデータ出力手段とを含み、 前記出力装置は、 前記リード命令要求に応答してリード命令を前記データ
出力手段に対して発行するリード命令発行手段と、 データのリードが終了することにより、リード完了通知
を出力するリード完了通知手段とを含み、前記プロセス
は前記出力装置へデータを出力する際、前記アクセス禁
止情報テーブルを参照し、前記出力データ領域中のアク
セス禁止領域以外の領域にデータを格納した後、出力命
令を発行することを特徴とするデータ出力方式。
(1) A data output method in which data is output from a computer system to an output device, which has a queue in which multiple processes are registered, and determines the process to which a CPU is assigned based on the priority of each process registered in the queue. In the computer system, the computer system includes: an output data area in which data output by a process to an output device is stored; an access prohibition information table in which information indicating an access prohibited area in the output data area is registered; and the CPU By issuing an output command, the process assigned to the CPU sends a read command request to the output device and indicates an area in the data output area in which the process assigned to the CPU stores data. a read command requesting means for registering information in the access prohibition information table as information indicating an access prohibited area; and a process assigned to the CPU registers the process in a timer queue by issuing an output command; read completion waiting means for re-registering the process registered in the timer queue in the queue upon receiving a read completion notification from the device, and deleting information regarding the process from the access prohibition information table; and data output means for reading data stored in the output data area and outputting it to the output device in response to an instruction, the output device transmitting the read instruction to the data in response to the read instruction request. The process includes a read command issuing means for issuing a read command to the output means, and a read completion notification means for outputting a read completion notification when data reading is completed, A data output method characterized in that an output command is issued after referring to an access prohibition information table and storing data in an area other than the access prohibition area in the output data area.
(2)前記コンピュータシステムは、プロセスを前記タ
イマキューに登録した後、所定時間が経過してもリード
完了通知が前記出力装置から出力されなかった場合、前
記タイマキューに登録したプロセスをアボートすると共
に、前記アクセス禁止情報テーブルから前記プロセスに
関する情報を削除するプロセスアボート手段を含むこと
を特徴とする請求項1記載のデータ出力方式。
(2) If a read completion notification is not output from the output device even after a predetermined period of time has passed after registering a process in the timer queue, the computer system aborts the process registered in the timer queue and 2. The data output method according to claim 1, further comprising process abort means for deleting information regarding the process from the access prohibition information table.
JP2318862A 1990-11-22 1990-11-22 Data outputting system Pending JPH04188332A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2318862A JPH04188332A (en) 1990-11-22 1990-11-22 Data outputting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2318862A JPH04188332A (en) 1990-11-22 1990-11-22 Data outputting system

Publications (1)

Publication Number Publication Date
JPH04188332A true JPH04188332A (en) 1992-07-06

Family

ID=18103789

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2318862A Pending JPH04188332A (en) 1990-11-22 1990-11-22 Data outputting system

Country Status (1)

Country Link
JP (1) JPH04188332A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7987329B2 (en) 2004-10-28 2011-07-26 Hitachi, Ltd. Storage system and method of controlling the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7987329B2 (en) 2004-10-28 2011-07-26 Hitachi, Ltd. Storage system and method of controlling the same

Similar Documents

Publication Publication Date Title
JPS5812611B2 (en) Data Tensou Seigiyohoushiki
JPH04308961A (en) Means and apparatus for notifying state of synchronous locking of occupied process
JPH04312160A (en) Multiprocessor system and its message transmission and reception controller
US7007138B2 (en) Apparatus, method, and computer program for resource request arbitration
JPH0798663A (en) Asynchronous i/o control system
JPH04188332A (en) Data outputting system
US6829647B1 (en) Scaleable hardware arbiter
JP2001125749A (en) Recording medium with recorded external storage device driver program and computer having external storage device access function
JPH03150654A (en) Preference control system for processor having cash
US7076585B2 (en) System bus controller and the method thereof
EP0341670B1 (en) Processing time allocation system and method
JP2002259143A (en) Device and method for automatically controlling number of task, on-like transaction processing system and program
JPH09204311A (en) Information processing system
JP2998721B2 (en) An exclusive control method between a parallel processing program and a coprocessor and a computing system having the exclusive control function
US6681260B1 (en) Data transfer method in function expansion system
JPH08137703A (en) Task switching device
CN108170757B (en) Data file reading method, device and equipment
JPH0844661A (en) Information processor
JPH01126738A (en) System for control data set competition in execution of multiple job
JP3206013B2 (en) Direct memory access transfer controller
JP2571298B2 (en) Data management control method
JP2002082901A (en) Bus controller
JP2992621B2 (en) Lock transfer method
CN117971717A (en) Multi-host access control method and device, electronic equipment and storage medium
JPH0126093B2 (en)