JP3413369B2 - Information processing device - Google Patents

Information processing device

Info

Publication number
JP3413369B2
JP3413369B2 JP12693499A JP12693499A JP3413369B2 JP 3413369 B2 JP3413369 B2 JP 3413369B2 JP 12693499 A JP12693499 A JP 12693499A JP 12693499 A JP12693499 A JP 12693499A JP 3413369 B2 JP3413369 B2 JP 3413369B2
Authority
JP
Japan
Prior art keywords
program
priority
unit
execution
size
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP12693499A
Other languages
Japanese (ja)
Other versions
JP2000029725A (en
Inventor
龍一 山口
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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial 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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP12693499A priority Critical patent/JP3413369B2/en
Publication of JP2000029725A publication Critical patent/JP2000029725A/en
Application granted granted Critical
Publication of JP3413369B2 publication Critical patent/JP3413369B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数のプログラムを実
行する際に、使用する物理メモリと演算器を共有する情
報処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus which shares a computing unit with a physical memory used when executing a plurality of programs.

【0002】[0002]

【従来の技術】近年、マルチプログラミング技術と仮想
記憶技術により1個の計算機上で大きなサイズの複数の
プログラムを実行することが可能になった。プログラム
実行時には計算機資源を共有して、複数のプログラムを
実行する。このとき、計算機のハードディスク上の仮想
メモリと半導体メモリ上の物理メモリに複数のプログラ
ムが記憶されて、プログラムの実行が行なわれる。プロ
グラム実行に際しては、プログラム実行の優先順位にし
たがって演算器が割り当てられてプログラムが実行され
る。
2. Description of the Related Art In recent years, it has become possible to execute a plurality of programs of large size on a single computer by means of multi-programming technology and virtual memory technology. When executing programs, computer resources are shared and multiple programs are executed. At this time, a plurality of programs are stored in the virtual memory on the hard disk of the computer and the physical memory on the semiconductor memory, and the programs are executed. When executing the program, the arithmetic units are assigned according to the priority order of the program execution, and the program is executed.

【0003】以下、上述のような従来の情報処理装置の
一例について、図面を参照しながら説明する。
An example of the above-mentioned conventional information processing apparatus will be described below with reference to the drawings.

【0004】図3は、従来の情報処理装置のメモリ割り
当てのブロック図を示すものである。図3において、S
z1は、プログラムの実行環境つまりユーザに割り当てら
れる物理メモリのサイズつまり環境割り当てサイズであ
る。Pgは実行されるプログラムである。1はプログラ
ムを実行するユーザ毎に割り当てられた環境割り当てサ
イズやプログラム実行の優先順位等を保持するユーザ環
境保持部である。11は、ユーザ環境毎に割り当てられ
た物理メモリの環境割り当てサイズSz1を取り出すメモ
リサイズ読み込み部である。12はプログラム実行時に
使用する物理メモリを割り当てる領域割り当て部であ
る。51は半導体メモリで、プログラムを収納する物理
メモリである。52はディスク装置上の仮想メモリであ
る。2は、プログラムを実行する演算器である。
FIG. 3 is a block diagram of memory allocation of a conventional information processing apparatus. In FIG. 3, S
z1 is the execution environment of the program, that is, the size of the physical memory allocated to the user, that is, the environment allocation size. Pg is a program to be executed. Reference numeral 1 denotes a user environment holding unit that holds an environment allocation size assigned to each user who executes a program, a program execution priority, and the like. Reference numeral 11 denotes a memory size reading unit that extracts the environment allocation size Sz1 of the physical memory allocated for each user environment. An area allocation unit 12 allocates a physical memory used when the program is executed. A semiconductor memory 51 is a physical memory that stores a program. Reference numeral 52 is a virtual memory on the disk device. Reference numeral 2 is an arithmetic unit that executes a program.

【0005】以上のように構成された情報処理装置につ
いて、以下、その動作について説明する。
The operation of the information processing apparatus configured as described above will be described below.

【0006】仮想記憶技術によるプログラム実行におい
て、ユーザ環境保持部1では、物理メモリ、ディスク、
演算器割り当て等のプログラムを実行するために必要な
計算機資源の割り当て情報を保持している。そして、メ
モリサイズ読み込み部11で、ユーザ環境保持部1に保
持された物理メモリの環境割り当てサイズSz1が読み込
まれ、領域割り当て部12に物理メモリの環境割り当て
サイズSz1が渡される。プログラムPgは、実行時に仮
想メモリ52から物理メモリ51にコピーされ、物理メ
モリ51にあるプログラムPgの命令とデータが演算器
2に読み込まれて、プログラムPgが実行される。
In executing a program using the virtual storage technology, the user environment holding unit 1 uses a physical memory, a disk,
It holds allocation information of computer resources necessary for executing programs such as arithmetic unit allocation. Then, the memory size reading unit 11 reads the environment allocation size Sz1 of the physical memory held in the user environment holding unit 1, and passes the environment allocation size Sz1 of the physical memory to the area allocating unit 12. The program Pg is copied from the virtual memory 52 to the physical memory 51 at the time of execution, the instructions and data of the program Pg in the physical memory 51 are read into the computing unit 2, and the program Pg is executed.

【0007】そのとき、仮想メモリ52から物理メモリ
51へのプログラムPgのコピーに際して、物理メモリ
51に空き領域があれば、プログラムPgは空き領域に
コピーされるが、物理メモリ51に空き領域がない場合
には、物理メモリ51に収納可能なサイズを越えて使用
しているプログラムPgが物理メモリ51から取り除か
れ仮想メモリ52へと戻される。このプログラムPgの
交換をスワッピングと呼ぶ。スワッピングにより物理メ
モリ51と仮想メモリ52との間のプログラムPgの転
送が発生し、プログラムPgの実行が遅くなる。
At this time, in copying the program Pg from the virtual memory 52 to the physical memory 51, if there is a free area in the physical memory 51, the program Pg is copied to the free area, but there is no free area in the physical memory 51. In this case, the program Pg that exceeds the size that can be stored in the physical memory 51 is removed from the physical memory 51 and returned to the virtual memory 52. This exchange of the program Pg is called swapping. The swapping causes the transfer of the program Pg between the physical memory 51 and the virtual memory 52, which slows down the execution of the program Pg.

【0008】一方、図4は従来の情報処理装置で演算器
2を割り当てて実行するプログラムの選択のブロック図
を示すものである。図4において、Ys1は、実行環境が
有するプログラムを実行する際の優先度つまり環境優先
度であって、ユーザ毎にユーザ環境保持部1に設定さ
れ、保持されている。21は環境優先度Ys1を取り出す
環境優先度読み込み部である。22は実行優先度にした
がって実行するプログラムPgを選択するプログラム選
択部である。2は、上記図3と同様にプログラムPgを
実行する演算器である。
On the other hand, FIG. 4 shows a block diagram for selecting a program to be executed by assigning the arithmetic unit 2 in the conventional information processing apparatus. In FIG. 4, Ys1 is a priority when executing a program included in the execution environment, that is, an environment priority, which is set and held in the user environment holding unit 1 for each user. Reference numeral 21 is an environment priority reading unit that extracts the environment priority Ys1. A program selection unit 22 selects a program Pg to be executed according to the execution priority. Reference numeral 2 denotes an arithmetic unit that executes the program Pg as in FIG.

【0009】以上のように構成された情報処理装置につ
いて、以下、その動作について説明する。
The operation of the information processing apparatus configured as described above will be described below.

【0010】マルチプログラミング技術を利用したプロ
グラム実行では、複数のプログラムが実行優先度にした
がって順番に実行される。プログラム実行の優先度Ys1
は、ユーザ環境保持部1にユーザ毎に保持されている。
そして、環境優先度読み込み部21で、ユーザ環境保持
部1から環境優先度Ys1が読み込まれ、プログラム選択
部22に送られる。さらに、プログラム選択部22で、
複数のプログラムの中から環境優先度Ys1の高いプログ
ラムPgが選択され、当該プログラムPgが演算器2に
送られて実行される。
In the program execution using the multi-programming technique, a plurality of programs are sequentially executed according to the execution priority. Program execution priority Ys1
Are stored in the user environment storage unit 1 for each user.
Then, the environment priority reading unit 21 reads the environment priority Ys1 from the user environment holding unit 1 and sends it to the program selecting unit 22. Furthermore, in the program selection unit 22,
A program Pg having a high environmental priority Ys1 is selected from a plurality of programs, and the program Pg is sent to the computing unit 2 and executed.

【0011】[0011]

【発明が解決しようとする課題】しかしながら、上記図
3又は図4に示されるような従来の情報処理装置では、
それぞれ下記のような問題があった。
However, in the conventional information processing apparatus as shown in FIG. 3 or 4,
Each had the following problems.

【0012】すなわち、上記図3に示す情報処理装置で
は、プログラムPgが物理メモリ2を使用するのに必要
なサイズが小さくても、プログラム実行にはユーザ環境
毎に設定された物理メモリの環境サイズSz1が適用され
る。つまり、複数の小さなプログラムと大きなプログラ
ムが同じ実行環境で同時に実行された場合でも、小さな
プログラムと大きなプログラムでは同程度の大きさであ
る環境サイズSz1分の物理メモリ51内の領域が割り当
てられる。そのため、物理メモリに余裕がなくなり、複
数のプログラムを実行する場合に、小さなプログラムの
実行では物理メモリ51と仮想メモリ52との間のスワ
ッピングが発生しにくいが、大きなプログラムの実行で
はスワッピングが発生し、プログラムの実行が遅くなる
という課題がある。
That is, in the information processing apparatus shown in FIG. 3, even if the size required for the program Pg to use the physical memory 2 is small, the environment size of the physical memory set for each user environment for program execution. Sz1 applies. That is, even when a plurality of small programs and a large program are simultaneously executed in the same execution environment, an area in the physical memory 51 corresponding to the environment size Sz1 which is about the same size is allocated to the small program and the large program. As a result, the physical memory becomes full, and when executing a plurality of programs, swapping between the physical memory 51 and the virtual memory 52 is unlikely to occur when executing a small program, but swapping occurs when executing a large program. However, there is a problem that the execution of the program becomes slow.

【0013】一方、図4に示すものでは、複数のプログ
ラムを同じユーザで実行する場合には、プログラム選択
部22で演算器2を使用する優先度が同じ環境優先度Y
s1になり、特定のプログラムを優先して実行しようとす
ると、支障が生じるという問題があった。
On the other hand, in the case shown in FIG. 4, when a plurality of programs are executed by the same user, the priority for using the arithmetic unit 2 in the program selection unit 22 is the same as the environment priority Y.
It became s1 and there was a problem that when trying to execute a specific program with priority, there is a problem.

【0014】本発明は、かかる問題点に鑑みてなされた
ものであり、その目的は、複数のプログラムを実行する
ための情報処理装置において、小さなプログラムによっ
て計算機内の物理メモリが占有されることなく物理メモ
リを有効利用し、真に優先的に実行したいプログラムに
演算器を優先的に割り当てることにより、プログラムの
実行の遅延を有効に防止することにある。
The present invention has been made in view of the above problems, and an object thereof is to prevent a physical memory in a computer from being occupied by a small program in an information processing apparatus for executing a plurality of programs. The purpose is to effectively prevent the delay of the execution of the program by effectively utilizing the physical memory and preferentially allocating the arithmetic unit to the program which should be truly preferentially executed.

【0015】[0015]

【課題を解決するための手段】上記目的を達成するた
め、請求項1の発明の講じた手段は、実行環境から処理
の要求があった複数のプログラムを、指令手段の指令に
応じて処理するように構成された情報処理装置を対象と
する。
In order to achieve the above object, the means of the invention of claim 1 processes a plurality of programs requested to be processed by an execution environment in accordance with a command of a command means. The information processing apparatus configured as described above is targeted.

【0016】そして、情報処理装置に、図2に示すよう
に、プログラムを実行する実行環境が保持する実行優先
度を、環境優先度として取り出す環境優先度読み込み部
と、上記プログラムが有する実行優先度をプログラム優
先度として入力する優先度入力部と、該優先度入力の出
力を受け、上記プログラム優先度をプログラム内部に書
き込む優先度変更部と、該優先度変更部の出力を受け、
上記プログラムの実行に際してプログラムから上記プロ
グラム優先度を読み込むプログラム優先度読み込み部
と、上記環境優先度読み込み部及びプログラム優先度読
み込み部の出力を受け、環境優先度とプログラム優先度
とを比較して優先度の低い方を実行時優先度として出力
する優先度比較部とを設ける。
Then, as shown in FIG. 2, in the information processing apparatus, an execution priority held by the execution environment for executing the program is extracted as an environment priority, and an execution priority included in the program. , A priority input section for inputting as a program priority, an output of the priority input, a priority changing section for writing the program priority inside the program, and an output of the priority changing section,
When the program is executed, the program priority reading unit that reads the program priority from the program and the outputs of the environment priority reading unit and the program priority reading unit are received, and the environmental priority and the program priority are compared to give priority. A priority comparison unit that outputs the one with the lower priority as the runtime priority is provided.

【0017】さらに、上記指令手段を、上記比較部の出
力を受け、上記プログラムの実行時に上記実行時優先度
にしたがってプログラムを選択するよう指令するように
構成したものである。
Further, the command means receives the output of the comparison section and commands the selection of a program in accordance with the execution priority when the program is executed.

【0018】請求項2の発明の講じた手段は、上記請求
項1の発明において、上記物理メモリと並列的に配置さ
れ、メモリ内容が物理メモリに転写可能に構成された仮
想メモリと、上記プログラムを一定時間実行して、プロ
グラムが実行中に参照した記憶領域のメモリサイズをプ
ログラムサイズとして測定する領域測定部とを設け、優
先度入力部を、上記領域測定部により測定されたプログ
ラムサイズを各プログラムについて比較し、サイズの小
さい方の優先度を低くするよう入力するものとしたもの
である。
According to a second aspect of the present invention, in the first aspect of the present invention, the virtual memory is arranged in parallel with the physical memory and the memory contents can be transferred to the physical memory, and the program. And a region measuring unit that measures the memory size of the storage region referred to during program execution as the program size, and the priority input unit controls the program size measured by the region measuring unit. The programs are compared, and the input is made so that the smaller size has lower priority.

【0019】[0019]

【作用】請求項1の発明では、プログラムの実行時優先
度はユーザ環境保持部で保持された環境優先度以上に高
く設定されることがなくなり、実行時優先度を低くした
いプログラムはプログラム実行時に自動的に下げた状態
で実行することが可能となる。すなわち、同じプログラ
ムであっても、各ユーザ毎に実行優先度を変えること
で、プログラム毎に演算器を割り当てるための優先度が
保持され、優先的に実行したいプログラムに対して演算
器が優先的に割り当てられる。したがって、実行すべき
プログラムの選択が円滑となり、プログラムの実行の遅
れが防止されることになる。
According to the first aspect of the present invention, the run-time priority of the program is not set higher than the environment priority held by the user environment holding unit, and the program whose run-time priority is desired to be lowered is the program run-time priority. It is possible to automatically execute the operation in the lowered state. That is, even for the same program, by changing the execution priority for each user, the priority for allocating the arithmetic unit for each program is retained, and the arithmetic unit has priority over the program to be preferentially executed. Assigned to. Therefore, the selection of the program to be executed becomes smooth, and the delay in the execution of the program is prevented.

【0020】請求項2の発明では、上記請求項1の発明
の作用において、優先度入力部により、領域測定部で測
定された各プログラムのサイズが比較され、プログラム
サイズの小さい方の優先度が低く入力されるので、プロ
グラムサイズの大きい方が優先的に実行される。したが
って、サイズの大きなプログラムは物理メモリに余裕の
ある状態で実行されることが多くなり、物理メモリに空
きスペースがなくなって仮想メモリとの間でスワッピン
グが生じる頻度が低減し、スワッピングに起因する時間
ロスが低減されることになる。
In the invention of claim 2, in the operation of the invention of claim 1, the priority input section compares the sizes of the programs measured by the area measuring section, and the priority of the smaller program size is determined. Since the input is low, the one with the larger program size is executed with priority. Therefore, a large program is often executed with plenty of physical memory, which reduces the frequency of swapping with virtual memory due to lack of free space in physical memory. Loss will be reduced.

【0021】[0021]

【実施例】以下、本発明の実施例について、図面を参照
しながら説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0022】(第1実施例)まず、第1実施例について
説明する。図1は、第1実施例における情報処理装置の
メモリ割当部の構成を示すブロック図である。図1にお
いて、51は物理メモリ、52は仮想メモリ、1はユー
ザ環境保持部、2は演算器である。上記ユーザ環境保持
部1は、予めユーザ環境毎に物理メモリ51の所定領域
を占有しうるよう割り当てられた環境割り当てサイズS
z1を保持している。また、11は、プログラムを実行す
るユーザ環境の上記環境割り当てサイズSz1を取り出す
メモリサイズ読み込み部、12は、プログラムPgの実
行時に物理メモリ51を使用する領域を割り当てる領域
割り当て部である。以上の構成は、上記従来の情報処理
装置と基本的に同じである。
(First Embodiment) First, the first embodiment will be described. FIG. 1 is a block diagram showing the configuration of the memory allocation unit of the information processing apparatus according to the first embodiment. In FIG. 1, 51 is a physical memory, 52 is a virtual memory, 1 is a user environment holding unit, and 2 is a computing unit. The user environment holding unit 1 has an environment allocation size S that is allocated in advance so as to occupy a predetermined area of the physical memory 51 for each user environment.
Holds z1. Further, 11 is a memory size reading unit for taking out the environment allocation size Sz1 of the user environment for executing the program, and 12 is an area allocation unit for allocating an area for using the physical memory 51 when the program Pg is executed. The above configuration is basically the same as that of the conventional information processing apparatus.

【0023】ここで、プログラムPgを実行して単位時
間に参照する記憶領域のサイズをプログラムサイズSz2
として測定する領域測定部13と、該領域測定部13で
測定されたプログラムサイズSz2をプログラムPgに書
き込むプログラム変更部14と、プログラムPgの実行
時にプログラムPgからプログラムサイズSz2を読み込
むプログラムサイズ読み込み部15と、上記環境割り当
てサイズSz1とプログラムサイズSz2とを比較して小さ
い方を実行時割り当てサイズSzjとして出力するサイズ
比較部16とが配設されている。
Here, the size of the storage area referred to in a unit time by executing the program Pg is the program size Sz2.
Area measuring section 13 for measuring as, the program changing section 14 for writing the program size Sz2 measured by the area measuring section 13 into the program Pg, and the program size reading section 15 for reading the program size Sz2 from the program Pg when the program Pg is executed. And a size comparison unit 16 that compares the environment allocation size Sz1 with the program size Sz2 and outputs the smaller one as the runtime allocation size Szj.

【0024】以上のように構成された情報処理装置につ
いて、その動作を説明する。
The operation of the information processing apparatus configured as above will be described.

【0025】すなわち、プログラムの実行前に、領域測
定部13で、一定時間プログラムPgが試験的に実行さ
れ、プログラムPgの実行中に参照した記憶領域のサイ
ズが測定され、その大きさがプログラムサイズSz2とさ
れる。また、プログラム変更部14で、領域測定部13
で測定された記憶領域のプログラムサイズSz2がプログ
ラムPgにあらかじめ書き込まれる。さらに、プログラ
ムPgの実行に際して、プログラムサイズ読み込み部1
5で、プログラムPgの実行時にプログラムPgに記述
されたプログラムサイズSz2が読み込まれ、このプログ
ラムサイズSz2がサイズ比較部16に送られる。一方、
プログラムを実行するためのユーザ環境保持部1では、
プログラムを実行するために必要な物理メモリ、ディス
ク量、演算器割り当て等の計算機資源の割り当て情報が
保持されており、メモリサイズ読み込み部11で、この
ユーザ環境保持部1で保持しているユーザに割り当てら
れた物理メモリの環境割り当てサイズSz1が取り出さ
れ、サイズ比較部16へと送られる。そして、サイズ比
較部16で、プログラムサイズ読み込み部15で読み込
まれたプログラムサイズSz2とメモリサイズ読み込み部
11で読み込まれた環境割り当てサイズSz1とが比較さ
れ、値の小さい方が実行割り当てサイズSzjとして、領
域割り当て部12に送られる。その後、領域割り当て部
12で、サイズ比較部16からの実行時割り当てサイズ
Szjに従って、プログラムPgが使用する物理メモリ5
1の領域が割り当てられる。
That is, before the program is executed, the area measuring unit 13 executes the program Pg on a trial basis for a certain period of time, measures the size of the storage area referred to during the execution of the program Pg, and determines the size of the program size. Sz2. In addition, in the program changing unit 14, the area measuring unit 13
The program size Sz2 of the storage area measured in step S4 is written in the program Pg in advance. Furthermore, when executing the program Pg, the program size reading unit 1
In step 5, the program size Sz2 described in the program Pg is read when the program Pg is executed, and this program size Sz2 is sent to the size comparison unit 16. on the other hand,
In the user environment holding unit 1 for executing the program,
The allocation information of the computer resources such as the physical memory, the disk amount, and the allocation of the arithmetic units necessary for executing the program is held, and the memory size reading unit 11 allows the user who is held in the user environment holding unit 1 to The environment allocation size Sz1 of the allocated physical memory is fetched and sent to the size comparison unit 16. Then, the size comparing unit 16 compares the program size Sz2 read by the program size reading unit 15 with the environment allocation size Sz1 read by the memory size reading unit 11, and the smaller one is the execution allocation size Szj. It is sent to the area allocation unit 12. After that, the area allocation unit 12 follows the physical memory 5 used by the program Pg according to the runtime allocation size Szj from the size comparison unit 16.
One area is allocated.

【0026】ここで、プログラムPgは、実行時に仮想
メモリ52から物理メモリ51にコピーされ、物理メモ
リ51にあるプログラムPgの命令とデータが演算器2
に読み込まれてプログラムPgが実行される。仮想メモ
リ52から物理メモリ51へのプログラムPgのコピー
に際して、物理メモリ51に空き領域があれば、プログ
ラムPgは空き領域にコピーされる。しかし、物理メモ
リ51に空き領域がない場合、物理メモリ51の実行時
割り当てサイズSzjを越えて使用しているプログラムP
gが物理メモリ51から取り除かれ仮想メモリ52へと
戻される。しかし、実行時割り当てサイズSzjは、実行
環境が有する環境割り当てサイズSz1のみで決定される
のではなく、実行するプログラムPgが小さければそれ
に応じて設定される。
Here, the program Pg is copied from the virtual memory 52 to the physical memory 51 at the time of execution, and the instructions and data of the program Pg in the physical memory 51 are stored in the arithmetic unit 2.
Is read into and the program Pg is executed. When the program Pg is copied from the virtual memory 52 to the physical memory 51, if the physical memory 51 has a free area, the program Pg is copied to the free area. However, if there is no free area in the physical memory 51, the program P that exceeds the runtime allocation size Szj of the physical memory 51 and is used.
g is removed from physical memory 51 and returned to virtual memory 52. However, the runtime allocation size Szj is not determined only by the environment allocation size Sz1 of the execution environment, but is set accordingly if the program Pg to be executed is small.

【0027】上記第1実施例では、小さな記憶領域しか
必要としないプログラムPgが物理メモリ51を占有す
る領域は小さくなり、その結果、物理メモリ51の容量
に余裕が生じる。すなわち、プログラム実行時に割り当
てられる物理メモリ51のサイズをプログラムに応じて
最小限に抑えることにより、物理メモリ51が効率的に
割り当てられることになる。
In the first embodiment, the area occupied by the program Pg, which requires only a small storage area, in the physical memory 51 is small, and as a result, the capacity of the physical memory 51 is large. That is, the physical memory 51 is efficiently allocated by minimizing the size of the physical memory 51 allocated during program execution according to the program.

【0028】特に、仮想メモリ52を配置し、物理メモ
リ51に空きスペースがなくなったときに、プログラム
Pgの保管場所を物理メモリ51から仮想メモリ52に
交換することで、物理メモリ51の容量を越えた情報量
を処理することができるが、このプログラムの交換つま
りスワッピングが頻繁に生じると、プログラムPgの転
送に伴う時間ロスが増大する虞れがある。ここで、上記
第2実施例では、上述のように物理メモリ51の容量に
余裕が生じるので、大きな記憶領域を必要とするプログ
ラムPgを実行したからといってスワッピングが発生す
る頻度は少なくなり、スワッピングに起因する時間ロス
を有効に低減することができる。すなわち、プログラム
Pgの実行の遅れを有効に防止することができるのであ
る。
In particular, by arranging the virtual memory 52 and replacing the storage location of the program Pg with the virtual memory 52 when the physical memory 51 runs out of free space, the capacity of the physical memory 51 is exceeded. However, if the programs are exchanged or swapped frequently, the time loss associated with the transfer of the program Pg may increase. Here, in the second embodiment, since the capacity of the physical memory 51 has a margin as described above, the frequency of swapping even if the program Pg that requires a large storage area is executed is reduced, Time loss due to swapping can be effectively reduced. That is, it is possible to effectively prevent the delay in the execution of the program Pg.

【0029】(第2実施例)次に、第2実施例について
説明する。図2は、本発明に相当する第2実施例に係る
情報処理装置の演算器2を割り当てて実行するプログラ
ムの選択のブロック図を示すものである。21はユーザ
環境保持部1の有する環境優先度Ys1を読み込む環境優
先度読み込み部、23はプログラム優先度Ys2を入力す
る優先度入力部、24はプログラム優先度Ys2をプログ
ラムPgの内部に書き込むプログラム変更部、25はプ
ログラムPgの内部に書き込まれたプログラム優先度Y
s2を読み込む優先度読み込み部、26は、環境優先度Y
s1とプログラム優先度Ys2とを比較し、低い方を実行時
優先度Ysjとする優先度比較部、22は実行するプログ
ラムPgを実行時優先度Ysjに従って選択するプログラ
ム選択部、2はプログラムPgを実行する演算器であ
る。
(Second Embodiment) Next, a second embodiment will be described. FIG. 2 shows a block diagram of selecting a program to be executed by allocating the arithmetic unit 2 of the information processing apparatus according to the second embodiment corresponding to the present invention. Reference numeral 21 is an environment priority reading unit that reads the environment priority Ys1 of the user environment holding unit 1, 23 is a priority input unit that inputs the program priority Ys2, and 24 is a program change that writes the program priority Ys2 into the program Pg. Part, 25 is the program priority Y written in the program Pg.
Priority reading unit for reading s2, 26 indicates environment priority Y
s1 is compared with the program priority Ys2, and the lower one has a priority comparison unit that sets the execution priority Ysj to the lower one, 22 a program selection unit that selects the program Pg to be executed according to the execution priority Ysj, and 2 the program Pg. It is an arithmetic unit to execute.

【0030】以上のように構成された情報処理装置にお
いて、以下、その動作について説明する。
The operation of the information processing apparatus configured as described above will be described below.

【0031】プログラム実行に先だって、優先度入力部
23でプログラムPgを実行する際のプログラム優先度
Ys2が人手によって入力されると、プログラム変更部2
4であらかじめプログラムPgの内部にプログラム優先
度Ya2が書き込まれている。そして、プログラムPgの
実行に際し、プログラム優先度読み込み部2で、プログ
ラムPg内部に書き込まれたプログラム優先度が読み込
まれ、優先度比較部26に送られる。一方、ユーザ環境
保持部1で保持されている環境優先度Ys1が環境優先度
読み込み部21で読み込まれ、環境優先度Ys1が優先度
比較部26に送られる。優先度比較部26では、環境優
先度Ys1とプログラム優先度Ys2とが比較され、低い方
が実行時優先度Ysjとしてプログラム選択部22に送ら
れる。プログラム選択部22では、複数のプログラムの
中から実行時優先度Ysjの高いプログラムPgが選択さ
れ、そのプログラムPgが演算器2に送られて、プログ
ラムPgの内容が実行される。
When the program priority Ys2 for executing the program Pg is manually input by the priority input unit 23 prior to the program execution, the program changing unit 2
In 4, the program priority Ya2 is written in the program Pg in advance. When the program Pg is executed, the program priority reading unit 2 reads the program priority written in the program Pg and sends it to the priority comparing unit 26. On the other hand, the environment priority Ys1 held in the user environment holding unit 1 is read by the environment priority reading unit 21, and the environment priority Ys1 is sent to the priority comparing unit 26. The priority comparison unit 26 compares the environmental priority Ys1 and the program priority Ys2, and the lower one is sent to the program selection unit 22 as the runtime priority Ysj. The program selection unit 22 selects a program Pg having a high execution priority Ysj from a plurality of programs, sends the program Pg to the computing unit 2, and executes the contents of the program Pg.

【0032】この結果、プログラムPgの実行時優先度
Ysjはユーザ環境保持部1で保持された環境優先度Ys1
以上に高く設定されることなく、実行時優先度Ysjを低
くしたいプログラムPgはプログラム実行時に自動的に
低くした状態で実行することができる。すなわち、同じ
プログラムであっても、各ユーザ毎に実行優先度を変え
ることが可能となり、プログラム毎に演算器2を割り当
てるための優先度を実行優先度として保持しておくこと
ができる。したがって、優先的に実行したいプログラム
Pgに演算器2を優先的に割り当てることができ、プロ
グラムPgの選択が円滑に行われ、プログラムの実行の
遅れを防止することができる。
As a result, the execution priority Ysj of the program Pg is the environment priority Ys1 held by the user environment holding unit 1.
The program Pg whose run-time priority Ysj is desired to be lowered can be executed in a state where it is automatically lowered during program execution without being set higher than the above. That is, even with the same program, the execution priority can be changed for each user, and the priority for assigning the arithmetic unit 2 can be held as the execution priority for each program. Therefore, the computing unit 2 can be preferentially assigned to the program Pg desired to be executed preferentially, the program Pg can be smoothly selected, and the delay in execution of the program can be prevented.

【0033】なお、実施例は省略するが、上記第2実施
例において、優先度入力部23でプログラム優先度Ys2
をユーザが手動で入力する代わりに、上記第1実施例の
ごとく、領域測定部13を設け、優先度入力部23によ
り、領域測定部13で測定された各プログラムのサイズ
Sz2を比較して、プログラムサイズSz2の小さい方の優
先度を低く入力するようにしてもよい。その場合、プロ
グラムサイズSz2の大きい方を優先的に実行することに
なるので、プログラムサイズSz2の大きいプログラムP
gは物理メモリ51に余裕のある状態で実行されること
が多くなる。したがって、物理メモリ51に空きスペー
スがなくなってスワッピングが生じる頻度が低減し、ス
ワッピングに起因する時間ロスの低減を図ることができ
る。
Although the embodiment is omitted, in the second embodiment, the program priority Ys2 is set by the priority input unit 23.
Instead of the user manually inputting, the area measuring unit 13 is provided as in the first embodiment, and the priority input unit 23 compares the size Sz2 of each program measured by the area measuring unit 13, The smaller program size Sz2 may be input with a lower priority. In this case, the program with the larger program size Sz2 is preferentially executed, so the program P with the larger program size Sz2 is executed.
The g is often executed in a state where the physical memory 51 has a margin. Therefore, the physical memory 51 runs out of free space and the frequency of swapping is reduced, and the time loss due to swapping can be reduced.

【0034】[0034]

【発明の効果】以上説明したように、請求項1の発明に
よれば、情報処理装置として、プログラムを実行する実
行環境が保持する環境優先度を取り出す一方、プログラ
ムが有するプログラム優先度をプログラム内部に書き込
み、プログラムの実行に際してこのプログラム優先度を
読み込むとともに、環境優先度とプログラム優先度とを
比較して優先度の低い方を実行時優先度として出力し、
プログラムの実行時には実行時優先度にしたがってプロ
グラムを選択するように構成したので、同じプログラム
であっても、各ユーザ毎に実行優先度を変えることで、
優先的に実行したいプログラムに対して演算器を優先的
に割り当てることができ、よって、プログラム選択に伴
うプログラム実行の遅れを防止し、処理速度の向上を図
ることができる。
As described above, according to the first aspect of the invention, as the information processing apparatus, the environment priority held by the execution environment for executing the program is taken out, while the program priority of the program is stored inside the program. To read this program priority when executing the program, and compare the environmental priority with the program priority and output the one with the lower priority as the runtime priority,
Since the program is configured to be selected according to the execution priority when the program is executed, even if the same program is used, the execution priority can be changed for each user.
An arithmetic unit can be preferentially assigned to a program to be preferentially executed, so that it is possible to prevent a delay in program execution due to program selection and improve processing speed.

【0035】請求項2の発明によれば、上記請求項1の
発明において、仮想メモリを配置し、プログラムを一定
時間実行して、プログラムが実行中に参照した記憶領域
のメモリサイズをプログラムサイズとして測定し、測定
された各プログラムのサイズを比較してプログラムサイ
ズの小さい方の優先度を低く入力するようにしたので、
物理メモリと仮想メモリとの間におけるスワッピングが
生じる頻度を低減することができ、よって、処理速度の
顕著な向上を図ることができる。
According to the invention of claim 2, in the invention of claim 1, the virtual memory is arranged, the program is executed for a predetermined time, and the memory size of the storage area referred to during execution of the program is set as the program size. I measured the size of each program and compared the sizes of the programs, so I input a lower priority for the one with the smaller program size.
The frequency of swapping between the physical memory and the virtual memory can be reduced, and thus the processing speed can be significantly improved.

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

【図1】第1実施例に係る情報処理装置のメモリサイズ
による領域割り当てシステムの構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing a configuration of an area allocation system based on a memory size of an information processing apparatus according to a first embodiment.

【図2】第2実施例に係る情報処理装置の優先度による
プログラム選択システムの構成を示すブロック図であ
る。
FIG. 2 is a block diagram showing a configuration of a program selection system according to a priority of an information processing apparatus according to a second embodiment.

【図3】従来例に係る情報処理装置のメモリサイズによ
る領域割り当てシステムの構成を示すブロック図であ
る。
FIG. 3 is a block diagram showing a configuration of an area allocation system based on a memory size of an information processing apparatus according to a conventional example.

【図4】従来に係る情報処理装置の優先度によるプログ
ラム選択システムの構成を示すブロック図である。
FIG. 4 is a block diagram showing a configuration of a program selection system based on priorities of information processing apparatuses according to the related art.

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

Sz1 環境割り当てサイズ Sz2 プログラムサイズ Szj 実行時サイズ Ys1 環境優先度 Ys2 プログラム優先度 Ysj 実行時優先度 Pg プログラム 1 ユーザ環境保持部 2 演算器 11 メモリサイズ読み込み部 12 領域割り当て部 13 領域測定部 14 プログラム変更部 15 プログラムサイズ読み込み部 16 サイズ比較部 21 環境優先度読み込み部 22 プログラム選択部 23 優先度入力部 24 プログラム変更部 25 プログラム優先度読み込み部 26 優先度比較部 51 物理メモリ 52 仮想メモリ Sz1 environment allocation size Sz2 program size Szj runtime size Ys1 environmental priority Ys2 program priority Ysj runtime priority Pg program 1 User environment holding unit 2 calculator 11 Memory size reading unit 12 Area allocation section 13 Area measurement section 14 Program change section 15 Program size reading section 16 size comparison section 21 Environmental priority reading section 22 Program selection section 23 Priority input section 24 Program change section 25 Program priority reading section 26 Priority comparison section 51 physical memory 52 virtual memory

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平4−76732(JP,A) 特開 平4−155449(JP,A) 「ACOSソフトウェア ACOS− 4/MVP XE スーパバイザ解説書 DDA72−3」,日本,日本電気株式 会社,1988年 3月,第3版,pp.42 −44,66,67 (58)調査した分野(Int.Cl.7,DB名) G06F 9/46 G06F 15/00 310 G06F 1/00 370 ─────────────────────────────────────────────────── ─── Continuation of the front page (56) Reference JP-A-4-76732 (JP, A) JP-A-4-155449 (JP, A) "ACOS Software ACOS-4 / MVP XE Supervisor Manual DDA72-3" , Japan, NEC Corporation, March 1988, 3rd edition, pp. 42-44, 66, 67 (58) Fields investigated (Int.Cl. 7 , DB name) G06F 9/46 G06F 15/00 310 G06F 1/00 370

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 実行環境から処理の要求があった複数の
プログラムを、指令手段の指令に応じて処理するように
構成された情報処理装置において、 プログラムを実行する実行環境が保持する実行優先度
を、環境優先度として取り出す環境優先度読み込み部
と、 上記プログラムが有する実行優先度をプログラム優先度
として入力する優先度入力部と、 該優先度入力の出力を受け、上記プログラム優先度をプ
ログラム内部に書き込む優先度変更部と、 該優先度変更部の出力を受け、上記プログラムの実行に
際してプログラムから上記プログラム優先度を読み込む
プログラム優先度読み込み部と、 上記環境優先度読み込み部及びプログラム優先度読み込
み部の出力を受け、環境優先度とプログラム優先度とを
比較して優先度の低い方を実行時優先度として出力する
優先度比較部とを備え、 上記指令手段は、上記比較部の出力を受け、上記プログ
ラムの実行時に上記実行時優先度にしたがってプログラ
ムを選択するよう指令することを特徴とする情報処理装
置。
1. An information processing apparatus configured to process a plurality of programs requested to be processed by the execution environment in accordance with a command from a command means, the execution priority being held by the execution environment for executing the program. , An environment priority reading unit that retrieves as an environment priority, a priority input unit that inputs the execution priority of the program as a program priority, an output of the priority input, and the program priority described above. To the program priority reading section, which receives the output of the priority changing section, reads the program priority from the program when the program is executed, and the environment priority reading section and the program priority reading section. Output, the environmental priority and the program priority are compared, and the one with the lower priority is given priority at runtime. And a priority comparison unit that outputs the above-mentioned, and the command means receives the output of the comparison unit and commands the selection of a program according to the execution priority when the program is executed. apparatus.
【請求項2】 請求項1記載の情報処理装置において、 上記物理メモリと並列的に配置され、メモリ内容が物理
メモリに転写可能に構成された仮想メモリと、 上記プログラムを一定時間実行して、プログラムが実行
中に参照した記憶領域のメモリサイズをプログラムサイ
ズとして測定する領域測定部とを備え、 優先度入力部は、上記領域測定部により測定されたプロ
グラムサイズを各プログラムについて比較し、サイズの
小さい方の優先度を低くするよう入力するものであるこ
とを特徴とする情報処理装置。
2. The information processing apparatus according to claim 1, wherein a virtual memory arranged in parallel with the physical memory and configured so that the memory contents can be transferred to the physical memory, and the program is executed for a predetermined time, An area measurement unit that measures the memory size of the storage area referred to by the program during execution as a program size is provided.The priority input unit compares the program sizes measured by the area measurement unit for each program and An information processing apparatus, characterized in that an input is made such that the smaller one has a lower priority.
JP12693499A 1999-05-07 1999-05-07 Information processing device Expired - Fee Related JP3413369B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12693499A JP3413369B2 (en) 1999-05-07 1999-05-07 Information processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12693499A JP3413369B2 (en) 1999-05-07 1999-05-07 Information processing device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP5033853A Division JPH06250928A (en) 1993-02-24 1993-02-24 Information processor

Publications (2)

Publication Number Publication Date
JP2000029725A JP2000029725A (en) 2000-01-28
JP3413369B2 true JP3413369B2 (en) 2003-06-03

Family

ID=14947528

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12693499A Expired - Fee Related JP3413369B2 (en) 1999-05-07 1999-05-07 Information processing device

Country Status (1)

Country Link
JP (1) JP3413369B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6180866B2 (en) * 2013-09-24 2017-08-16 株式会社東芝 Scheduling apparatus, system, apparatus, method and program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
「ACOSソフトウェア ACOS−4/MVP XE スーパバイザ解説書 DDA72−3」,日本,日本電気株式会社,1988年 3月,第3版,pp.42−44,66,67

Also Published As

Publication number Publication date
JP2000029725A (en) 2000-01-28

Similar Documents

Publication Publication Date Title
JPH06250928A (en) Information processor
US8151275B2 (en) Accessing copy information of MMIO register by guest OS in both active and inactive state of a designated logical processor corresponding to the guest OS
US10026145B2 (en) Resource sharing on shader processor of GPU
US20070162640A1 (en) Method and system for efficient context swapping
US20130152100A1 (en) Method to guarantee real time processing of soft real-time operating system
JPWO2011135759A1 (en) Information processing apparatus and task switching method
JP2001043180A (en) Microprocessor and storage device therefor
JP3413369B2 (en) Information processing device
JPH0798663A (en) Asynchronous i/o control system
JP4756599B2 (en) Data processing device
JP2007034514A (en) Information processor
US20080209085A1 (en) Semiconductor device and dma transfer method
US20080072009A1 (en) Apparatus and method for handling interrupt disabled section and page pinning apparatus and method
JPS63244152A (en) Access control system for extended memory device
CN117971349B (en) Computing device, method of configuring virtual registers for a computing device, control device, computer-readable storage medium, and computer program product
JP3067253B2 (en) Data processing device
JPS603229B2 (en) Information processing method
JPH0635800A (en) Microprocessor and data processing system using it
JP2003248620A (en) Dynamic memory managing method and dynamic memory management information processing device
JPH07230358A (en) Multiplexed volume device
JP2941809B2 (en) Image processing method and apparatus
JPH04184525A (en) Magnetic disk device
JPH10507548A (en) Data processing systems and methods and communication systems with such systems
JP2008310487A (en) Program, exceptional processing method, computer, cellular phone, and tv set
JP2943401B2 (en) External storage device allocation processing method for virtual machine

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080328

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090328

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100328

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110328

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110328

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees