JPH04246731A - Software system - Google Patents
Software systemInfo
- Publication number
- JPH04246731A JPH04246731A JP3214291A JP3214291A JPH04246731A JP H04246731 A JPH04246731 A JP H04246731A JP 3214291 A JP3214291 A JP 3214291A JP 3214291 A JP3214291 A JP 3214291A JP H04246731 A JPH04246731 A JP H04246731A
- Authority
- JP
- Japan
- Prior art keywords
- resources
- kernel
- management table
- processes
- individual processes
- 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
- 238000000034 method Methods 0.000 claims abstract description 72
- 230000006870 function Effects 0.000 abstract description 4
- 230000005856 abnormality Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Abstract
Description
【0001】0001
【産業上の利用分野】本発明はソフトウェアシステムに
関し、特にUNIX等のマルチタスクオペレーティング
システム上に構築されるソフトウェアシステムを効率良
く管理するプロセスを実現可能なソフトウェアシステム
に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a software system, and more particularly to a software system that can implement processes for efficiently managing a software system built on a multitasking operating system such as UNIX.
【0002】0002
【従来の技術】従来のソフトウェアシステムは、図2に
示すように複数個の個々のプロセス11〜1nが夫々カ
ーネル21に接続され、個々のプロセス11〜1nから
独自にカーネル21に要求を出し、カーネル21は個々
のプロセス11〜1nのキー(識別データ)を確認する
ことで個々のプロセス11〜1nが資源(セマフォ、共
有メモリ等)を取得する構成となっている。2. Description of the Related Art In a conventional software system, as shown in FIG. 2, a plurality of individual processes 11 to 1n are each connected to a kernel 21, and each of the individual processes 11 to 1n issues a request to the kernel 21 independently. The kernel 21 is configured so that the individual processes 11 to 1n acquire resources (semaphores, shared memory, etc.) by confirming the keys (identification data) of the individual processes 11 to 1n.
【0003】0003
【発明が解決しようとする課題】このような従来のソフ
トウェアシステムでは、個々のプロセスが独自にカーネ
ルより資源を取得するため、個々のプロセスが資源を取
得するために手間がかかる。又、個々のプロセスで資源
を共有するための独自のキーを個々のプロセス間で設定
する必要がある。更に、不定期に生成される非常駐プロ
セスがシステムに存在する場合、そのプロセスが生成さ
れたかどうかのステータスを、他のプロセスが取得する
ことが困難である。又、システムに異常が生じて個々の
プロセスが異常終了した場合に、それを発見し異常処理
を起動するのが困難であるという問題がある。本発明の
目的はこれらの問題を解消するソフトウェアシステムを
提供することにある。SUMMARY OF THE INVENTION In such conventional software systems, each process independently acquires resources from the kernel, which requires time and effort for each process to acquire resources. Furthermore, it is necessary to set unique keys among individual processes in order to share resources between them. Furthermore, if a non-resident process that is generated irregularly exists in the system, it is difficult for other processes to obtain the status of whether or not that process has been generated. Furthermore, when an abnormality occurs in the system and individual processes terminate abnormally, there is a problem in that it is difficult to discover the abnormality and start abnormal processing. An object of the present invention is to provide a software system that solves these problems.
【0004】0004
【課題を解決するための手段】本発明のソフトウェアシ
ステムは、個々のプロセスの生成及び管理機能並びに資
源の獲得機能を有するシステム管理プロセスと、このシ
ステム管理プロセスが生成、管理する個々のプロセスの
ステータスを記録するプロセス管理テーブルと、前記シ
ステム管理プロセスがカーネルより一括して獲得した資
源をそのキーと共に記録する資源管理テーブルとを備え
ている。[Means for Solving the Problems] The software system of the present invention includes a system management process having a function of creating and managing individual processes and a function of acquiring resources, and a status of each process created and managed by this system management process. and a resource management table that records resources collectively acquired from the kernel by the system management process together with their keys.
【0005】[0005]
【作用】本発明によれば、個々のプロセスはプロセス管
理テーブルと資源管理テーブルとを参照することで、個
々のプロセスのステータス情報を他のプロセスが取得す
ることができ、かつ資源を共有するためのキーを得るこ
とが可能となる。[Operation] According to the present invention, each process can refer to the process management table and the resource management table so that other processes can obtain the status information of each process, and the resources can be shared. It is possible to obtain the key.
【0006】[0006]
【実施例】次に、本発明について図面を参照して説明す
る。図1は本発明のソフトウェアシステムの構成図であ
る。同図において、11〜1nは複数個の個々のプロセ
ス、21はカーネルである。これら個々のプロセス11
〜1nとカーネル21との間には、システム管理プロセ
ス31と、プロセス管理テーブル32と、資源管理テー
ブル32とを配設する。DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings. FIG. 1 is a configuration diagram of the software system of the present invention. In the figure, 11 to 1n are a plurality of individual processes, and 21 is a kernel. These individual processes 11
~1n and the kernel 21 are provided with a system management process 31, a process management table 32, and a resource management table 32.
【0007】システム管理プロセス31は個々のプロセ
ス11〜1nのうち、最初にシステムを構成する個々の
プロセスを起動し、そのステータスをプロセス管理テー
ブル32に記入する。生成されたプロセスは正常終了時
又は異常終了時などステータスが変化した場合にそれを
プロセス管理テーブル32に記録する。それはシステム
を構成する全プロセスが参照できるテーブルに記録され
るものとする。これによりシステムを構成する個々のプ
ロセスは自分以外のプロセスのステータスを参照可能に
なり、あるプロセスが起動したかどうかの確認や異常終
了したプロセスがあるかどうかの確認が可能となる。[0007] The system management process 31 starts up the individual processes composing the system first among the individual processes 11 to 1n, and records the status in the process management table 32. When the status of the generated process changes, such as when it ends normally or abnormally, it is recorded in the process management table 32. It shall be recorded in a table that can be referenced by all processes that make up the system. This allows each process that makes up the system to refer to the status of processes other than itself, allowing it to check whether a certain process has started or whether any process has terminated abnormally.
【0008】次に資源獲得の例を示す。先ず、システム
管理プロセス31はカーネル21より資源(セマフォ、
共有メモリ等)を一括して獲得し、それを使用するのに
必要なキーを得る。次に、システム管理プロセス31は
そのキーを資源管理テーブル33に記録する。これはシ
ステムを構成する全プロセスが参照できるテーブルに記
録されるものとする。これによりシステムを構成する個
々のプロセス11〜1nは資源を使用する際に資源管理
テーブル33に記録されているキーを用いることにより
、カーネル21から資源を獲得するためのコーディング
を必要とすることなく資源を使用できる。又、複数個の
非常駐のプロセスが同一の資源を使用する際に、どのプ
ロセスが最初に資源を獲得しどのプロセスが最後に資源
を開放するかという問題を、システム管理プロセス31
が最初に資源を獲得し最後に資源を解放することにより
、回避することができる。尚、図1における丸付数字は
手順の順番を示すものである。ここで、本発明は前記実
施例に限定されるものではなく、その構成要素や形態に
種々の変形例を含むものである。Next, an example of resource acquisition will be shown. First, the system management process 31 receives resources (semaphores,
shared memory, etc.) and obtain the keys necessary to use it. Next, the system management process 31 records the key in the resource management table 33. This shall be recorded in a table that can be referenced by all processes that make up the system. As a result, the individual processes 11 to 1n that make up the system use the keys recorded in the resource management table 33 when using resources, without the need for coding to acquire resources from the kernel 21. Resources can be used. In addition, when multiple non-resident processes use the same resource, the system management process 31 solves the problem of which process acquires the resource first and which process releases the resource last.
can be avoided by acquiring resources first and releasing them last. Note that the circled numbers in FIG. 1 indicate the order of the steps. Here, the present invention is not limited to the above-mentioned embodiments, but includes various modifications in its constituent elements and forms.
【0009】[0009]
【発明の効果】以上説明したように本発明は、システム
管理プロセスと、個々のプロセスのステータスを記録す
るプロセス管理テーブルと、カーネルより獲得した資源
をそのキーと共に記録する資源管理テーブルとを備えて
いるので、プロセス管理テーブルを参照することで、個
々のプロセスの状態を把握し、それらが異常終了した場
合に他のプロセスがその異常を確認できる。又、資源管
理テーブルを参照することで資源を利用するためのキー
を得ることができ、個々のプロセスが資源を獲得、解放
するための手間を簡略化することができる効果もある。As described above, the present invention includes a system management process, a process management table that records the status of individual processes, and a resource management table that records resources acquired from the kernel together with their keys. Therefore, by referring to the process management table, the status of each process can be grasped, and if one of them terminates abnormally, other processes can confirm the abnormality. Additionally, by referring to the resource management table, keys for using resources can be obtained, which has the effect of simplifying the effort required for individual processes to acquire and release resources.
【図1】本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.
【図2】従来のソフトウェアシステムの構成図である。FIG. 2 is a configuration diagram of a conventional software system.
11〜1n 個々のプロセス 21 カーネル 31 システム管理プロセス 32 プロセス管理テーブル 33 資源管理テーブル 11-1n Individual processes 21 Kernel 31 System management process 32 Process management table 33 Resource management table
Claims (1)
ロセスと、これら個々のプロセスに接続されるカーネル
とを備えるソフトウェアシステムにおいて、個々のプロ
セスの生成及び管理機能並びに資源の獲得機能を有する
システム管理プロセスと、このシステム管理プロセスが
生成、管理する個々のプロセスのステータスを記録する
プロセス管理テーブルと、前記システム管理プロセスが
カーネルより一括して獲得した資源をそのキーと共に記
録する資源管理テーブルとを備えることを特徴とするソ
フトウェアシステム。Claim 1: A system management system having a function of creating and managing individual processes and a function of acquiring resources in a software system comprising a plurality of individual processes constituting the system and a kernel connected to these individual processes. A process management table that records the status of processes and individual processes generated and managed by this system management process, and a resource management table that records resources acquired collectively from the kernel by the system management process together with their keys. A software system characterized by:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3214291A JPH04246731A (en) | 1991-01-31 | 1991-01-31 | Software system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3214291A JPH04246731A (en) | 1991-01-31 | 1991-01-31 | Software system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04246731A true JPH04246731A (en) | 1992-09-02 |
Family
ID=12350649
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3214291A Pending JPH04246731A (en) | 1991-01-31 | 1991-01-31 | Software system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04246731A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9253046B2 (en) | 1998-09-10 | 2016-02-02 | International Business Machines Corporation | Controlling the state of duplexing of coupling facility structures |
-
1991
- 1991-01-31 JP JP3214291A patent/JPH04246731A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9253046B2 (en) | 1998-09-10 | 2016-02-02 | International Business Machines Corporation | Controlling the state of duplexing of coupling facility structures |
US9565013B2 (en) | 1998-09-10 | 2017-02-07 | International Business Machines Corporation | Controlling the state of duplexing of coupling facility structures |
US9860315B2 (en) | 1998-09-10 | 2018-01-02 | International Business Machines Corporation | Controlling the state of duplexing of coupling facility structures |
US10491675B2 (en) | 2001-10-01 | 2019-11-26 | International Business Machines Corporation | Controlling the state of duplexing of coupling facility structures |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI267782B (en) | Deallocation of computer data in a multithreaded computer | |
US5251317A (en) | Computer system with an access control unit for resource | |
US20030105843A1 (en) | Input/output device information management system for multi-computer system | |
CN111984601A (en) | Log file deleting method and device, electronic equipment and storage medium | |
JPH04246731A (en) | Software system | |
JPH0218635A (en) | Decentralized process file control system | |
JP3770729B2 (en) | Network output device | |
JPH05289892A (en) | Computer system | |
JP2679590B2 (en) | Information processing system | |
JP2001067238A (en) | Distributed exclusion and sharing control method and device therefor, and machine-readable recording medium where program is precorded | |
JPH06208488A (en) | File distribution system | |
JPH09146882A (en) | Login computer selection system | |
JPH04223537A (en) | Image file storing system | |
JPH0833856B2 (en) | Serial number management method | |
JP3405794B2 (en) | Multiprocessor system | |
JPH01106217A (en) | Parallel storage/reading type data processor | |
CN116225605A (en) | Cloud-executed request scheduling method, computer device and computer-readable storage medium | |
JP2968756B2 (en) | Internal resource matching method and apparatus in multiprocessor system | |
JPH11161579A (en) | Management object instance initial generator and computer readable recording medium | |
JPS63133232A (en) | System for generating task discrimination name | |
JPH1011346A (en) | Database update device | |
JPH10149291A (en) | How to register applications in batch on machines on the network | |
JPH03132830A (en) | Trace information storing system | |
JPH09247234A (en) | Communication device | |
JPH03282843A (en) | File conversion program system referring to rule file |