JPH02108148A - Portable shared memory control system - Google Patents

Portable shared memory control system

Info

Publication number
JPH02108148A
JPH02108148A JP26084988A JP26084988A JPH02108148A JP H02108148 A JPH02108148 A JP H02108148A JP 26084988 A JP26084988 A JP 26084988A JP 26084988 A JP26084988 A JP 26084988A JP H02108148 A JPH02108148 A JP H02108148A
Authority
JP
Japan
Prior art keywords
memory
task
shared memory
computer system
shared
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
JP26084988A
Other languages
Japanese (ja)
Inventor
Takatomo Nishiyama
西山 尚智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP26084988A priority Critical patent/JPH02108148A/en
Publication of JPH02108148A publication Critical patent/JPH02108148A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To utilize the same control system by making a computer system, shared memory pool, or task different and a memory control table and a task interface equal. CONSTITUTION:The memory control table 2 depends upon neither the computer system nor shared memory pool and contains the assignment state of the shared memory and assignment memory size. Further, a memory control means 1 has the task interface which depends upon neither the computer system nor task and operates the memory control table 2 at a request from the task to control the assignment state of the memory in the shared memory table, thereby inspecting the propriety of the reading, writing, and releasing of data on the memory. Consequently, the same control system can be utilized and high- reliability memory control is performed.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、可搬性共有メモリ管理方式に関し、特に共有
メモリプール上のメモリを排他的かつ一時的に使用する
タスクが複数個同時に動作する計算機システムにおける
、可搬性共有メモリ管理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a portable shared memory management method, particularly for computers in which multiple tasks that use memory on a shared memory pool exclusively and temporarily run simultaneously. This invention relates to a portable shared memory management method in a system.

(従来の技ftj) 従来の共有メモリ管理方式は、計算機システムおよび共
有メモリプールに依存したメモリ管理テーブルをもち、
または計3!機システムおよびタスクに依存した対タス
クインターフェースをもっていた。
(Conventional technique ftj) Conventional shared memory management methods have memory management tables that depend on the computer system and the shared memory pool,
Or 3 in total! It had a task-to-task interface that depended on the machine system and task.

(発明が解決しようとする課題) 従来の共有メモリ管理方式では、計算機システム、共有
メモリプールまたはタスクが異なるとメモリ管理テーブ
ルまたは対タスクインターフェースが異なり、機能的に
は酷似している互換性のない共有メモリ管理方式をそれ
ぞれ独自にもち、保守しなければならないという問題点
があった。
(Problem to be Solved by the Invention) In the conventional shared memory management method, different computer systems, shared memory pools, or tasks have different memory management tables or task interfaces, and incompatible There was a problem in that each shared memory management method had to be maintained and maintained independently.

(諜頭を解決するための手段) 本発明による可搬性共有メモリ管理方式は、共有メモリ
プール上のメモリを排他的かつ一時的に使用するタスク
が複数個同時に動作する計算機システムの可搬性共有メ
モリ管理方式において、計算機システムおよび共有メモ
リプールに依存せず、前記共有メモリの割り当て状態お
よび割り当てメモリサイズを記憶するメモリ管理テーブ
ルと、前記計算機システムおよびタスクに依存しない対
タスクインターフェースを有し、前記タスクからの要求
に従い前記メモリ管理テーブルを操作し、前記共有メモ
リプール上のメモリの割り当て状態を管理し、前記メモ
リへのデータの読み込み、書き込みおよび解放の正当性
を検査するメモリ管理手段を備える。
(Means for Solving the Problem) The portable shared memory management method according to the present invention is a portable shared memory management method for a computer system in which a plurality of tasks that use memory on a shared memory pool exclusively and temporarily operate simultaneously. The management method includes a memory management table that does not depend on a computer system and a shared memory pool and stores the allocation state and allocated memory size of the shared memory, and a task-to-task interface that does not depend on the computer system and the task; The memory management means operates the memory management table according to a request from the shared memory pool, manages the allocation state of memory on the shared memory pool, and checks the validity of reading, writing, and releasing data to the memory.

(実施例) 本発明について図面に基づき説明する。(Example) The present invention will be explained based on the drawings.

第1図を参照すると、本発明の一実論例は、メモリ管理
手段1とメモリ管理テーブル2から構成されている。
Referring to FIG. 1, one practical example of the present invention is comprised of a memory management means 1 and a memory management table 2.

第2図には、メモリ管理テーブル1の一例が示されてお
り、この例はエントリ数セル21とメモリ状態テーブル
22から構成されている。メモリ状態テーブル22の各
エントリはメモリid項目221と、タスクid項目2
22と、メモリサイズ項目223とから構成されるn個
のエントリから成っている。値nはメモリ割り当て」二
限値である。メモリ状態テーブル22は、常に先頭のエ
ントリから連続して使用され、使用中の最終エントリの
番号はエントリ数セル21で表される。メモリ状態テー
ブル22の初期状態はエントリが全く使用されていない
状態であり、エントリ数セル21の初期値は0である。
FIG. 2 shows an example of the memory management table 1, which is composed of an entry number cell 21 and a memory state table 22. Each entry in the memory status table 22 has a memory ID item 221 and a task ID item 2.
22 and a memory size item 223. The value n is the ``memory allocation'' two-limit value. The memory state table 22 is always used continuously starting from the first entry, and the number of the last entry in use is represented by the entry number cell 21. The initial state of the memory state table 22 is such that no entries are used, and the initial value of the entry number cell 21 is 0.

