JPS62184535A - System for making operating system nonresident - Google Patents

System for making operating system nonresident

Info

Publication number
JPS62184535A
JPS62184535A JP61025880A JP2588086A JPS62184535A JP S62184535 A JPS62184535 A JP S62184535A JP 61025880 A JP61025880 A JP 61025880A JP 2588086 A JP2588086 A JP 2588086A JP S62184535 A JPS62184535 A JP S62184535A
Authority
JP
Japan
Prior art keywords
task
user
system task
program
main storage
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
JP61025880A
Other languages
Japanese (ja)
Inventor
Akiyoshi Miura
三浦 明義
Takao Maeda
多可雄 前田
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 Microcomputer System Ltd
Hitachi Ltd
Original Assignee
Hitachi Ltd
Hitachi Microcomputer Engineering 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 Microcomputer Engineering Ltd filed Critical Hitachi Ltd
Priority to JP61025880A priority Critical patent/JPS62184535A/en
Publication of JPS62184535A publication Critical patent/JPS62184535A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To effectively use a main storage device by automatically loading a system task to the main storage device with the aid of a use start command in a user program and releasing the task out of the main storage device with the aid of a use termination command. CONSTITUTION:Receiving the system task use start command from a user task 5, a cursor 1 adds '1' to contents in a counter 10. Then a main storage area in the system task 10 is secured in a nonresident area, and a program for the system task is loaded in the main storage area from a floppy disk 22. When the loading of the program is completed to bring the system task 10 executable, the command transmitted from the user task 5 is transmitted to a system task 10, and the start processing is executed. When the user task 5 uses up a function supported by a system task 2, the system task use termination command is transmitted to the cursor 1 to release the main storage area.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は電子計算機システムのオペレーティング・シス
テムに係り、特にシステム・タスクの非常駐化に関する
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to an operating system for a computer system, and particularly to making system tasks non-resident.

