JPH01173137A - Queue control system - Google Patents
Queue control systemInfo
- Publication number
- JPH01173137A JPH01173137A JP33143087A JP33143087A JPH01173137A JP H01173137 A JPH01173137 A JP H01173137A JP 33143087 A JP33143087 A JP 33143087A JP 33143087 A JP33143087 A JP 33143087A JP H01173137 A JPH01173137 A JP H01173137A
- Authority
- JP
- Japan
- Prior art keywords
- queue
- block
- address
- unused
- event
- 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
- 238000007726 management method Methods 0.000 claims description 14
- 230000010365 information processing Effects 0.000 abstract description 14
- 238000000034 method Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 210000003127 knee Anatomy 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、割り込み機能によりて発生する事象情報をキ
ュー形式で配憶してj?き、後で該事象情報を処理する
条件が整り走時点で、該事象情報をキューから取シ出す
機構を備えたデータ処理システムにおけるキュー管理方
式に関する。[Detailed Description of the Invention] [Field of Industrial Application] The present invention stores event information generated by an interrupt function in a queue format. The present invention relates to a queue management method in a data processing system having a mechanism for extracting event information from a queue when the conditions for processing the event information are satisfied later.
最近の計算機システムのハードウェア技術と、利用技術
の進歩に伴い、コンビエータグラフィックス(即ち、計
算機による図形処理)が盛んになってきた。2. Description of the Related Art Combiator graphics (that is, graphics processing by a computer) has become popular with recent advances in computer system hardware technology and utilization technology.
該図形処理においては、操作者による新たな事象データ
(例えば、グラフィックデイスプレィ上oimy−タ、
図形処理の為の)丁ンクク1ン指示等)の投入と、該事
象データによる図形処理とが非同期的に(即ち、対話的
でなく)行われ、該図形処理の高速化が図られてφる。In the graphic processing, the operator inputs new event data (for example, oimy data on the graphic display,
The input of instructions (for graphic processing) and the graphic processing using the event data are performed asynchronously (that is, not interactively), and the speed of the graphic processing is increased. Ru.
この為、上記投入された事象データは、順次キューブロ
ックに記憶されると共に、該事象データの投入とは非同
期的に、該事象データを処理する条件が整った段階で、
上記事象データが逐次読み出され、上記ファンクシ璽ン
に従りた図形処理が行われる。Therefore, the input event data is sequentially stored in the queue block, and asynchronously with the input of the event data, when the conditions for processing the event data are ready,
The event data is sequentially read out and graphic processing is performed according to the funxic code.
従って、該図形処理を効率良く行う為には、上記事象デ
ータのキューブロックへの格納処理と。Therefore, in order to efficiently perform the graphic processing, the event data must be stored in the queue block.
該格納処理とに非同期に発生する該キ^−グaツクに記
憶されている事象データの取り出し処理とを効果的に行
うことが必要とされる。It is necessary to effectively carry out the retrieval process of event data stored in the key a, which occurs asynchronously with the storage process.
114図は、従来の図形処理方式を説明する図であり、
第5図1w、6図は、従来の中2−管理方式を説明する
図である。FIG. 114 is a diagram illustrating a conventional graphic processing method,
FIGS. 5 1w and 6 are diagrams explaining the conventional junior high school 2nd management system.
先ず、114図において、操作者がグラフィックデイス
プレィ3を見ながら、タブレット、キーボード、ファン
クシ1ンスイツチ等の入力装置4を操作して、図形処理
の為の新たな事象データ(X。First, in FIG. 114, the operator operates the input device 4 such as a tablet, keyboard, function switch, etc. while looking at the graphic display 3 to input new event data (X) for graphic processing.
Y座標1図形処理フテンクシ碧ン等)を投入すると、中
央処理装置(CPU)1に割り込みがかかる。When the Y coordinate 1 graphic processing function (Ao, etc.) is input, an interrupt is generated to the central processing unit (CPU) 1.
中央処理装置(CPU)1においては、割込みルーチン
20が該割り込み要因を解析して、入出力スーパバイザ
(IO3)21 t−起動する。In the central processing unit (CPU) 1, an interrupt routine 20 analyzes the cause of the interrupt and activates the input/output supervisor (IO3) 21t.
入出力スーパバイザ(IO3)21は、入力装置1l1
4からのデータをセンスして、illり込みルーチン2
0に渡す。The input/output supervisor (IO3) 21 is an input device 1l1.
Sense the data from 4 and execute ill input routine 2.
Pass to 0.
割り込みルーチン20において、該非同期的に発生する
事象データをΦ為−ブロック23にキ為−イングする場
合、次の手順に従う。(第5図参照)
11) 未使用キューの先頭キューブロック■に、発
生した事象情報を格納する。In the interrupt routine 20, when keying the asynchronously occurring event data to the Φ event block 23, the following procedure is followed. (See Figure 5) 11) Store the event information that has occurred in the first queue block (■) of the unused queue.
(2) 事象管理テーブルの未使用キ瓢−令のアドレ
ス金1キ為−プ09り■のNEXT官がポイントしてい
るキューブロック■のアドレスに変更する。(2) Change the address of the unused keys in the event management table to the address of the queue block ■ pointed to by the NEXT officer in the block ■ due to one key.
(3) 使用キ為−プaツクのチエインを友とり、最
後のキューブロックを検索し、該当するキューブロック
■のNEXT?のアドレスを、l?為−ブロック■のア
ドレスに変更する。(3) To use the key - select the block chain, search for the last cube block, and select NEXT? of the corresponding cube block ■. The address of l? Therefore, change the address to block ■.
割り込みにより非同期に発生した事象情報は、上記手順
を踏まえることにより久AK使用キューにつながれて行
く。Event information that occurs asynchronously due to an interrupt is connected to the AK usage queue based on the above procedure.
一方で、事象を処理するための条件が揃うと、事象情報
処理ルーチンにおいて、必要になった事象情報を取り出
し、各種処理を行い不要となったキューブロックを未使
用キューに繋げる場合、次の手順に従う。WJ6図を参
照されたい。On the other hand, when the conditions for processing an event are met, the event information processing routine extracts the event information that becomes necessary, performs various processing, and connects unnecessary queue blocks to unused queues. Follow. Please refer to Figure WJ6.
(4)使用キューブロックのチエインteとり、検索条
件に該当するキューブロック■を検索する。(4) Find the chain te of the used cue block and search for the cue block {circle around (2)} that corresponds to the search condition.
(5)該当キ為−プaツク■の1つ前にあたる一?為−
ブa、り■のNEXT ?のアドレスを、Φ為−プa、
り■のNEXT?がポイントしている午エーブaツク■
のアドレスに変更する。(5) The corresponding key - the one before the block ■? For
BUa, Ri■'s NEXT? For the address of Φ,
Ri■'s NEXT? The hour A Tsuk that points to ■
Change the address to .
(6)該当キューブロック■に対し、各種処理を行う。(6) Perform various processing on the corresponding queue block (■).
(7)各種処理が終わり、不要となりた+、−ブaツク
■に対し、事象情報の消去を行う。(7) After various processes are completed, event information is deleted from + and - books (2) that are no longer needed.
(8)未使用′JPユーブC1−/りのチエインt−九
どり、最後の上2−ブロックを検索し、該当するキ1−
ブa、り■のNEXT?のアドレスを、キューブロック
■のアドレスに変更する。(8) Search for the unused 'JP Yub C1-/RI's chain t-Kudori, the last upper 2-block, and find the corresponding key 1-
Bua, Ri■'s NEXT? Change the address of to the address of the queue block ■.
事象情報は、上記手順を踏まえることにより、使用!?
エニーら外され、未使用キー−に繋がれて行く。Event information can be used by following the above steps! ?
Annie and others are removed and connected to an unused key.
上記のキュー管理方式において、使用キ&−1未使用キ
ー−を、割り込みルーチン、事象情報処理ルーチンの2
プログラムで操作しているが、割り込みルーチンは事象
情報処理ルーチンよりも、実行優先順位が高い几め、事
象情報処理ルーチンが動作していても、事象情報が発生
するたびに事象情報処理ルーチンの処理が一旦中、断さ
れ、割り込みルーチンに制御が渡される。このような環
境下では、使用キュー1未使用キ予−のキュー状態は保
証されない(事象情報処理ルーチンがキューの繋ぎ換え
t行っている最中に、割り込みルーチンが動作すると、
チエインが破壊される)。このため、従来は、使用する
キューブロックに対しロック命令を発行し、割り込みル
ーテンと事象情報処理ルーチンの間で排他制御を行って
来た。割り込みルーチンは、非同期に発生する事象情報
をキューに繋げるため、処理に高速性を要求されるが、
上記排他制御方式では、割り込みルーテンが、事象情報
処理ルーチンの処理が終了すJbまで待たされることが
あり、処理の高速性に欠けていた。In the above queue management method, the used keys & 1 unused key are used for interrupt routines and event information processing routines.
Although it is operated by a program, the interrupt routine has a higher execution priority than the event information processing routine, so even if the event information processing routine is running, the event information processing routine will process the event information every time event information occurs. is temporarily interrupted and control is passed to the interrupt routine. Under such an environment, the queue status of used queue 1 and unused keys is not guaranteed (if the interrupt routine operates while the event information processing routine is reconnecting the queues,
chain is destroyed). For this reason, conventionally, a lock instruction has been issued to the queue block to be used, and exclusive control has been performed between the interrupt routine and the event information processing routine. Interrupt routines connect event information that occurs asynchronously to a queue, so high-speed processing is required.
In the exclusive control method described above, the interrupt routine is sometimes forced to wait until Jb when the processing of the event information processing routine ends, resulting in a lack of high-speed processing.
第1@は本発明の単一チエインによるキュー管理方式の
構成例を示す図である。The first @ is a diagram showing a configuration example of a queue management method using a single chain according to the present invention.
本発明では、使用キューの後車に未使用キ1lk−をつ
なげて単一のチエイン23′を構成し、事象キュー管理
テーブル24′には、使用Φ瓢−先頭アドレス、未使用
キュー先頭アドレス、及び最終キューアドレスの3者を
管塩するよう構成する。In the present invention, a single chain 23' is constructed by connecting an unused key 1lk- to the rear car of the used queue, and the event queue management table 24' contains the used Φ-gon head address, the unused queue head address, and the final queue address.
これにより、新たな事象が生じた場合、割り込みルーチ
ン2G’は未使用キューの先頭に必要なデータを書き入
れて、事象キュー管理テーブル24′中の先頭キ1−ア
ドレスを更新しておくのみでよく、キューブロック相互
のつなぎ変え、即ちNEXT部の更新は不要となる。よ
って、事象情報処理ルーチン22′の動作中に割り込み
ルーチン20′が動作しても、チエインが破壊されるこ
とはなくなる。As a result, when a new event occurs, the interrupt routine 2G' only needs to write the necessary data to the head of the unused queue and update the head key 1 address in the event queue management table 24'. , there is no need to reconnect the queue blocks, that is, update the NEXT section. Therefore, even if the interrupt routine 20' operates while the event information processing routine 22' is operating, the chain will not be destroyed.
藁2図は本発明の一実施例において、新たな事象が生じ
て割り込みルーチンが空きキュープクック■に事象情報
を格納し、使用キューブロックとする過程を示した図で
ある。Figure 2 is a diagram illustrating a process in which a new event occurs and an interrupt routine stores event information in an empty queue block and makes it a used queue block in an embodiment of the present invention.
(1)未使用キ1−9がポイントしている$z−プaツ
ク■に、発生した事象情報を格納する。ただし、未使用
キュー?のアドレスが0の場合には、オーバー7c!−
となり、事象情報を捨てる。(1) Store the event information that has occurred in the $z-pock (■) pointed to by the unused key 1-9. However, an unused queue? If the address of is 0, then over 7c! −
, and the event information is discarded.
(2)未使用キュー合のアドレスを、キューブロック0
のNEX’lがポイントしているキューブロック■のア
ドレスに変更する。(2) Set the address of the unused queue block to queue block 0.
Change the address to the queue block ■ pointed to by NEX'l.
これらの過程で、発生した事象情報を、キューブロック
■に格納し、使用Φニーブロックとした。During these processes, the event information that occurred was stored in the cue block ■ and used as the Φ knee block.
第3図は事象情報処理ルーチンにおいて、キ。FIG. 3 shows the event information processing routine.
−ブロックを使用キ1−から、未使用キューにつなぎ換
える過程を示した図である。FIG. 3 is a diagram showing the process of reconnecting a block from a used key 1 to an unused queue.
(3)使用キューブロックのチエインを友とり、検索条
件に該当するキー−ブロック■を検索する。(3) Find the chain of used cue blocks and search for the key block ■ that meets the search conditions.
ただし、使用キュ−9と未使用+、−合がポイントして
いる中島−プ0ツクが一致した場合は、使用キー−ブロ
ックが存在しない(事象情報が何もない)状態である。However, if the used key block 9 matches the Nakajima block pointed to by the unused + and - blocks, there is no used key block (there is no event information).
(4)該当キューブロック■の1つ前にあたるキューブ
aツク■のNEXT1?のアドレスを、キュープロ、り
■のNEXT部がポイントしているキ為−プOyり■の
アドレスに変更する。(4) NEXT 1 of the cube a tsuku ■ which is one before the corresponding cube block ■? Change the address of the keypad to the address of the keypad pointed to by the NEXT part of the keypad.
(5)該当午、−ブロック■に対し、各種処理を行う。(5) Perform various processing on the -block ■ in the corresponding day.
(6)各種処理が終わり、不要となったキー−ブロック
■に対し、事象情報の消去を行う。(6) After various processes are completed, event information is deleted for the key block (2) that is no longer needed.
(7)最終キー−’hがポイントしているキ為−ブロ、
り■のNEXT部のアドレス全、キューブロック■のア
ドレスに変更する。(7) The last key - the key that 'h points to - Bro,
Change all the addresses in the NEXT section of RI to the addresses of the queue block ■.
(8)最終Φニー1がポイントしているキューブロック
■のアドレスを、キューブロック■のアドレスに変更す
る。また、未使用キュー廿のアドレスが0なら、未使用
−IF、−1)のアドレス金、キューブロック■のアド
レスに変更する。(8) Change the address of the cue block ■ pointed to by the final Φ knee 1 to the address of the cue block ■. Furthermore, if the address of the unused queue block is 0, it is changed to the address of the unused -IF, -1) queue block (2).
以上の過程により事象情報の取り出しと処理済みキュー
ブロックの返却が行なわれる。Through the above process, event information is retrieved and processed queue blocks are returned.
以上、詳細に説明したように、本発明の単一チエインに
よるキ為−管理方式は、使用キ為−の後に未使用キュー
を繋げる手段を用いることにより、割り込みルーチンと
事象情報処理ルーチンの間で排他制御を行う必要がなく
なり、非同期に発生する事象情報を、事象情報処理ルー
テンに待たされることなく、最優先にキ乳−イングする
ことが可能となり、割り込みルーテンの処理時間を短縮
することができる。As explained above in detail, the single chain key management method of the present invention uses a means to connect an unused queue after a used key, so that an interrupt routine and an event information processing routine can be There is no need to perform exclusive control, and event information that occurs asynchronously can be given top priority without having to wait for the event information processing routine, reducing the processing time of the interrupt routine. .
また、事象情報を格納したキューブロックを繋ぎ換える
処理も不要となるため、事象情報割り込みルーチンの処
理速度が高速化される。Further, since there is no need for processing to reconnect queue blocks storing event information, the processing speed of the event information interrupt routine is increased.
i1図は本発明の単一キニーによるキュー曾埋方式の構
成例を示す図、
第2図、第3図は本発明の一実施例の動作を説明する図
、
第4図は従来技術及び本発明t−説明するシステム構成
例を示す図、
s#!5図、第6図は従来例の動作を説明する図である
。
図面において、
1は中央処理装置(CPU)、2は主記憶装置(MS)
、24はオペレーティングシステム(O8)。
20は割シ込みルーチン。
21にI10スーパバイザ。
22は事象情報処理ルーテン。
23はキューブロック。
24に事象キュー管理テーブル、である。
代理人 弁理士 井 桁 貞 −”
入力fill(9アレット、キーボードt′と)菊団し
技旬1反び本発明と苦λ日月するシステム漠(八′図第
4図Figure i1 is a diagram showing a configuration example of the queue filling method using a single Kinney of the present invention, Figures 2 and 3 are diagrams explaining the operation of an embodiment of the present invention, and Figure 4 is a diagram showing the conventional technology and the present invention. Invention t - A diagram showing an example of a system configuration to be described, s#! 5 and 6 are diagrams for explaining the operation of the conventional example. In the drawing, 1 is the central processing unit (CPU), 2 is the main memory (MS)
, 24 is an operating system (O8). 20 is an interrupt routine. I10 supervisor on 21. 22 is an event information processing routine. 23 is a cube block. 24 is an event queue management table. Agent Patent Attorney Sada Igata -” Input fill (9th arrow, keyboard t’) Kikudan, Technique 1, Invention, and the system that is difficult to understand (Fig. 8’, Fig. 4)
Claims (1)
用キューの先頭キューブロックのアドレスと、未使用キ
ューの最終キューブロックのアドレスとを管理する事象
キュー管理テーブルを設けるとともに、使用中キューの
後に未使用キューをつなげておくようにし、新たな事象
のキューへの接続に際しては、事象キュー管理テーブル
より未使用キューの先頭アドレスを求めてそのキューブ
ロックへ事象情報を書き入れるとともに、当該キューブ
ロックの指している次キューブロックのアドレスをもつ
て、事象キュー管理テーブルの未使用キューの先頭アド
レスを更新するようにし、 又、使用中キューブロックの処理終了に際しては、当該
キューブロックを使用中キューから取り外して未使用キ
ューの末尾につなぎ変えるとともに、事象キュー管理テ
ーブルの最終キューブロックアドレスを当該キューブロ
ックを指すように更新するようにしたことを特徴とする
キュー管理方式。[Claims] In addition to providing an event queue management table for managing the address of the first queue block of the used queue, the address of the first queue block of the unused queue, and the address of the last queue block of the unused queue, An unused queue should be connected after the medium queue, and when connecting a new event to the queue, find the start address of the unused queue from the event queue management table, write the event information to that queue block, and write the event information to the queue block. The head address of the unused queue in the event queue management table is updated with the address of the next queue block pointed to by the queue block, and when processing of the queue block in use is completed, the queue block in use is updated. A queue management method characterized in that a queue block is removed from a queue and reconnected to the end of an unused queue, and a final queue block address in an event queue management table is updated to point to the queue block.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP33143087A JPH01173137A (en) | 1987-12-26 | 1987-12-26 | Queue control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP33143087A JPH01173137A (en) | 1987-12-26 | 1987-12-26 | Queue control system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01173137A true JPH01173137A (en) | 1989-07-07 |
Family
ID=18243577
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP33143087A Pending JPH01173137A (en) | 1987-12-26 | 1987-12-26 | Queue control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01173137A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0395633A (en) * | 1989-09-07 | 1991-04-22 | Fujitsu Ltd | Process information control system |
JP2009269458A (en) * | 2008-05-07 | 2009-11-19 | Nsk Ltd | Electric power steering device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5887634A (en) * | 1981-11-20 | 1983-05-25 | Fujitsu Ltd | Processing sequential managing system |
-
1987
- 1987-12-26 JP JP33143087A patent/JPH01173137A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5887634A (en) * | 1981-11-20 | 1983-05-25 | Fujitsu Ltd | Processing sequential managing system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0395633A (en) * | 1989-09-07 | 1991-04-22 | Fujitsu Ltd | Process information control system |
JP3085308B2 (en) * | 1989-09-07 | 2000-09-04 | 富士通株式会社 | Processing information management system |
JP2009269458A (en) * | 2008-05-07 | 2009-11-19 | Nsk Ltd | Electric power steering device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH01173137A (en) | Queue control system | |
JPH09160745A (en) | Computer system | |
JPS5840662A (en) | Terminal control system | |
CA1168367A (en) | Bidirectional character definition | |
JPS638831A (en) | Ring type queue control system | |
JP2928128B2 (en) | CPU peripheral device simulation method and method | |
JPS63298637A (en) | Buffering queue managing system | |
JPH03240135A (en) | Ct device | |
JPH01222335A (en) | Multi-task processing system | |
JPH0442336A (en) | Back-up system and information processor | |
JPH0488413A (en) | Input source selection type key input system | |
JPH02259920A (en) | Keyboard switching system | |
JPH1011346A (en) | Update device for data base | |
JPS61230189A (en) | Character pattern loading processing system | |
JPS5846444A (en) | Register group storage device | |
JPH0235562A (en) | Processing method for japanese syllabary to chinese character conversion | |
JPS6336365A (en) | Japanese language processor | |
JPH03116202A (en) | Programming device for programmable controller | |
JPH03110643A (en) | Master file operating system | |
JPH0668728B2 (en) | Virtual computer system | |
JPH0651817A (en) | Programmable controller | |
JP2001282225A (en) | Character display controller and its manufacturing method | |
JPS59200346A (en) | Microprogram controller | |
JPS62298846A (en) | Memory controller | |
JP2005038094A (en) | Program operation simplification method, program operation simplification device and recording medium |