JPS5816546B2 - Page control data processing system control method - Google Patents
Page control data processing system control methodInfo
- Publication number
- JPS5816546B2 JPS5816546B2 JP52126581A JP12658177A JPS5816546B2 JP S5816546 B2 JPS5816546 B2 JP S5816546B2 JP 52126581 A JP52126581 A JP 52126581A JP 12658177 A JP12658177 A JP 12658177A JP S5816546 B2 JPS5816546 B2 JP S5816546B2
- Authority
- JP
- Japan
- Prior art keywords
- resource
- page
- program
- task
- main memory
- 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
Landscapes
- Memory System (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Description
【発明の詳細な説明】
本発明は、ページ制御データ処理システム制御方式、特
に多重処理が行われる複数のタスクが夫夫必要とするプ
ログラムなどの資源を、成る1つのタスクが夫々当面利
用しようとする資源のページ・サイズ分だけ主記憶装置
上にスペースを確保した上で保持せしめるよう制御せし
めるようにして、主記憶装置上に存在する記憶領域を効
率よく利用するようにしたページ制御データ処理システ
ム制御方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention provides a control method for a page control data processing system, in particular, a method for controlling a page control data processing system, in particular, in which resources such as programs required by a plurality of tasks in which multiple processing is performed are currently used by one task. A page control data processing system that efficiently utilizes the storage area existing on the main memory by securing space on the main memory for the page size of the resource to be used and controlling the space to be held. It is related to the control method.
従来から、オンライン処理による多重処理を行う場合、
成るタスク(応用プログラムに対応する)に対応してマ
ツプをそなえ、該マツプの内容により、当該タスクが実
行しようとする処理に必要なデータおよびプログラムの
主記憶装置上でのページ・アドレス位置を指示するよう
にされている。Conventionally, when performing multiple processing using online processing,
A map is provided corresponding to each task (corresponding to an application program), and the contents of the map indicate the page address location on the main memory of the data and program required for the processing that the task is trying to execute. It is made to be.
そして当該タスクが実行するプログラム資源を仮に資源
■、■、■、■、■とするとき、該資源のうち最大長の
資源に対応したページ・サイズを、当該タスクの起動時
点で占有せしめるようにしていた。Assuming that the program resources to be executed by the task are resources ■, ■, ■, ■, ■, the page size corresponding to the longest resource among the resources is to be occupied at the time of startup of the task. was.
即ち、成るタスクが利用するプログラム資源を上記資源
■、■、■、■、■の如くセグメントに分割し、当該タ
スクが当面利用する資源の1つのみを主記憶装置上に置
く方式が採用される。That is, a method is adopted in which the program resources used by the tasks are divided into segments such as the above resources ■, ■, ■, ■, ■, and only one of the resources used by the task for the time being is stored in the main memory. Ru.
しかし、該従来の方式の場合、成るタスクが起動される
際に主記憶装置上に所定のスペースヲ占有せしめる方式
を採用しているために、折角上述の如くセグメント分割
方式を採用したとしてもなお次の如き問題点を残してい
る。However, in the case of the conventional method, since a method is adopted in which a predetermined space is occupied on the main memory when a task is started, even if the segment division method is adopted as described above, the Problems such as these remain.
即ち、起動時に所定のスペースを占有するために、採用
利用するであろう資源■、■、■、■、■のうち最大長
のページ・サイズをもつ資源例えば資源■のページ・サ
イズに見合うように上記スペースを確保しておく必要が
生ずる。That is, in order to occupy a predetermined space at the time of startup, resources ■, ■, ■, ■, ■ that have the maximum page size among the resources that will be adopted and used, for example, a resource corresponding to the page size of resource ■. It becomes necessary to secure the above space.
このために、例えば最小長のページ・サイズをもつ資源
を当面利用しているのに拘らず、主記憶装置上の折角の
ページ位置が余分に占有されることになり、主記憶装置
の記憶領域が必らずしも十分に効率よく利用されてない
ことが生ずる。For this reason, for example, even though resources with the minimum page size are being used for the time being, an extra page position on the main memory is occupied, and the storage area of the main memory is is not necessarily used efficiently enough.
また該記憶領域を節約するために上記資源を細かく分割
するようにすると、どの資源を利用しているかを管理す
る処理がきわめて繁雑となる。Furthermore, if the resources are divided into smaller pieces in order to save the storage area, the process of managing which resources are being used becomes extremely complicated.
本発明は上記の点を解決することを目的としており、成
るタスクが当面利用する資源を最小成分だけ主記憶装置
の記憶領域に置くようにし、主記憶装置の記憶領域の利
用効率を向上することを目的としている。An object of the present invention is to solve the above-mentioned problems, and to improve the utilization efficiency of the storage area of the main storage device by placing the minimum component of the resources that are currently used by the task in the storage area of the main storage device. It is an object.
呼だ成る1つのタスクが当面利用する資源を確保しよう
とするとき、当該資源が他タスクによって主記憶装置上
に置かれている場合には、同じ資源を重複して主記憶装
置上に置くことをせず、当該資源を共通に利用できるよ
うにして、上記利用効率を更に向上することを目的とし
ている。When one task in a call attempts to secure a resource that will be used for the time being, if that resource is placed on the main memory by another task, the same resource must be placed on the main memory in duplicate. The aim is to further improve the above-mentioned utilization efficiency by making the resources available for common use without having to do so.
そしてそのため、本発明のページ制御データ処理システ
ム制御方式は与えられたタスクの処理に必要なデータお
よびプログラムが主記憶装置上で格納されているページ
・アドレス情報を格納すべく上記当該タスクに対応して
もうけられるマツプ、主記憶装置上の各ページ位置に対
応してもうけられるページ制御テーブル、該ページ制御
テーブル中の空きページ制御テーブルを待行列の形で管
理する空ページ行列テーブルをそなえてなり、主記憶装
置上のページ情報を管理しつつ処理を進行してゆくペー
ジ制御データ処理システムにおいて、上記複数個のタス
クが夫々利用するデータ呼たはプログラムである個々の
資源に対応して資源制御ワードを用意せしめ、上記タス
クがプログラム稼動後にユーゼ処理プログラム上のマク
ロ命令によって、上記1つのタスクが利用するプログラ
ム資源のうち当面利用するプログラム資源のページ・サ
イズ分を上記ページ制御テーブルの内容と上記空きペー
ジ制御テーブルの内容とにもとづいて上記主記憶装置上
に確保して当該資源を主記憶装置上に保持し上記対応す
る資源制御ワード上に記録せしめると共に当該プログラ
ム資源が主記憶装置上に格納されているページ・アドレ
ス情報を上記対応するマツプに記録せしめるよう制御せ
しめ、当該プログラム資源を現に利用したタスクが当該
プログラム資源を利用しなくなったとき上記対応する資
源制御ワード上の記録を抹消しかつ上記対応するマツプ
上の記録を抹消せしめるよう制御せしめ、更に上記確保
しようとするプログラム資源が他タスクによって上記主
記憶装置上に格納されていることが上記資源制御ワード
の内容と上記ページ制御テーブルの内容とにもとづいて
判明したとき上記該轟タスクに対応するマツプ上に当該
プログラム資源のページ・アドレス情報を記録せしめる
よう制御されることを特徴としている。Therefore, the page control data processing system control method of the present invention corresponds to the task so that the data and program necessary for processing a given task store page address information stored on the main storage device. a map that can be created, a page control table that is created corresponding to each page position on the main memory, and an empty page matrix table that manages empty page control tables in the page control table in the form of a queue, In a page control data processing system that progresses processing while managing page information on the main memory, a resource control word is used for each resource, which is a data call or a program, used by each of the plurality of tasks. After the task starts running the program, the page size of the program resource to be used for the time being is divided into the contents of the page control table and the free space by a macro instruction on the use processing program. Based on the contents of the page control table, the resource is secured on the main memory, the resource is held on the main memory, and recorded on the corresponding resource control word, and the program resource is stored on the main memory. The page address information contained in the program resource is controlled to be recorded in the corresponding map, and when the task that is currently using the program resource no longer uses the program resource, the record in the corresponding resource control word is deleted and the The contents of the resource control word and the page control table indicate that the program resource to be secured is stored in the main memory by another task. When it is determined based on the above-mentioned information, the program resource is controlled to record the page address information of the program resource on the map corresponding to the task.
以下図面を参照しつつ説明する。第1図はタスクに対応
してもうけられるマツプと該マツプの内容によって指示
される主記憶装置上の実ページ位置との関係を説明する
説明図、第2図A’ 、 Bは従来のセグメント方式に
おける問題点を説明する説明図、第3図は本発明の方式
を概念的に説明する説明図、第4図A、Bは夫々本発明
にいう拡大マクロ命令と縮小マクロ命令とを説明する説
明図、第5図は本発明による処理方式の一実施例構成、
第6図および第7図は第5図に示す構成を利用した本発
明による処理動作を表わす一実施例フローチャートを示
している。This will be explained below with reference to the drawings. Figure 1 is an explanatory diagram illustrating the relationship between a map created in response to a task and the actual page position on the main memory indicated by the contents of the map, and Figures A' and B are for the conventional segment method. FIG. 3 is an explanatory diagram conceptually explaining the system of the present invention, and FIGS. 4 A and B are explanatory diagrams respectively explaining the enlarged macro instruction and reduced macro instruction according to the present invention. 5 shows the configuration of an embodiment of the processing method according to the present invention,
FIGS. 6 and 7 show a flowchart of an embodiment of the processing operation according to the present invention using the configuration shown in FIG.
ページ制御データ処理システムにおいては、成る1つの
タスクによる処理を実行するに当って、当該タスクが必
要とする資源即ちデータ資源やプログラム資源が、主記
憶装置上のどの実ページ位置に格納されているかを指示
するために、各タスクに対応してマツプ(MAP)が用
意される。In a page control data processing system, when executing processing by one task, the resources required by the task, that is, the data resources and program resources, are stored in which real page location on the main storage device. In order to provide instructions, a map is prepared corresponding to each task.
第1図はその態様を示しており、図中の符号1はマツプ
、2は主記憶装置、3−1、3−2 、・・・は夫々主
記憶装置上の1ペ一ジ分の実ページ位置(又はページ情
報)を表わしている。FIG. 1 shows this mode, where 1 is a map, 2 is a main memory, and 3-1, 3-2, . It represents the page position (or page information).
1つのタスクに対応するマツプ1は例えば64ワ一ド分
の格納位置をそなえている。Map 1 corresponding to one task has storage locations for, for example, 64 words.
そして今、当該タスクに必要な資源が主記憶装置2上の
実ページ・アドレス位置ADR81、ADR82、・・
・に存在しているとすると、上記マツプ1土の格納位置
に1つ1つ対応されてページ・アドレス情報ADR81
、ADR82、・・・が格納される。Now, the resources required for the task are real page address locations ADR81, ADR82, etc. on the main storage device 2.
・If it exists, the page address information ADR81 corresponds to the storage location of the above map 1, one by one.
, ADR82, . . . are stored.
言うまでもなく、上記資源を主記憶装置2上のどの実ア
ドレス位置に存在せしめるかは、データ処理システムの
オペレーティング・システム(O8)の管理にゆだねら
れており、また主記憶装置上の各ページ位置は、他のタ
スクによっても共通に利用される。Needless to say, it is up to the operating system (O8) of the data processing system to decide which real address location on the main memory 2 the above resource should reside in, and the location of each page on the main memory is , also commonly used by other tasks.
第2図A、Bは従来のセグメント方式における問題点を
説明しており、図においては成るタスクA、がデータ(
振分は処理を行うプログラムを含む)資源りとプログラ
ム資源■、■、■、■、■とを必要とするものとして示
されている。Figures 2A and 2B explain the problems with the conventional segmentation method. In the figure, task A consists of data (
The allocation is shown as requiring resources (including the program that performs the processing) and program resources.
そして第2図A図示の各資源に対応した実線長が対応す
る資源の大きさくページ・サイズ)に対応しているもの
として示されている。The solid line length corresponding to each resource shown in FIG. 2A is shown as corresponding to the size (page size) of the corresponding resource.
従来から主記憶装置2上の記憶領域を効率よく利用する
ために、成るタスク例えばタスクA、が必要とする資源
を複数の資源り、■、■・・・■に区分し、一時期にい
ずれか1つのみが利用される資源■、■、■、■、■に
ついては、同一時期に主記憶装置2上に置かないように
するセグメント方式が採用されている。Conventionally, in order to efficiently use the storage area on the main storage device 2, the resources required by a task, for example, task A, are divided into multiple resources, ■, ■...■, and one of them is stored at a time. As for the resources (1), (2), (2), (2), (2) of which only one is used, a segment method is adopted in which they are not placed on the main storage device 2 at the same time.
即ち、該セグメント方式の場合、次のような方式が採用
される。That is, in the case of the segment method, the following method is adopted.
(1)タスクA、に対応した処理を実行する場合、該タ
スクA、の起動時に主記憶装置2上に、第2図B図示の
如くタスクA、に対応した所定のページ・サイズに対応
したスペース4Aを確保する。(1) When executing the process corresponding to task A, when the task A is started, a page size corresponding to the predetermined page size corresponding to the task A is stored on the main storage device 2 as shown in FIG. 2B. Secure space 4A.
。(2)該スペース4 A、は第1図に対応して説
明した如く一般には飛び飛びの位置に確保されるものテ
アルが、該スペース4Aの大きさは第2図A。. (2) The spaces 4A are generally secured at discrete positions as explained in connection with FIG. 1, but the size of the spaces 4A is as shown in FIG. 2A.
に対応して説明するとデータ資源りのページ・サイズに
見合うスペース4〜1とプログラム資源■ないし■のう
ちの最大長のプログラム資源■のページ・サイズに相当
するスペース4−2とを同時に格納するに足るようにさ
れる。To explain this, spaces 4-1 corresponding to the page size of the data resource and space 4-2 corresponding to the page size of the program resource ■ or the largest program resource ■ among the program resources ■ are stored simultaneously. be made sufficient for
(3)そして、今タスクAがプログラム資源■にもとず
いてデータ資源りの内容を処理する場合、データ資源り
を上記スペース4−1上に保持し、プログラム資源■を
上記スペース4−2上に保持し、所定の処理を実行する
。(3) Now, when task A processes the contents of the data resource based on the program resource ■, the data resource is held in the space 4-1 above, and the program resource hold it above and perform the predetermined processing.
(4)タスクAが次にプログラム資源■にもとずいてデ
ータ資源りの内容を処理する場合、上記スペース4−2
上のプログラム資源2は抹消され新しくプログラム資源
■が保持される。(4) When task A next processes the contents of the data resource based on program resource ■, the above space 4-2
The upper program resource 2 is deleted and a new program resource 2 is retained.
上述の如く、従来のセグメント方式の場合、互に排他的
に利用される複数個のプログラム資源■。As mentioned above, in the case of the conventional segment method, a plurality of program resources are used mutually exclusively.
■、■、■、■のいずれか1つのみを主記憶装置2上に
置くようにすることによって、主記憶装置2の記憶領域
の効果的な利用を計っているが、タスクAのために占有
される上記スペース4−2上に例えばプログラム■が保
持されている状態を考えると第2図A図示点線で表わし
た分だけのページ・サイズが利用されない状態にある。By storing only one of ■, ■, ■, and ■ on main memory 2, we are trying to effectively utilize the storage area of main memory 2, but for task A, Considering the state in which, for example, program (2) is held in the occupied space 4-2, the page size indicated by the dotted line in FIG. 2A is not used.
本発明の場合、上記の点を簡単な処理を採用することに
より解決している。In the case of the present invention, the above-mentioned problem is solved by employing simple processing.
第3図は本発明の方式を概念的に説明している。FIG. 3 conceptually explains the scheme of the present invention.
図中の符号I A、はタスクA、に対応するマツプ、1
BはタスクBに対応するマツプ、2は今上記マツプ1A
や1Bが外部に存在するものとして表わした主記憶装置
、4−I A、はタスクAが利用するタスクAのデータ
資源格納スペース、4−2AはタスクAが当面利用する
プログラム資源■格納スペース、4−IBはタスクBが
利用するタスクBのデータ資源格納スペース、4−2B
はタスクBが当面利用するプログラム資源■格納スペー
スを示している。The symbol IA in the figure is a map corresponding to task A, 1
B is the map corresponding to task B, 2 is the map 1A above now
and 1B represent the main storage as existing externally, 4-I A is the data resource storage space of task A used by task A, 4-2A is the program resource ■ storage space used by task A for the time being, 4-IB is task B's data resource storage space used by task B, 4-2B
indicates the program resource ■ storage space that task B will use for the time being.
また図示4−2A、Bは成るタイミング時において、タ
スクA、とBとが共にプログラム資源■を利用する場合
におけるプログラム資源■格納スペースを示している。4-2A and 4-2B show the program resource (2) storage space when both tasks A and B use the program resource (2) at the timing.
本発明の場合、今タスクA、、Hの処理について考える
と主記憶装置2上における資源の保持は次のように制御
される。In the case of the present invention, considering the processing of tasks A, . . . H, the retention of resources on the main memory device 2 is controlled as follows.
即ち、(5)タスクA−が必要とするデータ資源DAを
保持するに足るスペース4−1Aが第5図を参照して後
述する空きページ行列テーブルにもとづいて主記憶装置
2上に確保され、該スペース4−1A内にデータ資源D
Aが図示しない外部大記憶装置から転送されて格納され
、次いでマスク1A上に該スペース4−1A、の先頭ペ
ージ・アドレス情報ADR8DAが記録される。That is, (5) a space 4-1A sufficient to hold the data resource DA required by task A- is secured on the main storage device 2 based on a free page matrix table, which will be described later with reference to FIG. Data resource D in the space 4-1A
A is transferred from an external large storage device (not shown) and stored, and then the first page address information ADR8DA of the space 4-1A is recorded on the mask 1A.
(6)タスクA、が当面プログラム資源■を利用する場
合、プログラム資源■を保持するに足るスペース4−2
人が主記憶装置2上に上記と同様に確保され、該スペー
ス4−2 A、内にプログラム資源■が外部大記憶装置
から転送されて格納され、次いでマツプ1A上に該スペ
ース4−2Aの先頭ページ・アドレス情報ADR8■A
が記録される。(6) When task A uses program resource ■ for the time being, space 4-2 sufficient to hold program resource ■
A person is secured in the main storage device 2 in the same manner as above, and the program resource ■ is transferred from the external large storage device and stored in the space 4-2A, and then the space 4-2A is stored on the map 1A. First page address information ADR8■A
is recorded.
(7)そして、タスクAはデータ資源DA、の内容に対
してプログラム資源■による処理を行う。(7) Task A then processes the contents of data resource DA using program resource ■.
(8)次いでタスクAがプログラム資源■を利用するよ
うになったとすると、図示スペース4−2Aは解放さベ
マツプ1Aにおけるページ・アドレス情報ADR8■A
はクリヤされ、プログラム資源■を保持するに足るスペ
ース4−2ABが主記憶装置2上に上記と同様に空きペ
ージ行列テーブルにもとづいて確保され、該スペース4
−2AB内にプログラム資源■が外部大記憶装置から転
送されて格納され、マツプ1人上に該スペース4−2A
Bの先端ページ・アドレス情報A D RS■が記録さ
れる。(8) Next, if task A begins to use program resource ■, the illustrated space 4-2A will be released and the page address information ADR8■A in the map 1A will be released.
is cleared, and a space 4-2AB sufficient to hold program resource ■ is secured on the main storage device 2 based on the free page matrix table in the same way as above, and the space 4-2AB is cleared.
The program resource ■ is transferred from the external large storage device and stored in -2AB, and the corresponding space 4-2A is placed on one map.
The leading page address information A D RS■ of B is recorded.
(9)そして、タスクA、はデータ資源DAの内容に対
してプログラム資源■による処理を行う。(9) Task A then processes the contents of data resource DA using program resource (2).
(10)タスクBについても同様にデータ資源DBをス
ペース4−1Bに格納し、当面利用するプログラム資源
■をスペース4−2Bに格納した上で処理が行われる。(10) For task B, the data resource DB is similarly stored in the space 4-1B, and the program resource (2) to be used for the time being is stored in the space 4-2B, and then processing is performed.
(11)今タスクAがスペース4−2AB上にプログラ
ム資源■を保持している状態で、タスクBが当面プログ
ラム資源■を利用しようとするとき−には、既にフ宅グ
ラム資源■がスペース4−2AB上に保持されているこ
とが後述する上記資源制御ワードγと上記ページ制御テ
ーブル5との夫々の内容によって判ることから、上述の
スペース確保とプログラム資源■格納との処理を省略し
て、単にマツプ1B上にスペース4−2ABの先頭ペー
ジ・アドレス情報ADR8■を記録するだけで足りる。(11) Task A is currently holding program resource ■ on space 4-2AB, and when task B attempts to use program resource ■ for the time being, program resource ■ has already been stored in space 4-2AB. Since it can be seen from the respective contents of the resource control word γ and the page control table 5 that will be described later that it is held on -2AB, the processes of securing the space and storing the program resource ■ described above are omitted. It is sufficient to simply record the first page address information ADR8■ of space 4-2AB on map 1B.
(12)この状態でタスクAのみが他のプログラム資源
例えば■を利用しようとして資源■が不要となったとき
、マツプI A、上でアドレス情報ADR3■をクリヤ
するだけとなる。(12) In this state, only task A attempts to use another program resource, for example, ■, and when the resource ■ becomes unnecessary, it simply clears the address information ADR3■ on the map IA.
即ちスペース4−2ABの内容であるプログラム資源■
はタスクBが利用していることから、スペース4−2A
Bが解放されることはない。In other words, the program resource ■ which is the content of space 4-2AB
Space 4-2A is used by Task B, so space 4-2A
B will never be released.
本発明の場合、上述の如く、各タスクが当面利用しよう
とするプログラム資源のページ・サイズに見合うスペー
スを確保して処理を進めるために、第2図図示の方式の
如く、非所望に大きすぎるスペース4−2を占有してし
1うことがない。In the case of the present invention, as described above, in order to proceed with processing while securing a space commensurate with the page size of the program resources that each task is trying to use for the time being, as in the method shown in FIG. It never occupies space 4-2.
また複数のタスクが同じプログラム資源を利用すること
になる場合には、主記憶装置2上に唯1つの当該資源を
保持し、各タスクが共通に利用するようにしている。Furthermore, when a plurality of tasks use the same program resource, only one such resource is held on the main storage device 2 so that each task can use it in common.
このため、このような場合同じ資源を重複して主記憶装
置上に保持する必要がある第2図図示の方式にくらべて
、主記憶装置2の記憶領域の有効利用を一段と高めるこ
とが可能となる。Therefore, compared to the method shown in FIG. 2 in which the same resource needs to be held in duplicate on the main storage device in such a case, it is possible to further increase the effective use of the storage area of the main storage device 2. Become.
以下更に具体的に上述の処理態様について説明する。The above processing mode will be explained in more detail below.
第4図A、Bは夫々本発明にいう拡大マクロ命令と縮小
マクロ命令とを説明している。FIGS. 4A and 4B respectively explain the enlargement macro instruction and the reduction macro instruction according to the present invention.
今第4図A図示の如く、タスクAがデータ資源DAにつ
いてプログラム資源■を利用して処理を終了し、タスク
Bがデータ資源DBについて最初プログラム資源■を利
用して処理を行い次いでプログラム資源■を利容して処
理を行うものと考える。Now, as shown in FIG. 4A, task A completes processing for data resource DA using program resource ■, task B first processes data resource DB using program resource ■, and then program resource ■ It is assumed that processing is performed by utilizing the information.
この割付けはユーザが成るジップを実行せしめようとす
るとき判っており、次のように指示される。This assignment is known when the user attempts to run the zip and is prompted as follows.
即ちこの場合、成るプログラム資源を上述の処理により
利用可能状態におくことをもって、本願明細書において
は「プログラム拡大」と呼び、逆に成るプログラムを非
利用状態におくことをもって「プログラム縮小」と呼ん
でいるが、例えばタスクBに対応しては、最初資源■に
対する拡大マクロ命’>aが与えられ、次いで資源■に
対する縮小マクロ命◆bが与えられ、以下資源■に対す
る拡大マクロ命A?cが与えられ、・・・・・・るよう
に、ユーザによって指示される。That is, in this case, making the program resources available for use through the above process is referred to as "program expansion" in this specification, and conversely, making the program resources unusable is referred to as "program reduction." However, for example, in response to task B, the expansion macro instruction '>a for resource ■ is first given, then the contraction macro instruction ◆b for resource ■ is given, and then the expansion macro instruction A? for resource ■ is given. c is given and instructed by the user to...
第5図は本発明による処理方式の一実施例構成を示し、
第6図および第1図は上記拡大マクロ命令が与えられた
場合および上記縮小マクロ命令が与えられた場合の夫々
についてのフローチャートを示している。FIG. 5 shows the configuration of an embodiment of the processing method according to the present invention,
FIG. 6 and FIG. 1 show flowcharts for the cases in which the enlargement macro instruction is given and the case in which the reduction macro instruction is given, respectively.
第5図において、IA、、IB、・・・、IPは夫々マ
ツプであって各タスクに対応してもうけられるもの、2
は主記憶装置であって中央処理装置を含めて主記憶装置
によって代表せしめたもの、5−0、5−1 、・・・
、5−nは夫々ページ制御テープル(PC置 )、6は
空きページ行列テーブル(EPGQL )、1−■、γ
−■、・・・、1−Oは夫々資源制御ワード(RCW)
、8−1.8−2゜・・・、8−rは夫々空きページを
表わしている。In FIG. 5, IA, IB, ..., IP are maps that can be created corresponding to each task, 2
5-0, 5-1, . . . are main storage devices including the central processing unit.
, 5-n are page control tables (PC location), 6 is empty page matrix table (EPGQL), 1-■, γ
-■, ..., 1-O are resource control words (RCW), respectively.
, 8-1.8-2° . . . , 8-r represent empty pages, respectively.
ページ制御テーブル(Page Cnntrol Ta
ble)5は主記憶装置2の記憶領域の管理を行うため
にもうけられているテーブルであり、上記記憶領域の各
実ページ位置に対応して1つのテーブルP装置が用意さ
れる。Page Control Table
ble) 5 is a table prepared for managing the storage area of the main storage device 2, and one table P device is prepared corresponding to each real page position in the storage area.
そして、該テーブル内には、当該実ページ位置の実アド
レス情報、当該実ページ位置を現に利用している資源例
えば資源■の番号換言すると上記RCW7−■の番号情
報などが格納される。In the table, real address information of the real page position, the number of the resource currently using the real page position, for example, the number of the resource (2), in other words, the number information of the RCW7-2, etc. are stored.
空きページ行列テーブル(Empty Page Qu
eueLimit)6は、現に空き状態にある上記ペー
ジ制御テーブルP装置を管理するためにもうけられてい
るテーブルである。Empty Page Que
eueLimit) 6 is a table prepared for managing the page control table P devices that are currently in an empty state.
そして該テーブルEPGQL内には、空きPCTBL(
図示の場合空きページ8−1に対応するPCTBL)の
実ページ・アドレス情報、空きPC置の個数(図示の場
合1個)情報などが格納される。In the table EPGQL, there is an empty PCTBL (
In the illustrated case, real page address information of the PCTBL corresponding to the free page 8-1), information on the number of free PC locations (1 in the illustrated case), etc. are stored.
資源制御ワード(Resource Control
%rd)は1上述のデータ資源りやプログラム資源■、
■、・・・に1対1に対応してもうけられているテーブ
ルである。Resource Control Word
%rd) is 1 the above data resource or program resource■,
(2) This is a table that is created in one-to-one correspondence with .
そして該ワードRCW内には、資源例えば■のページ・
サイズ情報、当該資源■のオリジン(論理アドレス情報
)、当該資源■が現に格納されている主記憶装置2上の
実ページ番号(又はアドレス)情報などが格納される。Then, within the word RCW, there are resources such as the page ■.
Size information, the origin (logical address information) of the resource (2), real page number (or address) information on the main storage device 2 where the resource (2) is currently stored, etc. are stored.
以下第5図を参照しつつ拡大マクロ命令に対応した動作
を説明する。The operation corresponding to the enlarged macro instruction will be explained below with reference to FIG.
今第5図図示の如く、空きページ行列テーブル(EPG
QL’)6に対して空きページ8−1ないし8− rが
登録されているものとし、第6図図示の如く、ユーザ処
理プログラム9から1つの拡大マクロ命令(スーパバイ
ザ・コールSVC拡大)が発せられたとする。As shown in Figure 5, the free page matrix table (EPG
It is assumed that free pages 8-1 to 8-r are registered for QL') 6, and one enlargement macro command (supervisor call SVC enlargement) is issued from the user processing program 9, as shown in FIG. Suppose that
なおこのときユーザ処理プログラム9はどのプログラム
資源例えば資源■を拡大することを指示していることは
言う1でもない。Note that at this time, the user processing program 9 is not instructing which program resource, for example, the resource (2), to be expanded.
このとき、(13)システム・プログラム割込解析ルー
チンにより、プログラム拡大処理であることが判定され
、パラメータ等のチェックが行われる。At this time, the (13) system program interrupt analysis routine determines that the program is to be enlarged, and the parameters and the like are checked.
(14)そして拡大すべき資源例えば■に対応する資源
制御ワード(RCW)γ−■の内容が調べられる。(14) Then, the contents of the resource control word (RCW) γ-■ corresponding to the resource to be expanded, for example, ■, are checked.
(15)拡大すべき資源■が主記憶装置2上に存在して
いないことが当該資源制御ワードの内容(実ページ番号
)から判った場合即ち図示Xの場合、空きページ行列テ
ーブル(EPGQL)6の内容を調べて資源■のページ
・サイズ(例えば3ページ)分の空ページが存在するか
がチェックされる。(15) If it is found from the contents of the resource control word (actual page number) that the resource to be expanded does not exist on the main storage device 2, that is, in the case of X shown in the figure, the free page matrix table (EPGQL) 6 It is checked whether there is an empty page corresponding to the page size (for example, 3 pages) of the resource ■ by examining the contents of the resource ■.
仮になかった場合には、当該時点で旧いページを例えば
ロール・アウトするなど他の; 処理が行われるが、今
あったとする。If it does not exist, other processing is performed at that point, such as rolling out the old page, but suppose it does exist now.
(16)空きページ8−1、8−2、8−3 (第5図
図示)を空きページ行列テーブル(EPGQL)6から
外す。(16) Remove empty pages 8-1, 8-2, and 8-3 (shown in FIG. 5) from the empty page matrix table (EPGQL) 6.
(17)そして該ページ8−1.8−2.8−3を資、
源制御ワード(RCW’)7−■に接続する。(17) And the said page 8-1.8-2.8-3,
Connect to source control word (RCW') 7-■.
即ち当該ページ番号を資源制御ワード(RCW)γ−■
内に書込む。In other words, the page number is expressed as a resource control word (RCW) γ-■
Write inside.
勿論この場合、上記ページ8−1.8−2.8−3に対
応した各ページ制御テーブル(PC置)5の内容はビジ
ー状; 態に更新される。Of course, in this case, the contents of each page control table (on the PC) 5 corresponding to the pages 8-1.8-2.8-3 are updated to a busy state.
(18)次いで拡大すべき資源■の内容が外部大記憶装
置から主記憶装置2の上記ページs−i 、 s−2,
8−3内にロードされる。(18) Next, the contents of the resource (2) to be expanded are transferred from the external large storage device to the above pages s-i, s-2, s-2, of the main storage device 2.
8-3.
(19)そして上記ページ8−1のページ・アドレス情
報がマツプ1上に第3図を参照して説明した如く記録さ
れる。(19) Then, the page address information of the page 8-1 is recorded on the map 1 as explained with reference to FIG.
(20)そしてオペレーティング・システム起動ルーチ
ンに入り、ユーザ処理プログラム9が処理を再開する。(20) Then, the operating system startup routine is entered, and the user processing program 9 resumes processing.
・(21)上記処理(14)の結果、拡大すべき資源■
が他のタスクによって利用されており既に主記憶装置2
上に存在していた場合即ち図示Yの場合、当該拡大すべ
き資源■が現に格納されている実ページ位置が資源制御
ワード7−■の内容により調べられる。・(21) As a result of the above process (14), resources to be expanded■
is being used by another task and has already been stored in main memory 2.
If the resource is located above, that is, in the case of Y shown in the figure, the actual page position where the resource to be expanded is currently stored is checked based on the contents of the resource control word 7-■.
(22)そして上記処理(19) 、 (20)に進む
。(22) Then proceed to the above processes (19) and (20).
即ち他タスクが利用している資源■は共用されることに
なる。In other words, resource (2) used by other tasks will be shared.
(23)上記処理(14)の結果、以前に資源■を利科
したことがあり、当該資源■が成るページ位置に存在し
ている(即ち該ページ位置に対応したページ制御テーブ
ル5上に資源■に対応した資源制御ワードRCWの番号
が記録された1寸である)が、該ページ位置は空き状態
になっている場合、即ち図示Zの場合、当該ページは空
きページ行列テーブル(EPGQL)6上に待行列とな
っているだけである。(23) As a result of the above process (14), the resource ■ has been used before, and the resource ■ exists at the page position (that is, there is no resource on the page control table 5 corresponding to the page position). 1 size in which the number of the resource control word RCW corresponding to (1) is recorded), but if the page position is in an empty state, that is, in the case of Z shown in the figure, the page is in the empty page matrix table (EPGQL) 6. There's just a queue at the top.
このことから、当該ページを空きページ行列テーブル(
EPGQL’)6から外す。From this, we can define the page in the free page matrix table (
Remove from EPGQL')6.
即ち資源制御ワードγ−■に当該ページを接続する。That is, the page is connected to the resource control word γ-■.
(24)そして上記処理(19) 、 @)に進む。(24) Then proceed to the above process (19), @).
上記拡大マクロ命令による処理動作を説明したが、次に
第1図を参照して縮小マクロ命令に対応した動作を説明
する。Having explained the processing operation according to the enlargement macro instruction, the operation corresponding to the reduction macro instruction will now be explained with reference to FIG.
今第5図図示の如く、ページ8−1.8−2.8−3が
資源制御ワード(RCW’)?−■に接続されているも
のとし、第7図図示の如く、ユーザ処理プログラム9か
ら1つの縮小マクロ命令が発せられたものとする。As shown in Figure 5, page 8-1.8-2.8-3 is the resource control word (RCW')? -■, and one reduction macro command is issued from the user processing program 9 as shown in FIG.
このとき、
(25)O8割込解析ルーチンにより、プログラム縮小
処理であることが判定され、パラメータ等のチェックが
行われる。At this time, (25) the O8 interrupt analysis routine determines that program reduction processing is being performed, and checks parameters and the like.
(26)そして縮小すべき資源例えば■に対応する資源
制御ワード(RCW)7−■の内容やページ制御テーブ
ル5の内容が調べられる。(26) Then, the contents of the resource control word (RCW) 7-■ corresponding to the resource to be reduced, for example, ■ and the contents of the page control table 5 are checked.
(27)縮小すべき資源■を利用している他のタスクが
存在していない場合、即ち図示■の場合、資源制御語(
RCW)?−■からページ8−1゜8−2.8−3のペ
ージ番号を抹消する。(27) If there is no other task using the resource ■ to be reduced, that is, in the case of ■ shown in the figure, the resource control word (
RCW)? -Delete the page numbers of pages 8-1, 8-2, and 8-3 from ■.
そして該ページ81.8−2.8−3を空きページ行列
テーブル(EPGQL)6に接続する。Then, the page 81.8-2.8-3 is connected to the empty page matrix table (EPGQL) 6.
勿論これにより、該各ページに対応したページ制御テー
ブル(PCTBL )5の内容は空き状態に更新される
。Of course, as a result, the contents of the page control table (PCTBL) 5 corresponding to each page are updated to an empty state.
(28)次いで縮小すべき資源■の実アドレス情報を、
マツプ1からクリヤする。(28) Next, the real address information of the resource ■ to be reduced is
Clear map 1.
即ち、当該資源■のページ・サイズ分だけクリヤされる
。That is, the amount corresponding to the page size of the resource (2) is cleared.
(29)そしてOSプログラム起動ルーチンに入る。(29) Then, the OS program startup routine is entered.
(30)上記処理(26)の結果、他タスクが当該資源
■を利用していた場合即ち図示Wの場合、直ちに上記処
理(28) 、 (29)に移る。(30) As a result of the above process (26), if another task is using the resource (2), that is, in the case of W shown in the figure, the process immediately moves to the above processes (28) and (29).
なお上記処理部ち第6図および第1図に対応した処理は
、第5図図示のタスク対応のマツプ1、ページ対応のペ
ージ制御テーブル、空き状態が管理される空きページ行
列テーブル6、各資源対応の資源制御ワード1の内容を
利用して、オペレーティング・システムが、ユーザ処理
プログラムからの拡大マクロ命令や縮小マクロ命令によ
って起動されて、実行してゆくものと考えてよい。The processing corresponding to FIG. 6 and FIG. 1 is performed by the processing unit shown in FIG. It may be considered that the operating system is started and executed by an enlargement macro instruction or a reduction macro instruction from a user processing program using the contents of the corresponding resource control word 1.
以上説明した如く、本発明によれば、各タスクが現に利
口しようとするプログラム資源のページ・νサイズにあ
わせて主記憶装置2上の記憶領域を占有すればよく、該
記憶領域がきわめて効率よく利用されると共に、記憶領
域をいわば無限に拡張することも可能であり、また呼び
込1れるプログラム構造がリエントラント構造のものな
どでよく柔;軟性がある。As explained above, according to the present invention, each task only needs to occupy the storage area on the main storage device 2 according to the page/v size of the program resource that it is actually trying to utilize, and the storage area can be used extremely efficiently. As it is used, it is possible to expand the storage area to an infinite extent, and the program structure that is called has good flexibility, such as a reentrant structure.
またそのための処理動作に当って、拡大せたは縮小され
る単位の資源に1対1に対応する資源制御ワード(RC
W)を用意し、該資源制御ワード(RCW)に対応資源
が利用するページ位置を記録するだけで足り、処理が繁
雑になる1こともない。In addition, in processing operations for this purpose, resource control words (RC
It is sufficient to prepare a resource control word (W) and record the page position used by the corresponding resource in the resource control word (RCW), and the processing does not become complicated.
第1図はタスクに対応してもうけられるマツプと該マツ
プの内容によって指示される主記憶装置上の実ページ位
置との関係を説明する説明図、第2図A、 、 Bは従
来のセグメント方式における問題点を説明する説明図、
第3図は本発明の方式を概念的に説明する説明図、第4
図A、 、 Bは夫々本発明にいう拡大マクロ命令と縮
小マクロ命令とを説明する説明図、第5図は本発明によ
る処理方式の一実施例構成、第6図および第1図は第5
図に示す構成を利用した本発明による処理動作を表わす
一実施例フローチャートを示す。
図中、1はマツプ、2は主記憶装置、3はページ位置(
又はページ情報)、4はスペース、5はページ制御テー
ブル(PCTBL )、6は空きページ行列テーブル(
EPGQL)、1は資源制御ワード、8は空きページを
表わしている。Fig. 1 is an explanatory diagram illustrating the relationship between a map created in response to a task and the actual page position on the main memory indicated by the contents of the map, and Fig. 2 A, , and B show the conventional segment method. An explanatory diagram explaining the problems in
Fig. 3 is an explanatory diagram conceptually explaining the method of the present invention;
Figures A, , and B are explanatory diagrams for explaining enlarged macro instructions and reduced macro instructions, respectively, according to the present invention, FIG. 5 shows the configuration of an embodiment of the processing method according to the present invention, and FIGS.
1 shows a flowchart of an embodiment of the processing operation according to the present invention using the configuration shown in the figure. In the figure, 1 is the map, 2 is the main memory, and 3 is the page location (
or page information), 4 is space, 5 is page control table (PCTBL), 6 is free page matrix table (
EPGQL), 1 represents a resource control word, and 8 represents an empty page.
Claims (1)
グラムが主記憶装置上で格納されているページ・アドレ
ス情報金格納すべく上記当該タスクに対応してもうけら
れるマツプ、主記憶装置上の各ページ位置に対応しても
うけられるページ制御テーブル、該ページ制御テーブル
中の空きページ制御テーブルを待行列の形で管理する空
きページ行列テーブルをそなえてなり、主記憶装置上の
ページ情報を管理しつつ処理を進行してゆくページ制御
データ処理システムにおいて、上記複数個のタスクが夫
々利用するデータまたはプログラムである個々の資源に
対応して資源制御ワードを用意せしめ、上記タスクがプ
ログラム稼動後にユーザ処理プログラム上のマクロ命令
によって、上記1つのタスクが利用するプログラム資源
のうち当面利用するプログラム資源のページ・サイズ分
を上記ページ制御テーブルの内容と上記空きページ制御
テーブルの内容とにもとづいて上記主記憶装置上に確保
して清談資源を主記憶装置上に保持し上記対応する資源
制御ワード上に記録せしめると共に当該プログラム資源
が主記憶装置上に格納されているページ・アドレス情報
を上記対応するマツプに記録せしめるよう制御せしめ、
当該プログラム資源を現に利用したタスクが当該プログ
ラム資源を利用しなくなったとき上記対応する資源制御
ワード上の記録を抹消しかつ上記対応するマツプ上の記
録を抹消せしめるよう制御せしめ、更に上記確保しよう
とするプログラム資源が他タスクによって上記主記憶装
置上に格納されていることが上記資源制御ワードの内容
と上記ページ制御テーブルの内容とにもとづいて判明し
たとき上記該当タスクに対応するマツプ上に当該プログ
ラム資源のページ・アドレス情報を記録せしめるよう制
御されることを特徴とするページ制御データ処理システ
ム制御方式。1. Page address information where the data and programs necessary to process a given task are stored on the main memory. A map created in response to the above task to store the information, and the location of each page on the main memory. It is equipped with a page control table that can be created correspondingly to the page control table, and a free page matrix table that manages the free page control tables in the page control table in the form of a queue, and processes while managing page information on the main memory. In the progressing page control data processing system, a resource control word is prepared corresponding to each resource, which is data or a program, used by each of the plurality of tasks, and after the task runs the program, the resource control word is A macro instruction stores the page size of the program resources to be used for the time being in the main memory based on the contents of the page control table and the free page control table among the program resources used by the one task. The program resource is secured and held in the main memory and recorded in the corresponding resource control word, and the page address information where the program resource is stored in the main memory is recorded in the corresponding map. control,
When a task that actually used the program resource no longer uses the program resource, control is performed to delete the record on the corresponding resource control word and the record on the corresponding map, and further attempts to secure the above resource. When it is determined based on the contents of the resource control word and the page control table that the program resource to be executed is stored in the main memory by another task, the program is displayed on the map corresponding to the task. A control method for a page control data processing system, characterized in that the page control data processing system is controlled to record page address information of a resource.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP52126581A JPS5816546B2 (en) | 1977-10-21 | 1977-10-21 | Page control data processing system control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP52126581A JPS5816546B2 (en) | 1977-10-21 | 1977-10-21 | Page control data processing system control method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5459847A JPS5459847A (en) | 1979-05-14 |
| JPS5816546B2 true JPS5816546B2 (en) | 1983-03-31 |
Family
ID=14938705
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP52126581A Expired JPS5816546B2 (en) | 1977-10-21 | 1977-10-21 | Page control data processing system control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5816546B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS57119586A (en) * | 1981-01-19 | 1982-07-26 | Fujitsu Ltd | Control system for subscriber information file area |
| JPS587358U (en) * | 1981-07-07 | 1983-01-18 | 日本電気株式会社 | integrated circuit device |
| US5247681A (en) * | 1990-12-18 | 1993-09-21 | International Business Machines Corporation | Dynamic link libraries system and method |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS51141554A (en) * | 1975-05-31 | 1976-12-06 | Toshiba Corp | Method of segmentation |
-
1977
- 1977-10-21 JP JP52126581A patent/JPS5816546B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5459847A (en) | 1979-05-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4435752A (en) | Allocation of rotating memory device storage locations | |
| JPH07175698A (en) | File system | |
| KR20090066765A (en) | Method and apparatus for task movement on multicore platform | |
| JPS58195966A (en) | Resource switching by user's control for multi-task processing word processor | |
| JPH06250928A (en) | Information processing equipment | |
| US5189733A (en) | Application program memory management system | |
| US3639912A (en) | Management control subsystem for multiprogrammed data processing system | |
| JPS5816546B2 (en) | Page control data processing system control method | |
| JPS6314241A (en) | Memory expansion system | |
| JP2513811B2 (en) | Input/Output Control Method | |
| JP3413369B2 (en) | Information processing device | |
| JPS6223895B2 (en) | ||
| JPH0337748A (en) | External storage accessing system utilizing main storage | |
| JPH02115958A (en) | Data transfer control method | |
| JPS6155752A (en) | Control of expanded memory device | |
| JPH04184525A (en) | Magnetic disk device | |
| JPS6246016B2 (en) | ||
| JPH10161985A (en) | Processor allocation method and multiprocessor computer system | |
| JPH01159737A (en) | Computer system with bank selecting function | |
| JPS6365977B2 (en) | ||
| JPS6039265A (en) | Data transfer system | |
| JPS6231454A (en) | Disk access control system | |
| JPS60198661A (en) | Input and output control system | |
| JPH041370B2 (en) | ||
| JPH01232392A (en) | Image processing method |