JPS63298637A - Buffering queue managing system - Google Patents

Buffering queue managing system

Info

Publication number
JPS63298637A
JPS63298637A JP13678687A JP13678687A JPS63298637A JP S63298637 A JPS63298637 A JP S63298637A JP 13678687 A JP13678687 A JP 13678687A JP 13678687 A JP13678687 A JP 13678687A JP S63298637 A JPS63298637 A JP S63298637A
Authority
JP
Japan
Prior art keywords
queue
block
event information
unused
routine
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.)
Granted
Application number
JP13678687A
Other languages
Japanese (ja)
Other versions
JPH0543138B2 (en
Inventor
Hiroyuki Suzuki
啓之 鈴木
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP13678687A priority Critical patent/JPS63298637A/en
Publication of JPS63298637A publication Critical patent/JPS63298637A/en
Publication of JPH0543138B2 publication Critical patent/JPH0543138B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/461Saving or restoring of program or task context
    • G06F9/462Saving or restoring of program or task context with multiple register sets

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Abstract

PURPOSE:To attain a high speed processing without causing the inconvenience to the condition of a cue by providing a means to store the event information to be occurred by an interrupting means to the queue and remove the event information equivalent to the retrieving conditions from the queue. CONSTITUTION:At first, a queue clock is switched from an unused queue 26b to a buffer queue 26c by an interrupting routine 24. Next, the queue block is switched from the buffer queue 26c to a used queue 26a by an event processing routine 23. Further, the unnecessary queue block is switched to the unused queue 26b by the event processing routine 23. Thus, by setting a block 4 to the buffer queue 26c and the queue 26b, the event processing routine 23 is operated, novel event information occurs, the interrupting routine 24 is activated, the storing processing of the event information is executed, and even then, the inconvenience on the queue block does not occur.

Description

【発明の詳細な説明】 〔概要〕 割り込み手段によって発生する事象情報をキューに記憶
しておき、該記憶した事象情報を処理する時点で、検索
条件に該当する事象情報を該キューから取り出す手段を
備えた、例えば、図形データ処理システムにおいて、該
キューにバッファキューを設け、上記割り込み手段は、
未使用キューのチェインをたどり、例えば、1番目の固
定キューブロックの次の2番目にあるキューブロックに
新たな事象情報を格納して、該未使用キューから取り出
し、上記バッファキューに繋ぎ、事象情報処理手段は、
上記検索条件に該当するキューブロックを抽出し、各種
の処理を施して不用となった該キューブロックを、上記
未使用キューの先頭キューブロックとしてチェインする
ことにより、割り込み手段と、事象情報処理手段とで操
作するキューの範囲を、上記未使用キューの、上記1番
目の固定キューブロックを境に分けて管理するようにし
たものである。
[Detailed Description of the Invention] [Summary] Event information generated by an interrupt means is stored in a queue, and at the time of processing the stored event information, a means is provided for retrieving event information corresponding to a search condition from the queue. For example, in a graphic data processing system, the buffer queue is provided in the queue, and the interrupt means includes:
Tracing the chain of unused queues, for example, storing new event information in the second queue block after the first fixed queue block, extracting it from the unused queue, connecting it to the buffer queue, and storing the event information. The processing means are
By extracting a queue block that meets the above search conditions and chaining the queue block that is no longer used after various processes as the head queue block of the unused queues, the interrupt means and the event information processing means The range of queues to be operated is divided and managed using the first fixed queue block of the unused queues.

〔産業上の利用分野〕[Industrial application field]

本発明は、割り込み手段によって発生する事象情報をキ
ューに記憶しておき、該記憶した事象情報を処理する時
点で、検索条件に該当する事象情報をキューから取り出
す手段を備えたデータ処理システムにおけるキュー管理
方式に係り、特に、該キューにバッフアキニーを備えた
バッファリングキュー管理方式に関する。
The present invention provides a queue in a data processing system that stores event information generated by an interrupt means in a queue, and retrieves event information corresponding to a search condition from the queue at the time of processing the stored event information. The present invention relates to a management system, and particularly relates to a buffering queue management system in which the queue is provided with a buffer.

最近の計算機システムの性能の向上に伴って、該計算機
システムで図形を処理することが一般的になってきてお
り、処理量も増大化の動向にあり、処理能力の向上が要
求されている。
With the recent improvement in the performance of computer systems, it has become common for these computer systems to process graphics, and the amount of processing is also on the rise, creating a demand for improved processing capacity.

かかる図形データ処理システムにおいては、図形処理の
為の事象データ(座標1文字等)を割り込み手段によっ
てキュー機構にキューイングし、該キューイングした事
象データが必要になった時点で、該キューから事象デー
タを取り出し、必要な処理を施して、不用になると、該
事象データを消去する。
In such a graphical data processing system, event data (such as one coordinate character) for graphical processing is queued in a queue mechanism by an interrupt means, and when the queued event data is needed, an event is released from the queue. The event data is extracted, subjected to necessary processing, and deleted when it is no longer needed.

このような形式のキュー管理方式においては、優先度の
高い割り込み手段と、事象情報処理手段との2つの手段
(例えば、プログラム)でキューを操作している為、事
象情報処理中に割り込みに制御が渡るとき、キューの状
態が保証されないことがあり、通常においては、キュー
に対してロック命令を発行して排他制御を行っているが
、この方法では高速性を必要とする割り込み処理が待た
されることになり、上記処理能力の向上が期待できない
In this type of queue management method, the queue is operated by two means (for example, a program): a high-priority interrupt means and an event information processing means, so interrupts are not controlled during event information processing. When the queue passes, the state of the queue may not be guaranteed, and normally a lock instruction is issued to the queue for exclusive control, but with this method, interrupt processing that requires high speed is forced to wait. Therefore, improvement in the above-mentioned processing capacity cannot be expected.

このような事情から、高速性を損なうことなく。Due to these circumstances, without compromising high speed.

且つキューの状態を保証できるキュー管理方式が必要と
されるようになってきた。
There is now a need for a queue management system that can guarantee the status of queues.

〔従来の技術と発明が解決しようとする問題点〕第3図
は、従来のキュー管理方式を説明する図であって、(a
)はキュー管理を行っているシステムの構成例を示した
図であり、(bl) 、 (b2)はキュー管理の過程
を説明する図である。
[Prior art and problems to be solved by the invention] FIG. 3 is a diagram illustrating a conventional queue management system.
) is a diagram showing an example of the configuration of a system that performs queue management, and (bl) and (b2) are diagrams explaining the process of queue management.

(a)に示したデータ処理システムは、割り込みルーチ
ン24によって発生する事象情報をキュー26に記憶し
ておき、該記憶した事象情報を処理する時点で、検索条
件に該当する事象情報を、該キュー26から取り出す手
段23を備えた、例えば、図形データ処理システムの例
である。
The data processing system shown in (a) stores event information generated by the interrupt routine 24 in a queue 26, and at the time of processing the stored event information, event information corresponding to a search condition is sent to the queue 26. This is an example of a graphical data processing system, for example, comprising means 23 for retrieving from 26.

このシステムでは、割り込みルーチン24によって発生
する事象情報は、該割り込みルーチン24によって一旦
キュー26に繋がれ記憶される。
In this system, event information generated by the interrupt routine 24 is temporarily connected to a queue 26 by the interrupt routine 24 and stored therein.

