JPH02270032A - Loading system - Google Patents

Loading system

Info

Publication number
JPH02270032A
JPH02270032A JP1093456A JP9345689A JPH02270032A JP H02270032 A JPH02270032 A JP H02270032A JP 1093456 A JP1093456 A JP 1093456A JP 9345689 A JP9345689 A JP 9345689A JP H02270032 A JPH02270032 A JP H02270032A
Authority
JP
Japan
Prior art keywords
loading
secondary storage
real memory
memory
logical space
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
JP1093456A
Other languages
Japanese (ja)
Inventor
Shigeyuki Ono
重幸 大野
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 JP1093456A priority Critical patent/JPH02270032A/en
Publication of JPH02270032A publication Critical patent/JPH02270032A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To carry out the larger number of user tasks at one time by securing a secondary storage when the task executing level is lower than a fixed value and loading a general program into the secondary storage. CONSTITUTION:If the task executing level obtained by a task executing level deciding means 2 has the priority lower than a fixed level, the means 2 calls out a secondary storage securing means 5 without assigning a real memory to a logical space secured previously. The means 5 secures the secondary storages equal to the number of logical spaces secured previously and then calls out a secondary loading means 6 after assignment of the logical spaces. The means 6 loads a general program into the secured secondary storage in a state equal to that secured with push of an on-demand paging ODP mechanism. Thus the larger number of user tasks are carried out at one time.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、O8内のローディング方式に関し、特に一般
プログラムのローディング時に実行レベルが一定値より
低いタスクに於いては、そのプログラムを実メモリ上に
ではなく、二次記憶上にローディングすることにより、
限りある実メモリを有効利用することが出来るローディ
ング方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a loading method in O8, and in particular, for tasks whose execution level is lower than a certain value when loading a general program, the program is stored in real memory. By loading onto secondary storage instead of into
This paper relates to a loading method that can effectively utilize limited real memory.

〔従来の技術〕[Conventional technology]

