JPS60103457A - Resource control system for computer system - Google Patents

Resource control system for computer system

Info

Publication number
JPS60103457A
JPS60103457A JP21066083A JP21066083A JPS60103457A JP S60103457 A JPS60103457 A JP S60103457A JP 21066083 A JP21066083 A JP 21066083A JP 21066083 A JP21066083 A JP 21066083A JP S60103457 A JPS60103457 A JP S60103457A
Authority
JP
Japan
Prior art keywords
resource
program
resources
packet
logical
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
JP21066083A
Other languages
Japanese (ja)
Inventor
Osamu Suzuki
治 鈴木
Ichiro Kawashima
一郎 川島
Atsushi Nakamura
敦史 中村
Haruhisa Ootomo
大友 晴比佐
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP21066083A priority Critical patent/JPS60103457A/en
Publication of JPS60103457A publication Critical patent/JPS60103457A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the overhead phenomena by controlling the logical resources used by a computer system with numbers, and referring to an index. CONSTITUTION:A resource security request is fed from a program by means of the resource number alloted to each resources. Then a resource control program 4 obtains a resource control area from the resource number and with reference to an index and then decides whether the control area of the corresponding resource number is idle or not from a security PID of resources K(=1-n). When said control area is idle, the resources K is alloted to the control area. While a resource packet related to the program 4 is allocated to the control area while another program is securing the resources K. Then the queue links which link the corresponding resource packet to the resorces K with another resource packet so far secured in the order of the priority are rearranged, and the program 4 is put under a queuing mode.

Description

【発明の詳細な説明】 本発明は、コンピュータシステムにおける資源管理方式
に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a resource management method in a computer system.

プロセス制御用コンピュータシステムなどリアルタイム
システムに用意されるオペレーティングシステムでは、
メそリエリア、入出力機器、共通すブルーチン等の各種
論理資源を排他的に使用するための資源管理も迅速に行
なわれることが望まれる。
Operating systems provided for real-time systems such as process control computer systems are
It is also desired that resource management for exclusive use of various logical resources such as memory areas, input/output devices, and common blue routines be performed quickly.

一般のオペレーティングシステムが提供する資源の排他
制御機構は、システムサービスプログラムが各種プログ
ラム(ジョブ、タスク)から要求される資源を選択され
た優先順位等に従って割当てている。この割当てに論理
資源をシンボル(コード)で識別するため、割当処理時
間におけるオーバヘッドが大きくなり、リアルタイムシ
ステムに要求される処理時間を満足できないことがある
Oまた、イベントドリブン型(事象発生時処理製)では
排他制御時に多くのプログラムの競合が発生し、オーバ
ヘッドが大きくなってリアルタイム向きではなかった。
In an exclusive resource control mechanism provided by a general operating system, a system service program allocates resources requested by various programs (jobs, tasks) according to selected priorities. Since the logical resources are identified by symbols (codes) for this allocation, the overhead in the allocation processing time becomes large, and the processing time required for a real-time system may not be satisfied. ), competition among many programs occurred during exclusive control, resulting in large overhead and was not suitable for real-time.

本発明の目的は、資源管理のオーバヘッドを短縮できる
資源管理方式を提供するにある。
An object of the present invention is to provide a resource management method that can reduce the overhead of resource management.

本発明は、システム−で使用される論理資源を番号で管
理し、インデックス参照を行なうことによりオーバヘッ
ドを減らすことを特徴とする。
The present invention is characterized in that logical resources used in the system are managed by numbers and overhead is reduced by performing index reference.

第1図は本発明方式の全体構成図である。システムバス
1によってCPU2. メモリ3.入出力機器り、 −
Dnが結合されるコンピュータシステムにおいて、メモ
リ3に確保するオペレーティングシステムO8構築のた
めの管理(モニタ)プログラム、処理プログラムのうち
、処理プログラム中のサービスプログラムの1つKなる
資源管理機構として、資源管理プログラム4と資源管理
エリア5と資源パケット6が用意される。資源管理エリ
ア5と資源パケット6はダイナミックメモリ中に確保さ
れる。
FIG. 1 is an overall configuration diagram of the system of the present invention. By system bus 1, CPU2. Memory 3. Input/output equipment, −
In the computer system to which Dn is connected, among the management (monitor) program and processing program for constructing the operating system O8 secured in the memory 3, resource management is performed as a resource management mechanism called K, one of the service programs in the processing program. A program 4, a resource management area 5, and a resource packet 6 are prepared. Resource management area 5 and resource packet 6 are secured in dynamic memory.