その後、アプリケーション(APL) 25からの要求
により、事象情報が必要になった時点で、オペレーティ
ングシステム(O3)に起動された事象情報処理ルーチ
ン23によって、該当する事象情報が取り出されて処理
される。
Thereafter, when event information becomes necessary in response to a request from the application (APL) 25, the corresponding event information is retrieved and processed by the event information processing routine 23 activated by the operating system (O3).

上記動作を本図の(a)によって説明すると、先ず、操
作者がタブレット、キーボード等の入力装置4を操作し
、図形処理の為の事象データ(座標値2文字等)を入力
すると、中央処理装置(CPU)1に割り込みがかかる
、 中央処理装置(CPU) 1が実行しているオペレーテ
ィングシステム(O5) 21は、該割り込みの内容を
判定し、入出力スーパバイザ(IO3) 22を÷経由
して、割り込みルーチン24に制御を渡す。
To explain the above operation using (a) in this figure, first, when the operator operates the input device 4 such as a tablet or keyboard and inputs event data (coordinate value, 2 characters, etc.) for graphic processing, the central processing An interrupt is applied to the device (CPU) 1. The operating system (O5) 21 executed by the central processing unit (CPU) 1 determines the content of the interrupt and sends it via the input/output supervisor (IO3) 22. , passes control to interrupt routine 24.

該割り込みルーチン24は、上記入出力スーパバイザ(
10S) 22から受は取った事象情報をキュー26に
繋げる。
The interrupt routine 24 is executed by the input/output supervisor (
10S) The receiver connects the received event information from 22 to the queue 26.

その後、アプリケーション(APL) 25からの要求
により、事象情報が必要になった時点で、オペレーティ
ングシステム(O3) 21によって事象情報処理ルー
チン23が起動され、キュー26を検索して該当事象情
報を取り出し、該事象に対する各種の処理が行われる。
Thereafter, when event information becomes necessary in response to a request from the application (APL) 25, the event information processing routine 23 is activated by the operating system (O3) 21, searches the queue 26, retrieves the corresponding event information, Various processes are performed for the event.

上記割り込みルーチン24において、非同期に発生する
事象情報をキューブロックに格納し、該当キューブロッ
クを使用キュー26aに繋げる場合の動作過程を(bl
)図によって説明する。
In the above interrupt routine 24, the operation process when event information that occurs asynchronously is stored in a queue block and the corresponding queue block is connected to the usage queue 26a is described below.
) Explained with a diagram.

(1)先ず、キュー26が持っている事象管理テーブル
260の未使用キュー26bの先頭キューブロック■に
、上記割り込みによって発生した事象情報を格納する。
(1) First, the event information generated by the above interrupt is stored in the first queue block (2) of the unused queue 26b of the event management table 260 that the queue 26 has.

(2)該事象管理テーブル260の未使用キュー↑のア
ドレスを、キューブロック■のNEXT 9がポイント
しているキューブロック■のアドレスに変更する。
(2) Change the address of the unused queue ↑ in the event management table 260 to the address of the queue block ■ pointed to by NEXT 9 of the queue block ■.

(3)使用キューブロックのチェインをたどり、最後の
キューブロックを検索し、該当するキューブロック■の
NEWT官のアドレスを、キューブロック■のアドレス
に変更する。
(3) Tracing the chain of used cue blocks, searching for the last cue block, and changing the address of the NEWT officer in the corresponding cue block (■) to the address of the cue block (2).

割り込みにより非同期に発生した事象情報は、上記の手
順を踏まえることにより、次々に使用キュー26aに繋
がれていく。
Event information that occurs asynchronously due to an interrupt is sequentially connected to the usage queue 26a by following the above procedure.

次に、事象情報処理ルーチン23゛において、アプリケ
ーション(APL) 25が要求する事象情報を使用キ
ュ26aから取り出し、各種処理を行って、不用となっ
たキューブロックを、未使用キュー26bに繋げる場合
の動作過程を、本図(b2)によって説明する。
Next, in the event information processing routine 23', the event information requested by the application (APL) 25 is extracted from the used queue 26a, various processes are performed, and the queue blocks that are no longer used are connected to the unused queue 26b. The operation process will be explained with reference to this figure (b2).

(1)  先ず、使用キューブロック26aのチェイン
をたどり、アプリケーション(APL) 25が要求す
る検索条件に該当するキューブロック■を検索する。
(1) First, the chain of used queue blocks 26a is traced to search for a queue block (2) that corresponds to the search condition requested by the application (APL) 25.

(2)該当キューブロック■の1つ前に位置するキュー
ブロック■のNEXT ?のアドレスを、該キューブロ
ック■のNEXT↑がポイントしているキューブロック
■のアドレスに変更する。
(2) NEXT of the cue block ■ located one place before the corresponding cue block ■? The address of the queue block ■ is changed to the address of the cue block ■ pointed to by NEXT↑ of the cue block ■.

(3)該当キューブロック■に対して、各種の処理を行
う。
(3) Perform various processes on the corresponding queue block (■).

(4)該各種処理が終わり、不用となったキューブロッ
ク■に対して、事象情報の消去を行う。
(4) After the various processes are completed, the event information is deleted from the queue block (2) which is no longer used.

(5)未使用キュー26bのチェインをたどり、最後の
キューブロックを検索し、該当するキューブロック■の
NEWT ?のアドレスを、上記キューブロック■のア
ドレスに変更する。
(5) Follow the chain of unused queues 26b, search for the last queue block, and select NEW? of the corresponding queue block ■? Change the address to the address of the queue block ■ above.

事象情報は、上記の手順を踏まえることにより、使用キ
ュー26aから外され、未使用キュー26bに繋がれて
いく。
Based on the above procedure, event information is removed from the used queue 26a and connected to the unused queue 26b.

上記の従来のキュー管理方式においては、使用キュー2
6a、未使用キュー26bを、割り込みルーチン24と
、事象情報処理ルーチン2302つのプログラムで操作
しているが、割り込みルーチン24は、事象情報処理ル
ーチン23よりも実行優先順位が高いため、該事象情報
処理ルーチン23が動作していても、新たな事象情報が
発生する度に、オペレーティングシステム(OS) 2
1からの割り込みによって、該事象情報処理ルーチン2
3の処理は一旦中断され、割り込みルーチン24に制御
が渡される。
In the conventional queue management method described above, the used queue 2
6a, the unused queue 26b is operated by two programs, the interrupt routine 24 and the event information processing routine 230, but since the interrupt routine 24 has a higher execution priority than the event information processing routine 23, it cannot process the event information. Even if the routine 23 is running, each time new event information occurs, the operating system (OS) 2
1, the event information processing routine 2
3 is temporarily interrupted and control is passed to the interrupt routine 24.

このような環境下では、使用キュー26a、未使用キュ
ー26bのキュー状態は保証されない。
Under such an environment, the queue states of the used queue 26a and unused queue 26b are not guaranteed.

この例を以下に説明する。An example of this will be explained below.

1)未使用キュー26bにチェインされているキューブ
ロックが保証されない場合の例:第3図(b2)におい
て、 (1)例えば、キューブロック■が事象情報処理ルーチ
ン23によって検索され、各種の処理が施されて不用に
なった場合、上記の手順によって、該キューブロック■
が、未使用キュー26bの最後のキューブロック■にチ
ェインされようとする。
1) Example of a case where a queue block chained to an unused queue 26b is not guaranteed: In FIG. 3 (b2), (1) For example, the queue block ■ is searched by the event information processing routine 23 and various processes If the cube block is no longer needed after being
is about to be chained to the last queue block ■ of the unused queue 26b.

