JPH064319A - Shared routine management method in operating system - Google Patents
Shared routine management method in operating systemInfo
- Publication number
- JPH064319A JPH064319A JP4164443A JP16444392A JPH064319A JP H064319 A JPH064319 A JP H064319A JP 4164443 A JP4164443 A JP 4164443A JP 16444392 A JP16444392 A JP 16444392A JP H064319 A JPH064319 A JP H064319A
- Authority
- JP
- Japan
- Prior art keywords
- shared
- routine
- operating system
- shared routine
- call
- 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
Links
Landscapes
- Executing Machine-Instructions (AREA)
Abstract
(57)【要約】
【目的】 複数のプロセスを時分割で並列に実行するオ
ペレーティング・システムにおいて、複数のプロセスで
共有されているルーチンをオペレーティング・システム
内部に取り込みメモリ使用効率を高める。
【構成】 各プロセスはsyscallを使い共有ルー
チンをコールし、オペレーティング・システム内部の共
有ルーチン検索ルーチンはコールすべき共有ルーチンを
検索し、オペレーティング・システム内部に存在する共
有ルーチンをコールする。
(57) [Summary] [Purpose] In an operating system that executes multiple processes in parallel in a time-sharing manner, routines shared by multiple processes are incorporated into the operating system to improve memory usage efficiency. Configuration: Each process uses syscall to call a shared routine, and a shared routine search routine in the operating system searches for a shared routine to call and calls a shared routine existing in the operating system.
Description
【0001】[0001]
【産業上の利用分野】本発明の情報処理システムのオペ
レーティング・システムに関し、特に各プロセスが共有
するルーチンを登録,管理するオペレーティング・シス
テムにおける共通ルーチン管理方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an operating system of an information processing system of the present invention, and more particularly to a common routine management system in an operating system for registering and managing routines shared by processes.
【0002】[0002]
【従来の技術】情報処理システムにおいて、複数のプロ
セスを時分割でプロセス切り替えを行うことによって、
並列に実行する機能を有する従来のオペレーティング・
システムでは、オペレーティング・システムがサポート
しているシステム・コールを除いて、各プロセスが使用
するルーチンは全て各プロセス毎にリンクする必要があ
った。2. Description of the Related Art In an information processing system, by switching a plurality of processes in a time-sharing manner,
Traditional operating system with the ability to run in parallel
In the system, all the routines used by each process had to be linked to each process, except for the system calls supported by the operating system.
【0003】[0003]
【発明が解決しようとする課題】従来は、各プロセス間
で共有しているルーチンがある場合でも、各プロセス毎
に共有ルーチンをリンクする必要があり、複数のプロセ
スを同時に実行させると、メモリ上には同一の共有ルー
チンがプロセスの数だけ存在し、メモリの使用効果が悪
いという問題があった。Conventionally, even if there is a routine shared by each process, it is necessary to link the shared routine for each process. There is a problem that the same shared routine exists in the same number as the number of processes, and the memory use effect is bad.
【0004】本発明の目的は、このような問題を解決し
たオペレーティング・システムにおける共有ルーチン管
理方式を提供することにある。An object of the present invention is to provide a shared routine management system in an operating system which solves such a problem.
【0005】[0005]
【課題を解決するための手段】本発明は、複数のプロセ
スを時分割でプロセス切り替えを行うことにより並列に
実行する情報処理システムのオペレーティング・システ
ムにおいて、複数のプロセスで共有されているルーチン
をオペレーティング・システム内部に取り込み、各プロ
セスが共有ルーチンをコールすると、オペレーティング
・システム内部の共有ルーチン検索ルーチンがコールす
べき共有ルーチンを捜して、オペレーティング・システ
ム内部に存在する共有ルーチンをコールすることを特徴
とする。According to the present invention, in an operating system of an information processing system for executing a plurality of processes in parallel by performing process switching in a time-sharing manner, a routine shared by a plurality of processes is operated. The feature is that when the process is fetched inside the system and each process calls a shared routine, the shared routine search routine inside the operating system searches for the shared routine to be called and calls the shared routine existing inside the operating system. To do.
【0006】[0006]
【実施例】本発明のオペレーティング・システムにおけ
る共有ルーチン管理方式の実施例について、図面を参照
して説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT An embodiment of a shared routine management system in an operating system of the present invention will be described with reference to the drawings.
【0007】図1は、オペレーティング・システムの管
理する共有ルーチン管理テーブルである。このテーブル
には、各共有ルーチンのシステムの通し番号1〜n,各
共有ルーチンの先頭アドレスROUTINE1〜n、お
よび各共有ルーチンへ渡す引き数ARG1〜nの数が登
録されている。システムで使用する共有ルーチンを追加
するには、共有ルーチンをこのテーブルに追加登録しオ
ペレーティング・システムとリンクを行う。FIG. 1 is a shared routine management table managed by the operating system. Registered in this table are the system serial numbers 1 to n of the shared routines, the start addresses ROUTINE 1 to n of the shared routines, and the arguments ARG 1 to n passed to the shared routines. To add a shared routine for use by the system, add the shared routine to this table and link it with the operating system.
【0008】図2は、各プロセスから共有ルーチンをコ
ールするための方法を示す。syscallは、プロセ
スから共有ルーチンをコールするために使用する共通の
命令であり、この命令を行うには引き数として共有ルー
チン管理テーブルにコールする共有ルーチンの通し番号
および共有ルーチンに渡す引き数を定義する。FIG. 2 shows a method for calling a shared routine from each process. syscall is a common instruction used to call a shared routine from a process. To execute this instruction, the serial number of the shared routine to be called in the shared routine management table as an argument and the argument to be passed to the shared routine are defined. .
【0009】図3は、システムの概略を示す図であり、
各プロセスはsyscallを使って共有ルーチンをコ
ールすると、オペレーティング・システム内部の共有ル
ーチン検索ルーチンがコールすべき共有ルーチンを捜し
て、オペレーティング・システム内部に存在する共有ル
ーチンをコールする。FIG. 3 is a diagram showing an outline of the system.
When each process uses syscall to call a shared routine, the shared routine search routine in the operating system searches for a shared routine to call and calls the shared routine existing in the operating system.
【0010】図4は、共有ルーチンをコールする際のフ
ローチャートである。また図5は、各プロセスにおける
スタックの変化を示めす図である。FIG. 4 is a flowchart for calling a shared routine. Further, FIG. 5 is a diagram showing changes in the stack in each process.
【0011】syscallにより、図5(A)に示す
ようにsyscallの引き数がプロセスのスタックに
積まれる。ソフトウエア割り込み命令のために、図5
(B)に示すようにCPUの内部状態がプロセスのスタ
ックに更に積み上げられる。syscallの中ではソ
フトウエア割り込み命令が実行されオペレーティング・
システム内部にある共有ルーチン検索ルーチンが呼ばれ
る。共有ルーチン検索ルーチンではスタック上に積まれ
た共有ルーチンの通し番号を読みだし、これを使って共
有ルーチン管理テーブルより共有ルーチンの先頭アドレ
スと共有ルーチンに渡すべき引き数の数を読み出す。そ
して、共有ルーチンに渡すべき引き数の数だけスタック
から読みだしスタックの上に更に積み上げる。このとき
のスタックを図5(C)に示めす。この後、共有ルーチ
ンの先頭アドレスをコールすると、共有ルーチンではス
タックに積まれた引き数を読みだし、各プロセスから直
接コールされたと同様に処理が行われる。With syscall, the arguments of syscall are stacked on the stack of the process, as shown in FIG. Figure 5 for software interrupt instructions
The internal state of the CPU is further stacked on the stack of the process as shown in (B). A software interrupt command is executed in the
The shared routine search routine inside the system is called. The shared routine search routine reads the serial number of the shared routine loaded on the stack, and uses this to read the start address of the shared routine and the number of arguments to be passed to the shared routine from the shared routine management table. Then, the number of arguments to be passed to the shared routine is read from the stack and further stacked on the stack. The stack at this time is shown in FIG. After that, when the start address of the shared routine is called, the shared routine reads the arguments stacked on the stack, and the same processing as that directly called from each process is performed.
【0012】[0012]
【発明の効果】本発明のオペレーティング・システムに
おける共有ルーチン管理方式によれば、従来技術におい
て共有しているプロセスの数だけメモリ上に存在してい
た共有ルーチンを、オペレーティング・システムのシス
テムコールとして登録管理することにより、メモリ上の
一箇所に存在を限定でき、従って各プロセス毎に共有ル
ーチンをメモリ上に持つ必要がなく、メモリの使用効率
を高める効果がある。According to the shared routine management method in the operating system of the present invention, the shared routines existing in the memory by the number of shared processes in the prior art are registered as operating system system calls. By managing, it is possible to limit the existence in one place on the memory, and therefore it is not necessary to have a shared routine for each process in the memory, and there is an effect of improving the memory usage efficiency.
【図面の簡単な説明】[Brief description of drawings]
【図1】共有ルーチン管理テーブルを示す図である。FIG. 1 is a diagram showing a shared routine management table.
【図2】各プロセスにおける共有ルーチンのコール例を
示す図である。FIG. 2 is a diagram showing an example of calling a shared routine in each process.
【図3】本発明の管理方式を示すシステムの概略図であ
る。FIG. 3 is a schematic diagram of a system showing a management system of the present invention.
【図4】各プロセスにおける共有ルーチンのコールする
際のフローチャートである。FIG. 4 is a flowchart for calling a shared routine in each process.
【図5】各プロセスにおける共有ルーチンのコールによ
るスタックの変化を示す図である。FIG. 5 is a diagram showing a stack change due to a call of a shared routine in each process.
なし None
Claims (1)
えを行うことにより並列に実行する情報処理システムの
オペレーティング・システムにおいて、 複数のプロセスで共有されているルーチンをオペレーテ
ィング・システム内部に取り込み、各プロセスが共有ル
ーチンをコールすると、オペレーティング・システム内
部の共有ルーチン検索ルーチンがコールすべき共有ルー
チンを捜して、オペレーティング・システム内部に存在
する共有ルーチンをコールすることを特徴とするオペレ
ーティング・システムにおける共有ルーチン管理方式。1. An operating system of an information processing system for executing a plurality of processes in parallel by performing process switching in a time-sharing manner, incorporating a routine shared by a plurality of processes into the operating system, and Shared routine management in an operating system, in which a shared routine search routine in the operating system searches for a shared routine to call and calls a shared routine existing in the operating system method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4164443A JPH064319A (en) | 1992-06-23 | 1992-06-23 | Shared routine management method in operating system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4164443A JPH064319A (en) | 1992-06-23 | 1992-06-23 | Shared routine management method in operating system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH064319A true JPH064319A (en) | 1994-01-14 |
Family
ID=15793270
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4164443A Pending JPH064319A (en) | 1992-06-23 | 1992-06-23 | Shared routine management method in operating system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH064319A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6374362B1 (en) | 1998-01-14 | 2002-04-16 | Nec Corporation | Device and method for shared process control |
| WO2015083234A1 (en) * | 2013-12-03 | 2015-06-11 | 三菱電機株式会社 | Function call table generating device, program execution device, and execution program |
-
1992
- 1992-06-23 JP JP4164443A patent/JPH064319A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6374362B1 (en) | 1998-01-14 | 2002-04-16 | Nec Corporation | Device and method for shared process control |
| WO2015083234A1 (en) * | 2013-12-03 | 2015-06-11 | 三菱電機株式会社 | Function call table generating device, program execution device, and execution program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH064319A (en) | Shared routine management method in operating system | |
| JPH06124207A (en) | Subroutine branch instruction execution method | |
| CN115550440B (en) | Service processing method, system, computer device and storage medium | |
| JPH05197544A (en) | Data processing device | |
| JPH02234267A (en) | Loading/storing method for additional vector processor | |
| JPS5856153A (en) | Subroutine return system | |
| JP2903526B2 (en) | Pulse generator | |
| JPH083792B2 (en) | Function call processing method | |
| JPH04217027A (en) | information processing equipment | |
| JPH0340053A (en) | Control system for plural communication procedures | |
| JPH02168332A (en) | Data processor | |
| JPH04344532A (en) | Central processing unit | |
| CN116775215A (en) | Virtual machine scheduling method, system, equipment and medium | |
| JPH0769819B2 (en) | Information processing equipment | |
| JPS62166444A (en) | Program debugging device | |
| JPH02173828A (en) | Interruption process system | |
| JPS63132340A (en) | Execution control system in logical type language | |
| JPS63622A (en) | Control system for data coupling execution | |
| JPS61187044A (en) | Information processor | |
| JPH0573325A (en) | Program load system | |
| JPS59165141A (en) | data processing equipment | |
| JPH03177929A (en) | Object execution system | |
| JPH0449428A (en) | Method for processing abnormal end | |
| JPH058645U (en) | Interrupt control device of microprocessor | |
| JPH08305667A (en) | Memory management system for distributed storage type parallel computer system |