JPS6226745B2 - - Google Patents
Info
- Publication number
- JPS6226745B2 JPS6226745B2 JP57229879A JP22987982A JPS6226745B2 JP S6226745 B2 JPS6226745 B2 JP S6226745B2 JP 57229879 A JP57229879 A JP 57229879A JP 22987982 A JP22987982 A JP 22987982A JP S6226745 B2 JPS6226745 B2 JP S6226745B2
- Authority
- JP
- Japan
- Prior art keywords
- memory means
- terminal device
- terminal
- queue
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Communication Control (AREA)
- Computer And Data Communications (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
【発明の詳細な説明】
〔発明の利用分野〕
本発明はオンライン情報処理システムに係り、
詳しくは、端末への情報転送の制御方式に関する
ものである。[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to an online information processing system,
Specifically, it relates to a control method for information transfer to a terminal.
証券業務のようなオンライン・システムにおい
ては、端末からの受信が優先するため、受信の繁
忙時、端末への出力情報がセンタ装置内で一時的
に滞る場合がある。このようなシステムでは、一
般にセンタ装置に出力キユーフアイルを持ち、該
フアイルに送信待ちの出力情報をキユーイングし
ておき、端末への送信が可能になつた時点で順に
吐き出す方式がとられる。しかし、従来は出力キ
ユーフアイルとして端末別キユーフアイルが多く
用いられていたため、次のような欠点があつた。
In an online system such as a securities business, reception from a terminal takes priority, so during busy reception times, information output to the terminal may be temporarily delayed within the center device. In such a system, the center device generally has an output queue file, and output information waiting to be transmitted is queued in the file, and outputted in order when it becomes possible to transmit it to the terminal. However, in the past, terminal-specific queue files were often used as output queue files, resulting in the following drawbacks.
(1) 端末単位にフアイルを持つため、分割損がど
うしても生じる。(1) Because each terminal has a file, splitting losses inevitably occur.
(2) (1)の分割損を小さくするために容量を制限す
ると、その容量を越えて出力キユーが滞留した
場合の措置が複雑となる。(2) If the capacity is limited in order to reduce the division loss in (1), the measures to be taken when output queues accumulate beyond the capacity become complicated.
(3) 端末障害時の代行処理が非常に複雑となる。(3) Actual processing in the event of a terminal failure becomes extremely complicated.
一方、上記(1)、(2)の欠点を克服するために、出
力キユーフアイルを1本のシーケンシヤル出力キ
ユーフアイルとして、端末への出力情報を、端末
別とは無関係に発生順にシーケンシヤルにキユー
イングすることが考えられるが、出力制御が非常
に複雑となり、又、出力キユーフアイルへのアク
セスが極端に増大する等の問題がある。 On the other hand, in order to overcome the drawbacks of (1) and (2) above, it is possible to use a single sequential output queue file as the output queue file and sequentially queue the output information to the terminal in the order in which it occurs, regardless of the terminal. Although this is possible, there are problems such as the output control becomes extremely complicated and the number of accesses to the output queue file increases dramatically.
本発明の目的は、端末への出力キユーフアイル
の分割損を避けるため、シーケンシヤルな出力キ
ユーフアイルを用いた場合において、出力制御が
簡便で、かつ出力キユーフアイルへのアクセスか
効率的に行える方式を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a method for easily controlling the output and efficiently accessing the output queue file when using a sequential output queue file in order to avoid division loss of the output queue file to a terminal. It is in.
本発明はシーケンシヤルな端末出力キユーフア
イルの使用を前提とするが、これとは別に、各端
末毎のキユーメモリを用意する。このキユーメモ
リは、従来の端末別キユーフアイルとは機能が全
く異なり、シーケンシヤル出力キユーフアイルの
二次メモリとして用いられる。即ち、該キユーメ
モリにキユーイングされる各端末の電文数は一定
に制限を受け、未キユーイング電文数はシーケン
シヤル端末出力キユーフアイル上に保持される。
The present invention is premised on the use of a sequential terminal output queue file, but separately from this, a queue memory is prepared for each terminal. This queue memory has a completely different function from the conventional queue file for each terminal, and is used as a secondary memory of the sequential output queue file. That is, the number of messages for each terminal that can be queued in the queue memory is limited to a certain extent, and the number of messages that have not been queued is held in the sequential terminal output queue file.
また、本発明では、上記シーケンシヤル端末出
力キユーフアイルと各端末毎キユーメモリ間のキ
ユーイング処理を簡便にするため、キユーメモリ
管理テーブルを用意する。シーケンシヤル出力キ
ユーフアイルからキユーメモリへの登録処理は、
上記キユーメモリ管理テーブルを参照しながら専
用タスクで行う。 Furthermore, in the present invention, a queue memory management table is prepared in order to simplify the queuing process between the sequential terminal output queue file and the queue memory for each terminal. The registration process from the sequential output queue file to the queue memory is as follows:
This is done in a dedicated task while referring to the above queue memory management table.
〔発明の実施例〕
第1図はオンライン・システムの概略構成を示
す。図中、各端末1は共通回線および/または個
別回線を通して中央処理装置2と結ばれている。
中央処理装置2には主記憶装置3および外部記憶
装置4が接続されている。以下、本発明の説明で
は、主記憶装置3の一部を各端末毎のキユーメモ
リとキユーメモリ管理テーブルに使用し、又、外
部記憶装置4はシーケンシヤル端末出力キユーフ
アイルに使用するものとする。[Embodiment of the Invention] FIG. 1 shows a schematic configuration of an online system. In the figure, each terminal 1 is connected to a central processing unit 2 through a common line and/or an individual line.
A main storage device 3 and an external storage device 4 are connected to the central processing unit 2 . In the following description of the present invention, it is assumed that a part of the main storage device 3 is used for a queue memory and a queue memory management table for each terminal, and that the external storage device 4 is used for a sequential terminal output queue file.
第2図は端末からのサービス要求に対し、その
回答電文をシーケンシヤル端末出力キユーフアイ
ルにキユーイングするまでの説明図である。第2
図において、各端末1より入力された電文は中央
処理装置2で処理され、処理順にバツフア・レジ
スタ21に次々にバツフアリングされていく。こ
のようにして、所定長の回答電文が揃うと、外部
記憶装置4のシーケンシヤル端末出力キユーフア
イル41に書き込まれる。WPはシーケンシヤル
端末出力キユーフアイル41の最新の書込み位置
を示すポインタ(最新ライトポインタ)である。
後述するように、該最新ライトポインタWPはキ
ユーメモリ管理テーブルで管理されており、1ブ
ロツクの電文が外部記憶装置4のシーケンシヤル
端末出力キユーフアイル41に書込まれる都度、
その内容が更新され、次の書込み位置を示すこと
になる。 FIG. 2 is an explanatory diagram of the process of queuing a response message to a sequential terminal output queue file in response to a service request from a terminal. Second
In the figure, messages input from each terminal 1 are processed by a central processing unit 2 and buffered one after another into a buffer register 21 in the order of processing. In this way, when response messages of a predetermined length are completed, they are written to the sequential terminal output queue file 41 of the external storage device 4. WP is a pointer (latest write pointer) indicating the latest write position of the sequential terminal output queue file 41.
As will be described later, the latest write pointer WP is managed by a queue memory management table, and each time one block of messages is written to the sequential terminal output queue file 41 of the external storage device 4,
Its contents will be updated to indicate the next writing position.
第3図はシーケンシヤル端末出力キユーフアイ
ルの電文をキユーメモリに登録し、それを端末に
出力するまでの説明図である。第3図において、
31は端末へ出力する電文(回答電文)を各端末
毎に一定数キユーイングしておくキユーメモリで
あり、32は該キユーメモリ31のキユーイング
処理に必要な情報を管理しているキユーメモリ管
理テーブルであり、いずれも主記憶装置3の所望
領域が割当てられる。RPはシーケンシヤル端末
出力キユーフアイル41の最新の読出し位置を示
すポインタ(最新リードポインタ)、NPはシーケ
ンシヤル端末出力キユーフアイル41上に未出力
のまま残つている電文群の最若番読出し位置を示
すポインタ(未出力リードポインタ)である。こ
れらのポインタRP及びNPも、先の最新ライトポ
インタWPと同様にキユーメモリ管理テーブル3
2で管理される。 FIG. 3 is an explanatory diagram of the process from registering the message of the sequential terminal output queue file in the queue memory to outputting it to the terminal. In Figure 3,
31 is a queue memory for queuing a fixed number of messages (reply messages) to be output to the terminal for each terminal; 32 is a queue memory management table that manages information necessary for queuing processing of the queue memory 31; A desired area of the main storage device 3 is also allocated. RP is a pointer indicating the latest read position of the sequential terminal output queue file 41 (latest read pointer), and NP is a pointer indicating the lowest read position of the message group remaining unoutputted on the sequential terminal output queue file 41 (unread pointer). output read pointer). These pointers RP and NP are also stored in the queue memory management table 3 in the same way as the latest write pointer WP.
Managed by 2.
シーケンシヤル端末出力キユーフアイル41か
らキユーメモリ31へのキユーイング処理にはA
とBの2つの専用タスクが割当てられ、又、キユ
ーメモリ31から各端末への出力処理にはCの専
用タスクが割当てられ、これらの専用タスクは
各々キユーメモリ管理テーブル32を参照しなが
ら動作していく。 Queuing processing from the sequential terminal output queue file 41 to the queue memory 31 is performed using A.
Two dedicated tasks, C and B, are assigned, and a dedicated task C is assigned to output processing from the queue memory 31 to each terminal, and each of these dedicated tasks operates while referring to the queue memory management table 32. .
タスクAは新たにシーケンシヤル端末出力キユ
ーフアイル41に収容された電文をキユーメモリ
31に各端末別にキユーイングするタスクであ
る。該タスクAはキユーフアイル41に新規の電
文があれば、最新リードポインタRP以降の電文
を読出し、キユーメモリ31の満杯となつている
端末領域の電文はとばし、満杯となつていない端
末領域の電文について、各端末毎にキユーイング
していく。一方、タスクBは、タスクAがキユー
メモリ31に空きがなくて登録できなかつた電文
を該キユーメモリ31にキユーイングするタスク
である。即ち、該タスクBはキユーメモリ管理テ
ーブル32を参照しながら、未出力リードポイン
タNPが示すシーケンシヤル端末出力キユーフア
イル41の電文から読み直していつて、キユーメ
モリ31で空きができた端末領域の電文について
キユーイングしていき、空きがなくなれば、キユ
ーフアイル41における当該電文群の最若番読出
し位置を新しく未出力リードポインタNPとす
る。両タスクA,Bは、キユーメモリ管理テーブ
ル32を逐次参照しながらキユーイング処理を行
つているため、キユーメモリ31上で電文の追越
し登録は生じないようになつている。なお、タス
クA,Bの詳細動作は後述する。 Task A is a task for queuing a message newly stored in the sequential terminal output queue file 41 into the queue memory 31 for each terminal. If there is a new message in the queue file 41, task A reads the messages after the latest read pointer RP, skips the messages in the terminal area of the queue memory 31 that are full, and reads the messages in the terminal area that is not full. Queuing is performed for each terminal. On the other hand, task B is a task for queuing in the queue memory 31 the message that task A could not register because there was no space in the queue memory 31. In other words, task B refers to the queue memory management table 32, rereads the messages in the sequential terminal output queue file 41 indicated by the unoutput read pointer NP, and queues the messages in the terminal area that has become available in the queue memory 31. , if there is no more space, the read position of the lowest number of the message group in the queue file 41 is set as a new unoutput read pointer NP. Since both tasks A and B perform the queuing process while sequentially referring to the queue memory management table 32, overtaking registration of messages on the queue memory 31 does not occur. Note that detailed operations of tasks A and B will be described later.
タスクCはキユーメモリ管理テーブル32を参
照しながらキユーメモリ31の電文を、例えば予
め定められた端末順あるいは満杯となつた端末順
に読み出すタスクである。キユーメモリ31から
読出された電文は、中央処理装置2を経由して該
当端末へ送られる。なお、タスクCはキユーメモ
リ31から電文を読出すと、キユーメモリ管理テ
ーブル32を更新する。 Task C is a task of reading out the messages in the queue memory 31, for example, in the order of predetermined terminals or in the order of full terminals, while referring to the queue memory management table 32. The message read from the queue memory 31 is sent to the corresponding terminal via the central processing unit 2. Note that when task C reads the message from the queue memory 31, it updates the queue memory management table 32.
第4図はシーケンシヤル端末出力キユーフアイ
ル41とキユーメモリ31の関係を示したもので
ある。いま、シーケンシヤル端末出力キユーフア
イル41に対する電文の書込みがnブロツクのn
−1レコードまで終つているとする。この時、最
新ライトポインタWPの値は、ブロツク番号=
n、レコード番号=nである。一方、タスクAに
よるキユーイング処理は該シーケンシヤル・キユ
ーフアイル41のブロツクn−1まで進行してい
るとする。従つて、最新リードポインタRPの値
は、ブロツク番号=n、レコード番号=1であ
る。また、未出力リードポインタNPは、ブロツ
ク番号=m、レコード番号=mを示しているとす
る。 FIG. 4 shows the relationship between the sequential terminal output queue file 41 and the queue memory 31. Now, the writing of messages to the sequential terminal output queue file 41 is n of n blocks.
Assume that -1 record has been completed. At this time, the value of the latest write pointer WP is block number =
n, record number=n. On the other hand, it is assumed that the queuing process by task A has progressed to block n-1 of the sequential queue file 41. Therefore, the values of the latest read pointer RP are block number=n and record number=1. It is also assumed that the unoutput read pointer NP indicates block number=m and record number=m.
シーケンシヤル端末出力キユーフアイル41の
ブロツクn−1までキユーイング処理が進行した
時点で、キユーメモリ31では、端末A,B,I
の領域が、まだ新規の電文を登録可能である。こ
の状態でタスクAによりシーケンシヤル端末出力
キユーフアイル41のRP以降の電文が読出され
ると、電文n1はキユーメモリ31の端末A領域
に、電文no-1は端末B領域にそれぞれ新規にキ
ユーイングされる。なお、端末B領域はこれで満
杯となり、以後、端末Bの電文がシーケンシヤ
ル・キユーフアイル41に入力されると、キユー
メモリ31に空きが生じるまで該キユーフアイル
41で待たされることになる。 When the queuing process has progressed to block n-1 of the sequential terminal output queue file 41, the queue memory 31 stores terminals A, B, and I.
It is still possible to register new messages in this area. In this state, when task A reads the messages after RP in the sequential terminal output queue file 41, message n1 is newly queued in the terminal A area of the queue memory 31, and message n o-1 is newly queued in the terminal B area. . Note that the terminal B area is now full, and from now on, when a message from terminal B is input to the sequential queue file 41, it will have to wait in the queue file 41 until there is space in the queue memory 31.
一方、キユーメモリ31における端末CとXの
領域はすでに満杯である。この為、タスクBの処
理でもつて、NPが示すシーケンシヤル端末出力
キユーフアイル41の電文mmをキユーメモリ3
1の端末X領域にキユーイングしようとしても、
該キユーイングは不可能である。この場合、タス
クBは、シーケンシヤル・キユーフアイル41に
残つている端末X以外の電文のキユーイング処理
に移り、その後、あらためて電文mmのキユーイ
ングを試みることになる。 On the other hand, the areas for terminals C and X in the queue memory 31 are already full. Therefore, even in the processing of task B, the message mm in the sequential terminal output queue file 41 indicated by NP is stored in the queue memory 3.
Even if I try to queue to the terminal X area of 1,
The queueing is not possible. In this case, task B moves to the queuing process for the messages remaining in the sequential queue file 41 for terminals other than terminal X, and then attempts to queue the message mm again.
第5図はキユーメモリ管理テーブル32の詳細
図である。即ち、キユーメモリ管理テーブル32
は、各端末毎にキユーメモリ内の現登録電文数情
報、RP以降の電文登録可否情報、未登録ポイン
タ情報を持つとともに、各端末に共通の最新ライ
トポインタWP、最新リードポインタRP及び未出
力リードポインタNPを持つている。該キユーメ
モリ管理テーブル32の内容は、第4図に示すシ
ーケンシヤル端末出力キユーフアイル41とキユ
ーメモリ31の状態に対応する。ただし、キユー
メモリ31へ登録可能な最大電文数は各端末共30
としている。 FIG. 5 is a detailed diagram of the queue memory management table 32. That is, the queue memory management table 32
has information on the number of currently registered messages in the queue memory, information on whether messages can be registered after RP, and unregistered pointer information for each terminal, as well as the latest write pointer WP, latest read pointer RP, and unoutput read pointer common to each terminal. Has NP. The contents of the queue memory management table 32 correspond to the states of the sequential terminal output queue file 41 and the queue memory 31 shown in FIG. However, the maximum number of messages that can be registered in the queue memory 31 is 30 for each terminal.
It is said that
第5図において、未登録ポインタと未出力リー
ドポインタNPは次のような関係にある。即ち、
未登録ポインタは各端末対応にあり、各端末毎
に、シーケンシヤル・キユーフアイル41に未出
力状態で残つている電文群中の最も若い位置(ブ
ロツク番号とレコード番号の対)を示すものであ
る。この各端末毎の未登録ポインタ中の最若番の
ものを抽出したのが未出力リードポインタNPで
ある。なお、未登録ポインタ欄の「−」は、当該
端末についてはシーケンシヤル・キユーフアイル
41に未出力で残つている電文がないことを意味
している。 In FIG. 5, the unregistered pointer and unoutput read pointer NP have the following relationship. That is,
An unregistered pointer is provided for each terminal, and indicates, for each terminal, the youngest position (pair of block number and record number) in the group of messages remaining in the sequential file 41 in an unoutput state. The unoutput read pointer NP is extracted from the unregistered pointers for each terminal with the lowest number. Note that "-" in the unregistered pointer column means that there is no unoutputted message remaining in the sequential file 41 for the terminal in question.
次に、専用タスクAとタスクBの処理の詳細を
説明する。 Next, details of the processing of dedicated task A and task B will be explained.
第6図はタスクAの処理フロー図である。タス
クAはタイマで起動され、まずRPを処理装置内
のワーキングレジスタにセツトし(ステツプ
100)、シーケンシヤル端末出力キユーフアイル4
1に新規電文があるかどうかをRPとWPを比較し
て判定する(ステツプ101)。もしRP=WPで新規
電文がなければ、タイマをセツトして、所定の時
間、処理の開始を待つ(ステツプ107)。一方、
RP<WPであれば、シーケンシヤル端末出力キユ
ーフアイル41でRPで示される電文を読出す
(ステツプ102)。次に、キユーメモリ管理テーブ
ル32を参照して、キユーメモリ31内の該当端
末領域が登録可能か否か調べ(103)、登録可能で
あれば、電文を該端末領域へ新規キユーイングす
る(104)。次に、キユーメモリ管理テーブル
(MTBL)32について、該当端末に対応する現
登録電文数のカウントアツプ、以後の電文登録可
否の変更(新規キユーイングで満杯となつたら不
可とする)、RPの更新などを行う(ステツプ
105)。そして、ワークレジスタの内容を歩進した
後(ステツプ106)、ステツプ101にもどる。一
方、ステツプ103で該当端末領域に対する登録不
可が判定されると、そのままステツプ105に行
く。この場合、ステツプ105では、未登録ポイン
タの設定(該当未登録ポインタが未設定の時、
RPの値をセツトする)、RPの更新などが行われ
る。以下、同様の動作を繰返し、PR=WPになる
と、タイマをセツトして終了する。 FIG. 6 is a processing flow diagram of task A. Task A is started by a timer and first sets RP in the working register in the processing unit (step
100), sequential terminal output queue file 4
It is determined whether there is a new message in 1 by comparing RP and WP (step 101). If RP=WP and there is no new message, a timer is set and the process waits for a predetermined period of time (step 107). on the other hand,
If RP<WP, the message indicated by RP is read out from the sequential terminal output queue file 41 (step 102). Next, referring to the queue memory management table 32, it is checked whether the corresponding terminal area in the queue memory 31 can be registered (103), and if it is possible to register, the message is newly queued to the terminal area (104). Next, regarding the queue memory management table (MTBL) 32, count up the number of currently registered messages corresponding to the corresponding terminal, change whether or not future message registration is possible (it will not be possible if it becomes full with new queuing), update the RP, etc. Do (step)
105). After incrementing the contents of the work register (step 106), the process returns to step 101. On the other hand, if it is determined in step 103 that registration is not possible for the corresponding terminal area, the process directly proceeds to step 105. In this case, in step 105, the unregistered pointer is set (when the corresponding unregistered pointer is unset,
RP value is set), RP is updated, etc. Thereafter, the same operation is repeated, and when PR=WP, a timer is set and the process ends.
第7図aとbはタスクBの処理フロー図であ
る。上記タスクAと同様に、タスクBもタイマで
起動され、まずNPをワーキングレジスタにセツ
トし(ステツプ200)、未出力の電力がシーケンシ
ヤル端末出力キユーフアイル41にあるかどう
か、NPとRPを比較して判定する(ステツプ
201)。もしNP=RPで未出力の電文が残つていな
いと、タイマをセツトして、所定の時間、処理の
開始を待つ(ステツプ213)。一方、NP<RPであ
れば、該NPで示される電文をシーケンシヤル端
末出力キユーフアイル41から読出し(ステツプ
202)、該電文がキユーメモリ31に登録可能か否
かを、キユーメモリ管理テーブル32を参照して
調べる(ステツプ203)。その結果、まだ登録不可
能であれば、キユーメモリ管理テーブル32の未
登録ポインタ群中のNPの次に若い未登録ポイン
タを読出してワーキングレジスタにセツトし(ス
テツプ214)、ステツプ201、202、203の処理を繰
り返す。即ち、NPが示している電文が登録不可
能であれば、次に若い未登録ポインタを持つ端末
の電文が処理対象となる。 7a and 7b are processing flow diagrams of task B. FIG. Similar to task A above, task B is also started by a timer, first sets NP in the working register (step 200), and compares NP and RP to see if there is unoutput power in the sequential terminal output queue file 41. Judgment (step
201). If NP=RP and there are no unoutput messages remaining, a timer is set and the process waits for a predetermined period of time (step 213). On the other hand, if NP<RP, the message indicated by the NP is read from the sequential terminal output queue file 41 (step
202), it is checked with reference to the queue memory management table 32 whether or not the message can be registered in the queue memory 31 (step 203). As a result, if registration is still not possible, the next youngest unregistered pointer after NP in the group of unregistered pointers in the queue memory management table 32 is read out and set in the working register (step 214), and steps 201, 202, and 203 are performed. Repeat the process. That is, if the message indicated by NP cannot be registered, the message of the terminal with the next youngest unregistered pointer becomes the processing target.
ステツプ203で登録可能が判定されると、キユ
ーメモリ31内の該当端末領域へ電文を登録し
(ステツプ204)、キユーメモリ管理テーブル
(MTBL)32を更新する(ステツプ205)。この
時の更新処理は、該当端末に対応する現登録電文
数のカウントアツプ、以後の電文登録可否の変
更、未登録ポインタのクリア、及びNPの更新な
どである。なお、キユーメモリ管理テーブル32
上のNPの更新は、NPの示す電文が登録不可であ
ればそのままとする。 When it is determined in step 203 that registration is possible, the message is registered in the corresponding terminal area in the queue memory 31 (step 204), and the queue memory management table (MTBL) 32 is updated (step 205). The update processing at this time includes counting up the number of currently registered messages corresponding to the terminal, changing whether or not future messages can be registered, clearing the unregistered pointer, and updating the NP. Note that the queue memory management table 32
The above NP is updated as is if the message indicated by the NP cannot be registered.
次にワーキングレジスタの値を歩進し(ステツ
プ206)、未出力の電文についてRPまで処理済か
否か判定する(ステツプ207)。もしRPまで処理
済であれば、タイマをセツトして、所定の時間、
次の未出力電文の処理を待つ(ステツプ215)。一
方、RPまで処理済でなければ、ワーキングレジ
スタの値が示している次電文が読出し済か否か判
定し(ステツプ208)、読出し済であればステツプ
206に戻るが、読出し済でなければ次のステツプ
209に行き、電文をシーケンシヤル端末出力キユ
ーフアイル41から読出す。ここで、電文が読出
し済か否かは、電文の先頭フラグに当該判定ビツ
トを設定することで容易にチエツク可能である。
次に、該シーケンシヤル端末出力キユーフアイル
41から読出した電文がキユーメモリ31に登録
可能か否か判定し(ステツプ210)、登録可能であ
れば、該当端末領域へ該電文を登録し(ステツプ
211)、キユーメモリ管理テーブル32を更新する
(ステツプ212)。この時の更新処理はステツプ205
と同様である。一方、登録不可であれば、該電文
を未出力状態にもどしてステツプ206に行く。以
後、ステツプ206以降の動作を繰返し、RPまで行
つて終了する。 Next, the value of the working register is incremented (step 206), and it is determined whether the unoutputted message has been processed up to the RP (step 207). If the RP has been processed, set a timer and wait for a predetermined period of time.
Waits for the next unoutput message to be processed (step 215). On the other hand, if up to RP has not been processed, it is determined whether the next message indicated by the value of the working register has been read (step 208), and if it has been read, the next message is
Returns to 206, but if it has not been read, proceed to the next step.
209 and read out the message from the sequential terminal output queue file 41. Here, whether or not the message has been read can be easily checked by setting the determination bit in the head flag of the message.
Next, it is determined whether the message read from the sequential terminal output queue file 41 can be registered in the queue memory 31 (step 210), and if it is possible to register, the message is registered in the corresponding terminal area (step 210).
211), and updates the queue memory management table 32 (step 212). The update process at this time is step 205.
It is similar to On the other hand, if registration is not possible, the message is returned to the non-output state and the process goes to step 206. Thereafter, the operations from step 206 onward are repeated until reaching RP, and the process ends.
このように、タスクBの処理では、一旦、登録
可能な電文が見つかると(ステツプ203)、以後、
RPまで順次1電文ずつ、読出し済と登録可能か
どうか判定して、新規キユーイングが進行してい
く。これは、キユーメモリ管理テーブル32にお
いては、各端末毎に、最若の電文ポインタしか登
録していないため、一旦、登録可能な電文が見つ
かると、それ以降、PRまでの電文中に更にその
端末の電文が存在する可能性があるためである。 In this way, in the process of task B, once a message that can be registered is found (step 203), from then on,
New queuing progresses by sequentially determining whether the message can be registered as read, one message at a time, up to the RP. This is because in the queue memory management table 32, only the smallest message pointer is registered for each terminal. This is because there is a possibility that a telegram exists.
なお、第6図及び第7図では、シーケンシヤル
端末出力キユーフアイルからの電文読出しは、1
電文(1レコード)ずつ行われるとしたが、ブロ
ツク単位に読出してもよいことは云うまでもな
い。 In addition, in FIGS. 6 and 7, the message reading from the sequential terminal output file is 1
Although it is assumed that reading is performed for each message (one record), it goes without saying that reading may be performed for each block.
以上の説明から明らかな如く、本発明によれば
次のような効果が得られる。
As is clear from the above description, the following effects can be obtained according to the present invention.
(1) 端末出力キユーフアイルを、シーケンシヤル
フアイルとした事で、外部記憶装置の有効活用
につながる。(1) Making the terminal output queue file a sequential file allows for effective use of external storage devices.
(2) キユーメモリ、更にキユーメモリ管理テーブ
ルを設けた事で、出力処理が簡便に行えるよう
になつたことと共に、出力リードポインタの処
理を工夫した事により、端末出力キユーフアイ
ルをシーケンシヤルフアイルとした事に対する
短所を十分に克服できる。(2) By providing a queue memory and a queue memory management table, output processing has become easier, and by devising the processing of the output read pointer, the terminal output queue file has been made into a sequential file. You can fully overcome your weaknesses.
(3) キユーメモリの大きさを適当に調節すること
で、各端末能力と中央処理装置負荷のバランス
を取ることができる。(3) By appropriately adjusting the queue memory size, it is possible to balance the capacity of each terminal and the load on the central processing unit.
第1図はオンライン情報処理システムの全体構
成図、第2図及び第3図は本発明の一実施例を示
す図、第4図はシーケンシヤル端末出力キユーフ
アイルとキユーメモリの詳細図、第5図はキユー
メモリ管理テーブルの詳細図、第6図及び第7図
は本発明実施例の処理フロー図である。
1……端末、2……中央処理装置、3……主記
憶装置、4……外部記憶装置、31……キユーメ
モリ、32……キユーメモリ管理テーブル、41
……シーケンシヤル端末出力キユーフアイル、
A,B,C……専用タスク、NP,RP……リード
ポインタ、WP……ライトポインタ。
Figure 1 is an overall configuration diagram of an online information processing system, Figures 2 and 3 are diagrams showing an embodiment of the present invention, Figure 4 is a detailed diagram of a sequential terminal output queue file and queue memory, and Figure 5 is a diagram of a queue memory. Detailed views of the management table, FIGS. 6 and 7, are processing flow diagrams of the embodiment of the present invention. 1... terminal, 2... central processing unit, 3... main storage device, 4... external storage device, 31... queue memory, 32... queue memory management table, 41
...Sequential terminal output queue file,
A, B, C...dedicated task, NP, RP...read pointer, WP...write pointer.
Claims (1)
置からのサービス要求に対して中央装置が所望の
処理を実行し、回答情報を該当端末装置へ送出す
るオンライン情報処理システムにおいて、中央装
置側に、前記端末装置への回答情報をシーケンシ
ヤルに次々に格納する第1メモリ手段と、該第1
メモリ手段の回答情報を各端末装置別にキユーイ
ングして格納する第2メモリ手段と、該第2メモ
リ手段内の回答情報の格納状況を各端末装置別に
管理する管理フアイル手段を設け、中央装置は前
記管理フアイル手段を参照しながら前記第1メモ
リ手段から回答情報を読出して、前記第2メモリ
手段の該当端末装置領域へ新規キユーイングする
と共に、該第2メモリ手段の回答情報を読出して
端末装置へ送出することを特徴とするオンライン
情報処理システム。 2 中央装置は第1メモリ手段の回答情報を読出
して第2メモリ手段の該当端末装置領域へ新規キ
ユーイングするための第1および第2の専用タス
クを有し、第1の専用タスクは、第2メモリ手段
に空きのある各端末装置の回答情報を次々第1メ
モリ手段から読出して、第2メモリ手段の該当端
末装置領域へ新規キユーイングし、第2の専用タ
スクは、前記第1の専用タスクで読み残した回答
情報を第1メモリ手段から読出し、第2メモリ手
段に空きが生じるのをまつて該当端末装置領域へ
新規キユーイングすることを特徴とする特許請求
の範囲第1項記載のオンライン情報処理システ
ム。 3 管理フアイル手段は、各端末装置別に現登録
回答情報数、以後の登録可否、第1メモリ手段の
未読出しアドレスを有し、更に第1および第2専
用タスクが次々実行すべき第1メモリ手段の読出
しアドレスを有していることを特徴とする特許請
求の範囲第2項記載のオンライン情報処理システ
ム。[Scope of Claims] 1. An online information processing system comprising a central device and a plurality of terminal devices, in which the central device executes desired processing in response to a service request from the terminal device, and sends response information to the corresponding terminal device. , on the central device side, a first memory means for sequentially storing response information to the terminal device one after another;
A second memory means for queuing and storing the answer information in the memory means for each terminal device, and a management file means for managing the storage status of the answer information in the second memory means for each terminal device, Reading the answer information from the first memory means while referring to the management file means and queuing it to the corresponding terminal device area of the second memory means, and reading the answer information from the second memory means and sending it to the terminal device. An online information processing system characterized by: 2. The central device has first and second dedicated tasks for reading the answer information from the first memory means and queuing it to the corresponding terminal device area of the second memory means, and the first dedicated task The response information of each terminal device whose memory means has free space is read out one after another from the first memory means, and newly queued to the corresponding terminal device area of the second memory means, and the second dedicated task is executed by the first dedicated task. Online information processing according to claim 1, characterized in that the unread response information is read from the first memory means, and is queued to the corresponding terminal device area after waiting for the second memory means to become empty. system. 3. The management file means has, for each terminal device, the current number of registered response information, whether or not it can be registered thereafter, and unread addresses of the first memory means, and further includes the first memory means in which the first and second dedicated tasks are to be executed one after another. 3. The online information processing system according to claim 2, wherein the online information processing system has a read address of .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57229879A JPS59119462A (en) | 1982-12-27 | 1982-12-27 | On-line information processing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57229879A JPS59119462A (en) | 1982-12-27 | 1982-12-27 | On-line information processing system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS59119462A JPS59119462A (en) | 1984-07-10 |
| JPS6226745B2 true JPS6226745B2 (en) | 1987-06-10 |
Family
ID=16899132
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP57229879A Granted JPS59119462A (en) | 1982-12-27 | 1982-12-27 | On-line information processing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS59119462A (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62243057A (en) * | 1986-04-16 | 1987-10-23 | Hitachi Ltd | File transfer management method |
| JP2569086B2 (en) * | 1987-11-25 | 1997-01-08 | 株式会社日立製作所 | Data transmission control method |
| JPH01279338A (en) * | 1988-04-30 | 1989-11-09 | Nec Corp | Stop system for file transfer processing |
-
1982
- 1982-12-27 JP JP57229879A patent/JPS59119462A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS59119462A (en) | 1984-07-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0365731B1 (en) | Method and apparatus for transferring messages between source and destination users through a shared memory | |
| JPS58501065A (en) | Processing equipment for packet voice integrated exchange | |
| US5161215A (en) | Method for controlling data transfer buffer | |
| JPH10507551A (en) | Signal data processing system and method, and communication system including signal data processing system | |
| US5901328A (en) | System for transferring data between main computer multiport memory and external device in parallel system utilizing memory protection scheme and changing memory protection area | |
| US6912712B1 (en) | Real time control system for multitasking digital signal processor using ready queue | |
| JPH08241186A (en) | Buffer memory management unit and buffer memory management method | |
| HK15195A (en) | Bus flow control system | |
| JPS5897944A (en) | Data transfer system among microprocessors | |
| CN116016349B (en) | Message scheduling method, device and system | |
| EP0551789A1 (en) | Apparatus for recovering lost buffers in a data processing system | |
| JPS6226745B2 (en) | ||
| JP3713977B2 (en) | Real-time distributed system | |
| CN115801814A (en) | Data transmission method and system based on serial port double FIFO buffer area structure and storage medium | |
| JP3044653B2 (en) | Gateway device | |
| JPH0666061B2 (en) | Multi CPU communication device | |
| US5875299A (en) | disk access apparatus for performing a stride processing of data | |
| JP2002297210A (en) | Data transmission equipment | |
| JP3064880B2 (en) | Data storage device and data processing system using the same | |
| JPH05308366A (en) | Cache system in lan | |
| JPH01232852A (en) | Communication control system | |
| JP2723245B2 (en) | Facsimile storage and switching equipment | |
| JPH0439700B2 (en) | ||
| JPH03187663A (en) | Message communication system | |
| JPH03202922A (en) | Protocol processor |