JPH0365574B2 - - Google Patents

Info

Publication number
JPH0365574B2
JPH0365574B2 JP58182833A JP18283383A JPH0365574B2 JP H0365574 B2 JPH0365574 B2 JP H0365574B2 JP 58182833 A JP58182833 A JP 58182833A JP 18283383 A JP18283383 A JP 18283383A JP H0365574 B2 JPH0365574 B2 JP H0365574B2
Authority
JP
Japan
Prior art keywords
task
buffer
control table
roll
points
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 - Lifetime
Application number
JP58182833A
Other languages
Japanese (ja)
Other versions
JPS6075937A (en
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 filed Critical
Priority to JP58182833A priority Critical patent/JPS6075937A/en
Publication of JPS6075937A publication Critical patent/JPS6075937A/en
Publication of JPH0365574B2 publication Critical patent/JPH0365574B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】 本発明は、ロールイン・ロールアウトの対象と
なるメモリ空間の範囲を拡張したロールイン・ロ
ールアウト制御方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a roll-in/roll-out control method that expands the range of memory space subject to roll-in/roll-out.

長期メモリ負荷制御方式としてロールイン・ロ
ールアウト方式が知られている。従来のロールイ
ン・ロールアウト方式は、実行中のタスクが長期
WAIT状態に入つた場合、例えば人手を介する
操作依頼をした場合、そのタスク固有のメモリ空
間を2次記憶媒体に退避(ロールアウト)し、
WAIT状態が解除された時点で2次記憶媒体に
退避した内容をメモリに再ロード(ロールイン)
するものである。しかしシステム共用空間にはタ
スク間通信用バツフアなどが確保され、或る時点
で見れば各タスク間通信用バツフアなどは特定の
1タスクでしか使用されないという特徴を有して
いるにも拘らず、従来のロールイン・ロールアウ
ト制御方式は、システム共用空間がロールイン・
ロールアウトの対象とならず、ロールイン・ロー
ルアウトの効果を充分に発揮できないという欠点
があつた。
A roll-in/roll-out method is known as a long-term memory load control method. In the traditional roll-in/roll-out method, the task being executed is long-term.
When the WAIT state is entered, for example when a manual operation is requested, the memory space specific to that task is evacuated (rolled out) to a secondary storage medium,
When the WAIT state is released, the contents saved to the secondary storage medium are reloaded into memory (roll-in).
It is something to do. However, although buffers for inter-task communication are secured in the system shared space, and each inter-task communication buffer is used only by one specific task at a certain point in time, In the conventional roll-in/roll-out control method, the system shared space is
It had the disadvantage that it was not subject to roll-out, and the effect of roll-in/roll-out could not be fully demonstrated.

本発明は、上記の欠点を除去するものであつ
て、システム共用空間に確保されるバツフアに関
してもバツフアの使用者(タスク)を管理し、ロ
ールイン・ロールアウトを行うときシステム共用
空間をもロールイン・ロールアウトの対象とする
ことにより、ロールイン・ロールアウトの効果を
向上させ得るようにしたロールイン・ロールアウ
ト制御方式を提供することを目的としている。そ
してそのため、本発明のロールイン・ロールアウ
ト制御方式は、システム共用空間を管理するため
に、タスク制御テーブルおよびバツフア制御テー
ブルを設け、タスクが開設されたとき上記タスク
制御テーブルのエントリにタスク名を登録すると
共に当該エントリが1個のバツフア制御テーブル
をポイントするようにし、タスクAが上記システ
ム共用空間上にバツフアBUF−Aを確保したと
きには、当該タスクAのバツフア制御テーブル
BCT−Aが当該バツフアBUF−Aをポイントす
るようにし、タスクAが上記システム共用空間上
のバツフアBUF−Aを指定して他タスクBに処
理を依頼する場合にはバツフアBUF−Aが他タ
スクBのバツフア制御テーブルでポイントされる
ようにポインタを張り替え、他タスクBが上記の
依頼処理を完了し、その旨をタスクAに報告した
場合にはバツフアBUF−AがタスクAのバツフ
ア制御テーブルでポイントされるようにポインタ
を張り替え、タスクに割当てられているメモリ空
間の内容をロールアウトする場合には当該タスク
に割当てられているタスク固有空間の内容ばかり
でなく当該タスクのバツフア制御テーブルでポイ
ントされているバツフアの内容をも外部記憶装置
に退避し、ロールインを行う場合には上記外部記
憶装置に退避されているタスク固有空間の内容お
よびバツフアの内容を元の位置に復元することを
特徴とするものである。以下、本発明を図面を参
照しつつ説明する。
The present invention eliminates the above-mentioned drawbacks, and also manages buffer users (tasks) regarding buffers secured in the system shared space, and also rolls the system shared space when performing roll-in and roll-out. It is an object of the present invention to provide a roll-in/roll-out control method that can improve the effect of roll-in/roll-out by making it a target of in-roll-out. Therefore, the roll-in/roll-out control method of the present invention provides a task control table and a buffer control table in order to manage the system shared space, and when a task is created, the task name is entered in the entry of the task control table. At the same time as registration, the entry points to one buffer control table, and when task A secures buffer BUF-A on the system shared space, the buffer control table of task A is
BCT-A points to the buffer BUF-A, and when task A requests processing to another task B by specifying buffer BUF-A on the system shared space, buffer BUF-A points to the buffer BUF-A. The pointer is changed so that it points to B's buffer control table, and when another task B completes the above request process and reports this to task A, buffer BUF-A points to task A's buffer control table. When rolling out the contents of the memory space allocated to a task by changing the pointer so that The contents of the buffer saved in the external storage device are also saved to an external storage device, and when roll-in is performed, the contents of the task-specific space and the contents of the buffer saved in the external storage device are restored to their original positions. It is something to do. Hereinafter, the present invention will be explained with reference to the drawings.

第1図は本発明の1実施例を示すものであつ
て、TCTはタスク制御用テーブル、BCTはバツ
フア制御テーブル、BUFはバツフア、DISPは表
示装置、OPはオペレータをそれぞれ示している。
FIG. 1 shows one embodiment of the present invention, where TCT is a task control table, BCT is a buffer control table, BUF is a buffer, DISP is a display device, and OP is an operator.

メモリ負荷制御プログラムは、ロールイン/ロ
ールアウトを行うためのプログラムである。シス
テム共用空間は、タスク間通信バツフアやI/O
バツフアなどに使用されるものである。システム
共用空間には、タスク制御テーブルTCT、バツ
フア制御テーブルBCTなども設けられており、
タスク制御テーブルTCTはバツフア制御テーブ
ルBCTをポイントし、バツフア制御テーブル
BCTは、バツフアBUFをポイントしている。タ
スクに対してはタスク固有空間が割当てられてい
る。
The memory load control program is a program for performing roll-in/roll-out. The system shared space is used for inter-task communication buffers and I/O
It is used for baths, etc. The system shared space also includes a task control table TCT, buffer control table BCT, etc.
The task control table TCT points to the buffer control table BCT, and the task control table TCT points to the buffer control table BCT.
BCT points to Batsuhua BUF. A task-specific space is assigned to a task.

次に、本発明のロールイン・ロールアウト制御
を図面を参照しつつ説明する。
Next, the roll-in/roll-out control of the present invention will be explained with reference to the drawings.

タスクA上で走行するプログラムから端末利
用者に対してデータ入力を行う。
A program running on task A inputs data to the terminal user.

データ入力要求を行うと、データ入力待ちと
なり、この時、メモリ負荷制御プログラムに対
してロールアウト要求を行う。
When a data input request is made, the system waits for data input, and at this time a rollout request is made to the memory load control program.

メモリ負荷制御プログラムでは、タスクAに
割当てられているタスク固有空間の内容および
システム共用空間においてタスクAが使用して
いるバツフア1,2の内容を外部記憶装置
DASD上に退避すると共に、これらのメモリ空
間を解放する。
In the memory load control program, the contents of the task-specific space allocated to task A and the contents of buffers 1 and 2 used by task A in the system shared space are stored in an external storage device.
Save to DASD and release these memory spaces.

データ入力処理が完了した時点で、メモリ制
御プログラムに対してロールイン要求を行う。
When data input processing is completed, a roll-in request is made to the memory control program.

メモリ負荷制御プログラムでは、外部記憶装
置DASD上に退避した内容を基にしてタスクA
のメモリ情報を復元する。
In the memory load control program, task A is executed based on the contents saved on the external storage device DASD.
Restore memory information.

タスクA上で走行するプログラムは、ロール
インが完了した時点で実行を再開する。
The program running on task A resumes execution when the roll-in is completed.

第2図および第3図はシステム共用空間のメモ
リ管理方式を説明する図である。
FIGS. 2 and 3 are diagrams illustrating a memory management method for the system shared space.

初期状態においては、第3図イに示すように、
タスクAは何もバツフアを使用しておらず、タス
クBのみがバツフア1を確保しているものとす
る。
In the initial state, as shown in Figure 3A,
Assume that task A does not use any buffer, and only task B secures buffer 1.

タスクAからタスク間通信用バツフアの確保
要求があつた場合、バツフア2を確保すると共
にタスクAのバツフア制御テーブルBCTから
ポイントする。この状態は第3図ロに示され
る。
When there is a request from task A to secure a buffer for inter-task communication, buffer 2 is secured and a point is made from the buffer control table BCT of task A. This state is shown in FIG. 3B.

′ タスクAから確保したバツフアを用いて
タスクBに対して処理依頼を行うと、バツフア
2をタスクBのバツフア制御テーブルBCTに
張り替える。この状態は第3図ハに示される。
' When a processing request is made to task B using the buffer secured from task A, buffer 2 is replaced with task B's buffer control table BCT. This state is shown in FIG. 3C.

タスクAでは、タスクBの処理完了待ちとな
る。
Task A waits for task B to complete its processing.

タスクBは処理を行い、処理完了するとタ
スクAに対して処理完了通知を行う。そうする
と、バツフア2は、タスクAのバツフア制御テ
ーブルにポインタが張り替えられる。この状態
は第3図ニに示される。
Task B performs processing, and upon completion of processing, notifies task A of completion of processing. Then, the pointer of buffer 2 is changed to the buffer control table of task A. This state is shown in FIG. 3D.

第4図はタスクAが異常終了しアポート処理を
行う場合のメモリ空間のガーベジ処理を説明する
図である。タスクA上のプログラムの実行中に異
常が発生し、アポート処理が実行されると、シス
テム共用空間のガーベジ処理と自タスク固有空間
のガーベジ処理が行われる。システム共用空間の
ガーベジ処理においては、タスク制御テーブル
TCT、バツフア制御テーブルBCTを参照してタ
スクAの使用しているバツフア(図示の例ではバ
ツフア1,2)を探し、これらのバツフアを使用
可能なバツフアとする。
FIG. 4 is a diagram illustrating memory space garbage processing when task A terminates abnormally and aport processing is performed. When an abnormality occurs during the execution of the program on task A and the port processing is executed, garbage processing of the system shared space and garbage processing of the self-task-specific space are performed. When garbage processing the system shared space, the task control table
TCT and the buffer control table BCT are looked up to find the buffers used by task A (buffers 1 and 2 in the illustrated example), and these buffers are determined to be usable buffers.

以上の説明から明らかなように、本発明によれ
ば、システム共用空間もロールイン・ロールアウ
トの対象となるので、ロールイン・ロールアウト
制御方式によるメモリ負荷制御の効果がその分だ
け向上する。
As is clear from the above description, according to the present invention, the system shared space is also subject to roll-in/roll-out, so the effect of memory load control by the roll-in/roll-out control method is improved accordingly.

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

第1図は本発明の一実施例を示す図、第2図お
よび第3図はシステム共用空間のメモリ管理方式
を説明する図、第4図はタスクAが異常終了しア
ポート処理を行う場合のメモリ空間のガーベジ処
理を説明する図である。 TCT……タスク制御テーブル、BCT……バツ
フア制御テーブル、BUF……バツフア、DASD
……外部記憶装置。
FIG. 1 is a diagram showing an embodiment of the present invention, FIGS. 2 and 3 are diagrams explaining the memory management method of the system shared space, and FIG. FIG. 3 is a diagram illustrating garbage processing of memory space. TCT...Task control table, BCT...Buffer control table, BUF...Buffer, DASD
...External storage device.

Claims (1)

【特許請求の範囲】[Claims] 1 システム共用空間を管理するために、タスク
制御テーブルおよびバツフア制御テーブルを設
け、タスクが開設されたとき上記タスク制御テー
ブルのエントリにタスク名を登録すると共に当該
エントリが1個のバツフア制御テーブルをポイン
トするようにし、タスクAが上記システム共用空
間上にバツフアBUF−Aを確保したときには、
当該タスクAのバツフア制御テーブルBCT−A
が当該バツフアBUF−Aをポイントするように
し、タスクAが上記システム共用空間上のバツフ
アBUF−Aを指定して他タスクBに処理を依頼
する場合にはバツフアBUF−Aが他タスクBの
バツフア制御テーブルでポイントされるようにポ
インタを張り替え、他タスクBが上記の依頼処理
を完了し、その旨をタスクAに報告した場合には
バツフアBUF−AがタスクAのバツフア制御テ
ーブルでポイントされるようにポインタを張り替
え、タスクに割当てられているメモリ空間の内容
をロールアウトする場合には当該タスクに割当て
られているタスク固有空間の内容ばかりでなく当
該タスクのバツフア制御テーブルでポイントされ
ているバツフアの内容をも外部記憶装置に退避
し、ロールインを行う場合には上記外部記憶装置
に退避されているタスク固有空間の内容およびバ
ツフアの内容を元の位置に復元することを特徴と
するロールイン・ロールアウト制御方式。
1 In order to manage the system shared space, a task control table and a buffer control table are provided, and when a task is created, the task name is registered in the entry in the task control table, and the entry points to one buffer control table. When task A secures buffer BUF-A on the system shared space,
Buffer control table BCT-A for the task A
points to the buffer BUF-A, and when task A requests processing from another task B by specifying buffer BUF-A on the system shared space, buffer BUF-A points to the buffer BUF-A of other task B. The pointer is changed so that it points to the control table, and when another task B completes the above request processing and reports this to task A, buffer BUF-A is pointed to in task A's buffer control table. When rolling out the contents of the memory space allocated to a task by changing the pointer as shown in FIG. The roll-in is characterized in that the contents of the task-specific space and buffer contents that have been saved in the external storage device are restored to their original positions when roll-in is performed.・Rollout control method.
JP58182833A 1983-09-30 1983-09-30 Roll-in and roll-out control system Granted JPS6075937A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58182833A JPS6075937A (en) 1983-09-30 1983-09-30 Roll-in and roll-out control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58182833A JPS6075937A (en) 1983-09-30 1983-09-30 Roll-in and roll-out control system

Publications (2)

Publication Number Publication Date
JPS6075937A JPS6075937A (en) 1985-04-30
JPH0365574B2 true JPH0365574B2 (en) 1991-10-14

Family

ID=16125261

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58182833A Granted JPS6075937A (en) 1983-09-30 1983-09-30 Roll-in and roll-out control system

Country Status (1)

Country Link
JP (1) JPS6075937A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2776809B2 (en) * 1987-05-29 1998-07-16 株式会社日立製作所 Data evacuation method

Also Published As

Publication number Publication date
JPS6075937A (en) 1985-04-30

Similar Documents

Publication Publication Date Title
JPH04284548A (en) Data base exclusive controlling system
JPH0365574B2 (en)
JP2629330B2 (en) Data update commit processing method
JPH03282756A (en) Asynchronous input/output system
JPH01140263A (en) Transmission data saving control system for on line information processor
JPH02133845A (en) Duplex auxiliary storage device
JPS63108448A (en) Input/output request control system
JPH04242847A (en) Segment roll in/out system
JPS58168168A (en) Swap-in and swap-out system of terminal
JPS62180423A (en) Job input system
JPH02293920A (en) Disk input/output system
JPH02293953A (en) Specific system information obtaining method
JPS61109160A (en) Area control system for inter-system share volume
JPS6054058A (en) Swapping control method
JPH06243015A (en) Common data management system
JPH03232354A (en) Electronic joint work supporting system
JPS6156678B2 (en)
JPH0378843A (en) Program control system using extension memory
JPH02292633A (en) Patch execution system for terminal
JPS6126140A (en) Data exchange system
JPH03134756A (en) Storage area managing system for composite computer system
JPS63100542A (en) Resource management system
JPH04271449A (en) High-speed data transfer method
JPH01266640A (en) Equivalent property guarantee processing system for duplex volume
JPH0544695B2 (en)