(一点鎖線aで示す) (2)この直前に割り込みルーチン24に制御が渡ると
、該割り込みルーチン24によって、新たな事象情報が
、未使用キュ−26bの先頭のキューブロック■に格納
され、使用キュー26aの最後ノキューブロック■から
ポイントされ(一点鎖線すで示す)、未使用キュー26
bから切り離されて、該割り込みルーチン24の処理が
終了する。
(Indicated by a dashed line a) (2) When control is passed to the interrupt routine 24 immediately before this, the new event information is stored in the queue block (■) at the head of the unused queue 26b and used. It is pointed to from the last queue block ■ of the queue 26a (already indicated by the dashed line), and the unused queue 26
b, and the processing of the interrupt routine 24 ends.

(3)割り込みルーチン24の処理が終了し、事象情報
処理ルーチン23に制御が戻ると、該事象情報処理ルー
チン23は上記処理の続きとして、キューブロック■の
NEXT↑のアドレスをキューブロック■のアドレスに
変更し、キューブロック■のNEXT ?のアドレスを
クリアする。
(3) When the processing of the interrupt routine 24 is completed and control is returned to the event information processing routine 23, the event information processing routine 23 continues the above processing by changing the address of NEXT↑ of the queue block ■ to the address of the queue block ■. Change to Cube Block ■NEXT? clear the address.

この結果、(2)で新たな事象情報を格納したキューブ
ロック■は、キューブロック■とチェインされ、使用キ
ュ〜26a、及び未使用キュー26bから切り離された
状態となり、キューの状態に不都合が生じる。
As a result, the queue block ■ that stored the new event information in (2) is chained with the queue block ■, and is separated from the used queue 26a and the unused queue 26b, causing an inconvenience in the queue state. .

2) 次に使用キュー26aにチェインされているキュ
ーブロックが保証されない場合の例:第3図(b2)に
おいて、 (1)先ず、アプリケーション(APL) 25からの
要求に基づいて、事象情報処理ルーチン23が使用キュ
ー26aのチェインをたどり、検索条件に該当するキュ
ーブロック■をを検索する。
2) Next, an example where the queue block chained to the usage queue 26a is not guaranteed: In FIG. 3 (b2), (1) First, based on a request from the application (APL) 25, the event information processing routine 23 follows the chain of the used queue 26a and searches for the queue block (2) that meets the search condition.

(2)該当キューブロック■の1つ前に位置するキュー
ブロック■のNEXT ?のアドレスをキューブロック
■のNEχT?がポイントしているキューブロック■の
アドレスに変更する。 (二点鎖線Cで示す) (3)該当キューブロック■に対して各種処理を行い、
不用となったキューブロック■に対して事象情報の消去
を行う。
(2) NEXT of the cue block ■ located one place before the corresponding cue block ■? NEχT? Change to the address of the queue block ■ pointed to. (Indicated by two-dot chain line C) (3) Perform various processing on the corresponding cube block ■,
Event information is deleted from the queue block (■) that is no longer used.

(4)未使用キュー26bのチェインをたどり、最後の
キューブロックを検索し、該当するキューブロック■の
NEXT ?のアドレスを、上記キューブロック■のア
ドレスに変更する(二点鎖線dで示す)が、ここで、ア
ドレスを変更する直前に割り込みルーチン24に制御が
渡るとする。
(4) Follow the chain of unused queues 26b, search for the last queue block, and select the NEXT ? of the corresponding queue block ■. is changed to the address of the queue block (2) (indicated by a two-dot chain line d), but it is assumed that control is passed to the interrupt routine 24 immediately before the address is changed.

(5)割り込みルーチン24は未使用キュー26bの先
頭のキューブロック■に、該発生した事象情報を格納す
る。
(5) The interrupt routine 24 stores the event information that has occurred in the first queue block (2) of the unused queue 26b.

(6)使用キュー26aのチェインをたどり、最後のキ
ューブロックを検索し、8亥当するキューブロック■の
NEXT↑のアドレスをキューブロック■のアドレスに
変更する。 (二点鎖線eで示す)(7)該割り込みル
ーチン24の処理が終了し、事象情報処理ルーチン23
に制御が戻ると、該事象情報処理ルーチン23は処理の
続きとして、キューブロック■のNEXT↑のアドレス
をキューブロック■のアドレスに変更する。
(6) Follow the chain of the used queue 26a, search for the last cue block, and change the address of NEXT↑ of the cue block ■, which wins 8 times, to the address of the cue block ■. (Indicated by a two-dot chain line e) (7) The processing of the interrupt routine 24 is completed, and the event information processing routine 23
When the control returns to , the event information processing routine 23 continues the process by changing the address of NEXT↑ of the queue block ■ to the address of the queue block ■.

上記の処理の結果、未使用キュー26bにつながる筈の
キューブロック■が、使用キュー26aにつながれた侭
となり(具体的には、■に)■悼■悼■噂■(空き)と
なる)、キューの状態に不都合が生じる。
As a result of the above processing, the queue block ■, which should be connected to the unused queue 26b, becomes a block connected to the used queue 26a (specifically, it becomes ■) ■ Mourning ■ Mourning ■ Rumor ■ (empty)), An inconvenient state of the queue occurs.

この為、従来においては、キュー26に対してロック命
令を発行し、割り込みルーチン24と。
For this reason, conventionally, a lock instruction is issued to the queue 26 and the interrupt routine 24 is executed.

事象情報処理ルーチン23との間で排他制御を行うよう
にしていた。
Exclusive control was performed with the event information processing routine 23.

然しなから、割り込みルーチンは、非同期に発生する事
象情報をキュー26に繋げるため、その処理に高速性が
要求されるが、上記排他制御方式を採ると、割り込みル
ーチン24が、事象情報処理ルーチン23の処理が終了
する迄待たされることがあり、処理の高速性が欠けると
云う問題があった。
However, since the interrupt routine connects event information that occurs asynchronously to the queue 26, high-speed processing is required. However, if the above exclusive control method is adopted, the interrupt routine 24 is connected to the event information processing routine 23. There is a problem in that the processing speed is not high because the processing is sometimes made to wait until the processing is completed.

本発明は上記従来の欠点に鑑み、割り込み手段によって
発生する事象情報をキューに記憶しておき、該記憶した
事象情報を処理する時点で、検索条件に該当する事象情
報を該キューから取り出す手段を備えた、例えば、図形
データ処理システムにおいて、キューの状態に不都合が
生じることなく、且つ処理の高速性を満足させるキュー
管理方式を提供することを目的とするものである。
In view of the above-mentioned drawbacks of the conventional art, the present invention stores event information generated by an interrupt means in a queue, and at the time of processing the stored event information, takes out event information corresponding to a search condition from the queue. It is an object of the present invention to provide a queue management method that does not cause problems with the status of queues and satisfies high-speed processing in, for example, a graphic data processing system equipped with the present invention.

