JPH04191934A - Method and device for managing functional program - Google Patents

Method and device for managing functional program

Info

Publication number
JPH04191934A
JPH04191934A JP32488690A JP32488690A JPH04191934A JP H04191934 A JPH04191934 A JP H04191934A JP 32488690 A JP32488690 A JP 32488690A JP 32488690 A JP32488690 A JP 32488690A JP H04191934 A JPH04191934 A JP H04191934A
Authority
JP
Japan
Prior art keywords
function
program
called
frequency
resident
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
JP32488690A
Other languages
Japanese (ja)
Inventor
Noriko Nakamura
中村 範子
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.)
Hitachi Ltd
Hitachi Keiyo Engineering Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Keiyo Engineering Co 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 Hitachi Ltd, Hitachi Keiyo Engineering Co Ltd filed Critical Hitachi Ltd
Priority to JP32488690A priority Critical patent/JPH04191934A/en
Publication of JPH04191934A publication Critical patent/JPH04191934A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten processing time by omitting the load of a program unit from an external storage device when the function of a program resident in a resident area is selected. CONSTITUTION:A resident area 3004 to store the program unit of two functions at least in a main storage device 101 is secured, the program unit is loaded to the area of the main storage device 101 from an external storage device 102 every time when the respective functions are called and updates information related to the using frequency of the function every time when the respective functions are called. Then, the program unit with the high using frequency is made resident in the resident area 3004 based on the information related to the using frequency of the respective functions and the load of the program unit from the external storage device 102 is omitted when the function of the program resident in the resident area 3004 is selected. Thus, the number of times of disk access for function using is reduced and processing time is shortened by making the function with the high using frequency resident on the main storage device 101.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、コンピュータ上で動作する複数の機能を持ち
、かつ、機能ごとに用意された複数のプログラム単位の
うち必要となるプログラム単位を順次主記憶装置ヘロー
ドして用いる機能別プログラム管理方法および装置に関
する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention has a plurality of functions that operate on a computer, and sequentially selects necessary program units from among a plurality of program units prepared for each function. The present invention relates to a method and apparatus for managing programs by function that are loaded into a main storage device.

[従来の技術] 従来の機能別プログラム管理方法について、第2図、第
3図および第4図を用いて説明する。
[Prior Art] A conventional functional program management method will be described with reference to FIGS. 2, 3, and 4.

まず、第3図に主記憶装置(メモリ)および外部記憶装
置(フロッピーディスク装@)のメモリマツプを示す。
First, FIG. 3 shows a memory map of the main storage device (memory) and the external storage device (floppy disk drive).

メモリは、システムプログラム等が格納されるシステム
領域3001、アプリケーションソフトウェアのプログ
ラム本体が格納されるコート部30o2、アプリケーシ
ョンソフトウェアのデータが格納されるデータ部300
3、アプリケーションソフトウェアのプログラムの各機
能プログラム単位が選択的に格納されるロードエリア3
004、ユーザの作成した文書等が格納されるユーザ領
域3005を有する。フロッピーディスクは、記憶領域
(オーバレイ部分)3006〜3o12にそれぞれ機能
1〜機能7のプログラム単位を格納している。なお、各
プログラム単位は、プログラムの実行単位であり、その
容量は一定ではない。
The memory includes a system area 3001 in which system programs and the like are stored, a coat part 30o2 in which the main body of the application software program is stored, and a data part 300 in which the data of the application software is stored.
3. Load area 3 where each functional program unit of the application software program is selectively stored.
004, and a user area 3005 in which documents and the like created by the user are stored. The floppy disk stores program units of functions 1 to 7 in storage areas (overlay areas) 3006 to 3o12, respectively. Note that each program unit is a program execution unit, and its capacity is not constant.

第4図に示すように、実行中のアプリケーションソフト
ウェアの特定機能が必要になる度に、当該機能のプログ
ラム単位がフロッピーディスクからロードエリア300
4に読み込まれる。
As shown in FIG. 4, each time a specific function of the application software being executed is required, the program unit of the function is transferred from the floppy disk to the load area 300.
Loaded into 4.

そのための具体的な処理のフローを第2図に示す。A specific processing flow for this purpose is shown in FIG.

アプリケーションソフトウェアの起動の後(201)、
アプリケーションソフトウェアの終了時には(202)
、終了処理を行う(207)。
After starting the application software (201),
When the application software ends (202)
, performs termination processing (207).

アプリケーションソフトウェア上で機能の選択を行うと
(203)、その機能がフロッピーディスク装置内のオ
ーバーレイ部分3006〜3012に格納されているの
か、又は内部の主記憶装置、この場合はメモリ上のコー
ド部3002にロードされているのかについて調べ(2
04)、もしフロッピーディスク上にある場合は、ディ
スク上から該当する機能のファイルを探し出してメモリ
のロードエリア3004に読み込み(205)、当該機
能を実行する(206)。メモリのコード部3002に
ある機能であった場合はそのまま当該機能を実行する(
206)。
When a function is selected on the application software (203), the function is stored in the overlay portions 3006 to 3012 in the floppy disk drive, or in the code portion 3002 on the internal main storage, in this case memory. Check whether it is loaded in (2)
04) If the file is on a floppy disk, the file for the corresponding function is searched from the disk, read into the memory load area 3004 (205), and the function is executed (206). If the function is in the code section 3002 of the memory, execute the function as is (
206).