資源管理プログラム4は、各種プログラムからの論理資
源(CPU、入出力機器、メモリ)要求。
The resource management program 4 requests logical resources (CPU, input/output devices, memory) from various programs.

解放に対して資源管理エリア5と資源パケット6を参照
して割当て、解放する。
The resource management area 5 and resource packet 6 are referred to for allocation and release.

資源管理エリア5は、第2図に示すデータ構成にされる
。ヘッダデータとしてはコンピュータシステムに結合さ
れる資源数と資源管理エリア(図示では資源番号1から
n4での管理エリア)サイズが設定される。管理エリア
には各資源に対応づけた番号1〜ntでのn個のエリア
を設定し、各エリアには資源K(1〜n)確保プログラ
ム認識番号(PID)と待行列ヘッダが設けられる。例
えば資源番号1管理エリアには資源1としてプリンタが
割当てられ現在該プリンタを確保しているプログラム番
号が資源1確番PIDに書込まれ、該プログラムがプリ
ンタをシステムに返却したときに次に該プリンタの使用
を要求しているプログラム群の資源要求待ち行列のうち
の先頭のヘッダが待行列ヘッダに書込まれる。
The resource management area 5 has the data structure shown in FIG. As header data, the number of resources coupled to the computer system and the size of the resource management area (in the illustration, the management area with resource numbers 1 to n4) are set. In the management area, n areas with numbers 1 to nt corresponding to each resource are set, and each area is provided with a resource K (1 to n) securing program identification number (PID) and a queue header. For example, a printer is assigned as resource 1 to the resource number 1 management area, the program number currently securing the printer is written to the resource 1 reserved number PID, and when the program returns the printer to the system, the next printer is allocated. The header at the head of the resource request queue of the program group requesting use of the printer is written to the queue header.

資源パケット6は第3図に示すデータ構成にされる。待
行列リンクは各資源パケットの資源要求待ち行列をリン
ク構成するもので、資源要求順が当該パケットの次順に
当るパケットの先頭アドレスが書込まれる@資源パケッ
トサイズは当該資源パケット6のサイズ(パケットワー
ド数)が書込まれ、資源待ちPIDには当該パケットに
対応する資源要求プログラム認識番号が書込まれ、プラ
イオリティには資要要求プログラム群の優先番号が書込
まれ、同期番号には他のプログラムとの同期制御を必要
とするときの番号データが書込まれる。
The resource packet 6 has the data structure shown in FIG. The queue link configures the resource request queue of each resource packet, and the start address of the packet whose resource request order is next to the packet is written @Resource packet size is the size of the resource packet 6 (packet The resource requesting program recognition number corresponding to the packet is written to the resource waiting PID, the priority number of the resource requesting program group is written to the priority, and the synchronization number is written to the resource requesting program recognition number corresponding to the packet. Number data is written when synchronization control with the program is required.

こうした資源管理エリア5と資源パケット6を使って資
源管理プログラム4が論理資源を番号で管理し、インデ
ックス参照を行なうことにょシオーバヘッドを減らした
資源割当てを行なう。この資源管理プログラム4は第4
図及び第5図のフローチャートで示す構成にされる。
Using these resource management areas 5 and resource packets 6, the resource management program 4 manages logical resources by number, and performs resource allocation with reduced overhead by performing index reference. This resource management program 4 is the fourth
The configuration shown in FIG. 5 and the flowchart in FIG. 5 is adopted.

第4図において、プログラムからの資源確保要求が各資
源に割当てられた資源番号でなされると、資源管理プロ
グラム4は資源番号からインデックス参照によって資源
管理エリアをめ(ステップ81)、当該資源番号の管理
エリアが突きが否かを資源K (=1〜n)確保PID
がら判別しくステップ82)、空きのときには当該資源
Kを割当て(ステップS3)、他のプログラムが当該資
源Kを確保中には資源要求プログラムについての資源パ
ケット(第3図)をアロケートシ(ステップs4)、当
該資源パケットを当該資源Kにそれまで確保されている
他の資源パケットとの間でプライオリティ順につなぐ待
行列リンクの再配列をしくステップ85)、当該資源要
求プログラムを待ちにする(ステップ86)。
In FIG. 4, when a resource reservation request from a program is made using the resource number assigned to each resource, the resource management program 4 locates the resource management area by index reference from the resource number (step 81), and Resource K (=1 to n) is secured PID to determine whether the management area is pierced or not.
If the resource K is free, the resource K is allocated (step S3), and if another program is securing the resource K, the resource packet (FIG. 3) for the resource requesting program is allocated (step s4). , rearrange the queue links that connect the resource packet in priority order with other resource packets that have been reserved for the resource K (step 85), and make the resource requesting program wait (step 86). .