(問題点を解決するための手段〕 第1図は本発明のバッファリングキュー管理方式の構成
例を模式的に示した図である。
(Means for Solving the Problems) FIG. 1 is a diagram schematically showing a configuration example of a buffering queue management system of the present invention.

本発明においては、 割り込み手段24によって生起する事象情報をキュー2
6に記憶しておき、該記憶した事象情報を処理する時点
で、検索対象に該当する事象情報を該キュー26から取
り出す事象情報処理手段23を備えたデータ処理システ
ムにおいて、使用キュー26aと、未使用キュー26b
の他に、バッファキュー26cと、 上記未使用キュー26cの特定の位置に固定のキューブ
ロック■とを設けると共に、 上記割り込み手段24によって発生した事象情報を当該
キュー26にキューイングする際には、該未使用キュー
26bのチェインをたどり、上記固定キューブロック以
降にあるキューブロックに、該事象情報を格納した後、
該未使用キュー26bから取り出し、上記バッファキュ
ー26cにつなぐ第1の手段と、 事象情報が必要となって、上記使用キュー26aから取
り出す際には、 上記事象情報処理手段23が、使用キュー26aのチェ
インをたどり、検索条件に該当するキューブロックを検
索して、該使用キュー26aから取り出し、各種の処理
を施して不用となったキューの内容を消去した後、上記
未使用キュー26bの上記固定キューブロック■の前に
チェインしてキューイングし、 且つ上記バッファキュー26cにチェインされているキ
ューブロックを、上記使用キュー26aにキューイング
する第2の手段とによって、該割り込み手段24で使用
するキューと、該事象情報処理手段23で使用するキュ
ーとを独立にして、該キュー26を管理するように構成
する。
In the present invention, event information generated by the interrupt means 24 is sent to the queue 2.
6, and at the time of processing the stored event information, the data processing system includes an event information processing means 23 that retrieves event information corresponding to the search target from the queue 26. Usage queue 26b
In addition, a buffer queue 26c and a fixed queue block (2) are provided at a specific position of the unused queue 26c, and when event information generated by the interrupt means 24 is queued in the queue 26, After tracing the chain of the unused queue 26b and storing the event information in the queue block after the fixed queue block,
When event information becomes necessary and is taken out from the used queue 26a, the event information processing means 23 connects the unused queue 26b to the buffer queue 26c. After tracing the chain, searching for a cube block that meets the search conditions, taking it out of the used queue 26a, and performing various processes to erase the contents of the unused queue, the fixed cube in the unused queue 26b is removed. A second means of chaining and queuing before the lock (2) and queuing the queue block chained to the buffer queue 26c to the use queue 26a, the queue used by the interrupt means 24 is , the queue 26 is managed independently from the queue used by the event information processing means 23.

〔作用〕[Effect]

即ち、本発明によれば、割り込み手段によって発生する
事象情報をキューに記憶しておき、該記憶した事象情報
を処理する時点で、検索条件に該当する事象情報を該キ
ューから取り出す手段を備えた、例えば、図形データ処
理システムにおいて、該キューにバッフアキニーを設け
、上記割り込み手段は、未使用キューのチェインをたど
り、例えば、1番目の固定キューブロックの次の2番目
にあるキューブロックに新たな事象情報を格納して、該
未使用キューから取り出し、上記バッファキューに繋ぎ
、事象情報処理手段は、上記検索条件に該当するキュー
ブロックを抽出し、各種の処理を施して不用となった該
キューブロックを、上記未使用キューの先頭キューブロ
ックとしてチェインすることにより、割り込み手段と、
事象情報処理手段とで操作するキューの範囲を、上記未
使用キューの、上記1番目の固定キューブロックを境に
分けて管理するようにしたものであるので、割り込みル
ーチンと事象情報処理ルーチンとの間で排他制御を行う
必要がなくなり、入力装置から非同期に発生する事象情
報に対する処理を、事象情報処理ルーチンに待たされる
ことなく、最優先にキューイングすることができ、該割
り込みルーチンの処理時間を短縮することができる効果
がある。
That is, according to the present invention, event information generated by the interrupting means is stored in a queue, and at the time of processing the stored event information, means is provided for retrieving event information corresponding to the search condition from the queue. For example, in a graphical data processing system, a buffer is provided in the queue, and the interrupting means follows a chain of unused queues and, for example, inserts a new event into a second queue block after a first fixed queue block. The event information processing means stores the information, takes it out from the unused queue, connects it to the buffer queue, extracts the queue block that corresponds to the search condition, and performs various processes to retrieve the queue block that is no longer used. By chaining as the first queue block of the above unused queue, the interrupt means and
The range of queues to be manipulated by the event information processing means is managed by dividing it into the first fixed queue block of the unused queues, so that the interrupt routine and the event information processing routine can It is no longer necessary to perform exclusive control between the interrupt routines, and the processing of event information generated asynchronously from the input device can be queued with the highest priority without having to wait for the event information processing routine, reducing the processing time of the interrupt routine. It has the effect of being able to shorten the time.

〔実施例〕〔Example〕

以下本発明の実施例を図面によって詳述する。 Embodiments of the present invention will be described in detail below with reference to the drawings.

前述の第1図は本発明のバッファリングキューイング管
理方式の構成例を模式的に示した図であり、(a)は基
本構成の例を示し、(b)はキューブロックをバッファ
キューに繋げる過程を説明する図であり、(c)はキュ
ーブロックを使用キューに繋げる過程を説明する図であ
り、(d)はキューブロックを未使用キューに繋げる過
程を説明する図であり、第2図は本発明のバッファリン
グキュー管理方式による競合動作を説明する図であって
、第1図の(d)の過程で割り込み処理が入った場合の
動作を説明しており、第1図におけるバッファキュー2
6c、及び未使用キューの先頭のキューブロック■を固
定キューブロックとし、新たに発生した事象情報を、該
固定キューブロック■の次の2番目のキューブロックに
格納して、該バッファキュー26cにチェインする手段
と、不用になったキューブロックを、上記未使用キュー
に設けられている固定キューブロック■の前にチェイン
する手段が本発明を実施するのに必要な手段である。
The above-mentioned FIG. 1 is a diagram schematically showing an example of the configuration of the buffering queuing management system of the present invention, where (a) shows an example of the basic configuration, and (b) shows how queue blocks are connected to buffer queues. 2 is a diagram explaining the process, (c) is a diagram explaining the process of connecting a queue block to a used queue, and (d) is a diagram explaining the process of connecting a queue block to an unused queue; FIG. 1 is a diagram explaining the contention operation according to the buffering queue management method of the present invention, and explains the operation when an interrupt process occurs in the process of (d) in FIG. 1. 2
6c and the first queue block ■ of the unused queue are fixed queue blocks, and newly generated event information is stored in the second queue block next to the fixed queue block ■ and chained to the buffer queue 26c. A means for doing this and a means for chaining an unused queue block before the fixed queue block (2) provided in the unused queue are necessary means for carrying out the present invention.

尚、企図を通して同じ符号は同じ対象物を示している。Note that the same reference numerals refer to the same objects throughout the plan.

以下、第1図、及び第3図(a)によって、本発明のバ
ッファリングキュー管理方式を説明する。
The buffering queue management system of the present invention will be explained below with reference to FIG. 1 and FIG. 3(a).

本発明のキュー26においては、第1図(a)に示した
ように、従来の使用キュー26a、未使用キュー26b
に、バッファキュー26cを付加すると共に、未使用キ
ュー26bに固定のキューブロック■を設定する。この
ようなキュー26でのキューブロックの推移を(b)〜
(e)図を用いて以下に説明する。
In the queue 26 of the present invention, as shown in FIG. 1(a), the conventional used queue 26a, unused queue 26b
A buffer queue 26c is added to the buffer queue 26c, and a fixed queue block (2) is set in the unused queue 26b. The transition of the queue blocks in the queue 26 is shown in (b) ~
(e) This will be explained below using the figure.

1)割り込みルーチン24において、キューブロックを
未使用キュー26bからバッファキュー260に繋ぎ換
える過程:(第1図(b)参照)(1)未使用キュー2
6bのチェインをたどり、固定キューブロックである先
頭キューブロック■の次のキューブロック■に、全発生
した事象情報を格納する。
1) Process of reconnecting the queue block from the unused queue 26b to the buffer queue 260 in the interrupt routine 24: (See FIG. 1(b)) (1) Unused queue 2
6b is followed, and all event information that has occurred is stored in the queue block (2) next to the first queue block (2), which is a fixed queue block.

