JPH04217048A - memory management device - Google Patents

memory management device

Info

Publication number
JPH04217048A
JPH04217048A JP41793490A JP41793490A JPH04217048A JP H04217048 A JPH04217048 A JP H04217048A JP 41793490 A JP41793490 A JP 41793490A JP 41793490 A JP41793490 A JP 41793490A JP H04217048 A JPH04217048 A JP H04217048A
Authority
JP
Japan
Prior art keywords
area
size
block
memory management
user
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
JP41793490A
Other languages
Japanese (ja)
Inventor
Masaki Matsuda
正樹 松田
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP41793490A priority Critical patent/JPH04217048A/en
Publication of JPH04217048A publication Critical patent/JPH04217048A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To offer the memory management system which can use effectively a void area of various sizes. CONSTITUTION:A memory management processing means provided with a user, a memory management processing means, and an OS(operating system) is constituted so that the next block address, a block size, and a head free area address are entered in a block being under its own management, and also, in the case there if a void area in the block, the next void area address, and a void area size are entered in the void area concerned, and when an area obtaining request for designating the minimum size is received from a user, in the case the void area exceeding a request size exists in the block being under its own management, the void area concerned is delivered to the user, and in the case said area does not exist, an area obtaining request is outputted to the OS, the area delivered from the OS is delivered to the user, and also, the area concerned is connected to a chain of the block as the block.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、メモリ管理方式の改良
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to improvements in memory management methods.

【0002】0002

【従来の技術】従来のメモリ管理においては、必要サイ
ズを指定して領域獲得要求を出す必要があった。
2. Description of the Related Art In conventional memory management, it is necessary to specify the required size and issue an area acquisition request.

【0003】0003

【発明が解決しようとする課題】メモリ領域の獲得時、
分割されても良いが、出来るだけ連続領域にしたい場合
や全体として必要なサイズが獲得時点では不明な場合が
ある。例えば、分割域毎に固定の管理域を持たなければ
ならない場合やプログラム翻訳結果の格納に使用する領
域を獲得する場合が、これに相当する。
[Problem to be solved by the invention] When acquiring a memory area,
Although it may be divided, there are cases where it is desired to make the area as continuous as possible, or where the required size as a whole is unknown at the time of acquisition. For example, this is the case when it is necessary to have a fixed management area for each divided area or when an area used for storing program translation results is acquired.

【0004】従来の処理では、このような場合でも獲得
サイズの指定が必要であるため、大きめに獲得すれば小
さい空領域が無駄になり、小さいなサイズを指定すると
領域が細分化され、無駄な管理域が増えると言った矛盾
を抱えることになった。本発明は、上述のような矛盾を
解決し、様々なサイズの空領域がある場合に、それらを
有効に使用できるようになったメモリ管理方式を提供す
ることを目的としている。
[0004] In conventional processing, it is necessary to specify the acquisition size even in such a case, so if a larger size is acquired, a small empty area will be wasted, and if a smaller size is specified, the area will be subdivided and the area will be wasted. This resulted in the contradiction that the number of management areas increased. It is an object of the present invention to provide a memory management method that solves the above-mentioned contradictions and makes it possible to effectively use empty areas of various sizes.

【0005】[0005]

【課題を解決するための手段】図1は本発明の原理説明
図である。本発明のメモリ管理方式は、利用者と、メモ
リ管理処理手段と、オペレーティング・システムとを具
備し、メモリ管理処理手段は、自己の管理下にあるブロ
ックの中に、次ブロック・アドレス,ブロック・サイズ
,先頭空領域アドレスを記入すると共に、ブロックの中
に空領域がある場合には、当該空領域の中に次空領域ア
ドレス,空領域サイズを記入し、最低サイズ指定の領域
獲得要求を利用者から受け取ったときには、自己の管理
下のブロックの中に要求サイズ以上の空領域が存在する
か否かを調べ、存在する場合には該当する空領域を利用
者に渡し、存在しない場合には、オペレーティング・シ
ステムに領域獲得要求を出し、オペレーティング・シス
テムから渡された領域を利用者に渡すと共に、当該領域
をブロックとして、ブロックの連鎖に繋ぐように構成さ
れていることを特徴とするものである。
[Means for Solving the Problems] FIG. 1 is a diagram illustrating the principle of the present invention. The memory management method of the present invention includes a user, a memory management processing means, and an operating system, and the memory management processing means stores the next block address, block address, etc. in the blocks under its own management. In addition to filling in the size and start free area address, if there is an empty area in the block, write the next empty area address and empty area size in the empty area, and use an area acquisition request with the minimum size specified. When received from the user, it is checked whether there is an empty area larger than the requested size in the block under its control, and if it exists, the corresponding empty area is passed to the user, and if it does not exist, it is The system is characterized in that it issues an area acquisition request to the operating system, passes the area passed from the operating system to the user, and connects the area as a block to a chain of blocks. be.