[発明が解決しようとする課題] 上記従来の技術では、プログラムサイズを太きくしたり
、機能を増やしたりすることは容易にできるが、アプリ
ケーション上で選択された機能がフロッピーディスク内
のオーバーレイ部分に格納されている機能であった場合
、その機能が選択される度にフロッピーディスクからロ
ードエリアへ読み込まなければならなかった。すなわち
、機能が選択される度に、比較的長時間を要する外部記
憶装置アクセスを頻繁に行わなければならないため、機
能が選択されてから実行されるまでに時間を要し、処理
に支障が生した。
[Problem to be solved by the invention] With the above conventional technology, it is easy to increase the program size and increase the number of functions, but the functions selected on the application are stored in the overlay part of the floppy disk. If the function was selected, it would have to be loaded from the floppy disk into the load area each time the function was selected. In other words, each time a function is selected, access to the external storage device, which takes a relatively long time, must be performed frequently, so it takes time from the time the function is selected until it is executed, which hinders processing. did.

また、プログラムの大型化1機能充実に伴い、プログラ
ム中でどの部分にオーバーレイさせると効率よく使用で
きるかという点について自動的に設定させるよう考慮さ
れているような技術はなかった。
Furthermore, as programs become larger and more functional, there has been no technology that takes into consideration automatic setting of which part of a program should be overlaid for efficient use.

本発明の目的は、機能が選択されてから実行されるまで
の時間を短縮させることができる機能別プログラム管理
方法および装置を提供することにある。
An object of the present invention is to provide a function-based program management method and apparatus that can shorten the time from when a function is selected until it is executed.

[課題を解決するための手段] 上記目的を達成するために、本発明による機能別プログ
ラム管理方法は、コンピュータ上で動作する機能別の複
数のプログラム単位のうち必要なプログラム単位を主記
憶装置にロードして用いる機能別プログラム管理方法で
あって、前記主記憶装置に少なくとも2つの機能のプロ
グラム単位を格納しうる常駐エリアを確保し、各機能が
呼び出される度に、当該プログラム単位を外部記憶装置
から前記主記憶装置のエリアヘロードし、各機能が呼び
出される度に当該機能の使用頻度に関する情報を更新し
、各機能の使用頻度に関する情報に基づいて、使用頻度
の高いプログラム単位を前記常駐エリアに常駐させ、前
記常駐エリアに常駐しているプログラムの機能が選択さ
れたときは、前記外部記憶装置からのプログラム単位の
ロードを省略するようにしたものである。
[Means for Solving the Problems] In order to achieve the above object, the function-specific program management method according to the present invention stores necessary program units among a plurality of function-specific program units running on a computer in the main memory. A function-specific program management method for loading and using, wherein a resident area capable of storing program units of at least two functions is secured in the main memory, and each time each function is called, the program units are transferred to an external storage. Each time each function is called, information regarding the usage frequency of each function is updated, and based on the information regarding the usage frequency of each function, frequently used program units are loaded into the resident area. When a function of a program resident in the resident area is selected, loading of a program unit from the external storage device is omitted.

本発明による機能別プログラム管理方法は、他の見地に
よれば、コンピュータ上で動作する機能別の複数のプロ
グラム単位のうち必要なプログラム単位を主記憶装置に
ロードして用いる機能別プログラム管理方性であって、
前記主記憶装置に少なくとも2つの機能のプログラム単
位を格納しうる常駐エリアを確保し、各機能が呼び出さ
れる度に、当該プログラム単位を外部記憶装置から前記
主記憶装置のエリアヘロードし、各機能が呼び出される
度に当該機能の使用頻度に関する情報を更新し、新たな
機能の呼び出し時に、当該機能のプログラム単位を格納
しうる前記常駐エリアの空きがない場合に、前記機能の
使用頻度に関する情報に基づいて、現在常駐している機
能のプログラム単位のうち、使用頻度の低い機能のプロ
グラム単位の常駐を解除するようにしたものである。
From another point of view, the functional program management method according to the present invention is a functional program management method that uses necessary program units among a plurality of functional program units running on a computer by loading them into the main storage device. And,
A resident area capable of storing program units of at least two functions is secured in the main storage device, and each time each function is called, the program unit is loaded from the external storage device to an area of the main storage device, and each function is loaded into an area of the main storage device. The information regarding the frequency of use of the function is updated each time the function is called, and when a new function is called, if there is no free space in the resident area that can store the program unit of the function, the information regarding the frequency of use of the function is updated. Based on this, among the program units of functions that are currently resident, the program units of functions that are used less frequently are released from residency.

本発明による機能別プログラム管理装置は、演算処理装
置と、該演算処理装置で実行される機能別の複数のプロ
グラム単位を格納する外部記憶装置と、前記複数のプロ
グラム単位の一部を格納する常駐エリアを有する主記憶
装置と、機能ごとの使用頻度に関する情報を登録し、機
能の呼び出しごとに登録内容を更新する機能登録管理手
段とを備え、該機能登録管理手段に登録された機能の使
用頻度に応じて前記常駐エリアに常駐すべき機能のプロ
グラム単位を決定するようにしたものである。
A functional program management device according to the present invention includes an arithmetic processing device, an external storage device that stores a plurality of functional program units executed by the arithmetic processing device, and a resident storage device that stores a part of the plurality of program units. A main storage device having a storage area, and a function registration management means for registering information regarding the frequency of use of each function and updating the registered contents each time the function is called, and the frequency of use of the functions registered in the function registration management means. The program unit of the function to be resident in the resident area is determined according to the resident area.