(2)未使用キュー26bの先頭のキューブロック■の
NEXT ?のアドレスを、該事象情報を格納した上記
キューブロック■のNEXT ?がポイントしているキ
ューブロック■のアドレスに変更する。
(2) NEXT of the first queue block ■ of the unused queue 26b? NEXT ? of the above queue block ■ that stores the event information. Change to the address of the queue block ■ pointed to.

(3)バッファキュー26cのチェインをたどり、最後
のキューブロックを検索し、該当するキューブロック■
のNEXT iiのアドレスを、上記キューブロック■
のアドレスに変更する。
(3) Follow the chain of buffer queue 26c, search for the last queue block, and find the corresponding queue block■
Enter the address of NEXT ii in the above queue block■
Change the address to .

これらの過程で、入力装置4から発生した事象情報をキ
ューブロック■に格納し、本発明のバッファキュー26
cにキューイングする。
During these processes, the event information generated from the input device 4 is stored in the queue block ■, and the buffer queue 26 of the present invention is stored.
Queue to c.

本発明を実施した場合、上記のように、割り込みルーチ
ン24で操作できるキューは、上記のバッファキュ−2
6cと、未使用キュー26bの固定キューブロック■の
次のキューブロック■に限るように機能させる。
When the present invention is implemented, as described above, the queues that can be operated by the interrupt routine 24 are the buffer queue 2 described above.
6c and the next queue block ■ after the fixed queue block ■ in the unused queue 26b.

2)次に、事象情報処理ルーチンにおいて、キューブロ
ックをバッファキューから使用キューに繋ぎ換える過程
:(第1図(c)参照)(1)使用キュー26aのチェ
インをたどり、最後のキューブロック■のNEXT↑の
アドレスを、バッファキュー26cがポイントしている
キューブロック■のアドレスに変更する。
2) Next, in the event information processing routine, the process of connecting the queue block from the buffer queue to the usage queue: (see FIG. 1(c)) (1) Tracing the chain of usage queue 26a, and reconnecting the queue block from the buffer queue to the usage queue. The address of NEXT↑ is changed to the address of queue block ■ pointed to by the buffer queue 26c.

(2)バッファキュー26cの↑のアドレスを“0゛に
変更する。
(2) Change the address ↑ of the buffer queue 26c to "0".

これらの過程で、バッファキュー26cに溜め込められ
ていたキューブロックを使用キュー26aにキューイン
グすることができる。
Through these processes, the queue blocks stored in the buffer queue 26c can be queued in the use queue 26a.

3)事象情報処理ルーチンにおいて、使用キューで不用
になったキューブロックを未使用キューに繋ぎ換える過
程:(第1図(d)参照)(1)使用キュー26aのチ
ェインをたどり、検索条件に該当するキューブロック■
を検索する。
3) In the event information processing routine, the process of connecting a queue block that is no longer used in the used queue to an unused queue: (See Figure 1 (d)) (1) Follow the chain of the used queue 26a and match the search condition. Cube block
Search for.

(2)該当キューブロック■の1つ前に(立置するキュ
ーフ゛ロック■のNEXT ?のアドレスを、=亥キュ
ーブロック■のNEXT ?がポイントしているキュー
ブロック■のアドレスに変更する。
(2) Change the address of the NEXT ? of the cue block ■ to be placed upright one position before the corresponding cue block ■ to the address of the cue block ■ pointed to by the NEXT ? of the cue block ■.

(3)該当キューブロック■に対して、各種の処理を行
う。
(3) Perform various processes on the corresponding queue block (■).

(4)該各種処理が終了して、不用となったキューブロ
ック■に対して事象情報の消去を行う。
(4) After the various processes are completed, event information is deleted from the queue block (2) which is no longer needed.

(5)  該キューブロック■のNEXT ?のアドレ
スを未使用キュー26bの?がポイントしている本発明
の固定キューブロック■のアドレスに変更する。
(5) NEXT of the corresponding cube block ■? address of unused queue 26b? Change it to the address of the fixed queue block (2) of the present invention that is pointed to.

(6)未使用キュー26bの?のアドレスを、キューブ
ロック■のアドレスに変更スル。
(6) Unused queue 26b? Change the address to the address of the cube block ■.

従って、事象情報処理ルーチン23が操作するキューブ
ロックは、使用キュー26aと、未使用キュー26bに
限られ、且つ未使用キュー26bにおいては、本発明の
固定キューブロック■を境にして、前述の割り込みルー
チンが操作するキューブロック(固定キューブロック■
の次のキューブロック■)とは独立になり、互いに干渉
することがなくなる。
Therefore, the queue blocks operated by the event information processing routine 23 are limited to the used queue 26a and the unused queue 26b, and in the unused queue 26b, the above-mentioned interrupt The queue block operated by the routine (fixed queue block)
It becomes independent from the next cube block (■) and does not interfere with each other.

以上説明した1)〜3)で説明した動作で、キューブロ
ックの繋ぎ替えを行う。
The queue blocks are reconnected by the operations described in 1) to 3) above.