【0006】[0006]

【作用】メモリ管理処理手段は、自己の管理下にある領
域をブロック管理する。各ブロックの中に、次ブロック
・アドレス,ブロック・サイズ,先頭空領域アドレスが
記入され、空領域が存在する場合には、当該空領域の中
に次空領域アドレス,空領域サイズが記入される。
[Operation] The memory management processing means blocks-manages the area under its own management. The next block address, block size, and first free area address are written in each block, and if a free area exists, the next free area address and free area size are written in the empty area. .

【0007】利用者は、メモリ管理処理手段に対して、
領域獲得要求を出すときに最低サイズ指定情報を付加す
ることが出来る。最低サイズ指定の領域獲得要求とは、
例えば少なくともサイズ5以上の領域の獲得を要求する
ものである。
[0007] The user requests the memory management processing means to
Minimum size specification information can be added when issuing an area acquisition request. What is an area acquisition request with a minimum size specification?
For example, it requests acquisition of an area of at least size 5 or more.

【0008】メモリ管理処理手段は、サイズ=5の最低
サイズ指定の領域獲得要求を受け取ると、自己の管理下
にあるブロックの中からサイズ5以上の空領域を見つけ
出し、この空領域を利用者に渡す。自己の管理下のブロ
ックの中にサイズ5以上の空領域が存在しない場合には
、メモリ管理処理手段は、オペレーティング・システム
に対して領域獲得要求を出し、オペレーティング・シス
テムから渡された領域を利用者に渡す。
[0008] When the memory management processing means receives an area acquisition request specifying a minimum size of size=5, it finds an empty area of size 5 or more from among the blocks under its own management, and provides this empty area to the user. hand over. If there is no empty area of size 5 or more in the block under its own management, the memory management processing means issues an area acquisition request to the operating system and uses the area passed from the operating system. give it to someone.

【0009】利用者は、メモリ管理処理手段から渡され
た領域の中から必要な部分を使用し、もし領域が余れば
余った領域をメモリ管理処理手段に返却する。
[0009] The user uses the necessary portion of the area passed from the memory management processing means, and if there is any remaining area, returns the excess area to the memory management processing means.

【0010】ここで述べるオペレーティグ・システムは
システムにおける領域の全てを管理しており、領域の獲
得・解放要求に対して、管理している領域の切り出し・
回収を行う機能を有するものとする。さらに、このオペ
レーティング・システムは、複数利用者間での領域の振
り分けや、利用者プログラムの異常終了時の領域の回収
処理などの機能を有しているのが普通である。
The operating system described here manages all the areas in the system, and in response to requests for acquiring and releasing areas, it cuts out and extracts the areas it manages.
It shall have a collection function. Furthermore, this operating system usually has functions such as allocating areas among multiple users and recovering areas when a user program terminates abnormally.

【0011】[0011]

【実施例】図2は、本発明のメモリ管理プログラム管理
下にあるブロックの構造を示す図である。メモリ管理プ
ログラムの管理下にあるブロックは、次ブロック・アド
レス,ブロック・サイズ,ブロック最終アドレス,先頭
空領域アドレスを有している。また、ブロックに空領域
がある場合には、その空領域の中に次空領域アドレス,
空領域サイズが記入される。ブロック・サイズは、基本
ブロック・サイズ(例えば8Kバイト)以上である。こ
のサイズはオペレーティング・システムに頻繁に領域獲
得要求がでないように利用者の通常の要求サイズよりも
十分大きいものとする。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 2 is a diagram showing the structure of blocks under the control of the memory management program of the present invention. A block under the control of the memory management program has a next block address, a block size, a block end address, and a leading empty area address. Also, if there is an empty area in the block, the next empty area address,
The empty area size is filled in. The block size is greater than or equal to the basic block size (eg, 8K bytes). This size should be sufficiently larger than the user's normal request size so that the operating system does not receive frequent requests to acquire space.

