JPH0277844A - Program control system - Google Patents

Program control system

Info

Publication number
JPH0277844A
JPH0277844A JP23037288A JP23037288A JPH0277844A JP H0277844 A JPH0277844 A JP H0277844A JP 23037288 A JP23037288 A JP 23037288A JP 23037288 A JP23037288 A JP 23037288A JP H0277844 A JPH0277844 A JP H0277844A
Authority
JP
Japan
Prior art keywords
program
processing
fifo buffer
user program
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP23037288A
Other languages
Japanese (ja)
Inventor
Ikuko Hayashi
林 郁子
Chikayo Uchiyama
内山 千佳代
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Platforms Ltd
NEC Corp
Original Assignee
NEC Corp
NEC AccessTechnica 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 NEC Corp, NEC AccessTechnica Ltd filed Critical NEC Corp
Priority to JP23037288A priority Critical patent/JPH0277844A/en
Publication of JPH0277844A publication Critical patent/JPH0277844A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To maintain the orderliness of an end state and to perform centralized control without paying attention to an execution program by storing responses from the execution program in an FIFO buffer in process end order. CONSTITUTION:The FIFO buffer F is provided for control between a user program P and three processing execution programs A, B, and C. The user program P generates requests to process the processing execution programs A, B, and C according to the contents of the program. A processing execution program receiving a processing request sends back a response to the FIFO buffer F after the processing. The FIFO buffer F outputs data in input order and the user program P can receives the responses in the order of the end of the processing execution programs.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラム制御方式、特に利用者プログラム(
アプリケーションプログラム)と処理実行プログラム(
オペレーションプログラム)の間におけるプログラム制
御方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a program control method, particularly a user program (
application program) and processing execution program (
This invention relates to a program control method during an operation program.

〔従来の技術〕[Conventional technology]

従来のこの種のプログラム制御方式は、利用者プログラ
ムが複数の処理実行プログラム、例えばラインプリンタ
、キーボード、ディスク装置等をそれぞれ制御するO8
に対して処理要求を発行し、利用者プログラムからそれ
らの処理が同時に終了した場合には全ての処理要求に対
する終了情報が通知されていることになるが、それらに
対する処理順序は利用者プログラムに任されていた。
This type of conventional program control system is an O8 system in which a user program controls multiple processing execution programs, such as a line printer, keyboard, disk device, etc.
If a user program issues a processing request to the ``Processing Request'' and terminates the processing at the same time, the completion information for all processing requests will be notified, but the processing order for these requests is up to the user program. It had been.

上記の利用者プログラムからみて同時に終了とは、利用
者プログラムがある処理を実行中であって次の処理を開
始するまでの間における終了を意味する。
From the perspective of the above user program, simultaneous termination means termination while the user program is executing a certain process and before starting the next process.

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

上述した従来のプログラム制御方式は、利用者プログラ
ムが複数の処理実行プログラムへ処理要求をする場合、
複数の処理命令を実行させることとなり、処理終了の通
知を受けても、利用者プログラムには、どの処理命令が
最初に終了したのが把握できないばかりでなく、命令の
終了処理も複雑化してしまうという欠点がある。
In the conventional program control method described above, when a user program requests processing to multiple processing execution programs,
Multiple processing instructions are executed, and even if the user program receives notification of processing completion, it is not only impossible for the user program to know which processing instruction completed first, but also the instruction completion process becomes complicated. There is a drawback.

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

本発明のプログラム制御方式は、利用者プログラムによ
って設定され、がっデータ格納ポインタとデータ取出ポ
インタとを有するFIFOバッファを設けておき、 前記利用者プログラムがら複数の処理実行プログラムに
対して出された処理要求に対する処理の終了通知は、前
記データ格納ポインタに従って前記処理実行プログラム
により前記FIFOバッファに格納され、 前記利用者プログラムは前記データ取出ポインタに従っ
て前記FIFOバッファがら取出すようにしたことを特
徴とする。
The program control method of the present invention is set by a user program, and a FIFO buffer having a data storage pointer and a data retrieval pointer is provided, and the FIFO buffer is set by a user program, and the FIFO buffer is set by the user program, and the FIFO buffer is set by the user program. A notification of completion of processing for a processing request is stored in the FIFO buffer by the processing execution program according to the data storage pointer, and the user program retrieves data from the FIFO buffer according to the data retrieval pointer.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例を示すブロック図であり、利
用者プログラムPと3つの処理実行プログラムA、Bお
よびCとの間の制御のためにFIF○バッファFが設け
られている。
FIG. 1 is a block diagram showing an embodiment of the present invention, in which a FIF buffer F is provided for control between a user program P and three processing execution programs A, B and C.

利用者プログラムPがらは、プログラムの内容に従って
各処理実行プログラムA、B、Cに処理要求が発行され
る。処理要求を受けた処理実行プログラムは、その処理
を実行後にFIFOバッファFにレスポンスを返す。
The user program P issues a processing request to each processing execution program A, B, and C according to the content of the program. The processing execution program that receives the processing request returns a response to the FIFO buffer F after executing the processing.

FIFOバッファFは、周知のように、入力した順序に
出力されるような構成となっているので、利用者プログ
ラムPは処理実行プログラムA、B。
As is well known, the FIFO buffer F is configured to output in the order in which it is input, so the user program P is the processing execution programs A and B.

Cにおける処理終了の順序にそのレスポンスを受は取る
ことができる。
The response can be received in the order in which the processing in C is completed.

第2図は、FIFOバッファFの詳細構造を示す図であ
り、データの格納部分であり複数のバッファから成るデ
ータ部り、データ部りにおいて次にデータを格納すべき
空バッファの位置を示すデータ格納ポインタCLP、次
にデータを取出すべきエントリの位置を示すデータ取出
ポインタELP、エントリ個数Nおよびバッファ長しか
ら成る。
FIG. 2 is a diagram showing the detailed structure of the FIFO buffer F, in which there is a data section which is a data storage section and consists of multiple buffers, and data indicating the position of an empty buffer in the data section where data should be stored next. It consists of a storage pointer CLP, a data extraction pointer ELP indicating the position of the entry from which data should be extracted next, the number of entries N, and the buffer length.

データ格納ポインタCLPおよびデータ取出ポインタE
LPはデータ部りにおける先頭バッファがらの相対アド
レスで示され、エントリ個数Nはデータの格納、取出し
に応じてそれぞれ1つだけ増数、減数する。また、バッ
ファ長しは、利用者プログラムPによって自由に設定さ
れる。
Data storage pointer CLP and data retrieval pointer E
LP is indicated by a relative address from the first buffer in the data section, and the number of entries N increases or decreases by one in accordance with data storage and retrieval, respectively. Further, the buffer length can be freely set by the user program P.

第3図は、第2図におけるエントリの詳細図であり、デ
ータと、このデータがどの処理実行プログラムからのも
のであるかを示す機能コードIDと、データ長LNGと
から成る。
FIG. 3 is a detailed diagram of the entry in FIG. 2, which consists of data, a function code ID indicating which processing execution program the data comes from, and a data length LNG.

第4図は処理実行プログラムのデータ格納処理、また第
5図は利用者プログラムPのデータ取出処理をそれぞれ
説明するための図である。
FIG. 4 is a diagram for explaining the data storage process of the processing execution program, and FIG. 5 is a diagram for explaining the data retrieval process of the user program P.

利用者プログラムPが複数の処理実行プログラムに対し
て発行した処理要求のレスポンスは、処理実行プログラ
ムがデータ格納ポインタCLPに従って、FIFOバッ
ファFに順次に格納される。
Responses to processing requests issued by the user program P to a plurality of processing execution programs are sequentially stored in the FIFO buffer F by the processing execution programs according to the data storage pointer CLP.

利用者プログラムは、データ取出ポインタELPに従っ
てレスポンスを取り出し処理すれば良い。
The user program may extract and process the response according to the data extraction pointer ELP.

レスポンスの取出しが行われると、データ取出ポインタ
ELPは、例えば第2図中の点線で示すように移動する
ことになる。
When the response is retrieved, the data retrieval pointer ELP moves as shown by the dotted line in FIG. 2, for example.

なお、利用者プログラムの指定によりレスポンスが格納
されるごとに利用者プログラムへ通知することも可能で
ある。
Note that it is also possible to notify the user program every time a response is stored, as specified by the user program.

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

以上説明したように本発明は、利用者プログラムの処理
要求に対する処理実行プログラムからのレスポンスは、
処理終了順序にFIFOバッファに格納される為、終了
状態の順位性が保たれるので、利用者プログラムはFI
FOバッファより1つづつデータを取り出して処理すれ
ばよく、複数の処理実行プログラムに処理要求する場合
にも、各処理実行プログラムを意識することなく集中的
な管理ができ、またオペレータインターフェースとして
重要であるデータの順位性に従った処理ができるという
効果を有する。
As explained above, in the present invention, the response from the processing execution program to the processing request of the user program is
Since the data is stored in the FIFO buffer in the order in which the processing ends, the order of the end status is maintained, so the user program can
Data can be retrieved and processed one by one from the FO buffer, and even when processing is requested to multiple processing execution programs, it can be managed centrally without having to be aware of each processing execution program, and is also important as an operator interface. This has the effect that processing can be performed according to the ranking of certain data.

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

第1図は本発明の一実施例、第2図および第3図は本実
施例の詳細図、第4図および第5図は本実施例の動作説
明図である。 P・・・利用者プログラム、A、B、C・・・処理実行
プログラム、F・・・FIFOバッファ、CLP・・・
データ格納ポインタ、ELP・・・データ取出ポインタ
、N・・・エントリ個数、L・・・バッファ長、ID・
・・機能コード、LNG・・・データ長。
FIG. 1 is an embodiment of the present invention, FIGS. 2 and 3 are detailed views of this embodiment, and FIGS. 4 and 5 are explanatory diagrams of the operation of this embodiment. P...User program, A, B, C...Process execution program, F...FIFO buffer, CLP...
Data storage pointer, ELP...data retrieval pointer, N...number of entries, L...buffer length, ID.
...Function code, LNG...data length.

Claims (1)

【特許請求の範囲】 利用者プログラムによって設定され、かつデータ格納ポ
インタとデータ取出ポインタとを有するFIFOバッフ
ァを設けておき、 前記利用者プログラムから複数の処理実行プログラムに
対して出された処理要求に対する処理の終了通知は、前
記データ格納ポインタに従って前記処理実行プログラム
により前記FIFOバッファに格納され、 前記利用者プログラムは前記データ取出ポインタに従っ
て前記FIFOバッファから取出すようにしたことを特
徴とするプログラム制御方式。
[Claims] A FIFO buffer set by a user program and having a data storage pointer and a data retrieval pointer is provided, and a FIFO buffer is provided for processing requests issued from the user program to a plurality of processing execution programs. A program control method characterized in that a processing end notification is stored in the FIFO buffer by the processing execution program according to the data storage pointer, and the user program retrieves data from the FIFO buffer according to the data retrieval pointer.
JP23037288A 1988-09-13 1988-09-13 Program control system Pending JPH0277844A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23037288A JPH0277844A (en) 1988-09-13 1988-09-13 Program control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23037288A JPH0277844A (en) 1988-09-13 1988-09-13 Program control system

Publications (1)

Publication Number Publication Date
JPH0277844A true JPH0277844A (en) 1990-03-16

Family

ID=16906830

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23037288A Pending JPH0277844A (en) 1988-09-13 1988-09-13 Program control system

Country Status (1)

Country Link
JP (1) JPH0277844A (en)

Similar Documents

Publication Publication Date Title
US6553487B1 (en) Device and method for performing high-speed low overhead context switch
US5699495A (en) Point-and-print in a distributed environment
JPH08227364A (en) Method and device for executing sequential multithread
US5534887A (en) Locator icon mechanism
EP1546872B1 (en) A key event controlling apparatus
JP2001256013A (en) Print controller and storage medium
US4996640A (en) Data processing system
JPH0277844A (en) Program control system
JPH0221329A (en) Report output system
JP2509936B2 (en) Output control device
JPH11249912A (en) Information processor and information processing method
JPS61208127A (en) Microprogram controller
JPH06208528A (en) Extended storage controller
JPH02143321A (en) Output server for network environment
JPH01140301A (en) Sequence control method
JPH01292559A (en) Message processing system and data transfer system for parallel computers
JPH03218524A (en) Instruction processor
JPH06187112A (en) Data processor
JPH06208506A (en) Extended storage controller
JPH0675724A (en) Print controller
JPH04279959A (en) Information processor
JPH0448337A (en) Program execution control processing system
JPH0425581B2 (en)
JPH06214793A (en) Program look-ahead system
JPH06208527A (en) Extended storage controller