[発明の背景〕 従来、主記憶装置を有効に活用する方式として、文献[
高橋他:オペレーテイング・システムの機能と構成、合
波書店、pp89−93Jに記載されているようなスワ
ツピング方式が知られている。
[Background of the Invention] Conventionally, as a method for effectively utilizing the main memory device, the literature [
A swapping method is known, as described in Takahashi et al.: Operating System Functions and Structures, Goiha Shoten, pp. 89-93J.

しかしながら、スワツピング方式は、比較的大容量でか
つ高速にデータアクセスできる固定されたハード・ディ
スクを補助記憶装置とに必要としており、フロッピ・デ
ィスクのように自由に抜き差し可能で小容量の補助記憶
装置しか持たないシステムでは使えなかった。
However, the swapping method requires a fixed hard disk with a relatively large capacity and high-speed data access for the auxiliary storage device. It could not be used in systems that only had

すケわち、電子計−機のソフトウェアは、一般に複数の
ユーザ・プログラムと入出力機器の制御などを行うオペ
レーティング・システムから構成されている。これらソ
フトウェアは主記憶装置上に存在して実行される。しか
しながら、システムの多様化、複雑化にともないソフト
ウェアが大規模化し、主記憶装置の容量よりもソフトウ
ェアの容量の方が大きくなってきている。
In other words, the software of an electronic meter generally consists of a plurality of user programs and an operating system that controls input/output devices. These software reside and execute on the main memory. However, with the diversification and complexity of systems, the scale of software has become larger, and the capacity of software has become larger than the capacity of main storage devices.

また、オペレーティング・システムに限ってもユーザ・
プログラムが便利なように、データベース管理、他計算
機との通信制御等のプログラムが大規模になる機能をシ
ステム・タスクの形で実現しており、これら常に使われ
るとは限らないシステム・タスクのプログラムを主記憶
装置上に常駐させていては、はなはだ主記憶装置の利用
効率が悪い。
In addition, even if the operating system is limited to user
In order to make the program convenient, functions such as database management and communication control with other computers, which require large scale programs, are realized in the form of system tasks, and these system task programs are not always used. If it resides on the main memory, the main memory is used very inefficiently.

従来、この問題を解決する手法として上述したスワツピ
ング方式が知られているが、スワツピング方式は、例え
ばタイムシェアリング・システムで端末に対し入出力要
求を行っているようなプログラムの場合、入出力待ち状
態でしばらく実行できないため、このようなプログラム
にその間主記憶を割り当てておくことは無駄であること
から、補助記憶装置上に退避し、代りに実行可能状態に
あるプログラムを補助記憶装置から主記憶装置上にロー
ドする方式である。
Conventionally, the swapping method described above has been known as a method to solve this problem. Since it cannot be executed for a while in the executable state, it is wasteful to allocate main memory to such a program during that time, so it is saved to the auxiliary storage, and instead, the executable program is transferred from the auxiliary storage to the main memory. This method is to load it onto the device.

然るに、マイクロコンピュータ・システムのように比較
的小規模な構成の電子計算機システムでは、補助記憶装
置として記憶媒体が自由に抜き差し可能で記憶容量が小
さいフロッピ・ディスクしか持たない。このような電子
計算機システムでは、ソフトウェアの容量が主記憶装置
の容量よりも大きくなっても、上記スワツピング方式は
次の2つの理由から使うことができない。第1の理由は
スワツピング方方式ではプログラム起動時、補助記憶装
置上にプログラムの命令領域だけでなくデータ領域の退
避領域も確保しなくてはならないのでプログラムの実行
本数が多くなると補助記憶装置であるフロッピ・ディス
クの容量が不足するからである。第2の理由はフロッピ
・ディスクは記憶媒体が自由に抜き差し可能であるため
、プログラムが退避されたフロッピ・ディスクが抜かれ
ると、退避されたプログラムが再開できなくなるからで
ある。
However, an electronic computer system having a relatively small-scale configuration such as a microcomputer system has only a floppy disk as an auxiliary storage device, which can be freely inserted and removed as a storage medium and has a small storage capacity. In such a computer system, even if the capacity of the software becomes larger than the capacity of the main storage device, the above swapping method cannot be used for the following two reasons. The first reason is that in the swapping method, when a program is started, it is necessary to secure not only the instruction area of the program but also a save area for the data area on the auxiliary storage device. This is because the capacity of the floppy disk is insufficient. The second reason is that the storage medium of a floppy disk can be freely inserted and removed, so if the floppy disk on which the program has been saved is removed, the saved program cannot be restarted.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、電子計算機のオペレーティング・シス
テムのシステム・タスクをユーザ・プログラムの利用開
始コマンドにより自動的に主記憶装置上にロードし、ユ
ーザ・プログラムからの利用終了コマンドにより自動的
に主記憶装置上から解放することにより、主記憶装置を
有効に使う手段を提供することにある。
An object of the present invention is to automatically load system tasks of an operating system of an electronic computer onto the main memory in response to a usage start command from a user program, and to automatically load system tasks into the main memory in response to a usage termination command from the user program. The purpose is to provide a means for effectively using the main memory by freeing it from the device.

〔発明の概要〕[Summary of the invention]

本発明は、補助記憶装置としてフロッピ・ディスクしか
持たない構成の電子計算機システムで、オペレーティン
グ・システムのシステム・タスクの非常駐化を図り、主
記憶装置の容量よりも大きいソフトウェアの実行を可能
にするものである。
The present invention is an electronic computer system having only a floppy disk as an auxiliary storage device, which makes system tasks of an operating system non-resident and allows execution of software larger than the capacity of the main storage device. It is.

システム・タスクの非帝駐化は、システム・タスクごと
にカウンタを設け、ユーザ・プログラムからの該システ
ム・タスク利用−始コマント発行時にカウンタの内容に
“1”加算し、利用終了コマンド発行時に該カウンタの
内容から“1”減算し、該カウンタの内容が“0”から
“1”に変化した時システム・タスクを補助記憶装置か
らロードし、該カウンタの内容が“1”から“0”に変
化したとき該システム・タスクが占有していた主記憶を
解放することにより実現する。
Non-emperorization of system tasks involves setting up a counter for each system task, adding "1" to the contents of the counter when a user program issues a start command for use of the system task, and adding "1" to the counter when issuing a command to end use of the system task. "1" is subtracted from the content of the counter, and when the content of the counter changes from "0" to "1", the system task is loaded from the auxiliary storage, and the content of the counter changes from "1" to "0". This is achieved by freeing the main memory occupied by the system task at the time of the change.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の一実施例を図を用いて説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の対象となる電子計算機システムのソフ
トウェア構成を示す図である。カーネル1はタスクの制
御、入出力機器の制御等を司るオペレーティング・シス
テムの核となるプログラム。
FIG. 1 is a diagram showing the software configuration of a computer system to which the present invention is applied. Kernel 1 is the core program of the operating system that controls tasks, input/output devices, etc.

システム・タスク2,3・・・はカーネル1の下で制御
され、データベース管理2適信制御等オペレーティング
・システムの機能のうち論理的な処理を司るタスク、ユ
ーザ・タスク5,6・・・はカーネル1の下で制御され
るユーザ作成のプログラム、カウンタ10.il・・・
はカーネル1内に設けられたテーブルでシステム・タス
ク2,3・・・に対応する。
System tasks 2, 3, etc. are controlled under the kernel 1, and user tasks 5, 6, etc. A user-written program controlled under kernel 1, counter 10. il...
is a table provided in kernel 1 and corresponds to system tasks 2, 3, and so on.

カーネル1とシステム・タスク2,3・・・を総称して
オペレーティング・システムと呼び、ユーザ・タスク5
,6・・・を総称してユーザ・プログラムと呼ぶ。
Kernel 1 and system tasks 2, 3, etc. are collectively called the operating system, and user task 5
, 6... are collectively called a user program.

第2図は本発明の対象となる電子鼾算機システムのハー
ドウェア構成を示す図である。中央処理装置20はプロ
グラムの命令を実行し、主記憶装置21はプログラムの
命令およびデータを格納し、フロッピ・ディスク22.
23はシステム・タスク、ユーザ・タスクのプログラム
やユーザ・プロダラム用のデータ・ファイルを格納し、
端末24゜25・・・ユーザ・プログラムあるいはオペ
レーティング・システムとユーザとの会話処理に使われ
、入出力制御装置28はフロッピ・ディスク22゜23
および端末24.25・・・を制御する。
FIG. 2 is a diagram showing the hardware configuration of an electronic snoring computer system to which the present invention is applied. A central processing unit 20 executes program instructions, a main memory 21 stores program instructions and data, and a floppy disk 22 .
23 stores data files for system tasks, user task programs, and user programm;
Terminals 24, 25...Used for conversation processing between the user program or the operating system and the user, and the input/output control device 28 is a floppy disk 22, 23
and control terminals 24, 25, and so on.

第3図は主記憶装置21の使用方法を示す図で、常駐領
域30にはカーネル1が、非常駐領域31にはシステム
・タスク2,3・・・およびユーザ・タスク5,6・・
・のうち必要なものが格納される。
FIG. 3 is a diagram showing how to use the main storage device 21. The permanent area 30 contains the kernel 1, and the non-resident area 31 contains the system tasks 2, 3, . . . and user tasks 5, 6, etc.
- Necessary items are stored.

第4図はカーネル1でのシステム・タスク利用開始コマ
ンド処理および利用終了コマンド処理を示す図である。
FIG. 4 is a diagram showing system task usage start command processing and usage end command processing in kernel 1.

ここでは、ユーザ・タスク5がシステム・タスク2が支
援する機能を使用する場合を例にとって本発明の実施例
を詳しく説明する。ユーザ・タスク5がシステム・タス
ク2が支援する機能を使用する時、最初にシステム・タ
スク利用開始コマンドをカーネル1に発行する。カーネ
ル1はユーザ・タスク5からのシステム・タスク利用開
始コマンドを受は取ると第4図(a)に示すように処理
する。すなわち、ステップ40においてシステム・タス
ク2に対応するカウンタ10の内容を“1”を加算する
。ステップ41においてカウンタ10の内容が“1”か
どうか判定し“1”でなければステップ43に移る。カ
ウンタ10の内容が“1”ならば、ステップ42でシス
テム・タスク10用の主記憶領域を非常駐領域31に確
保し、フロッピ・ディスク22からシステム・タスク1
0用のプログラムを該主記憶領域にロードする。ここで
、システム・タスク10用のプログラムがフロッピ・デ
ィスク22の記憶媒体に存在しない場合はユーザが使用
中の端末(端末24.25.・・・の1つ)に該当記憶
媒体を挿入する白表示する。プログラムのロードが完了
しシステム・タスク10が実行可能状態となるとステッ
プ48でシステム・タスク10にユーザ・タスク5から
送られたコマンドを送り開始処理を実行させる。また、
ユーザ・タスク5がシステム・タスク2が支援する機能
を使い終った時、システム・タスク利用終了コマンドを
カーネル1に送る。カーネルはユーザ・タスク5からの
システム・タスク利用終了コマンドを受は取ると第4図
(b)に示すように処理する。すなわち、ステップ45
でシステム・タスク10にユーザ・タスク5から送られ
たコマンドを送り、システム・タスクでの終了処理が完
了すると次にステップ46でカウンタ10の内容を“1
”減算する。ステップ47でカウンタ10の内容が“O
”かどうか判定し6′0”でなければ処理を終了する。
Here, an embodiment of the present invention will be described in detail, taking as an example a case where user task 5 uses a function supported by system task 2. When the user task 5 uses a function supported by the system task 2, it first issues a command to start using the system task to the kernel 1. When the kernel 1 receives a command to start using the system task from the user task 5, it processes it as shown in FIG. 4(a). That is, in step 40, "1" is added to the contents of the counter 10 corresponding to system task 2. In step 41, it is determined whether the content of the counter 10 is "1" or not, and if it is not "1", the process moves to step 43. If the content of the counter 10 is "1", the main storage area for the system task 10 is secured in the non-resident area 31 in step 42, and the system task 1 is stored from the floppy disk 22.
0 program is loaded into the main storage area. Here, if the program for system task 10 does not exist on the storage medium of floppy disk 22, insert the corresponding storage medium into the terminal (one of terminals 24, 25, etc.) that the user is using. indicate. When the loading of the program is completed and the system task 10 becomes executable, the command sent from the user task 5 is sent to the system task 10 in step 48 to cause the system task 10 to execute the start process. Also,
When user task 5 finishes using the functions supported by system task 2, it sends a system task usage end command to kernel 1. When the kernel receives the system task usage termination command from the user task 5, it processes it as shown in FIG. 4(b). That is, step 45
In step 46, the command sent from user task 5 is sent to system task 10, and when the termination process in the system task is completed, the contents of counter 10 are set to "1" in step 46.
” is subtracted. At step 47, the contents of the counter 10 become “O”.
If it is not 6'0, the process ends.

“OITならばステップ48でシステム・タスク10用
の主記憶領域を解放する。上記のごとくシステム・タス
ク2,3・・・に対応するカウンタ10゜11・・・の
内容をユーザ・タスクからの利用開始コマンド発行時に
“1”加算し、ユーザ・タスクからの利用終了コマンド
発行時に1117j減算し、カウンタの内容が正の場合
のみ、該システム・タスクのプログラムを必要な場合だ
け主記憶装置上に存在させることを可能としている。
“If it is OIT, the main storage area for system task 10 is released in step 48.As mentioned above, the contents of counters 10, 11, etc. corresponding to system tasks 2, 3, etc. are released from the user task. "1" is added when a usage start command is issued, and 1117j is subtracted when a usage end command is issued from a user task. Only when the contents of the counter are positive, the program of the system task is stored in the main memory only when necessary. It makes it possible to exist.

本実施例によれば、システム・タスクのプログラムを主
記憶装置上にロードするとき、フロッピ・ディスクの記
憶媒体にシステム・タスクのプロダラムが常に存在して
いなくてはならない必要性がないので、フロッピ・ディ
スクの有効活用が図れる。
According to this embodiment, when loading a system task program onto the main memory, there is no need for the system task program to always exist on the floppy disk storage medium.・Effective use of disks can be achieved.

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

本発明によれば、システム・タスクごとにカウンタを設
はカウンタの内容によりシステム・タスクの非常駐化を
制−しており、複数のユーザ・タスクが同時に1つのシ
ステム・タスクを利用する場合もシステム・タスク非常
駐化が可能であり、必要な場合、すなわち少なくとも1
つ以上のユーザ・タスクが該システム・タスクを利用し
ている場合のみ、該システム・タスクのプログラムを主
記憶装置上に存在させるので、主記憶装置の有効活用が
図れる。
According to the present invention, by setting a counter for each system task, the non-resident status of the system task is controlled depending on the contents of the counter, and even when multiple user tasks use one system task at the same time, the system・Tasks can be made non-resident if necessary, i.e. at least 1 task can be made non-resident.
Since the program for the system task is stored in the main memory only when more than one user task is using the system task, the main memory can be used effectively.

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

第1図は本発明の対象とする電子計算機システムのソフ
トウェア構成図、第2図は同じくハードウェア構成図、
第3図は主記憶装置の使用方法を示す図、第4図はカー
ネルにおけるシステム・タスク利用開始コマンドおよび
利用終了コマンドに対する処理フロー図である。 1・・・カーネル、2,3・・・システム・タスク、5
゜6・・・ユーザ・タスク、10,11・・・カウンタ
、20・・・中央処理装置、21・・・主記憶装置、2
2゜23・・・フロッピ・ディスク、24.25・・・
端末、28・・・入出力制御装置。 等1 区 ′42図
FIG. 1 is a software configuration diagram of a computer system to which the present invention is applied, and FIG. 2 is a hardware configuration diagram.
FIG. 3 is a diagram showing how to use the main storage device, and FIG. 4 is a processing flow diagram for the system task usage start command and usage end command in the kernel. 1... Kernel, 2, 3... System task, 5
゜6... User task, 10, 11... Counter, 20... Central processing unit, 21... Main storage device, 2
2゜23...floppy disk, 24.25...
Terminal, 28... input/output control device. Etc. 1 Ward'42 map

Claims (1)

【特許請求の範囲】[Claims] 電子計算機のオペレーティング・システムにおいて、オ
ペレーティング・システムのシステム・タスクごとにカ
ウンタを設け、ユーザ・プログラムからの該システム・
タスク利用開始コマンド発行時および利用終了コマンド
発行時に該システム・タスクのカウンタの内容を増減さ
せ、該カウンタの内容によりシステム・タスクの非常駐
化を図ることを特徴とするオペレーティング・システム
の非常駐化方式。
In the operating system of an electronic computer, a counter is provided for each system task of the operating system, and a counter is provided for each system task of the operating system.
A system for making an operating system non-resident, characterized by increasing or decreasing the contents of a counter of the system task when issuing a task use start command and a use end command, and making the system task non-resident according to the contents of the counter.
JP61025880A 1986-02-10 1986-02-10 System for making operating system nonresident Pending JPS62184535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61025880A JPS62184535A (en) 1986-02-10 1986-02-10 System for making operating system nonresident

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61025880A JPS62184535A (en) 1986-02-10 1986-02-10 System for making operating system nonresident

Publications (1)

Publication Number Publication Date
JPS62184535A true JPS62184535A (en) 1987-08-12

Family

ID=12178094

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61025880A Pending JPS62184535A (en) 1986-02-10 1986-02-10 System for making operating system nonresident

Country Status (1)

Country Link
JP (1) JPS62184535A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01216446A (en) * 1988-02-24 1989-08-30 Fujitsu Ltd Real storage fixing processing system
JPH04309136A (en) * 1991-04-08 1992-10-30 Nec Corp Task identifier control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01216446A (en) * 1988-02-24 1989-08-30 Fujitsu Ltd Real storage fixing processing system
JPH04309136A (en) * 1991-04-08 1992-10-30 Nec Corp Task identifier control system

Similar Documents

Publication Publication Date Title
US5701493A (en) Exception handling method and apparatus in data processing systems
JPS5841538B2 (en) Multiprocessor system instructions
JPH03257644A (en) Main memory control method
US6009414A (en) Computer system with checkpoint facility and accounting facility indicating charges payable for processes
JP2821345B2 (en) Asynchronous I / O control method
McGee The information management system IMS/VS, Part V: Transaction processing facilities
JPS62184535A (en) System for making operating system nonresident
JP3780610B2 (en) Billing information output device
JP3011751B2 (en) System startup method
JPH0115899B2 (en)
GB2362246A (en) Computer system with checkpoint facility.
JPS6053903B2 (en) multiprocessor system
JPH10161915A (en) Data inheriting method for realizing exclusive control giving priority to subsequent job
JPS6150356B2 (en)
JPS6223895B2 (en)
JPS63153664A (en) Program transfer system in decenralized function type multi-processor system
JPS6346861B2 (en)
JPH01321525A (en) Hardware semaphore
JPH0546452A (en) Commitment control system
JPH03161833A (en) Method for processing revision information
JPH07334377A (en) Information processor
JPS61121153A (en) Inter-processor communication control system
JPS6252900B2 (en)
JPH06110813A (en) Asynchronous data input/output system
JPH03209536A (en) Data saving processing system