従来、この種のローディング方式は、タスクの実行レベ
ルとは無関係に、予め論理空間と実メモリを確保してお
き、その実メモリ上に一般プログラムをローディングし
ていた。
Conventionally, in this type of loading method, a logical space and a real memory are secured in advance, regardless of the execution level of a task, and a general program is loaded onto the real memory.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のローディング方式に於いては、タスクの
実行レベルとは無関係に、予め論理空間と実メモリを確
保しておき、その実メモリ上に一般プログラムをローデ
ィングしていたため、実行優先順位の低いタスクであっ
ても、必ず、一般プログラムのローディング用に実メモ
リが確保され、限りある実メモリを無駄に使用している
という問題があった。
In the conventional loading method described above, the logical space and real memory are secured in advance, regardless of the execution level of the task, and the general program is loaded onto that real memory. However, there is always a problem that real memory is reserved for loading general programs, and the limited real memory is wasted.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のローディング方式の構成は、オンデマンド・ペ
ージング(On Demand Paging :以降
、ODPと称す)機構を有する仮想記憶をサポートして
いるオペレーティング・システム(Operating
System +以降、O8と称す〉内の一般ブログラ
ムのローディング方式に於て、タスクが実行される場合
の優先順位を決定するタスク実行レベルの高低を判定す
るタスク実行レベル判定手段と、前記一般プログラムを
ローディングするための論理空間を確保するための論理
空間確保手段と、前記タスク実行レベルが一定値より高
い場合に実メモリを予め確保されている論理空間に割り
当てる実メモリ確保手段と、その確保した実メモリ上に
前記一般プログラムをローディングする実メモリローデ
ィング手段と、前記タスク実行レベルが前記一定値より
低い場合に二次記憶を予め確保されている論理空間に割
り当てる二次記憶確保手段と、その確保した二次記憶上
に前記ODP機構で、実メモリがページを入れるために
ページの大きさに相当する大きさで分割した領域である
ページフレームを前記二次記憶に移してそのページフレ
ームを空きにするPUSH動作が行なわれた場合と同じ
状態で前記一般プログラムをローディングする二次記憶
ローディング手段とを含んで構成されることを特徴とす
る。
The configuration of the loading method of the present invention is based on an operating system that supports virtual memory having an on-demand paging (hereinafter referred to as ODP) mechanism.
In the loading method of a general program in System + hereinafter referred to as O8, a task execution level determination means for determining the level of a task execution level that determines the priority order when a task is executed, and the general program a logical space securing means for securing a logical space for loading the task; a real memory securing means for allocating real memory to a previously secured logical space when the task execution level is higher than a certain value; real memory loading means for loading the general program onto real memory; secondary storage securing means for allocating secondary storage to a previously reserved logical space when the task execution level is lower than the certain value; and securing the same. The ODP mechanism transfers a page frame, which is an area into which the real memory is divided into a size corresponding to the size of the page in order to store pages, to the secondary storage and makes the page frame free. and a secondary storage loading means for loading the general program in the same state as when the PUSH operation is performed.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例の全体の構成を表す図である
。図に於て、1は論理空間確保手段、2はタスク実行レ
ベル判定手段、3は実メモリ確保手段、4は実メモリロ
ーディング手段、5は二次記憶確保手段、6は二次記憶
ローディング手段である。
FIG. 1 is a diagram showing the overall configuration of an embodiment of the present invention. In the figure, 1 is a logical space securing means, 2 is a task execution level determining means, 3 is a real memory securing means, 4 is a real memory loading means, 5 is a secondary memory securing means, and 6 is a secondary memory loading means. be.

一般プログラムをローディングする場合には、まず論理
空間確保手段1によって、一般プログラムをローディン
グするのに必要な大きさの論理空間を確保する。
When loading a general program, the logical space securing means 1 first secures a logical space of a size necessary for loading the general program.

次に、タスク実行レベル判定手段2によって、その一般
プログラムが実行されるタスクの実行レベルを求める。
Next, the task execution level determining means 2 determines the execution level of the task on which the general program is executed.

その求めた実行レベルが一定値より優先順位の高いレベ
ルであった場合には、タスク実行レベル判定手段2は、
予め確保されている論理空間に実メモリを割り付けるた
めに実メモリ確保手段3を呼び出す。さらに、実メモリ
確保手段3から実メモリローディング手段4が呼び出さ
れ、割り付けられた実メモリ上に一般プログラムをロー
ディングする。
If the obtained execution level is a level with a higher priority than the fixed value, the task execution level determination means 2:
The real memory securing means 3 is called to allocate real memory to the logical space secured in advance. Further, the real memory loading means 4 is called from the real memory securing means 3 and loads the general program onto the allocated real memory.

タスク実行レベル判定手段2によって求めた実行レベル
が一定値より優先順位の低いレベルであった場合には、
タスク実行レベル判定手段2は、予め確保されている論
理空間に実メモリを割り付けることはせず、二次記憶確
保手段5を呼び出す。二次記憶確保手段5では、予め確
保されている論理空間と同じだけの二次記憶を確保して
その論理空間に割り付けた後、二次記憶ローディング手
段6を呼び出す。二次記憶ローディング手段6では、確
保されている二次記憶上に、ODP機構でPUSHされ
た場合と同じ状態で、一般プログラムをローディングす
る。
If the execution level determined by the task execution level determination means 2 is a level with a lower priority than a certain value,
The task execution level determining means 2 calls the secondary storage securing means 5 without allocating real memory to the logical space secured in advance. The secondary storage securing means 5 secures the same amount of secondary storage as the logical space secured in advance and allocates it to the logical space, and then calls the secondary storage loading means 6. The secondary storage loading means 6 loads the general program onto the secured secondary storage in the same state as when it is PUSHed by the ODP mechanism.

次に、二次記憶上にローディングされた一般プログラム
が実行される場合を示す。
Next, a case will be shown in which a general program loaded onto the secondary storage is executed.

二次記憶上にローディングされた一般プログラムは、O
DP機構でPUSHされた場合と同じ状態になっている
ため、命令読み出し時にページフォルト(論理空間に実
メモリが割りついていない状B)割り込みが発生する。
General programs loaded onto secondary storage are
Since the state is the same as when PUSH is performed by the DP mechanism, a page fault (state B where real memory is not allocated to the logical space) interrupt occurs when reading an instruction.

ODP機構は、この割り込みを契機として今ページフォ
ルト割り込みが発生したページに対して実メモリを割り
付け、二次記憶からそのページに相当するプログラムを
読み込み、ページフォルト割り込みを発生した命令から
再度実行する。
The ODP mechanism uses this interrupt as a trigger to allocate real memory to the page where the page fault interrupt has just occurred, reads the program corresponding to that page from secondary storage, and re-executes the instruction that caused the page fault interrupt.

このようにして、必要なページにのみ実メモリを割り付
けながらプログラムが順次実行されていく。
In this way, programs are executed sequentially while allocating real memory only to necessary pages.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、O8におけるローディン
グ方式に於いて、タスクの実行レベルが一定値より低い
場合には、実メモリを確保せずに二次記憶を確保し、そ
の二次記憶上に一般プログラムをローディングすること
により、限りある実メモリを有効に利用でき、また1タ
スクの使用する実メモリが削減できるので、同時に、よ
り多くのユーザタスクを走行させることが可能となると
いう効果がある。
As explained above, in the loading method in O8, if the execution level of a task is lower than a certain value, the present invention secures secondary storage without allocating real memory, and stores data on the secondary storage. By loading general programs, limited real memory can be used effectively, and the real memory used by one task can be reduced, so more user tasks can be run at the same time. .

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

第1図は本発明の一実施例の全体構成図である。 1・・・論理空間確保手段、2・・・タスク実行レベル
判定手段、3・・・実メモリ確保手段、4・・・実メモ
リローディング手段、5・・・二次記憶確保手段、6・
・・二次記憶ローディング手段。
FIG. 1 is an overall configuration diagram of an embodiment of the present invention. DESCRIPTION OF SYMBOLS 1... Logical space securing means, 2... Task execution level determining means, 3... Real memory securing means, 4... Real memory loading means, 5... Secondary memory securing means, 6.
...Secondary memory loading means.

Claims (1)

【特許請求の範囲】[Claims] オンデマンド・ページング(OnDemandPagi
ng:以降、ODPと称す)機構を有する仮想記憶をサ
ポートしているオペレーティング・システム(Oper
atingSystem:以降、OSと称す)内の一般
プログラムのローディング方式に於て、タスクが実行さ
れる場合の優先順位を決定するタスク実行レベルの高低
を判定するタスク実行レベル判定手段と、前記一般プロ
グラムをローディングするための論理空間を確保するた
めの論理空間確保手段と、前記タスク実行レベルが一定
値より高い場合に実メモリを予め確保されている論理空
間に割り当てる実メモリ確保手段と、その確保した実メ
モリ上に前記一般プログラムをローディングする実メモ
リローディング手段と、前記タスク実行レベルが前記一
定値より低い場合に二次記憶を予め確保されている論理
空間に割り当てる二次記憶確保手段と、その確保した二
次記憶上に前記ODP機構で、実メモリがページを入れ
るためにページの大きさに相当する大きさで分割した領
域であるページフレームを前記二次記憶に移してそのペ
ージフレームを空きにするPUSH動作が行なわれた場
合と同じ状態で前記一般プログラムをローディングする
二次記憶ローディング手段とを含むことを特徴とするロ
ーディング方式。
On-demand paging (OnDemandPagi)
ng (hereinafter referred to as ODP) mechanism that supports virtual memory.
In the loading method of a general program in a system (hereinafter referred to as OS), a task execution level determination means for determining the high or low task execution level that determines the priority order when a task is executed; A logical space securing means for securing a logical space for loading, a real memory securing means for allocating real memory to a previously secured logical space when the task execution level is higher than a certain value, and a real memory securing means for securing a logical space for loading the task; real memory loading means for loading the general program onto memory; secondary memory securing means for allocating secondary memory to a previously reserved logical space when the task execution level is lower than the certain value; On the secondary storage, the ODP mechanism moves the page frame, which is an area into which the real memory is divided into a size corresponding to the page size in order to store pages, to the secondary storage and makes the page frame free. A loading method comprising: a secondary storage loading means for loading the general program in the same state as when a PUSH operation is performed.
JP1093456A 1989-04-12 1989-04-12 Loading system Pending JPH02270032A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1093456A JPH02270032A (en) 1989-04-12 1989-04-12 Loading system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1093456A JPH02270032A (en) 1989-04-12 1989-04-12 Loading system

Publications (1)

Publication Number Publication Date
JPH02270032A true JPH02270032A (en) 1990-11-05

Family

ID=14082831

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1093456A Pending JPH02270032A (en) 1989-04-12 1989-04-12 Loading system

Country Status (1)

Country Link
JP (1) JPH02270032A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007156899A (en) * 2005-12-06 2007-06-21 Canon Inc Electronic apparatus and control method thereof
JP2008135051A (en) * 2004-12-24 2008-06-12 Canon Inc Electronic device, data processing method, and computer program
JP2010134584A (en) * 2008-12-03 2010-06-17 Nec Corp Device and method for memory management, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008135051A (en) * 2004-12-24 2008-06-12 Canon Inc Electronic device, data processing method, and computer program
JP2007156899A (en) * 2005-12-06 2007-06-21 Canon Inc Electronic apparatus and control method thereof
JP2010134584A (en) * 2008-12-03 2010-06-17 Nec Corp Device and method for memory management, and program

Similar Documents

Publication Publication Date Title
US5754853A (en) System for executing utility programs while preserving the state of a native operating system
US6948034B2 (en) Method for use of stack
KR20070090649A (en) Apparatus and method for providing cooperative scheduling on multi-core system
JP2008522277A (en) Efficient switching between prioritized tasks
JPH02270032A (en) Loading system
JPS583177A (en) Data processing system
JPS603229B2 (en) Information processing method
JPH0351918A (en) Effective loading system using task executing level
KR20010038482A (en) Kernel Stack Dynamic Allocation Method In Operating System
JP2001356916A (en) Memory blocking compiler and program executing method
JPH04116742A (en) Memory allocation system in virtual storage system
JPH1153327A (en) Multiprocessor system
JPH07152574A (en) Program loading system
JP2002328841A (en) System and method for demand paging swap out of kernel space
JPH0667898A (en) Task control system
JPH0844570A (en) System and method for program execution
JPH076045A (en) Memory managing method of multi-processing system
JPS6156816B2 (en)
JP2666785B2 (en) Process termination processing method and apparatus
JPH06342412A (en) Automatic patch system for control program for input/ output device
JPS63121929A (en) Stack processing system
JPH05127901A (en) Processor
JP2001134449A (en) Data processor and its control method
JPH03129436A (en) Virtual storage control system corresponding to job priority
JPH021034A (en) Program control system