JPH0520168A - Memory managing method - Google Patents

Memory managing method

Info

Publication number
JPH0520168A
JPH0520168A JP17150491A JP17150491A JPH0520168A JP H0520168 A JPH0520168 A JP H0520168A JP 17150491 A JP17150491 A JP 17150491A JP 17150491 A JP17150491 A JP 17150491A JP H0520168 A JPH0520168 A JP H0520168A
Authority
JP
Japan
Prior art keywords
area
block
list
management
unused
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
JP17150491A
Other languages
Japanese (ja)
Inventor
Nobuyuki Kato
信幸 加藤
Masashi Nakagawa
雅視 中川
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.)
HOKKAIDO NIPPON DENKI SOFTWARE KK
NEC Solution Innovators Ltd
Original Assignee
HOKKAIDO NIPPON DENKI SOFTWARE KK
NEC Software Hokkaido Ltd
NEC Software Chubu 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 HOKKAIDO NIPPON DENKI SOFTWARE KK, NEC Software Hokkaido Ltd, NEC Software Chubu Ltd filed Critical HOKKAIDO NIPPON DENKI SOFTWARE KK
Priority to JP17150491A priority Critical patent/JPH0520168A/en
Publication of JPH0520168A publication Critical patent/JPH0520168A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reutilize a memory secured by an annihilated process without executing an area release processing. CONSTITUTION:In a use area securing means 17, an area block is obtained by using an area securing means 15 by an area securing request from a process, and its area block is connected to the list of the area block managed by a use area managing block of process managing block of the process of a request origin. In a use area releasing means 18, by the area securing request from the process, the area block is removed from the list of the area block managed by the use area managing block of the process managing block of the process of the request origin, and set to an unused state by using its area block means 15. When the end of the process is informed by a process end detecting means 14, a use area forced releasing means 19 sets all area blocks on the lost of the area block managed by the use area managing block of the process managing block of its process to an unused state by using the means 17.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はメモリ管理方法に関し、
特に、情報処理システムにおけるメモリ管理方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory management method,
In particular, it relates to a memory management method in an information processing system.

【0002】[0002]

【従来の技術】従来のメモリ管理方法は、メモリ管理対
象領域を領域ブロックにより分割管理している。使用さ
れていない領域を持つ領域ブロックはリストを構成し、
未使用領域管理ブロックにより管理されている。
2. Description of the Related Art In a conventional memory management method, a memory management target area is divided and managed by area blocks. Area blocks with unused areas make up the list,
It is managed by the unused area management block.

【0003】領域確保要求が生じた場合には、要求され
た大きさの領域を持つ領域ブロックを使用されていない
領域を持つ領域ブロックのリストから外し、その領域の
位置を返却、または、要求された大きさの領域を持つ領
域ブロックがリストに存在しない場合には、要求された
大きさ以上の大きさの領域を持つ領域ブロックを分割し
て、その領域の位置を返却している。
When an area reservation request is made, an area block having an area of the requested size is removed from the list of area blocks having an unused area, and the position of the area is returned or requested. If there is no area block having an area of a certain size in the list, the area block having an area of the requested size or more is divided and the position of the area is returned.

【0004】領域解放要求が生じた場合には、要求され
た領域を持つ領域ブロックを使用されていない領域を持
つ領域ブロックのリストに連結し、隣接する領域ブロッ
クが存在するならばその領域ブロックを併合している。
When an area release request occurs, the area block having the requested area is connected to the list of area blocks having the unused area, and if there is an adjacent area block, the area block is connected. It has been merged.

【0005】[0005]

【発明が解決しようとする課題】上述した従来のメモリ
管理方法は、領域確保要求により切り出された領域の管
理はプロセスに委ねられるため、プロセスが領域解放要
求を行なわずに消滅した場合は、そのプロセスにより管
理されている領域を再使用できなくなるという欠点があ
る。
In the conventional memory management method described above, the management of the area cut out by the area reservation request is entrusted to the process. Therefore, when the process disappears without making the area release request, The disadvantage is that the area managed by the process cannot be reused.

【0006】[0006]