このように、本発明においては、新たな事象情報の使用
キュー26aへのキューイング、及び不用キューブロッ
クの使用キュー26aからの取り出しにおいて、バッフ
ァキュー26cを設けて、且つ未使用キュー26bに固
定キューブロック■を設定することにより、割り込みル
ーチン24と、事象情報処理ルーチン23で使用する(
操作する)キューブロックが互いに独立にした構成にな
る為、事象情報処理ルーチン23が動作中に新たな事象
情報が発生して、割り込みルーチン24が起動され、該
事象情報の格納処理が行われても、キューブロック上で
の不都合は起こらない。
As described above, in the present invention, when queuing new event information to the used queue 26a and taking out unused queue blocks from the used queue 26a, the buffer queue 26c is provided, and fixed cubes are placed in the unused queue 26b. By setting the lock ■, it is used in the interrupt routine 24 and the event information processing routine 23 (
Since the queue blocks (operated) are configured to be independent from each other, new event information is generated while the event information processing routine 23 is operating, the interrupt routine 24 is activated, and the storage process of the event information is performed. However, no problem occurs on the queue block.

又、不用キューブロックの未使用キュー26c、へのキ
ューイング、及び新たな事象情報を格納したキューブロ
ックの未使用キュー26bからの取り出しにおいて、割
り込みルーチン24は前述のように、未使用キュー26
bのチェインをたどり、固定キューブロック (本例で
は先頭のキューブロック■)の次に位置するキューブロ
ック (本例では、2番目に゛あるキューブロック■)
を、該未使用キュー26bから取り出し、事象情報処理
ルーチン23は不用となったキューブロックを、該未使
用キュー26bの上記固定キューブロック■の前に、先
頭キューブロックとしてキューイングするように機能す
るので、チェインの破壊が起こることがない。
Further, in queuing an unused queue block to the unused queue 26c and taking out a queue block storing new event information from the unused queue 26b, the interrupt routine 24 uses the unused queue 26c as described above.
Following the chain b, find the queue block located next to the fixed queue block (in this example, the first queue block ■) (in this example, the second cube block ■)
is taken out from the unused queue 26b, and the event information processing routine 23 functions to queue the unused queue block as the first queue block in front of the fixed queue block (2) of the unused queue 26b. Therefore, chain destruction does not occur.

上記の動作を、第3図(a)に示した図形データ処理シ
ステムでの動作として説明すると、以下のようになる。
The above operation will be explained as follows in terms of the operation in the graphic data processing system shown in FIG. 3(a).

このシステムでは、割り込みルーチン24によって発生
する事象情報は、該割り込みルーチン24によって一旦
キュー26に繋がれ記憶される。
In this system, event information generated by the interrupt routine 24 is temporarily connected to a queue 26 by the interrupt routine 24 and stored therein.

その後、事象情報が必要になった時点で、事象情報処理
ルーチンによって、該当する事象情報が取り出されて処
理される。
Thereafter, when event information is needed, the event information processing routine retrieves and processes the relevant event information.

第3図の(a)において、操作者がタブレット。In FIG. 3(a), the operator is using a tablet.

キーボード等の入力装置4を操作し、図形処理の為の事
象データ(座標値9文字等)を入力すると、吊央処理装
置(CPU) 1に割り込みがかかる、中央処理装置(
CPU) 1が実行しているオペレーティングシステム
(O5) 21は、該割り込みの内容を判定し、入出力
スーパバイザ(IO3) 22をを経由して、割り込み
ルーチン24に制御を渡す。
When an input device 4 such as a keyboard is operated to input event data (coordinate values, 9 characters, etc.) for graphic processing, the central processing unit (CPU) 1 is interrupted.
The operating system (O5) 21 being executed by the CPU (CPU) 1 determines the content of the interrupt and passes control to the interrupt routine 24 via the input/output supervisor (IO3) 22.

該割り込みルーチン24は、本発明の場合、第1図(b
)図に示したように、上記入出力スーパバイザ(IO5
) 22から受は取った新たな事象情報を、未使用キュ
ー26bの2番目のキューブロック■に格納し、該当キ
ューブロック■を本発明のバッファキュー26cの最後
のキューブロック■に繋げる。
In the case of the present invention, the interrupt routine 24 is as shown in FIG.
) As shown in the figure, the above input/output supervisor (IO5
) The receiver stores the new event information taken from 22 into the second queue block ■ of the unused queue 26b, and connects the corresponding queue block ■ to the last queue block ■ of the buffer queue 26c of the present invention.

その後、第1図(C)において、アプリケーション(A
PL) 27からの要求により、事象情報が必要になっ
た時点で、オペレーティングシステム(OS) 21に
よって事象情報処理ルーチン23が起動され、該バッフ
ァキュー26cに溜め込まれたキューブロックを、使用
キュー26aの最後に繋げると共に、上記事象情報に該
当するキューブロック、例えば、キューブロック■に対
する各種の処理を行った結果、不用になると、該キュー
ブロック■は、第1図(d)図に示した手順で、未使用
キュー26bの先頭に繋がれる。
After that, in FIG. 1(C), the application (A
When event information becomes necessary in response to a request from PL) 27, the event information processing routine 23 is started by the operating system (OS) 21, and the queue blocks accumulated in the buffer queue 26c are transferred to the usage queue 26a. Finally, when the queue block corresponding to the above event information, for example, the queue block ■, becomes unnecessary as a result of various processing, the queue block ■ is processed according to the procedure shown in FIG. 1(d). , are connected to the head of the unused queue 26b.

第2図(a) 、 (b)は、事象情報処理ルーチン2
3が処理中に割り込みルーチン24に制御が移され、割
り込みルーチン24の処理が終了して、事象情報処理ル
ーチン23に制御が戻ったときの動作を示したものであ
る。
FIGS. 2(a) and 2(b) show event information processing routine 2.
3 shows the operation when control is transferred to the interrupt routine 24 during processing, and when the processing of the interrupt routine 24 is completed and control is returned to the event information processing routine 23.

先ず、<a)図の例について説明する。本例は従来方式
では問題となる第3図(b2)の一点鎖線a。
First, the example shown in <a) will be explained. In this example, the one-dot chain line a in FIG. 3 (b2) is a problem in the conventional method.

bで示した処理に対応している。This corresponds to the process shown in b.

(1)事象情報処理ルーチン23が使用キュー26aの
最後のキューブロック■に対する各種の処理を行い、該
処理が終了して、該キューブロック■が不用になり、前
述のようにして、未使用キュー26bの先頭キューブロ
ックとして繋げる溜めに、該キューブロック■のNEX
T↑のアドレスを、未使用キュー26bの?がポイント
しているキューブロック■のアドレスに変更するが、こ
こで、アドレスを変更する直前に割り込みルーチン24
に制御が渡るとする。
(1) The event information processing routine 23 performs various processing on the last queue block ■ of the used queue 26a, and when the processing is completed, the queue block ■ becomes unnecessary, and as described above, the unused queue The NEX of the cue block ■ is added to the reservoir connected as the first cue block of
The address of T↑ is the unused queue 26b? is changed to the address of the queue block ■ pointed to by the interrupt routine 24.
Suppose that control is passed to

(2)割り込みルーチン24は、新たに生起した事象情
報を未使用キュー26bのチェインをたどり、固定ブロ
ックとして設定されている先頭のキューブロック■の次
の、2番目のキューブロック■に格納し、バッファキュ
ー26cに繋げて、該割り込み処理を終了する。
(2) The interrupt routine 24 follows the chain of unused queues 26b to store newly generated event information in the second queue block ■ following the first queue block ■ set as a fixed block, The interrupt processing is then connected to the buffer queue 26c and the interrupt processing is completed.

(3)該割り込み処理が終了して、制御が事象情報処理
ルーチン23に制御が戻ると、該事象情報処理ルー・チ
ン23ば処理の続きとして、上記キューブロック■のN
EXT ?のアドレスを、未使用キュー26bの?がポ
イントしているキューブロック■のアドレスに変更し、
未使用キュー26bの?のアドレスを該キューブロック
■のアドレスに変更する。
(3) When the interrupt processing is completed and control is returned to the event information processing routine 23, the event information processing routine 23 continues the processing at the N of the queue block (3).
EXT? The address of the unused queue 26b? Change to the address of the cube block ■ pointed to,
Unused queue 26b? The address of the queue block (2) is changed to the address of the queue block (2).

(4)事象情報処理ルーチン23は更に、バッファキュ
ー26cに繋がれているキューブロック■を、使用キュ
ー26aの最後のキューブロック■に繋ぎ換える。
(4) The event information processing routine 23 further reconnects the queue block ■ connected to the buffer queue 26c to the last queue block ■ of the use queue 26a.