【0012】本発明のメモリ管理プログラムは、■要求
サイズ指定での領域獲得 ■最低サイズ指定での領域獲得 ■■で獲得後の余り領域の返却 ■アドレス指定による獲得領域の解放 ■全領域の一括解放 と言う機能を有している。
The memory management program of the present invention: ■ Acquires an area by specifying a requested size ■ Acquires an area by specifying a minimum size ■ Returns the remaining area after acquiring it ■ Releases the acquired area by specifying an address ■ All areas at once It has the function of liberation.

【0013】図3は最低サイズ指定の領域獲得要求を受
け取った場合におけるメモリ管理プログラムの処理を説
明する図である。最低サイズ指定の領域獲得要求には、
最低サイズ指定であることを示す情報が付加されている
。
FIG. 3 is a diagram illustrating the processing of the memory management program when an area acquisition request specifying the minimum size is received. For space acquisition requests with minimum size specified,
Information indicating that the minimum size is specified is added.

【0014】ステップS1では、次の(初回は先頭の)
ブロックのポインタを得る。該当するブロックのポイン
タが存在しない場合にはS6に進む。ステップS2では
、次の(初回は先頭の)空領域ポインタを得る。空領域
ポインタが存在しない場合には、S1に戻り、存在する
場合にはS3に進む。ステップS3では空領域サイズと
要求サイズとを比較する。空領域サイズ<要求サイズの
場合にはS1に戻り、空領域サイズ≧要求サイズの場合
にはS4に進む。ステップS4では、空領域を連鎖から
外す。ステップS5では、空領域ポインタと空領域サイ
ズとを要求プログラムに通知する。ステップS6では、
基本ブロック・サイズと要求サイズとを比較する。 基本ブロック・サイズ<要求サイズの場合にはS7に進
み、基本ブロック・サイズ≧要求サイズの場合にはS1
0に進む。ステップS7では、要求サイズでシステム(
仮想記憶管理プログラム)に領域獲得要求を出す。ステ
ップS8では、獲得したブロックのポインタを前のブロ
ックに入れる。ステップS9では獲得領域のポインタと
サイズを要求プログラムに通知する。ステップS10で
は、基本ブロック・サイズでシステムに領域獲得要求を
出す。次にS8に進む。
[0014] In step S1, the next (the first one for the first time)
Get the block pointer. If the pointer to the corresponding block does not exist, the process advances to S6. In step S2, the next (the first empty area pointer for the first time) is obtained. If the empty area pointer does not exist, the process returns to S1; if the empty area pointer does exist, the process proceeds to S3. In step S3, the empty area size and the requested size are compared. If empty area size<required size, the process returns to S1, and if empty area size≧requested size, the process proceeds to S4. In step S4, empty areas are removed from the chain. In step S5, the empty area pointer and empty area size are notified to the requesting program. In step S6,
Compare basic block size to requested size. If basic block size<request size, proceed to S7; if basic block size≧required size, proceed to S1
Go to 0. In step S7, the system (
Issues an area acquisition request to the virtual memory management program. In step S8, the pointer of the acquired block is placed in the previous block. In step S9, the pointer and size of the acquired area are notified to the requesting program. In step S10, an area acquisition request is issued to the system using the basic block size. Next, proceed to S8.

【0015】図4は要求サイズ指定の領域獲得要求を受
け取った場合におけるメモリ管理プログラムの処理を説
明する図である。要求サイズ指定の領域獲得要求には、
要求サイズ指定であることを示す情報が付加されている
。
FIG. 4 is a diagram illustrating the processing of the memory management program when it receives an area acquisition request specifying the requested size. For an area acquisition request with a specified request size,
Information indicating that the requested size is specified is added.

【0016】ステップS1では、次の(初回は先頭の)
ブロックのポインタを得る。存在する場合にはS2に進
み、存在しない場合にはS6に進む。ステップS2では
、次の(初回は先頭の)空領域ポインタを得る。存在す
る場合にはS3に進み、存在しない場合にはS1に戻る
。ステップS3では、空領域サイズと要求サイズとを比
較する。空領域<要求サイズの場合にはS1に戻り、空
領域≧要求サイズの場合にはS4に進む。ステップS4
では、空領域の先頭から要求サイズを除いた部分を空領
域として、前の空領域と接続する。ステップS5では、
領域のポインタを要求プログラムに通知する。ステップ
S6では、基本ブロック・サイズと要求サイズとを比較
する。要求ブロック・サイズ<要求サイズの場合にはS
7に進み、要求ブロック・サイズ≧要求サイズの場合に
はS10に進む。ステップS7では、要求サイズでシス
テムに領域獲得要求を出す。ステップS8では、獲得し
たブロックのポインタを前のブロックに入れる。ステッ
プS9では獲得領域のポインタとサイズを要求プログラ
ムに通知する。ステップS10では基本ブロック・サイ
ズでシステムに領域獲得要求を出す。ステップS11で
は、ブロックの残り部分をブロックの先頭空領域とする
。次にステップS8に進む。
[0016] In step S1, the next (the first one for the first time)
Get the block pointer. If it exists, the process advances to S2; if it does not exist, the process advances to S6. In step S2, the next (the first empty area pointer for the first time) is obtained. If it exists, the process advances to S3; if it does not exist, it returns to S1. In step S3, the empty area size and the requested size are compared. If empty area<required size, the process returns to S1, and if empty area≧requested size, the process proceeds to S4. Step S4
Now, the part obtained by removing the requested size from the beginning of the empty area is set as an empty area, and is connected to the previous empty area. In step S5,
Notify the requesting program of the area pointer. In step S6, the basic block size and the requested size are compared. S if requested block size < requested size
The process proceeds to step 7, and if the requested block size≧required size, the process proceeds to step S10. In step S7, an area acquisition request is issued to the system with the requested size. In step S8, the pointer of the acquired block is placed in the previous block. In step S9, the pointer and size of the acquired area are notified to the requesting program. In step S10, an area acquisition request is issued to the system using the basic block size. In step S11, the remaining portion of the block is set as the empty area at the beginning of the block. Next, the process advances to step S8.

【0017】図5は余り域の返却処理を示す図である。 要求プログラムは、割り当てられた領域から必要な部分
を使用し、領域返却要求をメモリ管理プログラムに出し
、余り域を返却する。メモリ管理プログラムは、領域返
却要求を受け取ると、下記のような処理を行う。
FIG. 5 is a diagram showing the processing for returning the remainder area. The requesting program uses the necessary portion of the allocated area, issues an area return request to the memory management program, and returns the remaining area. When the memory management program receives an area return request, it performs the following processing.

【0018】ステップS1では、領域返却要求に付加さ
れている獲得領域ポインタ,獲得領域サイズ,使用サイ
ズを取り込む。ステップS2では、余り域の先頭アドレ
スを得る。この先頭アドレスは、獲得領域ポインタに使
用サイズを加算することにより得られる。ステップS3
では、余りサイズを得る。余りサイズは、獲得領域サイ
ズから使用サイズを減算することにより得られる。ステ
ップS4ではブロックを辿り、対象空領域の属するブロ
ックを見つける。ステップS5では、次の(初回は先頭
の)空き領域が存在するか否かを調べる。存在する場合
にはS6に進み、存在しない場合にはS10に進む。ス
テップS6では、次の空領域ポインタを得る。ステップ
S7では、空領域ポインタと余り域先頭アドレスとを比
較する。空領域ポインタ<余り域先頭アドレスの場合に
はS5に戻り、空領域ポインタ≧余り域先頭アドレスの
場合にはS8に進む。ステップS8では、余り域と空領
域が隣接しているか否かを調べる。隣接している場合に
はS9に進み、隣接していない場合にはS11に進む。 ステップS9では、余り域と空領域を合わせて一つの空
領域とする。ステップS10では、余り域を先頭空領域
とする。ステップS11では、一つ前の空領域の次領域
ポインタを余り域先頭アドレスとし、余り域先頭に空領
域アドレスを入れる。
In step S1, the acquired area pointer, acquired area size, and used size added to the area return request are fetched. In step S2, the start address of the remainder area is obtained. This start address can be obtained by adding the used size to the acquired area pointer. Step S3
Now, get the remainder size. The remainder size is obtained by subtracting the used size from the acquired area size. In step S4, the blocks are traced to find the block to which the target sky area belongs. In step S5, it is checked whether the next (in the first time, the first) free area exists. If it exists, the process advances to S6; if it does not exist, the process advances to S10. In step S6, the next empty area pointer is obtained. In step S7, the free area pointer and the remaining area start address are compared. If the empty area pointer is less than the first address of the remainder area, the process returns to S5, and if the empty area pointer≧the first address of the remaining area, the process goes to S8. In step S8, it is determined whether the remaining area and the empty area are adjacent to each other. If they are adjacent, the process advances to S9; if they are not adjacent, the process advances to S11. In step S9, the remaining area and the empty area are combined into one empty area. In step S10, the remaining area is set as the leading empty area. In step S11, the next area pointer of the previous empty area is set as the remainder area start address, and the empty area address is entered at the remainder area start.

【0019】図6は本発明による領域返却の例を示す図
である。図6(a)は図5の処理S11に対応しており
、図6(b)は図5の処理S9に対応している。
FIG. 6 is a diagram showing an example of area return according to the present invention. 6A corresponds to the process S11 in FIG. 5, and FIG. 6B corresponds to the process S9 in FIG.

【0020】図7は本発明のメモリ管理プログラムにお
ける全領域解放処理を示す図である。全領域解放処理で
は下記のような処理が行われる。ステップS1では、先
頭ブロックのポインタを得る。ステップS2では、ブロ
ック内の次ブロック・ポインタを得る。ステップS3で
は、システムにブロックの解放要求を出す。ステップS
4では、次ブロック・ポインタが0か否かを調べる。次
ブロック・ポインタが0の場合には終わりとし、0でな
い場合にはS1に戻る。
FIG. 7 is a diagram showing the entire area release process in the memory management program of the present invention. The following processing is performed in the all area release processing. In step S1, a pointer to the first block is obtained. In step S2, a next block pointer within the block is obtained. In step S3, a block release request is issued to the system. Step S
4, it is checked whether the next block pointer is 0 or not. If the next block pointer is 0, the process ends, and if it is not 0, the process returns to S1.

【0021】図8は本発明のメモリ管理プログラムにお
ける指定域の解放処理を示す図である。指定域の解放要
求には空領域ポインタを示す情報が付加されている。指
定域の解放処理では下記のような処理が行われる。ステ
ップS1ではブロックを辿り、対象空領域が属するブロ
ックを見つける。ステップS2では、次の(初回は先頭
の)空領域を求める。ステップS3では、指定のポイン
タと等しいか否かを調べる。等しい場合にはS4に進み
、異なる場合にはS2に戻る。ステップS4では、上下
の空領域と隣接しているかを調べ、隣接していれば一つ
の空領域とする。
FIG. 8 is a diagram showing the designated area release process in the memory management program of the present invention. Information indicating an empty area pointer is added to the specified area release request. The following processing is performed to release the specified area. In step S1, the blocks are traced to find the block to which the target sky area belongs. In step S2, the next (the first empty area for the first time) is determined. In step S3, it is checked whether the pointer is equal to a specified pointer. If they are equal, the process advances to S4; if they are different, the process returns to S2. In step S4, it is checked whether the sky area is adjacent to the sky area above or below, and if they are adjacent, it is treated as one sky area.

【0022】図9は利用者プログラムの処理手順の例を
示す図、図10はデータ構造の例を示す図、図11は本
発明による領域獲得の例を説明する図である。図10に
示すように、管理域+ブロックと言うデータ構造がある
と仮定する。図示の例では、管理域のサイズが3,ブロ
ックのサイズが2である。空領域は図11(a)のよう
になっていると仮定する。ブロックを10個作りたい場
合、従来のようなサイズを指定する領域獲得方法を採用
したときには、■5個ずつ作成■まとめて作成すること
が出来るが、何れの場合も領域の無駄や空領域の分散が
発生する。
FIG. 9 is a diagram showing an example of a processing procedure of a user program, FIG. 10 is a diagram showing an example of a data structure, and FIG. 11 is a diagram explaining an example of area acquisition according to the present invention. As shown in FIG. 10, it is assumed that there is a data structure called management area + block. In the illustrated example, the management area size is 3 and the block size is 2. It is assumed that the empty area is as shown in FIG. 11(a). If you want to create 10 blocks, if you use the conventional area acquisition method that specifies the size, you can: ■ Create 5 blocks at a time ■ Create them all at once, but in either case, you will end up wasting space and creating empty space. Dispersion occurs.

【0023】本発明によれば、図11(b)に示すよう
に、サイズ17の空領域に7個、サイズ11の空領域に
3個をうまくつめることが出来る。その手順を図9に示
す。ステップS1では、最低サイズ5を指定して獲得要
求を出す。ステップS2では、サイズ17の領域のポイ
ンタが返却されるので、ここに7個のブロックを作成す
る。ステップS3では、さらに最低サイズ5を指定して
獲得要求を出す。ステップS4では、サイズ11の領域
のポインタが返却されるので、ここに3個のブロックを
作成する。ステップS5では、残りサイズ2の領域の返
却を行う。
According to the present invention, as shown in FIG. 11(b), it is possible to successfully pack seven pieces into an empty area of size 17 and three pieces into an empty area of size 11. The procedure is shown in FIG. In step S1, a minimum size of 5 is specified and an acquisition request is issued. In step S2, a pointer to an area of size 17 is returned, so seven blocks are created here. In step S3, a minimum size of 5 is further specified and an acquisition request is issued. In step S4, a pointer to an area of size 11 is returned, so three blocks are created here. In step S5, the remaining area of size 2 is returned.

【0024】[0024]

【発明の効果】以上の説明から明らかなように、本発明
によれば、獲得要求時には、最低サイズ指定を行うこと
が出来るため、必要以上にメモリ領域を獲得しなくても
済み、獲得できない場合の再獲得要求を行うと言った制
御が不要となる。また、割り当ては先ず空領域を探索し
て、存在すれば其処から割り当てるため、資源の有効な
利用と、高速な割り当てが可能である。
[Effects of the Invention] As is clear from the above explanation, according to the present invention, the minimum size can be specified when making an acquisition request, so there is no need to acquire more memory area than necessary, and if acquisition is not possible, the minimum size can be specified. There is no need for control such as requesting re-acquisition of the data. In addition, since allocation first searches for empty areas and, if they exist, allocation is made from there, effective use of resources and high-speed allocation are possible.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram explaining the principle of the present invention.

【図2】本発明のメモリ管理プログラム管理下にあるブ
ロックの構造を示す図である。
FIG. 2 is a diagram showing the structure of blocks under the management of the memory management program of the present invention.

【図3】本発明における最低サイズ指定による領域獲得
処理を説明する図である。
FIG. 3 is a diagram illustrating area acquisition processing by specifying a minimum size in the present invention.

【図4】本発明におけるサイズ指定による領域獲得処理
を説明する図である。
FIG. 4 is a diagram illustrating area acquisition processing based on size specification in the present invention.

【図5】本発明における余り域返却処理を説明する図で
ある。
FIG. 5 is a diagram illustrating a surplus area return process in the present invention.

【図6】本発明による領域返却の例を示す図である。FIG. 6 is a diagram illustrating an example of area return according to the present invention.

【図7】本発明における全領域の解放処理を説明する図
である。
FIG. 7 is a diagram illustrating a process for releasing all areas according to the present invention.

【図8】本発明における指定域の解放処理を説明する図
である。
FIG. 8 is a diagram illustrating designated area release processing in the present invention.

【図9】領域獲得のための利用昔の処理手順の例を示す
図である。
FIG. 9 is a diagram illustrating an example of a previously used processing procedure for acquiring an area.

【図10】データ構造の例を示す図である。FIG. 10 is a diagram showing an example of a data structure.

【図11】本発明による領域獲得の例を示す図である。FIG. 11 is a diagram illustrating an example of area acquisition according to the present invention.

Claims (1)

【特許請求の範囲】 【請求項の数1】  利用者と、メモリ管理処理手段と
、オペレーティング・システムとを具備し、メモリ管理
処理手段は、自己の管理下にあるブロックの中に、次ブ
ロック・アドレス,ブロック・サイズ,先頭空領域アド
レスを記入すると共に、ブロックの中に空領域がある場
合には、当該空領域の中に次空領域アドレス,空領域サ
イズを記入し、最低サイズ指定の領域獲得要求を利用者
から受け取ったときには、自己の管理下のブロックの中
に要求サイズ以上の空領域が存在するか否かを調べ、存
在する場合には該当する空領域を利用者に渡し、存在し
ない場合には、オペレーティング・システムに領域獲得
要求を出し、オペレーティング・システムから渡された
領域を利用者に渡すと共に、当該領域をブロックとして
、ブロックの連鎖に繋ぐように構成されていることを特
徴とするメモリ管理方式。
[Scope of Claims] [Claim Number 1] The memory management processing means includes a user, a memory management processing means, and an operating system, and the memory management processing means selects the next block among the blocks under its own management.・Enter the address, block size, and first free area address, and if there is an empty area in the block, enter the next empty area address and empty area size in the empty area, and specify the minimum size. When receiving an area acquisition request from a user, it checks whether there is an empty area larger than the requested size in the block under its own management, and if it exists, it passes the corresponding empty area to the user, If it does not exist, issue an area acquisition request to the operating system, pass the area passed from the operating system to the user, and confirm that the area is configured to be connected to a chain of blocks as a block. Characteristic memory management method.
JP41793490A 1990-12-18 1990-12-18 memory management device Pending JPH04217048A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP41793490A JPH04217048A (en) 1990-12-18 1990-12-18 memory management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP41793490A JPH04217048A (en) 1990-12-18 1990-12-18 memory management device

Publications (1)

Publication Number Publication Date
JPH04217048A true JPH04217048A (en) 1992-08-07

Family

ID=18525932

Family Applications (1)

Application Number Title Priority Date Filing Date
JP41793490A Pending JPH04217048A (en) 1990-12-18 1990-12-18 memory management device

Country Status (1)

Country Link
JP (1) JPH04217048A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6376029A (en) * 1986-09-19 1988-04-06 Fujitsu Ltd Area control system for program test
JPS6389950A (en) * 1986-10-02 1988-04-20 Nec Corp Memory managing system
JPH01230150A (en) * 1988-03-10 1989-09-13 Fujitsu Ltd Cell control system for os
JPH02300949A (en) * 1989-04-28 1990-12-13 Internatl Business Mach Corp <Ibm> Memory control

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6376029A (en) * 1986-09-19 1988-04-06 Fujitsu Ltd Area control system for program test
JPS6389950A (en) * 1986-10-02 1988-04-20 Nec Corp Memory managing system
JPH01230150A (en) * 1988-03-10 1989-09-13 Fujitsu Ltd Cell control system for os
JPH02300949A (en) * 1989-04-28 1990-12-13 Internatl Business Mach Corp <Ibm> Memory control

Similar Documents

Publication Publication Date Title
CN101019105B (en) Method and apparatus for data storage using striping
US4758951A (en) Method for translating virtual addresses into real addresses
US5313638A (en) Method using semaphores for synchronizing communication between programs or processes resident in a computer system
US20020166022A1 (en) Access control method, access control apparatus, and computer-readable memory storing access control program
JPH08129457A (en) Method and apparatus for expanding, shrinking and redistributing external storage structures
JPH11511272A (en) System for real-time data transfer and method using sparse files
JPH02300949A (en) Memory control
CN109582658A (en) A kind of distributed file system realizes the method and device of data consistency
JPS6232518B2 (en)
CN120407201B (en) Memory resource allocation method and device, electronic equipment, medium and product
JPS58164080A (en) System for managing and processing area
US5623639A (en) Memory management system for the time-wise management of memory
JP2590859B2 (en) Memory management method for communication processing in information processing equipment
JPH05158783A (en) Memory block control method
JPS5835656A (en) Cell management controlling system
JP2743857B2 (en) Data area management system for area shared files
JP2883200B2 (en) Access management method for a plurality of memory cards in a printer device
JPH08221317A (en) Memory management method
JPS63305438A (en) Exclusive control system for files to be used in common between plural host computers
JPH08153036A (en) Memory management device
JPH08328946A (en) Secondary storage area management method
JPH0619754A (en) Management system for memory data
JPH01274256A (en) Memory managing system
JPH09212426A (en) Storage device management method for virtual computer system
JPS6367656A (en) Processing system for data storing area control