【課題を解決するための手段】本発明は、メモリを使用
状況別に管理するための領域ブロックを有するメモリ管
理対象領域と、使用されていない領域を持つ領域ブロッ
クのリストを管理している未使用領域管理ブロックと、
プロセスごとに存在し、起動されているプロセスに関す
る情報を保持するプロセス管理ブロックと、領域確保要
求により領域ブロックを未使用領域管理ブロックによっ
て管理されている領域ブロックのリストから外し、その
領域ブロックを使用可能状態にする領域確保手段と、領
域解放要求により領域ブロックを未使用領域管理ブロッ
クによって管理されている領域ブロックのリストに繋
ぎ、その領域ブロックを未使用状態にする領域解放手段
と、プロセスの終了を検出するプロセス終了検出手段と
を具備する情報処理システムのメモリ管理方法におい
て、前記プロセス管理ブロック上に、そのプロセス管理
ブロックにより識別されるプロセスが使用している領域
を持つ領域ブロックのリストを管理する使用領域管理ブ
ロックを設け、プロセスからの領域確保要求により前記
領域確保手段を使い領域ブロックを取得し、その領域ブ
ロックを要求元のプロセスのプロセス管理ブロックの使
用領域管理ブロックによって管理されている領域ブロッ
クのリストに繋ぐ使用領域確保手段と、プロセスからの
領域確保要求により領域ブロックを要求元のプロセスの
プロセス管理ブロックの使用領域管理ブロックによって
管理されている領域ブロックのリストから外し、その領
域ブロックを前記領域確保手段を使い未使用状態にする
使用領域解放手段と、前記プロセス終了検出手段によっ
てプロセスの終了が通知されると、そのプロセスのプロ
セス管理ブロックの使用領域管理ブロックによって管理
されている領域ブロックのリスト上のすべての領域ブロ
ックを前記使用領域確保手段を使い未使用状態にする使
用領域強制解放手段とを実行することを特徴とするもの
である。
SUMMARY OF THE INVENTION According to the present invention, a memory management target area having an area block for managing a memory according to a use condition and an unused area managing a list of area blocks having an unused area. Area management block,
A process management block that exists for each process and that holds information about started processes, and an area block is removed from the list of area blocks managed by an unused area management block, and that area block is used. Area securing means for enabling the area, area releasing means for connecting the area block to the list of area blocks managed by the unused area management block, and for releasing the area block, and ending the process In a memory management method for an information processing system, comprising: a process end detecting unit for detecting a process end detecting unit, a list of region blocks having an area used by a process identified by the process management block is managed on the process management block. The use area management block for Area securing means for obtaining an area block by using the area securing means according to the area securing request from the request source, and connecting the area block to the list of area blocks managed by the used area management block of the process management block of the requesting process. When an area reservation request is issued from a process, the area block is removed from the list of area blocks managed by the used area management block of the process management block of the requesting process, and the area block is not used by the area reservation means. When the end of the process is notified by the used area releasing means for making the process and the process end detecting means, all area blocks on the list of area blocks managed by the used area management block of the process management block of the process are Unused by using the above-mentioned used area securing means It is characterized in performing a used area forced release means for the state.

【0007】[0007]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0008】図1は本発明の一実施例のメモリ管理方法
が適用される情報処理システムの構成図である。この情
報処理システムは、未使用領域管理ブロック11と、プ
ロセス管理ブロック12と、メモリ管理対象領域13
と、プロセス終了検出手段14と、領域確保手段15
と、領域解放手段16と、使用領域確保手段17と、使
用領域解放手段18と、使用領域強制解放手段19とを
具備する。
FIG. 1 is a block diagram of an information processing system to which a memory management method according to an embodiment of the present invention is applied. This information processing system includes an unused area management block 11, a process management block 12, and a memory management target area 13.
A process end detecting means 14 and an area securing means 15
1, an area releasing means 16, a used area securing means 17, a used area releasing means 18, and a used area forcibly releasing means 19.

【0009】プロセス管理ブロック12は使用領域強制
解放手段19を有する。プロセス管理ブロック12は、
使用領域管理ブロック121を有する。メモリ管理対象
領域13は、領域ブロック131を有する。領域ブロッ
ク131は、標識1311と、領域サイズ1312と、
領域リスト1313と、領域1314と、標識1315
と、領域サイズ1316とを有する。標識1311およ
び標識1315は、領域1314が使用中か未使用状態
かを示し、隣接する領域ブロック131の状態を判断す
るために領域ブロック131の先頭と末尾に存在する。
領域サイズ1312および領域サイズ1316は、領域
1314の大きさを示し、隣接する領域ブロック131
の大きさを判断するために標識1311および領域サイ
ズ1312の直後に存在する。領域1314は、プロセ
スに対して提供されるメモリである。
The process management block 12 has a used area forced release means 19. The process management block 12
It has a used area management block 121. The memory management target area 13 has an area block 131. The area block 131 includes a marker 1311, an area size 1312,
Area list 1313, area 1314, and indicator 1315
And a region size 1316. Markers 1311 and 1315 indicate whether the area 1314 is in use or unused, and are present at the beginning and end of the area block 131 to determine the status of the adjacent area block 131.
The area size 1312 and the area size 1316 indicate the size of the area 1314, and the adjacent area blocks 131
Immediately after the marker 1311 and the region size 1312 to determine the size of the. Area 1314 is the memory provided to the process.