第3図には、メモリ割り当て登録インターフェースと、
メモリ解放検査インターフェースと、メモリアクセス検
査インターフェースについての対タスクインターフェー
スの例が示されている。次にこれらメモリ割り当て登録
、メモリ解放検査およびメモリアクセス検査について第
4図、第5図および第6図を参照しながら詳細に説明す
る。
FIG. 3 shows a memory allocation registration interface,
Examples of task-to-task interfaces are shown for memory release checking interfaces and memory access checking interfaces. Next, the memory allocation registration, memory release check, and memory access check will be explained in detail with reference to FIGS. 4, 5, and 6.

第4図は、タスクからメモリidとメモリサイズを指定
されてメモリ割り当て登録を要求された場合のメモリ管
理手段Iの処理の流れを説明するフローチャートである
FIG. 4 is a flowchart illustrating the processing flow of the memory management means I when a task specifies a memory ID and memory size and requests memory allocation registration.

メモリ管理手段1は、要求タスクのタスクidを取得し
くステップ41)、メモリ状態テーブル22の最終エン
トリの直後のエントリに指定されたメモリidとメモリ
サイズとともにそれぞれの項目に記憶した(ステップ4
2)後、エントリ数セル21の値を1だけ増して(ステ
ップ43)、処理を終わる。
The memory management means 1 acquires the task ID of the requesting task (Step 41), and stores it in each item along with the memory ID and memory size specified in the entry immediately after the last entry in the memory status table 22 (Step 4).
2) After that, the value of the entry number cell 21 is increased by 1 (step 43), and the process ends.

第5図は、タスクからメモリ1dを指定されてメモリ解
放検査を要求された場合のメモリ管理手段1の処理を説
明するフローチャートである。
FIG. 5 is a flowchart illustrating the processing of the memory management means 1 when the memory 1d is designated by a task and a memory release check is requested.

メモリ管理手段1は、メモリ状態テーブル22で指定メ
モリidと同一のメモリidをもつ最初のエントリを捜
しくステップ51)、そのエントリのタスクidと要求
タスクのタスクidが同一であることを確認する(ステ
ップ52.53)。
The memory management means 1 searches the memory status table 22 for the first entry with the same memory ID as the specified memory ID (step 51), and confirms that the task ID of that entry is the same as the task ID of the requesting task. (Steps 52.53).

その後、そのエントリの直後から最終のエントリまでの
各エントリの各項目の値を順に1エントリ前に移動さぜ
(ステップ54)、エントリ数セル21の値を1減じて
(ステップ55、)、正常終了する。指定メモリidと
同一のメモリidをもつエントリがあるか、あってもそ
のエントリのタスクidと要求タスクのタスクidが同
一でなければそれを検出した時点で異常終了する。
After that, the value of each item of each entry from immediately after that entry to the last entry is sequentially moved one entry earlier (step 54), and the value of the number of entries cell 21 is subtracted by 1 (step 55), so that it is normal. finish. If there is an entry with the same memory ID as the specified memory ID, or even if there is, the task ID of the entry and the task ID of the requesting task are not the same, the process terminates abnormally when it is detected.

第6図は、タスクからメモリidとアクセス(課題を解
決するためのしアドレスとアクセスサイズを指定されて
メモリアクセス検査を要求された場合のメモリ管理手段
1の処理を説明するフローチャートである。
FIG. 6 is a flowchart illustrating the processing of the memory management means 1 when a task specifies a memory ID, an access address (to solve a problem, and an access size) and requests a memory access check.

メモリ管理手段1は、メモリ状態テーブル22で指定メ
モリidと同一のメモリidをもつ最初のエントリを捜
しくステップ61)、そのエントリのタスクidと要求
タスクのタスクidが同一であることを確認しくステッ
プ62.63>、アクセス開始アドレスとアクセスサイ
ズがソノエントリのメモリサイズを超えていないことを
確認する(ステップ64.65)、確認できたら正常終
了する。指定メモリidと同一のメモリidをもつエン
トリがないか、あってもそのエントリのタスク1dと要
求タスクのタスクidが同一でないか、アクセス開始ア
ドレスとアクセスサイズがそのエントリのメモリサイズ
を超えた場合には異常終了する。
The memory management means 1 searches the memory status table 22 for the first entry with the same memory ID as the specified memory ID (step 61), and confirms that the task ID of that entry is the same as the task ID of the requesting task. Steps 62 and 63>. Confirm that the access start address and access size do not exceed the memory size of the sono entry (step 64 and 65). If confirmed, the process ends normally. If there is no entry with the same memory ID as the specified memory ID, or even if there is, the task 1d of the entry and the task ID of the requesting task are not the same, or the access start address and access size exceed the memory size of the entry. will terminate abnormally.