前記方法および装置において、前記使用頻度に関する情
報は、当該プログラム単位が呼び出された回数、あるい
はこれに代えてまたは加えて前記プログラム単位が呼び
出された回数に対して、最も近時に呼び出された否かの
情報を加味したものである。
In the method and apparatus, the information regarding the usage frequency includes the number of times the program unit has been called, or instead of or in addition to the number of times the program unit has been called, whether the program unit has been called most recently or not. This information is taken into account.

前記量も近時に呼び出されたか否かの情報の加味した使
用頻度に関する情報は1例えば、予め定めた回数以上呼
び呂された機能につき付与さ九る指標であり、該指標は
当該機能が呼び出される毎に増加し、一定回数以上呼び
出された他の機能が呼び出されるごとに減少するもので
ある。
Information regarding the frequency of use, which takes into account the information as to whether the amount has been called recently or not, is, for example, an index given to a function that has been called a predetermined number of times or more; It increases each time, and decreases each time another function that is called a certain number of times or more is called.

また、前記使用頻度に関する情報は、各機能が呼び出さ
れた順番の通し番号の最新のものをさらに含んでもよい
Further, the information regarding the frequency of use may further include the latest serial number of the order in which each function was called.

前記使用頻度に関する情報は、各機能のプログラムが現
在前記常駐エリアに格納されているか否かを示す属性情
報をさらに含んでもよい。この属性情報は、当該機能の
プログラムが常に前記を駐エリアに格納されているべき
であることを示す常駐ロック情報を含んでもよい。
The information regarding the frequency of use may further include attribute information indicating whether a program for each function is currently stored in the resident area. This attribute information may include resident lock information indicating that the program of the function should always be stored in the resident area.

【作 用] 本発明による機能別プDグラム管理方法では。[For production] In the functional program management method according to the present invention.

機能を使用する度に、機能の使用頻度に関する情報を更
新することによって、使用頻度を正確に把握することが
できる。そこで、使用頻度の高い機能を主記憶装置上に
常駐させるようにすることにより、機能使用のためのデ
ィスクアクセス回数を低減することができ、処理時間短
縮を図ることができる。
By updating information regarding the frequency of use of a function each time the function is used, the frequency of use can be accurately grasped. Therefore, by making frequently used functions resident on the main storage device, the number of disk accesses for using the functions can be reduced, and processing time can be shortened.

常駐を行うための単位が、機能単位となっているため、
仮想記憶方式におけるページ単位、セグメント単位など
とは違って2余分なものを含まず、その機能に関するプ
ログラム単位のみを常駐させるため、メモリ上の常駐エ
リアの節約となる。
Since the unit for resident is a functional unit,
Unlike page units, segment units, etc. in the virtual storage system, it does not include two extra units, and only program units related to the function are resident, so the resident area on the memory is saved.

その他、ユーザによる常駐プログラム単位の選択も自由
にできる。
In addition, the user can freely select resident program units.

[実施例] 以下、本発明の実施例について詳細に説明する。[Example] Examples of the present invention will be described in detail below.

第5図に、本発明が適用されるコンピュータシステムの
構成を示す。このシステムは、主記憶装置101、外部
記憶装置ユ02、演算処理装置103、入力装置104
、および表示袋τ1−05から成る。以下、このコンピ
ュータシステム上で動作するアプリケーションソフトウ
ェアを例にとって説明する。
FIG. 5 shows the configuration of a computer system to which the present invention is applied. This system includes a main storage device 101, an external storage device 02, an arithmetic processing unit 103, and an input device 104.
, and a display bag τ1-05. An example of application software running on this computer system will be explained below.

第1図に、本発明による機能別プログラム管理方法のフ
ローチャートを示す。同図中の斜線部、5010に相当
する部分が従来の第2図のフローに追加された部分であ
る。追加部分以外は第2図のフローと同一であるので、
追加部分を中心に説明する。主記憶装置のメモリマツプ
は第3図に示したものと同様であるが、ロードエリア3
004が本発明の常駐エリアに相当し、その大きさは少
なくとも2つの機能のプログラムが格納されうる大きさ
とする9本実施例では、アプリケーションプログラム使
用中に自動的に常駐させるべきプログラム部分が決定さ
れる。
FIG. 1 shows a flowchart of a functional program management method according to the present invention. The shaded area in the figure, which corresponds to 5010, is the part added to the conventional flow of FIG. 2. The flow is the same as in Figure 2 except for the additional parts, so
The explanation will focus on the additional parts. The memory map of the main memory is similar to that shown in Figure 3, but the load area 3
004 corresponds to the resident area of the present invention, and its size is large enough to store programs for at least two functions.9 In this embodiment, the program portion that should be made resident automatically while the application program is in use is determined. Ru.