【0010】図2は、未使用領域の管理例を示す図であ
る。未使用の標識1311および標識1315を含む領
域ブロック131は、リストを構成している。領域リス
ト1313は、リスト上の領域ブロック131を示す。
未使用領域管理ブロック11は、リスト上の先頭の領域
ブロック131を示す。
FIG. 2 is a diagram showing an example of management of unused areas. The area block 131 including the unused marker 1311 and the unused marker 1315 constitutes a list. The area list 1313 shows the area blocks 131 on the list.
The unused area management block 11 indicates the first area block 131 on the list.

【0011】図3は、使用領域を管理例を示す図であ
る。使用中の標識1311および標識1315を含む領
域ブロック131は、メモリ確保要求を行なったプロセ
スごとのリストを構成している。領域リスト1313
は、リスト上の次の領域ブロック313を示す。使用領
域管理ブロック121は、リスト上の領域ブロック13
1を示す。
FIG. 3 is a diagram showing an example of management of used areas. The area block 131 including the in-use indicator 1311 and the indicator 1315 constitutes a list for each process that has made a memory reservation request. Area list 1313
Indicates the next region block 313 on the list. The used area management block 121 is the area block 13 on the list.
1 is shown.

【0012】領域確保手段15は、呼び出されると未使
用領域管理ブロック11が示す領域ブロック131のリ
ストから要求された大きさの領域ブロック131を外
す、または、要求された大きさの領域1314を持つ領
域ブロック131が存在しない場合には要求された大き
さ以上の大きさの領域1314を持つ領域ブロック13
1を分割して要求された大きさの領域1314を持つ領
域ブロック131を生成する。領域確保手段15は、取
得した領域ブロック131の標識1311および標識1
315を使用中に変更し、その領域ブロック131の位
置を返却する。
When called, the area securing means 15 removes the area block 131 of the requested size from the list of the area blocks 131 indicated by the unused area management block 11, or has the area 1314 of the requested size. When the area block 131 does not exist, the area block 13 having the area 1314 having a size larger than the requested size is provided.
1 is divided to generate a region block 131 having a region 1314 of the requested size. The area securing unit 15 uses the acquired marker 1311 and marker 1 of the acquired area block 131.
315 is changed to in use, and the position of the area block 131 is returned.

【0013】プロセスが領域確保要求を行なった場合に
は、使用領域確保手段17が領域確保手段15を呼び出
し、領域確保要求を行なったプロセスのプロセス管理ブ
ロック12に含まれる使用領域管理ブロック121が示
すリストに取得した領域ブロック131を接続した後、
領域1314の位置を返却する。
When a process makes an area reservation request, the used area reservation means 17 calls the area reservation means 15, and the used area management block 121 included in the process management block 12 of the process which made the area reservation request indicates. After connecting the acquired area block 131 to the list,
The position of the area 1314 is returned.

【0014】領域解放手段16は、呼び出されると取得
した領域ブロック131の標識1311および標識13
15を未使用に変更し、未使用領域管理ブロック11が
示す領域ブロック131のリストに取得した領域ブロッ
ク131を接続する。メモリ解放要求の対象の領域ブロ
ック131と隣接する領域ブロック131の標識131
1および標識1315が未使用であれば1つの領域ブロ
ック131に併合される。
The area releasing means 16 is an indicator 1311 and an indicator 13 of the area block 131 acquired when called.
15 is changed to unused, and the acquired area block 131 is connected to the list of area blocks 131 indicated by the unused area management block 11. Indicator 131 of the area block 131 adjacent to the area block 131 targeted for the memory release request
If 1 and the indicator 1315 are unused, they are merged into one area block 131.

【0015】プロセスが領域解放要求を行なった場合に
は、使用領域解放手段18は領域解放要求を行なったプ
ロセスのプロセス管理ブロック12に含まれる使用領域
管理ブロック121が示す領域ブロック131のリスト
から解放要求された領域1314を持つ領域ブロック1
31を外し、領域解放手段16を呼び出す。
When the process makes an area release request, the used area release means 18 releases the area block 131 indicated by the used area management block 121 included in the process management block 12 of the process which made the area release request. Area block 1 with requested area 1314
31 is removed and the area releasing means 16 is called.

【0016】プロセスが消滅する場合には、プロセス終
了検出手段14は使用領域強制解放手段19を呼び出
す。使用領域強制解放手段19は呼び出されると、消滅
するプロセスのプロセス管理ブロック12に含まれるプ
ロセス管理ブロック121が示す領域ブロック131の
リスト上のすべての領域ブロック131をリストから外
し、領域解放手段16を呼び出す。
When the process disappears, the process end detection means 14 calls the used area forced release means 19. When the used area forced release means 19 is called, all the area blocks 131 on the list of the area blocks 131 indicated by the process management block 121 included in the process management block 12 of the disappearing process are removed from the list, and the area release means 16 is set. call.

【0017】[0017]

【発明の効果】以上説明したように、本発明は、メモリ
の使用状態をプロセスごとに管理することにより、領域
解放処理を行なわずに消滅したプロセスが確保したメモ
リを再利用できる効果を奏する。
As described above, according to the present invention, the use state of the memory is managed for each process, so that the memory secured by the disappeared process can be reused without performing the area releasing process.

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

【図1】本発明の一実施例が適用された情報処理システ
ムの構成図である。
FIG. 1 is a configuration diagram of an information processing system to which an embodiment of the present invention is applied.

【図2】本発明の一実施例における未使用領域の管理例
を示す図である。
FIG. 2 is a diagram showing an example of management of unused areas according to an embodiment of the present invention.

【図3】本発明の一実施例における使用領域の管理例を
示す図である。
FIG. 3 is a diagram showing an example of management of used areas according to an embodiment of the present invention.

【符号の説明】[Explanation of symbols]

11 未使用領域管理ブロック 12 プロセス管理ブロック 13 メモリ管理対象領域 14 プロセス終了検出手段 15 領域確保手段 16 領域解放手段 17 使用領域確保手段 18 使用領域解放手段 19 使用領域強制解放手段 121 使用領域管理ブロック 131 領域ブロック 1311 標識 1312 領域サイズ 1313 領域リスト 1314 領域 1315 標識 1316 領域サイズ 11 Unused area management block 12 Process management block 13 Memory management target area 14 Process end detection means 15 Area securing means 16 Area release means 17 Use area securing means 18 Use area release means 19 Used area forced release means 121 Used Area Management Block 131 area block 1311 signs 1312 area size 1313 Area list 1314 area 1315 signs 1316 area size

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 メモリを使用状況別に管理するための領
域ブロックを有するメモリ管理対象領域と、使用されて
いない領域を持つ領域ブロックのリストを管理している
未使用領域管理ブロックと、プロセスごとに存在し、起
動されているプロセスに関する情報を保持するプロセス
管理ブロックと、領域確保要求により領域ブロックを未
使用領域管理ブロックによって管理されている領域ブロ
ックのリストから外し、その領域ブロックを使用可能状
態にする領域確保手段と、領域解放要求により領域ブロ
ックを未使用領域管理ブロックによって管理されている
領域ブロックのリストに繋ぎ、その領域ブロックを未使
用状態にする領域解放手段と、プロセスの終了を検出す
るプロセス終了検出手段とを具備する情報処理システム
のメモリ管理方法において、 前記プロセス管理ブロック上に、そのプロセス管理ブロ
ックにより識別されるプロセスが使用している領域を持
つ領域ブロックのリストを管理する使用領域管理ブロッ
クを設け、 プロセスからの領域確保要求により前記領域確保手段を
使い領域ブロックを取得し、その領域ブロックを要求元
のプロセスのプロセス管理ブロックの使用領域管理ブロ
ックによって管理されている領域ブロックのリストに繋
ぐ使用領域確保手段と、 プロセスからの領域確保要求により領域ブロックを要求
元のプロセスのプロセス管理ブロックの使用領域管理ブ
ロックによって管理されている領域ブロックのリストか
ら外し、その領域ブロックを前記領域確保手段を使い未
使用状態にする使用領域解放手段と、 前記プロセス終了検出手段によってプロセスの終了が通
知されると、そのプロセスのプロセス管理ブロックの使
用領域管理ブロックによって管理されている領域ブロッ
クのリスト上のすべての領域ブロックを前記使用領域確
保手段を使い未使用状態にする使用領域強制解放手段と
を実行することを特徴とするメモリ管理方法。
1. A memory management target area having an area block for managing the memory according to the usage status, an unused area management block managing a list of area blocks having an unused area, and a process-by-process basis. Excludes the area block from the list of the area blocks managed by the unused area management block and the process management block that holds information about existing and started processes, and makes the area block available. Area securing means for connecting the area block to the list of area blocks managed by the unused area management block by the area release request, and the area releasing means for putting the area block in the unused state, and detecting the end of the process. To a memory management method of an information processing system including a process end detecting means In the above process management block, a used area management block that manages a list of area blocks having an area used by a process identified by the process management block is provided, and the area is requested by an area reservation request from the process. Use area securing means that obtains the area block using securing means and connects the area block to the list of area blocks managed by the used area management block of the process management block of the requesting process, and the area securing request from the process The area block is removed from the list of area blocks managed by the used area management block of the process management block of the requesting process, and the area block releasing means uses the area securing means to make the area block unused. Process by the process end detection means When the end of is notified, all the area blocks on the list of the area blocks managed by the used area management block of the process management block of the process are forced to the unused area using the used area securing means. A memory management method characterized by executing a releasing means.
【請求項2】 領域が使用中か未使用状態かを示し、隣
接する領域ブロックの状態を判断するために領域ブロッ
クの先頭と末尾に標識を存在させ、領域の大きさを示
し、隣接する領域ブロックの大きさを判断するために前
記標識および前記領域サイズの直後に領域サイズおよび
領域サイズを存在させ、前記領域は、プロセスに対して
提供されるようにしたことを特徴とする請求項1記載の
メモリ管理方法。
2. An area indicating whether the area is in use or unused, a marker is present at the beginning and end of the area block to determine the status of the adjacent area block, and indicates the size of the area. A region size and a region size are present immediately after the indicator and the region size to determine a block size, and the region is provided to a process. Memory management method.
JP17150491A 1991-07-12 1991-07-12 Memory managing method Pending JPH0520168A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17150491A JPH0520168A (en) 1991-07-12 1991-07-12 Memory managing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17150491A JPH0520168A (en) 1991-07-12 1991-07-12 Memory managing method