次に、資源確保したプログラムが資源使用を終了してそ
の解放を資源番号で要求したとき、資源管理プログラム
4社、第5図に示すように、当該資源番号からインデッ
クス参照によって資源管理エリア(第2図)の資源番号
にの管理エリアを空きにしくステップ511)、当該管
理エリアにの待行列ヘッダから当該資源の要求待ち有無
を判定しくステップ512)、無い場合には解放終了と
し、有る場合に資源にの待ちプログラム群のうち先頭パ
ケットを待行列ヘッダから取出しくステップ513)、
当該パケットに書込まれている資源待ちPII)から当
該プログラムに資源Kを割当て(ステップ514)、資
源管理エリアの当該資源番号にのエリアに資源確保プロ
グラム認識番号を入れたり、残りの資源パケットの待行
列リンクを再配置する資源パケットのデアロケートをし
くステップ515)、t#理エリアに登録されるプログ
ラムの待ちを解除する(ステップ816 )。
Next, when the program that has secured the resource finishes using the resource and requests its release using the resource number, the four resource management programs use the resource management area (the resource management area ( The management area corresponding to the resource number in Figure 2) is made vacant (step 511), and it is determined from the queue header of the management area whether a request for the resource is pending or not (step 512), and if there is no resource, release is completed, and if there is Step 513) of extracting the first packet from the queue header among the programs waiting for the resource;
Allocate resource K to the program from the resource waiting PII written in the packet (step 514), enter the resource securing program recognition number in the area for the resource number in the resource management area, or A resource packet is deallocated to relocate the queue link (step 515), and the program registered in the t# management area is released from the queue (step 816).

なお、パケットの待行列リンク構築にはデッドロック防
止も含めた優先順位にした資源待行列にされる。
In addition, when constructing a packet queue link, a resource queue is created with priorities including deadlock prevention.

以上のとおり、本発明方式によれば、論理資源を番号で
管理し、介源管理エリアがその資源番号順にしてインデ
ックス参照によって当該資源のアクセスにおけるオーバ
ヘッドが最小となるし、論理資源の待ちを待行列で管理
するため資源解放時のオーバヘッドが最小となることか
ら資源管理のオーバヘッドを減らすことができる。また
、ダイナミックメモリ中に全てのデータ(資源管理エリ
ア、資曽バケット)構成を持たせることができ、資源数
の増減にもプログラムの変更なしに対応できてメンテナ
ンス性が高くなる。
As described above, according to the method of the present invention, logical resources are managed by number, and the overhead in accessing the resource is minimized by referring to the index in the resource management area in the order of the resource number, and the waiting time for the logical resource is minimized. Since resources are managed in a queue, the overhead when releasing resources is minimized, so the overhead of resource management can be reduced. Furthermore, all the data (resource management area, resource bucket) configuration can be stored in the dynamic memory, and the increase or decrease in the number of resources can be handled without changing the program, improving maintainability.

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