第1図のステップ204において、選択された機能がオ
ーバレイ部分に格納されている場合には、その機能が既
にメモリ上に常駐しているか否かを判定する(5005
)。常駐していれば、その機能をディスクからロードす
ることはせず、そのままステップ206の「機能実行J
へ移る。その機能が常駐していない場合には、常駐エリ
アにプログラムを読み込む空きエリアがあるか否かを調
べる(5011)。空きエリアがあれば、その領域に当
該機能をディスク上から読み込む(ロードする)(20
5)。空きエリアがなければ、現在常駐している機能の
中から常駐を解除するものを選択する必要がある。その
ために、後述する機能登録テーブルを参照して(501
,2)、常駐解除とすべき機能を決定する。続いて、こ
の常駐解除となった機能の領域に、ディスクから新たな
機能をロードする(205)。ステップ206の「機能
実行」のあと、機能登録テーブルに当該実行された機能
の登録(更新を含む)を行い(5008)。
In step 204 of FIG. 1, if the selected function is stored in the overlay part, it is determined whether the function is already resident in the memory (5005
). If the function is resident, the function is not loaded from disk and the function is executed in step 206.
Move to. If the function is not resident, it is checked whether there is a free area in the resident area where the program can be read (5011). If there is a free area, read (load) the relevant function from the disk into that area (20
5). If there is no free area, it is necessary to select from among the currently resident functions to cancel the resident function. To do so, refer to the function registration table (501
,2),Determine the function to be de-resident. Next, a new function is loaded from the disk into the area of the function whose resident status has been canceled (205). After "function execution" in step 206, the executed function is registered (including updated) in the function registration table (5008).

ステップ202に戻る。なお、ステップ5008の登録
処理は、この時点に限らず、ステップ206の機能実行
の前に実行してもよい。
Return to step 202. Note that the registration processing in step 5008 is not limited to this point, and may be performed before the function execution in step 206.

第6図に機能登録テーブルの構成例を示す。この機能登
録テーブルは、機能別に次にあげる項目を管理している
。すなわち、機能名称601ごとに、呼出回数602、
調整数603、呼出シーケンシャル604、属性605
を格納している。呼出回数602は、アプリケーション
ソフトが立ち上がってから現在までの当該機能の総呼出
回数を示す。調整数603は、総呼出回数が規定回数を
越えた機能についてのみ有効で、原則として自機能が呼
び出される毎に+1を行い、他機能(呼出現定回数を越
えてなくてもよい)が呼び出されるごとに−1を行う。
FIG. 6 shows an example of the structure of the function registration table. This function registration table manages the following items for each function. That is, for each function name 601, the number of calls 602,
Number of adjustments 603, call sequential 604, attributes 605
is stored. The number of calls 602 indicates the total number of times the function has been called since the application software was started. Adjustment number 603 is valid only for functions whose total number of calls exceeds the specified number of times, and as a general rule, +1 is added each time the own function is called, and when another function (which does not need to exceed the fixed number of calls) is called. Perform -1 each time.

こわにより、機能の近時使用の有無を加味して、常駐さ
せる機能を選択するための調整を行っている。規定回数
はユーザ等によって指定することが可能である。ここで
は、例として3回とする。呼出シーケンシャル604は
、機能が呼び出される毎に5すへての機能に一貫した呼
び呂し1番号を付け、そのうち、その機能の最新の番号
を格納するものである。属性606は、機能の属性であ
り、現在メモリ上に呼び呂さ才している機能には1“が
付与され、フロッピーディスク上に格納されているもの
にはパ○″が付与されている。なお、rFunc、4j
について図示した属性の値II  I ++については
後述する。機能登録テーブルは、メモリ上に構成するこ
とができる。アプリケーションソフトウェアの終了時に
このテーブルを外部記憶装置に保存しておけば、次回に
その内容を利用することも可能である。
Due to the stiffness, we are making adjustments to select the functions that will be permanently resident, taking into account whether or not the functions have been used recently. The prescribed number of times can be specified by the user or the like. Here, it is assumed to be three times as an example. The call sequential 604 assigns a consistent call number 1 to all five functions each time the function is called, and stores the latest number for that function. The attribute 606 is the attribute of the function, and 1" is assigned to a function that is currently being stored in memory, and 1" is assigned to a function that is stored on a floppy disk. In addition, rFunc, 4j
The value of the attribute II I ++ shown in the diagram will be described later. The function registration table can be configured on memory. If this table is saved in an external storage device when the application software is terminated, its contents can be used next time.

次に、機能登録テーブルの作成方性について第7図〜第
10図を用いて説明する。
Next, how to create a function registration table will be explained using FIGS. 7 to 10.

このテーブルは、機能を使用することで始めて登録が行
われる。まず、アプリケーションソフトウェア使用中に
、ユーザによって機能が選択さ才。
This table is registered only when the function is used. First, functions are selected by the user while using the application software.

ると、その機能の機能名601(又は、機能番号)が登
録される。当該機能の呼出回数602は、第7図に示す
ように無条件で+1される。調整数603は、第8図の
手順によって決定され、格納される。すなわち、今回呼
び出された機能の呼出回数602が規定回数(この例で
は、3回)以上か否かを調べる(801)。3回以上で
あれば、当該機能の調整数603を+1する(802)
Then, the function name 601 (or function number) of that function is registered. The number of times the function is called 602 is unconditionally incremented by 1 as shown in FIG. The adjustment number 603 is determined and stored according to the procedure shown in FIG. That is, it is checked whether the number of calls 602 of the currently called function is equal to or greater than a predetermined number (three times in this example) (801). If it is 3 or more times, add 1 to the number of adjustments 603 for the function (802)
.