Publications (1)

Publication Number Publication Date
JPH0520168A true JPH0520168A (en) 1993-01-29

Family

ID=15924336

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17150491A Pending JPH0520168A (en) 1991-07-12 1991-07-12 Memory managing method

Country Status (1)

Country Link
JP (1) JPH0520168A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09305418A (en) * 1996-05-15 1997-11-28 Nec Corp Shared memory managing system
JP2009181466A (en) * 2008-01-31 2009-08-13 Canon Inc Semiconductor exposure apparatus, control method, and computer program
JP2014206871A (en) * 2013-04-12 2014-10-30 富士通株式会社 Control method, control device, control program and recording medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09305418A (en) * 1996-05-15 1997-11-28 Nec Corp Shared memory managing system
JP2009181466A (en) * 2008-01-31 2009-08-13 Canon Inc Semiconductor exposure apparatus, control method, and computer program
JP2014206871A (en) * 2013-04-12 2014-10-30 富士通株式会社 Control method, control device, control program and recording medium

Similar Documents

Publication Publication Date Title
TWI267782B (en) Deallocation of computer data in a multithreaded computer
CN110228453B (en) Parking control method and device for vehicle and vehicle
CA2165493A1 (en) Method and apparatus for crash safe enforcement of mutually exclusive access to shared resources in a multitasking computer system
CN110569185A (en) front-end point burying method and device
US20170353554A1 (en) Message transmitting method and device for a robot operating system
CN106598746B (en) Method and device for realizing global lock in distributed system
CN109951608A (en) For protecting method of calling, the device and system of privacy of user
CN106484580A (en) A kind of internal-memory detection method, apparatus and system
CN105677485B (en) The memory dynamic adjusting method of cloud desktop host and virtual machine
CN104903853A (en) Dynamic firmware updating
JPH0520168A (en) Memory managing method
CN110852571A (en) House resource management method for franchisee, computer-readable storage medium, and server
JPH11203193A (en) Shared memory management device and method
CN110532148B (en) Monitoring method and device of micro-service system
JPH0764852A (en) Assurance system for dynamically reserved area
US6324550B1 (en) Data object identification and removal system
JP2573875B2 (en) Program control method
JPH02277128A (en) Checking system for program run condition
WO2014026611A1 (en) Rollback method and apparatus of transaction, relational database management system
CN113823115B (en) Parking space occupation alarming method, management equipment and system
FI952586A (en) Procedure in connection with formation of telephone connection and telephone exchange system
CN107862480B (en) Service management method, release management device, medium, and electronic device
JPH05233497A (en) Buffer chain destruction detection device
CN118430269A (en) Traffic management method, device, electronic equipment and storage medium
JP3616545B2 (en) Device management method and recording medium recording program