第1図は本発明方式の全体構成図、第2図は第1図にお
ける資源管理エリアの構成図、第3図は第1図における
資源パケットの構成図、第4図及び第5図は第1図にお
ける資源管理プログラムのフローチャートである。 2・・・叫・・CPU 3・・・明・・メモリJ)−、
Dn−、入出力機器 4・・・資源管理プログラム5・
・・資源管理エリア 6・・・資源パケット第 I Y
:’、::  6 ’4..”、”、2g”、;( ir)3 !・≧[
FIG. 1 is an overall configuration diagram of the system of the present invention, FIG. 2 is a configuration diagram of the resource management area in FIG. 1, FIG. 3 is a configuration diagram of the resource packet in FIG. 1, and FIGS. 2 is a flowchart of the resource management program in FIG. 1; 2...Scream...CPU 3...Bright...Memory J)-,
Dn-, input/output equipment 4...Resource management program 5.
...Resource management area 6...Resource packet No. I Y
:', :: 6 '4. .. ”,”,2g”,;(ir)3 !・≧[

Claims (1)

【特許請求の範囲】[Claims] (1) コンピュータシステムが持つ各種論理資源を各
種プログラムの要求に従って排他的に割当てる資源管理
方式において、各論理資源に対応づけた番号の管理エリ
ア群を持ち各管理エリアに現在車紋論理資源を確保する
プログラムli!!識番号と当該論理資源を要求するプ
ログラム群の資源要求時ぢ行列のヘッダのデータを持つ
資源管理エリアと、この資源管理エリアの各資源番号毎
に資源要求する各プログラムについてヘッダデータと共
に待行列リンクを構築するための待行列リンク及びプロ
グラム認識番号のデータを持つ資源パケット群と、各種
プログラムからの論理資源要求、解放が資源番号で要求
され該資源番号をイ゛ンデツクス参照で上記資源管理エ
リアに対応づけ当該エリアの資源の認識及び上記資源パ
ケットとの待行列リンクから当該プログラムに対する資
源確保、資源解放を管理する資源管理プログラムとを備
えたことを特徴とするコンピュータシステムにおける資
源管理方式。
(1) In a resource management method that exclusively allocates various logical resources of a computer system according to the requests of various programs, there is a group of management areas with numbers corresponding to each logical resource, and the current car pattern logical resources are secured in each management area. Program li! ! A resource management area that has the identification number and the header data of the resource request queue of the program group that requests the logical resource, and the queue link along with the header data for each program that requests resources for each resource number in this resource management area. A group of resource packets with data on queue links and program recognition numbers for constructing the ``Resource Packets'', logical resource requests and releases from various programs are requested by resource numbers, and the resource numbers are stored in the resource management area mentioned above by referring to the index. A resource management method in a computer system, comprising: a resource management program that manages resource reservation and resource release for the program based on the recognition of the resources in the corresponding area and the queue link with the resource packet.
JP21066083A 1983-11-09 1983-11-09 Resource control system for computer system Pending JPS60103457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21066083A JPS60103457A (en) 1983-11-09 1983-11-09 Resource control system for computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21066083A JPS60103457A (en) 1983-11-09 1983-11-09 Resource control system for computer system

Publications (1)

Publication Number Publication Date
JPS60103457A true JPS60103457A (en) 1985-06-07

Family

ID=16592990

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21066083A Pending JPS60103457A (en) 1983-11-09 1983-11-09 Resource control system for computer system

Country Status (1)

Country Link
JP (1) JPS60103457A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62209635A (en) * 1986-02-07 1987-09-14 Fujitsu Ltd Access system for system control file of asynchronous communication

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62209635A (en) * 1986-02-07 1987-09-14 Fujitsu Ltd Access system for system control file of asynchronous communication

Similar Documents

Publication Publication Date Title
US7810098B2 (en) Allocating resources across multiple nodes in a hierarchical data processing system according to a decentralized policy
DE69729822T2 (en) Real-time dispatcher
US5642508A (en) Distributed control method and apparatus for job execution
US7080377B2 (en) Method for effective utilizing of shared resources in computerized system
JPH0644235B2 (en) How to operate a computer system
US7770177B2 (en) System for memory reclamation based on thread entry and release request times
JPH0628323A (en) Process execution control method
US6754658B1 (en) Database server processing system, method, program and program storage device
JPS60103457A (en) Resource control system for computer system
JPH05204875A (en) Scheduling system for thread
JP2692647B2 (en) Multitask control method and control system
JPH06197144A (en) Cmmunication line capture system
JPH02204838A (en) Task priority managing system
KR100678249B1 (en) Apparatus and method for managing memory and ipc task
JPS61136134A (en) Queue resource control system
JPH11191076A (en) Information processor
JPS6079461A (en) Load dispersing system
JP2007179248A (en) Method, program and apparatus for computer management
JPH0778090A (en) Priority scheduling method for job
JPH09282185A (en) Real-time system and resource managing method for the same
JPS63245530A (en) Shared resource pool managing system
JPH02112030A (en) System for exclusive control
JPH0833831B2 (en) Occupation management method for shared resources
JPS62226236A (en) Intermission and restart processing system for state waiting resources in transaction processing system
JPS62100856A (en) Lock processing system for input and output system