3回未満であれば、ステップ802を省略してステップ
803へ移行する。ステップ803では、今回呼び出さ
れた機能以外の機能の中で、調整数603に数値(1以
上)が格納されているものを捜しく803)、存在すれ
ばそれらの機能の調整数から−1を行う。この調整数6
03は、メモリ上の常駐エリアが全部使用中の時に、別
の新しい機能が選択された場合、どの機能の上に新しい
機能をロードするかを判定する指標として用いる。
If it is less than three times, step 802 is omitted and the process moves to step 803. In step 803, searches for functions other than the function called this time that have a numerical value (1 or more) stored in the adjustment number 603 (803), and if they exist, -1 is subtracted from the adjustment number of those functions. conduct. This number of adjustments is 6
03 is used as an index to determine on which function the new function should be loaded when another new function is selected while all the resident areas on the memory are in use.

呼出シーケンシャル604については、第9図に示すよ
うに、機能が選択される度に、それまでで一番新しいシ
ーケンシャル番号に無条件に+1した番号が当該機能に
ついて格納される(901.)。
As for the call sequential number 604, as shown in FIG. 9, each time a function is selected, the newest sequential number up to that point is unconditionally incremented by one (901).

最後に属性605については、現在、メモリ上にロード
されている機能の属性には1′″が格納され、フロッピ
ーディスク上にのみ存在する機能の属性には0′″が格
納されるようになっている。
Finally, regarding the attribute 605, 1''' is currently stored in the attribute of the function loaded in memory, and 0'' is stored in the attribute of the function that exists only on the floppy disk. ing.

すなわち、第10図に示すように、機能が呼び出された
とき、その機能の属性605を111 ++とじ(10
01)、フロッピーディスクからロードしたか否かを調
へる(1.002)。フロッピーディスクからではない
場合にはこの処理を終了し、フロッピーディスクからの
場合には、メモリ上から削除した(すなわち常駐を解除
した)機能があるか否かを調へる(1003)。なけれ
ば処理を終了し、あれば、その削除した機能の属性を′
″o″に戻して(1004)、処理を終了する。
That is, as shown in FIG. 10, when a function is called, the attribute 605 of the function is
01), checks whether it has been loaded from a floppy disk (1.002). If it is not from the floppy disk, this process is terminated, and if it is from the floppy disk, it is checked whether there is a function that has been deleted from the memory (that is, the resident status has been canceled) (1003). If not, terminate the process, and if there is, change the attributes of the deleted function.
The value is returned to "o" (1004), and the process ends.

以上のようにして、機能登録テーブルが作成・更新され
ていく。
In the manner described above, the function registration table is created and updated.

次に、第1図のステップ5005て、メモリ上に常駐し
ていないことが判明したあとの、ステップ5011.5
012の詳細フローについて、第11図のフローチャー
トを参照して詳細に説明する。
Next, step 5011.5 after it is determined that the memory is not resident in memory in step 5005 of FIG.
The detailed flow of step 012 will be explained in detail with reference to the flowchart of FIG.

まず、メモリ上の常駐エリア内の未使用のロードエリア
(空きエリア)と、ロード予定の機能の大きさ(容量)
とを比較する(1107)。空きエリアが当該機能の大
きさを内包できるならば(1108)、優先的にその空
き領域へロードを行う。もし、ロードするエリアが不足
する場合には1機能登録テーブルを参照して、属性がi
t l y+(メモリ上に常駐中)の機能であって、調
整数が最小のものの中から呼出回数の最小のものを探す
(1102)。2つ以上ある場合は(1103)、呼出
シーケンシャルの古いものを探し出しく11.04.)
、それをメモリ上から削除し、空いたエリアを順次詰め
て(1109)、新たな空きエリアにロード位置をセッ
トしく205a)、ロードを行う(205b)。この最
後のステップ205aおよび205bは第1図の′ステ
ップ205に相当する。ステップ1109の実行によっ
ても、なお、空きエリアが不足する場合には、上記ステ
ップをくり返し、読み込み可能なメモリエリアを確保し
て、ロードを行う。
First, the unused load area (free area) in the resident area of memory and the size (capacity) of the function to be loaded.
(1107). If the free area can accommodate the size of the function in question (1108), the free area is loaded preferentially. If there is not enough area to load, refer to the 1 function registration table and check if the attribute is i.
Among the functions of t ly+ (residing in memory) with the smallest number of adjustments, the one with the smallest number of calls is searched (1102). If there are two or more (1103), find the oldest one in the calling sequence 11.04. )
, delete it from the memory, fill in the empty areas one by one (1109), set the load position in the new empty area (205a), and perform loading (205b). This last step 205a and 205b corresponds to step 205 in FIG. Even after executing step 1109, if there is still insufficient free space, the above steps are repeated to secure a readable memory area and perform loading.

以上の処理を、アプリケーションプログラムで機能が選
択される毎に行うことにより、ディスクアクセスに要し
だ時開の短縮をはかる二とができる。
By performing the above processing every time a function is selected by the application program, the time required for disk access can be shortened.

次に、第2の実施例として、第12図を参照してユーザ
指定による常駐機能の設定について述べる。
Next, as a second embodiment, setting of a resident function by user specification will be described with reference to FIG.

ユーザによって、例えば、常駐登録用のキーが入力され
ると(1201)、 機能登録テーブル中の属性605
1C” −1”が格納され(1202)、その機能がメ
モリ上ヘロードされる(1203)。
For example, when the user inputs a key for resident registration (1201), the attribute 605 in the function registration table
1C"-1" is stored (1202), and its function is loaded onto memory (1203).

これによって、当該機能の常駐ロックが行われる。This causes the function to be permanently locked.

すなわち、常駐ロックされた機能については、前述した
第11図の処理において、空きエリアが不足する場合の
削除の対象としては選択されないことが保証される。こ
の常駐ロックはユーザによる常駐解除が指定されない限
り、解除されることはない。常駐解除の処理は、特に図
示しないが、第12図と同様のフローにより行える。
That is, it is guaranteed that the resident-locked function will not be selected for deletion in the process shown in FIG. 11 described above when there is insufficient free space. This resident lock will not be released unless the user specifies that the resident lock be released. Although not particularly illustrated, the process of canceling resident status can be performed using a flow similar to that shown in FIG. 12.

以十の実施例では、アプリケーションソフトウェアに適
用した例を示したが、第3の実施例として、アプリケー
ション上ではなく、例えば、オペレーティング・システ
ムに本発明の方法を組み込むことにより、オペレーティ
ング・システムのコマンドを実行する度に同様に自動的
に機能登録テーブルを作成し、使用頻度の高いコマンド
のプログラムを常駐させるようにすることができる。こ
れによって、オペレーティング・システムの処理につい
てもディスクアクセスの時間短縮による高速処理を行う
ことが可能になる。
In the tenth embodiments, examples have been shown in which the method of the present invention is applied to application software, but as a third embodiment, the method of the present invention is incorporated into the operating system, not on the application, so that the commands of the operating system can be applied. It is also possible to automatically create a function registration table each time you run the command, and to have frequently used command programs resident therein. This makes it possible to perform high-speed processing by reducing the disk access time in the operating system.

[発明の効果] 本発明によれば、機能の呼出の度毎に行っていた外部記
憶装置へのアクセス回数が低減さハるので、大幅な処理
の時間短縮が行える。また、キー操作の誤りで別の機能
を選んでしまった場合の回復時間も大幅に短縮できるよ
うになる。
[Effects of the Invention] According to the present invention, the number of times the external storage device is accessed each time a function is called is reduced, so that processing time can be significantly shortened. It will also greatly reduce the recovery time if a different function is selected due to a wrong key operation.

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

第1図は本発明の機能別プログラム管理方法の処理のフ
ローチャート、第2図は従来の機能別プログラム管理方
法の処理のフローチャート、第3図は従来技術および本
発明における主記憶装置および外部記憶装置のメモリマ
ツプ、第4図は従来の処理の説明図、第5図は本発明が
適用されるコンピュータシステムのブロック図、第6図
は本発明で用いる機能登録テーブルの説明図、第7図〜
第]O図は第6図の機能登録管理テーブルの各項目の登
録方イ去を示すフローチャート、第11図は第1図の主
要部の詳細な処理のフローチャート、第12図は本発明
の他の実施例の説明に供するフローチャートである。 101・・・主記憶装置、102・・外部記憶装置、1
03 ・演算処理装置、104・入力装置、105・・
表示装置、3001・・システム領域。 3002  ・コート部、3o○3・データ部、300
4・ロードエリア(常駐エリア)、3005・・・ユー
ザ部、3006〜30]2・・・各機能のプログラム。 出願人 株式会社 日 立 製 作 所代理人 弁理士
 富 1)和 子 第2図 第3v!J 第4図 第5図 第6図 機能登録テーブル 第7図 第8図 第9図 第10図 σ甲D  1.001 0文D 第11図 第12図
FIG. 1 is a flowchart of the process of the functional program management method of the present invention, FIG. 2 is a flowchart of the process of the conventional functional program management method, and FIG. 3 is the main storage device and external storage device in the prior art and the present invention. 4 is an explanatory diagram of conventional processing, FIG. 5 is a block diagram of a computer system to which the present invention is applied, FIG. 6 is an explanatory diagram of a function registration table used in the present invention, and FIGS.
Figure] O is a flowchart showing how to register each item in the function registration management table of Figure 6, Figure 11 is a flowchart of detailed processing of the main part of Figure 1, and Figure 12 is a flowchart showing how to register each item in the function registration management table of Figure 6. 2 is a flowchart for explaining an embodiment of the present invention. 101... Main storage device, 102... External storage device, 1
03 - Arithmetic processing unit, 104 - Input device, 105...
Display device, 3001...system area. 3002・Court Department, 3o○3・Data Department, 300
4. Load area (resident area), 3005... User section, 3006-30] 2... Program for each function. Applicant Hitachi Manufacturing Co., Ltd. Representative Patent Attorney Tomi 1) Kazuko Figure 2, Figure 3v! J Figure 4 Figure 5 Figure 6 Function registration table Figure 7 Figure 8 Figure 9 Figure 10 σK D 1.001 0 sentence D Figure 11 Figure 12

Claims (1)

【特許請求の範囲】 1、コンピュータ上で動作する機能別の複数のプログラ
ム単位のうち必要なプログラム単位を主記憶装置にロー
ドして用いる機能別プログラム管理方法であって、 前記主記憶装置に少なくとも2つの機能のプログラム単
位を格納しうる常駐エリアを確保し、各機能が呼び出さ
れる度に、当該プログラム単位を外部記憶装置から前記
主記憶装置のエリアへロードし、 各機能が呼び出される度に当該機能の使用頻度に関する
情報を更新し、 各機能の使用頻度に関する情報に基づいて、使用頻度の
高いプログラム単位を前記常駐エリアに常駐させ、 前記常駐エリアに常駐しているプログラムの機能が選択
されたときは、前記外部記憶装置からのプログラム単位
のロードを省略することを特徴とする機能別プログラム
管理方法。2、コンピュータ上で動作する機能別の複数
のプログラム単位のうち必要なプログラム単位を主記憶
装置にロードして用いる機能別プログラム管理方法であ
って、 前記主記憶装置に少なくとも2つの機能のプログラム単
位を格納しうる常駐エリアを確保し、各機能が呼び出さ
れる度に、当該プログラム単位を外部記憶装置から前記
主記憶装置のエリアへロードし、 各機能が呼び出される度に当該機能の使用頻度に関する
情報を更新し、 新たな機能の呼び出し時に、当該機能のプログラム単位
を格納しうる前記常駐エリアの空きがない場合に、前記
機能の使用頻度に関する情報に基づいて、現在常駐して
いる機能のプログラム単位のうち、使用頻度の低い機能
のプログラム単位の常駐を解除することを特徴とする機
能別プログラム管理方法。 3、前記使用頻度に関する情報は、当該プログラム単位
が呼び出された回数であることを特徴とする請求項1ま
たは2記載の機能別プログラム管理方法。 4、前記使用頻度に関する情報は、前記プログラム単位
が呼び出された回数に対して、最も近時に呼び出された
否かの情報を加味したものであることを特徴とする請求
項1または2記載の機能別プログラム管理方法。 5、前記最も近時に呼び出されたか否かの情報の加味し
た使用頻度に関する情報は、予め定めた回数以上呼び出
された機能につき付与される指標であり、該指標は当該
機能が呼び出される毎に増加し、一定回数以上呼び出さ
れた他の機能が呼び出されるごとに減少することを特徴
とする請求項4記載の機能別プログラム管理方法。 6、演算処理装置と、 該演算処理装置で実行される機能別の複数のプログラム
単位を格納する外部記憶装置と、前記複数のプログラム
単位の一部を格納する常駐エリアを有する主記憶装置と
、 機能ごとの使用頻度に関する情報を登録し、機能の呼び
出しごとに登録内容を更新する機能登録管理手段とを備
え、 該機能登録管理手段に登録された機能の使用頻度に応じ
て前記常駐エリアに常駐すべき機能のプログラム単位を
決定することを特徴とする機能別プログラム管理装置。 7、前記使用頻度に関する情報は、当該プログラム単位
が呼び出された回数であることを特徴とする請求項6記
載の機能別プログラム管理装置。 8、前記使用頻度に関する情報は、予め定めた回数以上
呼び出された機能につき付与される指標であり、該指標
は当該機能が呼び出される毎に増加し、他の機能が呼び
出されるごとに減少することを特徴とする請求項6また
は7記載の機能別プログラム管理装置。 9、前記使用頻度に関する情報は、各機能が呼び出され
た順番の通し番号の最新のものをさらに含むことを特徴
とする請求項6、7または8記載の機能別プログラム管
理装置。 10、前記使用頻度に関する情報は、各機能のプログラ
ムが現在前記常駐エリアに格納されているか否かを示す
属性情報をさらに含むことを特徴とする請求項7、8ま
たは9記載の機能別プログラム管理装置。 11、前記属性情報は、当該機能のプログラムが常に前
記常駐エリアに格納されているべきであることを示す常
駐ロック情報を含むことを特徴とする請求項10記載の
機能別プログラム管理装置。
[Scope of Claims] 1. A function-based program management method for loading necessary program units among a plurality of function-based program units running on a computer into a main storage device, wherein the main storage device includes at least the following steps: A resident area that can store the program units of the two functions is secured, and each time each function is called, the relevant program unit is loaded from the external storage device to the area of the main storage device. Update information regarding the frequency of use of the functions, make frequently used program units reside in the resident area based on the information regarding the frequency of use of each function, and select the functions of the programs resident in the resident area. In the present invention, there is provided a function-based program management method, characterized in that loading a program unit from the external storage device is omitted. 2. A function-specific program management method that uses necessary program units among a plurality of function-specific program units running on a computer by loading them into a main memory, the program units of at least two functions being loaded into the main memory. Each time each function is called, the program unit is loaded from the external storage device to the area of the main storage device, and each time each function is called, information regarding the usage frequency of the function is loaded. and, when calling a new function, if there is no free space in the resident area that can store the program unit of the function, the program unit of the function that is currently resident is updated based on information regarding the frequency of use of the function. A function-based program management method characterized by canceling the residency of infrequently used functions in program units. 3. The functional program management method according to claim 1 or 2, wherein the information regarding the frequency of use is the number of times the program unit has been called. 4. The function according to claim 1 or 2, wherein the information regarding the frequency of use includes information as to whether or not the program unit has been called most recently, with respect to the number of times the program unit has been called. Alternative program management methods. 5. The information on the frequency of use, which takes into account the information on whether the function was called most recently, is an index given to a function that has been called a predetermined number of times or more, and the index increases each time the function is called. 5. The function-based program management method according to claim 4, wherein the number decreases each time another function that has been called a predetermined number of times or more is called. 6. an arithmetic processing device; an external storage device that stores a plurality of program units for each function to be executed by the arithmetic processing device; and a main storage device that has a resident area that stores a part of the plurality of program units; and a function registration management means for registering information regarding the frequency of use of each function and updating the registered contents each time the function is called, and the function registration management means is provided with a function registration management means for registering information regarding the frequency of use of each function, and a function registered in the function registration management means that resides in the resident area according to the frequency of use of the function. A functional program management device characterized by determining a program unit of a function to be performed. 7. The functional program management device according to claim 6, wherein the information regarding the frequency of use is the number of times the program unit has been called. 8. The information regarding the frequency of use is an index given to a function that has been called a predetermined number of times or more, and the index increases each time the function is called and decreases each time another function is called. The functional program management device according to claim 6 or 7, characterized in that: 9. The functional program management device according to claim 6, 7 or 8, wherein the information regarding the usage frequency further includes the latest serial number of the order in which each function was called. 10. Functional program management according to claim 7, 8 or 9, wherein the information regarding the usage frequency further includes attribute information indicating whether or not the program of each function is currently stored in the resident area. Device. 11. The functional program management device according to claim 10, wherein the attribute information includes resident lock information indicating that the program of the function should always be stored in the resident area.
JP32488690A 1990-11-26 1990-11-26 Method and device for managing functional program Pending JPH04191934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32488690A JPH04191934A (en) 1990-11-26 1990-11-26 Method and device for managing functional program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32488690A JPH04191934A (en) 1990-11-26 1990-11-26 Method and device for managing functional program

Publications (1)

Publication Number Publication Date
JPH04191934A true JPH04191934A (en) 1992-07-10

Family

ID=18170724

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32488690A Pending JPH04191934A (en) 1990-11-26 1990-11-26 Method and device for managing functional program

Country Status (1)

Country Link
JP (1) JPH04191934A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH076043A (en) * 1993-03-05 1995-01-10 Mitsubishi Electric Corp Multithread server
WO2000025261A1 (en) * 1998-10-26 2000-05-04 Hitachi, Ltd. Control program processor for ic card
DE102016004233A1 (en) 2015-04-16 2016-10-20 Fanuc Corporation Numerical control apparatus for classifying and displaying a machining program recorded as a history

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH076043A (en) * 1993-03-05 1995-01-10 Mitsubishi Electric Corp Multithread server
WO2000025261A1 (en) * 1998-10-26 2000-05-04 Hitachi, Ltd. Control program processor for ic card
DE102016004233A1 (en) 2015-04-16 2016-10-20 Fanuc Corporation Numerical control apparatus for classifying and displaying a machining program recorded as a history
US10317883B2 (en) 2015-04-16 2019-06-11 Fanuc Corporation Numerical controller for classifying and displaying machining program recorded as history
DE102016004233B4 (en) 2015-04-16 2019-06-27 Fanuc Corporation Numerical control apparatus for classifying and displaying a machining program recorded as a history

Similar Documents

Publication Publication Date Title
JP4237354B2 (en) Transaction processing method and transaction processing system
US6240413B1 (en) Fine-grained consistency mechanism for optimistic concurrency control using lock groups
US4864497A (en) Method of integrating software application programs using an attributive data model database
KR101573965B1 (en) Atomic multiple modification of data in a distributed storage system
US6772155B1 (en) Looking data in a database system
US8868577B2 (en) Generic database manipulator
US7376674B2 (en) Storage of multiple pre-modification short duration copies of database information in short term memory
JP3790650B2 (en) System and method for ordering objects corresponding to database operations executed on a relational database upon completion of a transaction by an object-oriented transaction system, and a program storage medium storing a program for executing the method
US8572027B2 (en) Performing synchronization among relational database tables with minimal contention
JP2008541263A (en) Fast and reliable synchronization of file system directories
CA2398148C (en) System and method for managing bi-directional relationships between objects
CN106575297A (en) High throughput data modifications using blind update operations
JPH103416A (en) Information processor and its method
JPH0728679A (en) Locking system of checkin/checkout model
EP3824397B1 (en) Version-based table locking
JPH0816396A (en) Data management system
US6691121B1 (en) Method and apparatus for online and dynamic extension of IMS data entry databases
JPH04191934A (en) Method and device for managing functional program
JP4311059B2 (en) Transaction control method
JPH05307478A (en) Constituting method for data base management system
US11681705B2 (en) Trie data structure with subtrie data structures
JPH03123946A (en) Exclusive control method for data base
JP2001134476A (en) Method for updating data base in a batch
JPS5947341B2 (en) Dynamic exclusive control method for index sequential files
JP2615046B2 (en) Record addition processing method