(発明の効果) 以上述べたように本発明の可搬性共有メモリ管理方式は
、計算機システム、共有メモリプールまたはタスクが異
なってもメモリ管理テーブルと対タスクインターフェー
スが同一なため同一の管理方式が利用でき、信頼性の高
いメモリ管理が容易に実現できる。
(Effects of the Invention) As described above, the portable shared memory management method of the present invention allows the same management method to be used even if the computer system, shared memory pool, or task is different because the memory management table and task interface are the same. This makes it easy to achieve highly reliable memory management.

めのフローチャート、第5図はメモリ解放検査を詳細に
説明するためのフローチャート、第6図はメモリアクセ
ス検査を詳細に説明するためのフローチャートである。
FIG. 5 is a flowchart for explaining the memory release test in detail, and FIG. 6 is a flowchart for explaining the memory access test in detail.

1・・・メモリ管理手段、2・・・メモリ管理デープル
、21・・・エントり数セル、22・・・メモリ状態テ
ーブル、221・・・メモリid項目、222・・・タ
スクid項目、223・・・メモリサイズ項目。
DESCRIPTION OF SYMBOLS 1...Memory management means, 2...Memory management table, 21...Entry number cell, 22...Memory status table, 221...Memory ID item, 222...Task ID item, 223 ...Memory size item.

Claims (1)

【特許請求の範囲】[Claims] 共有メモリプール上のメモリを排他的かつ一時的に使用
するタスクが複数個同時に動作する計算機システムの可
搬性共有メモリ管理方式において、計算機システムおよ
び共有メモリプールに依存せず、前記共有メモリの割り
当て状態および割り当てメモリサイズを記憶するメモリ
管理テーブルと、前記計算機システムおよびタスクに依
存しない対タスクインターフェースを有し、前記タスク
からの要求に従い前記メモリ管理テーブルを操作し、前
記共有メモリプール上のメモリの割り当て状態を管理し
、前記メモリへのデータの読み込み、書き込みおよび解
放の正当性を検査するメモリ管理手段を備えて成ること
を特徴とする可搬性共有メモリ管理方式。
In a portable shared memory management method for a computer system in which multiple tasks that use memory on a shared memory pool exclusively and temporarily operate simultaneously, the allocation state of the shared memory is determined independently of the computer system and the shared memory pool. and a memory management table that stores an allocated memory size, and a task interface independent of the computer system and the task, which operates the memory management table according to requests from the task, and allocates memory on the shared memory pool. A portable shared memory management system, comprising a memory management means for managing the state and checking the validity of reading, writing, and releasing data into the memory.
JP26084988A 1988-10-17 1988-10-17 Portable shared memory control system Pending JPH02108148A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26084988A JPH02108148A (en) 1988-10-17 1988-10-17 Portable shared memory control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26084988A JPH02108148A (en) 1988-10-17 1988-10-17 Portable shared memory control system

Publications (1)

Publication Number Publication Date
JPH02108148A true JPH02108148A (en) 1990-04-20

Family

ID=17353606

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26084988A Pending JPH02108148A (en) 1988-10-17 1988-10-17 Portable shared memory control system

Country Status (1)

Country Link
JP (1) JPH02108148A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1048299C (en) * 1993-03-23 2000-01-12 村田机械株式会社 Braiding machine
US6718450B2 (en) 2000-11-15 2004-04-06 Nec Corporation Memory management system, computer program thereof and memory management method for system protection

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1048299C (en) * 1993-03-23 2000-01-12 村田机械株式会社 Braiding machine
US6718450B2 (en) 2000-11-15 2004-04-06 Nec Corporation Memory management system, computer program thereof and memory management method for system protection

Similar Documents

Publication Publication Date Title
US6105085A (en) Lock mechanism for shared resources having associated data structure stored in common memory include a lock portion and a reserve portion
US20050033936A1 (en) Method for allocating storage area
JPH06214915A (en) Decentralized data processing system
US5551023A (en) System of database concurrency control based on transaction types and prior access to a data set
JPH0250753A (en) Interrupt processing apparatus and method for computer
JPH02108148A (en) Portable shared memory control system
JPH04314147A (en) Memory managing system
JPH08129492A (en) Resource exclusion checking system and resource exclusion checking method
JPH09223032A (en) Resources lock control mechanism
JPH01222346A (en) Control system for shared memory
JPH05165702A (en) File management method
JPH03194641A (en) Application program sharing system
JPH0354371B2 (en)
JPH07160645A (en) Common resource exclusive control method in multiprocessor system
JPS61134844A (en) Share space control system for storage device
JPS6265137A (en) Control system for priority of user task
JPS6349817B2 (en)
JPS63265336A (en) Control system for preference allocation of shared resources
JPS6327936A (en) File management method
JP2968756B2 (en) Internal resource matching method and apparatus in multiprocessor system
JPH03222047A (en) Area control system
JP2740467B2 (en) Exclusive control method for multiple databases
JPH02114343A (en) Common memory control system
JPH01175022A (en) Common disk control device
JPS61226842A (en) Resources control system for electronic computer system