従って、従来方式において発生したようなキューの状態
に不都合が起きることはない。
Therefore, there is no problem with the queue status, which occurs in the conventional system.

次に、第2図(b)図の例について説明する。本例は従
来方式では問題となる第3図(b2)の二点鎖線c −
eで示した処理に対応している。
Next, the example shown in FIG. 2(b) will be explained. In this example, the two-dot chain line c −
This corresponds to the process shown in e.

(1)事象情報処理ルーチン23が使用キュー26aの
チェインをたどり、検索条件に該当するキューブロック
■を検索する。
(1) The event information processing routine 23 follows the chain of the use queue 26a and searches for a queue block (2) that meets the search condition.

(2)8亥当キユーブロツク■の1つ前にイ装置するキ
ューブロック■のNEXT 1iのアドレスを、該キュ
ーブロック■のNEXT [がポイントしているキュー
ブロック■のアドレスに変更する。
(2) 8. Change the address of NEXT 1i of the queue block ■ which is installed one place before the current queue block ■ to the address of the queue block ■ pointed to by the NEXT [ of the cube block ■.

(3)該当キューブロック■に対して、各種の処理を行
い、該処理が終了して、不用となったキューブロック■
に対して、事象情報の消去を行い、該キューブロック■
のNEXT ?のアドレスを、未使用キュー26bの↑
がポイントしている固定キューブロック■のアドレスに
変更するが、ここで、該アドレスを変更する直前に割り
込みルーチン24に制御が渡るとする。
(3) Various processes are performed on the corresponding cue block ■, and after the processing is completed, the cue block ■ becomes unnecessary.
, the event information is deleted and the corresponding queue block ■
NEXT? ↑ of the unused queue 26b
is changed to the address of the fixed queue block (2) pointed to by , but suppose that control is passed to the interrupt routine 24 immediately before the address is changed.

(4)割り込みルーチン24は、未使用キュー26bの
チェインをたどり、固定キューブロック■の次のキュー
ブロック■に、上記発生した事象情報を格納する。
(4) The interrupt routine 24 follows the chain of unused queues 26b and stores the above-mentioned event information that has occurred in the queue block (2) next to the fixed queue block (2).

(5)割り込みルーチン24は、バッファキュー26c
のチェインをたどり、最後のキューブロックの耽XT↑
のアドレスを、(本例では、該キューブロックはないの
で、該バッフアキニー26cの嘗のアドレスを)該キュ
ーブロック■のアドレスに変更して、該バッファキュー
26cに繋いで、該割り込み処理を終了し、事象情報処
理ルーチン23に制御を渡す。
(5) The interrupt routine 24 uses the buffer queue 26c.
Follow the chain and XT the last cube block ↑
(In this example, since the queue block does not exist, the address of the buffer queue 26c is changed from the previous address of the buffer queue 26c) to the address of the queue block ■, connects it to the buffer queue 26c, and ends the interrupt processing. , passes control to the event information processing routine 23.

(6)事象情報処理ルーチン23は、上記処理の続きと
して、上記キューブロック■のNEXT↑のアドレスを
、キューブロック■のアドレスに変更し、未使用キュー
26bの嘗のアドレスを該キューブロック■のアドレス
に変更することにより、キューブロック■が未使用キュ
ー26bに繋がれる。
(6) As a continuation of the above processing, the event information processing routine 23 changes the NEXT↑ address of the queue block ■ to the address of the queue block ■, and changes the previous address of the unused queue 26b to the address of the queue block ■. By changing the address, the queue block (2) is connected to the unused queue 26b.

従って、この場合にも、従来方式のときに発生したキュ
ーの状態の不都合が起きることはない。
Therefore, even in this case, the problem of queue status that occurs in the conventional system does not occur.

このように、本発明は、割り込みルーチンによって発生
する事象情報をキューに記憶しておき、アプリケーショ
ンからの要求に基づいて、該記憶した事象情報が必要に
なったとき、事象情報処理ルーチンが起動され、該キュ
ーを検索して取り出し処理する、例えば、図形データ処
理システムにおいて、キュー機構にバッファキューを設
けると共に、未使用キューの特定の位置、例えば、先頭
の位置のキューブロックを固定のキューブロックとして
設定し、該未使用キューの固定キューブロックを境界と
して、割り込みルーチンと、事象情報処理ルーチンとで
操作する範囲を分けることにより、割り込みルーチンと
、事象情報処理ルーチンとの競合によるキューの状態に
不都合が起きることを回避し、新たな事象情報は、割り
込みルーチンによって、高速に上記バッファキューにキ
ューイングするようにして該割り込み処理の処理時間を
短縮させるようにした所に特徴がある。
In this way, the present invention stores event information generated by an interrupt routine in a queue, and when the stored event information is required based on a request from an application, an event information processing routine is activated. For example, in a graphical data processing system that searches and retrieves the queue, a buffer queue is provided in the queue mechanism, and a queue block at a specific position of the unused queue, for example, at the head position, is set as a fixed queue block. By setting the fixed queue block of the unused queue as a boundary and dividing the range of operations between the interrupt routine and the event information processing routine, problems with the queue state due to conflicts between the interrupt routine and the event information processing routine can be avoided. The present invention is characterized in that new event information is quickly queued in the buffer queue using an interrupt routine, thereby shortening the processing time of the interrupt processing.

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

以上、詳細に説明したように、本発明のバッファリング
キュー管理方式は、割り込み手段によって発生する事象
情報をキューに記憶しておき、該記憶した事象情報を処
理する時点で、検索条件に該当する事象情報を該キュー
から取り出す手段を備えた、例えば、図形データ処理シ
ステムにおいて、該キューにバッファキューを設け、上
記割り込み手段は、未使用キューのチェインをたどり、
例えば、1番目の固定キューブロックの次の2番目にあ
るキューブロックに新たな事象情報を格納して、該未使
用キューから取り出し、上記バッファキューに繋ぎ、事
象情報処理手段は、上記検索条件に該当するキューブロ
ックを抽出し、各種の処理を施して不用となった該キュ
ーブロックを、上記未使用キューの先頭キューブロック
としてチェインすることにより、割り込み手段と、事象
情報処理手段とで操作するキューの範囲を、上記未使用
キューの、上記1番目の固定キューブロックを境に分け
て管理するようにしたものであるので、割り込みルーチ
ンと事象情報処理ルーチンとの間で排他制御を行う必要
がなくなり、人力装置から非同期に発生する事象情報に
対する処理を、事象情報処理ルーチンに待たされること
なく、最優先にキューイングすることができ、該割り込
みルーチンの処理時間を短縮することができる効果があ
る。
As described above in detail, the buffering queue management method of the present invention stores event information generated by an interrupt means in a queue, and at the time of processing the stored event information, the buffering queue management method according to the present invention For example, in a graphical data processing system comprising means for retrieving event information from the queue, a buffer queue is provided for the queue, and the interrupt means follows a chain of unused queues;
For example, new event information is stored in the second queue block after the first fixed queue block, taken out from the unused queue, and connected to the buffer queue, and the event information processing means meets the search condition. A queue that is operated by an interrupt means and an event information processing means by extracting a corresponding queue block, performing various processing, and chaining the queue block that is no longer used as the head queue block of the unused queues. Since the range of the unused queue is managed by dividing it into the first fixed queue block of the unused queue, there is no need to perform exclusive control between the interrupt routine and the event information processing routine. Processing for event information asynchronously generated from a human-powered device can be queued with the highest priority without having to wait for the event information processing routine, and the processing time of the interrupt routine can be shortened.

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

第1図は本発明のバッファリングキュー≠≠亭管理方式
の構成例を模式的に示した目 薬2図は本発明のバッファリングキュー管理方式による
競合動作を説明する図。 第3図は従来のキュー管理方式を説明する図。 である。 図面において、 lは中央処理装置(CPU) 、 2は主記憶装置(M
S) 。 21はオペレーティングシステム(O5)。 22は入出力スーパバイザ(10S)。 23は事象情報処理ルーチン。 24は割り込みルーチン。 25はアプリケーション(APL)。 26はキュー、26aは使用キュー。 26bは未使用キュー、26cはバッファキュー。 4は入力装置(タブレットキーボード)。 ↑はアドレス。 ■〜はキューブロック、■は固定キューブロック。 をそれぞれ示す。 ヘ    N    N へ   へ   へ (C) 事、<IJ目のへパソノアリソ2扁ニー皆間1牙への膚
1;lll’Jと漂云\、′臼V1ニホヒr−04 茅  1  口 \ρ     \Q      −、)〜   N  
 〜
FIG. 1 is a diagram schematically showing a configuration example of the buffering queue management method of the present invention.FIG. 2 is a diagram illustrating competing operations by the buffering queue management method of the present invention. FIG. 3 is a diagram explaining a conventional queue management method. It is. In the drawing, l is the central processing unit (CPU), 2 is the main memory (M
S). 21 is an operating system (O5). 22 is an input/output supervisor (10S). 23 is an event information processing routine. 24 is an interrupt routine. 25 is an application (APL). 26 is a queue, and 26a is a used queue. 26b is an unused queue, and 26c is a buffer queue. 4 is an input device (tablet keyboard). ↑ is the address. ■~ is a cue block, ■ is a fixed cue block. are shown respectively. He N N to he to (C) thing, <IJ eye hepasonoariso 2 flat knee minami 1 tusk to skin 1; Q -, ) ~ N
~

Claims (1)

【特許請求の範囲】 割り込み手段(24)によって生起する事象情報をキュ
ー(26)に記憶しておき、該記憶した事象情報を処理
する時点で、検索対象に該当する事象情報を該キュー(
26)から取り出す事象情報処理手段(23)を備えた
データ処理システムにおいて、使用キュー(26a)と
、未使用キュー(26b)の他に、バッファキュー(2
6c)と、 上記未使用キュー(26c)の特定の位置に固定のキュ
ーブロック([4])とを設けると共に、上記割り込み
手段(24)によって発生した事象情報を当該キュー(
26)にキューイングする際には、該未使用キュー(2
6b)のチェインをたどり、上記固定キューブロック以
降にあるキューブロックに、該事象情報を格納した後、
該未使用キュー(26b)から取り出し、上記バッファ
キュー(26c)につなぐ第1の手段と、 事象情報が必要となって、上記使用キュー(26a)か
ら取り出す際には、 上記事象情報処理手段(23)が、使用キュー(26a
)のチェインをたどり、検索条件に該当するキューブロ
ックを検索して、該使用キュー(26a)から取り出し
、各種の処理を施して不用となったキューの内容を消去
した後、上記未使用キュー(26b)の上記固定キュー
ブロック([4])の前にチェインしてキューイングし
、 且つ上記バッファキュー(26c)にチェインされてい
るキューブロックを、上記使用キュー(26a)にキュ
ーイングする第2の手段とによって、該割り込み手段(
24)で使用するキューと、該事象情報処理手段(23
)で使用するキューとを独立にして、該キュー(26)
を管理することを特徴とするバッファリングキュー管理
方式。
[Claims] Event information generated by the interrupt means (24) is stored in a queue (26), and at the time of processing the stored event information, event information corresponding to the search target is stored in the queue (26).
In a data processing system equipped with an event information processing means (23) for taking out event information from a buffer queue (26), in addition to a used queue (26a) and an unused queue (26b),
6c), and a fixed queue block ([4]) at a specific position of the unused queue (26c), and event information generated by the interrupt means (24) is transmitted to the queue ([4]).
26), the corresponding unused queue (26) is queued.
After tracing the chain of 6b) and storing the event information in the queue block after the fixed queue block,
a first means for taking out the unused queue (26b) and connecting it to the buffer queue (26c); 23) is the usage queue (26a
), search for a queue block that meets the search conditions, take it out of the used queue (26a), perform various processes to erase the contents of the queue that is no longer needed, and then move the queue block that meets the search conditions to the unused queue (26a). a second queue block which is chained and queued before the fixed queue block ([4]) of 26b), and which queues the queue block chained to the buffer queue (26c) to the usage queue (26a); by means of the interrupt means (
24) and the event information processing means (23).
) is used independently from the cue (26).
A buffering queue management method characterized by managing.
JP13678687A 1987-05-29 1987-05-29 Buffering queue managing system Granted JPS63298637A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13678687A JPS63298637A (en) 1987-05-29 1987-05-29 Buffering queue managing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13678687A JPS63298637A (en) 1987-05-29 1987-05-29 Buffering queue managing system

Publications (2)

Publication Number Publication Date
JPS63298637A true JPS63298637A (en) 1988-12-06
JPH0543138B2 JPH0543138B2 (en) 1993-06-30

Family

ID=15183485

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13678687A Granted JPS63298637A (en) 1987-05-29 1987-05-29 Buffering queue managing system

Country Status (1)

Country Link
JP (1) JPS63298637A (en)

Also Published As

Publication number Publication date
JPH0543138B2 (en) 1993-06-30

Similar Documents

Publication Publication Date Title
US8032716B2 (en) System, method and computer program product for providing a new quiesce state
US9372805B2 (en) Operating on translation look-aside buffers in a multiprocessor environment
US6553487B1 (en) Device and method for performing high-speed low overhead context switch
US8607239B2 (en) Lock mechanism to reduce waiting of threads to access a shared resource by selectively granting access to a thread before an enqueued highest priority thread
JPH0750456B2 (en) I / O control system
EP0175710A1 (en) Scheduling method and queue control arrangement.
EP0037264A2 (en) Associative memory system
US6675238B1 (en) Each of a plurality of descriptors having a completion indicator and being stored in a cache memory of an input/output processor
JPS63298637A (en) Buffering queue managing system
JPS603229B2 (en) Information processing method
US6775758B2 (en) Buffer page roll implementation for PCI-X block read transactions
JP3356090B2 (en) Memory management method, memory management device, and recording medium
US20240241845A1 (en) Command processing circuitry maintaining a linked list defining entries for one or more command queues and executing synchronization commands at the queue head of the one or more command queues in list order based on completion criteria of the synchronization command at the head of a given command queue
CN108304492B (en) Search list updating method, storage medium, device and system
JP2001134476A (en) Method for updating data base in a batch
JP2633635B2 (en) Control table allocation processing method
JPS61248124A (en) Input precedence control system
JPS638831A (en) Ring type queue control system
CA1306311C (en) I/o system for off-loading operating system functions
JP2534797B2 (en) Curing control system
JPS59163647A (en) Task control method
JPS60215250A (en) Data processor
JPH01134523A (en) Picture display device
JPH03257634A (en) Method and device for parallelly processing program
JPH0272461A (en) Computer system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees