JPS63245530A - Shared resource pool managing system - Google Patents

Shared resource pool managing system

Info

Publication number
JPS63245530A
JPS63245530A JP62078928A JP7892887A JPS63245530A JP S63245530 A JPS63245530 A JP S63245530A JP 62078928 A JP62078928 A JP 62078928A JP 7892887 A JP7892887 A JP 7892887A JP S63245530 A JPS63245530 A JP S63245530A
Authority
JP
Japan
Prior art keywords
shared
resources
user
resource
shared resources
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.)
Granted
Application number
JP62078928A
Other languages
Japanese (ja)
Other versions
JP2518268B2 (en
Inventor
Shuichi Ogawa
修一 小川
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 JP62078928A priority Critical patent/JP2518268B2/en
Publication of JPS63245530A publication Critical patent/JPS63245530A/en
Application granted granted Critical
Publication of JP2518268B2 publication Critical patent/JP2518268B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5014Reservation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/504Resource capping
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

PURPOSE:To reduce queuing at the time of reserving a shared resource by providing a shared resource management mechanism which permits declaration of the number of shared resources for frequent use at the time of declaring said number by a certain program unless this number exceeds a maximum value. CONSTITUTION:When a user application program (AP) 140 declares the number of shared resources for frequent use, a shared resource management mechanism 130 permits this declaration unless a number 114 of all shared resources for frequent use in a pool management table 110 exceeds a maximum number 115 of shared resources for frequent use, but the mechanism 130 rejects the declaration if the number 114 exceeds the maximum number 115. Permitted and reserved shared resources for frequent use are inhibited from being used by the other APs, and idle shared resources are used as shared resources for frequent use. Queuing at the time of reserving shared resources is suppressed by this management based on the maximum number of shared resources for frequent use.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は共用資源プール管理方式に関し、特に、管理プ
ログラムとユーザAP(アプリケーションプログラム)
群との間の情報交換のためのプロセス間共用資源などの
プール管理において、特定のユーザAPを無駄に待ち合
わせさせたくないような場合には予め必要な資源の数を
宣言しておけばそのユーザAP以外のユーザAPが多数
の共用資源を使っているときでも資源確保における待合
せを極力防止でき、さらにユーザAPは資源確保や返却
の手続きを必要資源の宣言にとられれない形態でも自由
に実行できる共用資源プール管理方式%式% 〔従来の技術〕 管理プログラムと呼ばれるオンラインを管理するプログ
ラムと、そのオンライン機能を用いる複数のユーザAP
とが存在し、ユーザAPは互いに独立に動作するプロセ
スであるが管理プログラムと各々のユーザAPは互いに
関連しあって動作する情報処理システム等においては、
管理プログラムとユーザAPとのデータ交換等のための
共有資源がプール管理されている。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a shared resource pool management method, and in particular, to a management program and a user AP (application program).
When managing pools such as inter-process shared resources for exchanging information between groups, if you do not want a specific user AP to wait unnecessarily, you can declare the number of resources required in advance. Even when user APs other than the AP are using a large number of shared resources, it is possible to prevent queuing when securing resources as much as possible, and furthermore, user APs can freely execute procedures for securing and returning resources even if they are not specified in the declaration of necessary resources. Shared resource pool management method % formula % [Prior art] A program that manages online called a management program and multiple user APs that use the online function.
In an information processing system, etc., in which there are two processes, and the user APs are processes that operate independently of each other, but the management program and each user AP operate in relation to each other.
Shared resources for data exchange between the management program and the user AP are managed in a pool.

上述のようなプロセス間共用資源の従来のプール管理方
式について、第5図を参照しながら詳細に説明する。
The conventional pool management method for inter-process shared resources as described above will be explained in detail with reference to FIG.

第5図において、500はプロセス間共用メモリ(図示
せず)上の空きのプロセス間共用資源、501は空き資
源をまとめるための資源リンクフィールド、510は空
き資源のプール管理テーブルで、資源プールリンク51
1.全資源数512.資源プールに存在する空き資源数
513を管理している。また、520はこれらを管理す
る共用資源管理機構である。一方、530は上記共用資
源を実際に使用するユーザAPであり、確保した資源を
覚えておくための資源ポインタ531を持っている。ま
た、502は割当て済みの共用資源である。
In FIG. 5, 500 is a free inter-process shared resource on the inter-process shared memory (not shown), 501 is a resource link field for grouping free resources, and 510 is a pool management table for free resources. 51
1. Total number of resources: 512. It manages the number 513 of free resources existing in the resource pool. Further, 520 is a shared resource management mechanism that manages these. On the other hand, 530 is a user AP that actually uses the shared resources, and has a resource pointer 531 for remembering the secured resources. Further, 502 is an allocated shared resource.

従来の共用資源プール管理方式は次のように行なわれて
いた。
The conventional shared resource pool management method was performed as follows.

共用資源のおかれるプロセス間共用メモリは、以下で記
述するオンラインシステムすなわち管理プログラムとユ
ーザAP群のみならず、そのコンピュータシステム全体
において有限な資源である。
The inter-process shared memory in which shared resources are stored is a limited resource not only for the online system described below, ie, the management program and user AP group, but also for the entire computer system.

このためオンラインシステムにおいてどれだけの共用メ
モリを用いることができるかは、コンビエータシステム
をどのような目的で運用していくかによって制限される
。本オンラインシステムの起動時の共用資源管理機構5
20の処理としては、まず、本オンラインシステムでは
どれだけの共用メモリが必要かが決定され、この上でオ
ンラインシステムが実際に使用する共用資源が割り付け
られる。すなわち、プール管理テーブル510における
全資源数512はこれによって初期設定処理時に決定さ
れ、空きの共用資源500はおのおの資源リンクフィー
ルド501において他資源を指してリスト化され、資源
プールリンク511はこの空きの共用資源500のリス
トを指す、もちろん、空き資源数513は全資源数51
2と同じ値が設定される。
For this reason, the amount of shared memory that can be used in an online system is limited depending on the purpose for which the combiator system is operated. Shared resource management mechanism 5 at startup of this online system
As for the process 20, first, it is determined how much shared memory is required for this online system, and then the shared resources that the online system actually uses are allocated. That is, the total number of resources 512 in the pool management table 510 is determined during the initial setting process, each free shared resource 500 is listed pointing to another resource in the resource link field 501, and the resource pool link 511 is linked to this free shared resource 500. Points to the list of shared resources 500, of course the number of free resources 513 is the total number of resources 51
The same value as 2 is set.

ユーザAP530が発生し、共用資源が必要になった時
、ユーザAP530は共用資源管理機構520に対して
資源確保要求を出す、このとき共用資源管理機構520
はプール管理テーブル510の空き資源数513を調べ
、この値がOより大きい時は資源プールリンク511よ
り空きの共用資源500を一つはずす、これは資源プー
ルリンク511につながっているリスト上のある共用資
源の資源リンクフィールド501および資源プールリン
ク511を更新することによって資源プールのリストか
ら一つの共用資源をはずすということで実現する。これ
と同時に空き資源数513は1減らす。
When a user AP 530 occurs and requires a shared resource, the user AP 530 issues a resource reservation request to the shared resource management mechanism 520. At this time, the shared resource management mechanism 520
checks the number of free resources 513 in the pool management table 510, and if this value is greater than O, removes one free shared resource 500 from the resource pool link 511, which is a resource on the list connected to the resource pool link 511. This is accomplished by removing one shared resource from the resource pool list by updating the resource link field 501 and resource pool link 511 of the shared resource. At the same time, the number of free resources 513 is decreased by 1.

ユーザAP530は上記のような共用資源管理機構52
0の処理の結果、共用資源502を得ることができる。
The user AP 530 uses the shared resource management mechanism 52 as described above.
As a result of processing 0, a shared resource 502 can be obtained.

こうして得た共用資源502は、しかるべきオンライン
処理を実行したあと、確保した資源を返却しなければな
らない、このため、ユーザAP内には確保した共用資源
を覚えておくための機構が必要であり、ここでは前述し
たように確保資源ポインタ531に確保した共用資源5
02のポインタをセットするものとしている。
The shared resources 502 obtained in this way must be returned after the appropriate online processing has been executed. For this reason, a mechanism is required within the user AP to remember the shared resources that have been secured. , here, as mentioned above, the shared resource 5 secured in the secured resource pointer 531 is
02 pointer is set.

ユーザAPは上記資源ポインタ531を活用し、オンラ
イン処理が終了したあと資源を返却するであろう。返却
要求を共用資源管理機構520に対して発行すると、共
用資源管理機構520はこの共用資源502を資源プー
ルリンク511上のリストに加え、空き資源数513を
1だけ増やす。
The user AP will utilize the resource pointer 531 and return the resource after the online processing is completed. When a return request is issued to the shared resource management mechanism 520, the shared resource management mechanism 520 adds this shared resource 502 to the list on the resource pool link 511 and increases the number of free resources 513 by one.

このような基本的動作に加え、空き資源がなくなったと
きの待ち合わせ制御が共用資源管理機構520で行なわ
れる。すなわち、ユーザAP530が資ali!保要求
を発行した時、プール管理テーブル510の空き資源数
513がOだった場合、その確保要求は保留される。ま
た、他のユーザAPが資源の返却要求を発行した時、共
用資源管理機構520は保留している要求がないかどう
かを調べ、もしあれば保留している要求を解除し、その
ユーザAPに資源を与える。
In addition to these basic operations, the shared resource management mechanism 520 performs waiting control when there are no free resources. In other words, the user AP 530 uses resources! When the reservation request is issued, if the number of free resources 513 in the pool management table 510 is O, the reservation request is put on hold. Furthermore, when another user AP issues a resource return request, the shared resource management mechanism 520 checks whether there is any pending request, releases the pending request if any, and returns the request to that user AP. Give resources.

このような資源待ちによる待ち合わせ制御が働くため、
ユーザAPはオンライン処理を行なう時は待ち合わせが
生じてしまうことが常に考えられる。これに対し、ユー
ザAPはその機能によってこのような待ち合わせが発生
しては困る場合がある。
Because this kind of waiting control based on waiting for resources works,
When a user AP performs online processing, it is always conceivable that a waiting session will occur. On the other hand, depending on the function of the user AP, it may be a problem if such a waiting occurs.

待ち合わせを発生させないためには予め必要数の資源を
確保しておき、オンライン処理を行なうとき即ちその資
源が必要になったときはユーザAP自身で予め確保して
おいた資源を使うといった資源管理を行なう必要性が発
生する。
In order to prevent waits from occurring, resource management is performed such as securing the required number of resources in advance, and using the resources reserved in advance by the user AP itself when performing online processing, that is, when the resources are needed. The need to do so arises.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来の共用資源管理方式では、待ち合わせを発
生させたくないユーザAPは予め確保しておいた資源を
自分自身で管理しなければならなかった。このような場
合、資源確保にて要求保留による待ち合わせを発生させ
ないためのユーザAPにおける処理形態は、資源確保、
オンライン処理、資源返却という一連の三つ処理の繰り
返しという一般的な形態をとれず、資源確保、オンライ
ン処理の繰り返し、資源返却といった形態をとらなけれ
ばならない。即ち、予め必要な資源を確保しておけば実
際のオンライン処理のたびに資源待ち合わせの心配はい
らないので、この点からは全体の実行速度は向上する。
In the conventional shared resource management method described above, a user AP that does not want to cause a wait has to manage the resources reserved in advance by itself. In such a case, the processing form in the user AP to avoid waiting due to pending requests when securing resources is to secure resources,
Instead of the usual form of repeating a series of three processes: online processing and resource return, it is necessary to take the form of securing resources, repeating online processing, and returning resources. That is, if the necessary resources are secured in advance, there is no need to worry about waiting for resources each time an actual online process is performed, so the overall execution speed is improved from this point of view.

しかし、このような形態の場合は資源返却と資源確保と
の二つの処理分を毎回のオンライン処理実行ごとに実行
しなくなり、資源確保から返却までの時間が非常に長く
なるため、もしオンライン処理実行中に異常終了等が発
生すると、資源返却をされないパスができる可能性が高
くなる。
However, in this case, the two processes of resource return and resource reservation are not executed every time online processing is executed, and the time from resource reservation to resource return becomes extremely long. If an abnormal termination occurs during the process, there is a high possibility that a path will not be returned.

また、予め確保しておいた資源とは別の資源が必要にな
り、そのときは待ち合わせが発生しても構わないような
とき、ユーザAPは予め確保しておいた資源が余ってい
るかどうかを常に判断し、もし足りないときは資aW!
保要求を出さねばならないといった複雑な処理が必要と
なってしまう。
In addition, when a resource other than the one reserved in advance is required, and it is acceptable for a wait to occur, the user AP checks whether the reserved resource is left over or not. Always judge, and if you don't have enough, use funds aW!
Complicated processing such as having to issue a maintenance request becomes necessary.

加えて、いくつかのユーザAPが共用資源を勝手に確保
し過ぎた場合、返却はなかなか行なわれないので、ほか
の待ち合わせをしているユーザAPは長い間全く動作す
ることができない。
In addition, if some user APs secure too much shared resource without permission, it will be difficult to return it, and other user APs waiting for the shared resource will be unable to operate at all for a long time.

本発明はこのような従来の方式が持つ欠点を解決するこ
とを目的とする。
The present invention aims to solve the drawbacks of such conventional methods.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は上述した従来の欠点を解決するために、複数の
共用資源を複数のユーザAPなどのプログラムで共用す
る際の共用資源プール管理方式において、 前記複数の共用資源の管理を行なう共用資源管理機構を
有し、 この共用資源管理機構は、成るプログラムから繁用共用
資源数の宣言があったときは、予め定められた全繁用共
用資源最大数を越えないことを条件にその宣言された繁
用共用資源数の共用資源をその宣筺元のプログラム用に
確保して他のプログラムには使わせないようにすると共
に、前記宣言で確保された繁用共用資源数を使い切った
プログラムからの共用資源の確保要求および前記宣言を
行なわないプログラムから出された共用資源の確保要求
については、空きの共用資源のうち繁用共用資源として
確保されていない共用資源の中から割当てを行なう構成
を有する。
In order to solve the above-mentioned conventional drawbacks, the present invention provides a shared resource pool management system for managing a plurality of shared resources when a plurality of shared resources are shared by programs such as a plurality of user APs. When the number of frequently used shared resources is declared by a program, this shared resource management mechanism shall manage the declared number of frequently used shared resources on the condition that the total number of frequently used shared resources does not exceed the predetermined maximum number. The number of frequently used shared resources is reserved for the program that declared it so that it cannot be used by other programs, and the number of frequently used shared resources reserved by the above declaration is used up. In response to a request to secure a shared resource and a request to secure a shared resource issued from a program that does not make the above declaration, the system is configured to allocate a shared resource from among the available shared resources that are not secured as frequently used shared resources. .

〔作用〕[Effect]

共用資源管理機構がユーザAPごとに繁用共用資源数を
管理し、ユーザAPから繁用共用資源数を宣言されると
、この分の共用資源は他では確保することができないよ
うに制御する機能を持つ。
The shared resource management mechanism manages the number of frequently used shared resources for each user AP, and when the user AP declares the number of frequently used shared resources, the shared resource is controlled so that this amount of shared resources cannot be secured anywhere else. have.

これによって宣言以内の資源の確保においては共用資源
管理機構において確保処理における要求保留による待ち
合わせが生じないようにできる。
As a result, when securing resources within the declaration, it is possible to prevent the shared resource management mechanism from having to wait due to pending requests in the securing process.

こうして共用資源の割り当て数を繁用共用資源数として
集中管理することによって、ユーザAPが予め宣言する
ときに繁用共用資源数の合計が全資源数より必ず少なめ
になるように全繁用共用資源数を定め、共用資源管理機
構がこれに基づいて宣言を受は付けあるいは拒否するこ
とが可能となり、これにより宣言を行なっていないユー
ザAPは繁用共用資源として確保されている以外の空き
の共用資源を使用できる。また、資源待ちになったとし
ても、資源を確保中のほかのユーザAPがオンライン処
理等の処理を終えて資源を返却すれば確保することがで
き、確保における待ち合わせが長時間にわたることがな
くなる。このことは繁用共用資源数の宣言に失敗しても
、あるいは宣言を全く行なわなくても最低限の待ち合わ
せで資源管理、オンライン処理等の処理、資源返却のオ
ンラインサービス等を受けることが可能となることを意
味し、結局ユーザAPは宣言に依存しない形態でも資源
確保や返却の機能が使えることになる。
In this way, by centrally managing the allocated number of shared resources as the number of frequently used shared resources, all frequently used shared resources The shared resource management mechanism can accept or reject declarations based on this number, and this allows user APs that have not made declarations to use vacant shared resources other than those reserved as frequently used shared resources. Resources can be used. Furthermore, even if the resource is on standby, the resource can be secured if another user AP that is securing the resource completes processing such as online processing and returns the resource, and the waiting time for securing the resource does not take a long time. This means that even if you fail to declare the number of frequently used shared resources, or even if you do not declare them at all, you can receive resource management, online processing, online services for resource return, etc. with minimal waiting. This means that the user AP can use the functions of securing and returning resources even in a form that does not depend on declarations.

さらにユーザAPは、資源確保、オンライン処理等の処
理、資源返却といった形態でオンラインサービス等を受
けることができる。このことはこの三つの処理を実現す
る手段をマクロ定義による一つの手段としてオンライン
システム等のシステムがユーザAPに対して供給するこ
とが可能となることを意味する。こうすればユーザAP
は共用資源管理に全くとられれることなく作成すること
ができ、しかもユーザAPは繁用共用資源数の宣言さえ
行なえばオンライン処理等の実行時に共用資源確保持ち
合わせが全くないように作成することも可能となる。
Further, the user AP can receive online services in the form of resource reservation, online processing, and resource return. This means that it becomes possible for a system such as an online system to provide a means for implementing these three processes to the user AP as one means by macro definition. In this way, the user AP
can be created without having to worry about shared resource management at all, and in addition, as long as the user AP declares the number of frequently used shared resources, it can be created so that it does not have to secure shared resources at all when performing online processing, etc. It becomes possible.

〔実施例〕〔Example〕

(1)次に、本発明の実施例について図面を参照して詳
細に説明する。
(1) Next, embodiments of the present invention will be described in detail with reference to the drawings.

第1図を参照すると、本発明の一実施例は、空き資源を
空き資源プールとしてまとめるための資源リンクフィー
ルド101を有する空きのプロセス間共用資axooと
、資源プールリンク111.全資源数112.資源プー
ルに存在する空き資源数113.全繁用共用資源数11
4及び全繁用共用資源最大数115を有する空き資源の
プール管理テーブル110と、ユーザAP識別名121
.J用共用資源数122.共用資源確保数123および
確保資源リスト124を有する複数個のユーザAP管理
テーブル120と、さらにこれらを管理する共用資源管
理機構130と、この資源を実際に使用するユーザAP
140と、あるユーザAPに割当てられた共用資源10
2とを含み、割当て済の共用資源102は資源リンクフ
ィールド103でまとめられている。
Referring to FIG. 1, one embodiment of the present invention includes free interprocess shared resources axoo having a resource link field 101 for grouping free resources into a free resource pool, and resource pool links 111 . Total number of resources: 112. Number of free resources in the resource pool: 113. Total number of frequently used shared resources: 11
4 and a pool management table 110 for free resources having a maximum number of all frequently used shared resources 115, and a user AP identification name 121.
.. Number of shared resources for J: 122. A plurality of user AP management tables 120 having the number of shared resources secured 123 and a secured resource list 124, a shared resource management mechanism 130 that further manages these, and user APs that actually use these resources.
140 and a shared resource 10 allocated to a certain user AP
2 and the allocated shared resources 102 are grouped together in a resource link field 103.

システムによってプロセス間共用資源のもてる数が決ま
り、この数をプール管理テーブル110の全資源数11
2と空き資源数113に予め登録しておき、またこの数
分の共用資源が作成され、資源リンクフィールド101
によってプール管理テーブル110にリストを形成して
つなげておく。また、全てのユーザAPの宣言した繁用
共用資源数の合計の許容できる最大値を、プール管理テ
ーブル110の全繁用共用資源最大数115に登録して
おく、この数は全資源数112以上であつてはならない
、更に全繁用共用資源数114は0を格納しておく。そ
して、ユーザAP管理テーブル120は全て未使用であ
るよう初期化しておく。このため、各ユーザAP管理テ
ーブル120のユーザAP識別名121は全て、ユーザ
API別名としてありえない値を格納しておく。
The system determines the number of inter-process shared resources that can be shared, and calculates this number as the total resource number 11 in the pool management table 110.
2 and the number of free resources 113, and this number of shared resources is created and the resource link field 101 is registered in advance.
A list is formed and linked in the pool management table 110 by the following steps. In addition, the maximum allowable total number of frequently used shared resources declared by all user APs is registered in the maximum number of all frequently used shared resources 115 of the pool management table 110, and this number must be greater than or equal to the total number of resources 112. The total number of frequently used shared resources 114 should not be 0. The user AP management table 120 is initialized so that it is all unused. For this reason, all the user AP identification names 121 in each user AP management table 120 are stored with impossible values as user API aliases.

(2)次に、本実施例の動作について、図面を参照して
説明する。
(2) Next, the operation of this embodiment will be explained with reference to the drawings.

(2−1)  ユーザAP140が繁用共用資源数を共
用資源管理機構130に対して宣言したときの動作を、
第2図を用いて説明する。
(2-1) The operation when the user AP 140 declares the number of frequently used shared resources to the shared resource management mechanism 130 is as follows.
This will be explained using FIG.

共用資源管理機構130はユーザAP140から前記宣
言が為されると、まず、複数のユーザAP管理テーブル
120のなかで、ユーザAP識別名121が要求を出し
たユーザAPを示すものを探索する(処理201)、そ
して、探索は成功したがどうかを判断しく処理202)
、成功すれば処理207へ進み、失敗したら今度は複数
のユーザAP管理テーブル120のなかで、ユーザAP
識別名121がありえない値であるユーザAP管理テー
ブル即ち未使用のユーザAP管理テーブルを探す(処理
2o3)。そして、探索が成功したかどうかを判断しく
処理2o4)、もし失敗したらユーザA P 140か
らの繁用共用資源数宣言要求を拒否する(処理2o5)
。また見つかれば、その見つけたユーザAP管理テーブ
ルにおいて、繁用共用資源数122および共用資源確保
数123に0をセットする(処理206)。
When the shared resource management mechanism 130 receives the declaration from the user AP 140, it first searches among the plurality of user AP management tables 120 for the user AP whose user AP identification name 121 indicates the user AP that issued the request (processing). 201), and then determines whether the search was successful or not. 202)
, if successful, the process advances to step 207; if unsuccessful, the user AP management table 120 is selected.
A search is made for a user AP management table in which the identification name 121 has an impossible value, that is, an unused user AP management table (process 2o3). Then, it is determined whether the search was successful or not (process 2o4), and if it is unsuccessful, the request for declaration of the number of frequently used shared resources from user A P 140 is rejected (process 2o5).
. If found, the frequently used shared resource number 122 and shared resource secured number 123 are set to 0 in the found user AP management table (process 206).

処理207においては、共用資源管理機構130は、ユ
ーザAPからの宣言数とプール管理テーブル110の全
繁用共用資源数114とを加算し、この加算値から、処
理201あるいは処理203で探しだしたユーザAP管
理テーブルの繁用共用資源数122を引いた値を算出し
、この値がプール管理テーブル110の全繁用共用資源
最大数115より大きくなるかどうかを判断する。そし
て、もしそうであれば共用資源管理機構130はユーザ
AP140の繁用共用資源数宣言要求を拒否する (処
理20B)。
In process 207, the shared resource management mechanism 130 adds the number of declarations from the user AP and the total number of frequently used shared resources 114 in the pool management table 110, and from this added value, the resource searched in process 201 or process 203 is performed. A value is calculated by subtracting the number of frequently used shared resources 122 in the user AP management table, and it is determined whether this value is larger than the maximum number of all frequently used shared resources 115 in the pool management table 110. If so, the shared resource management mechanism 130 rejects the user AP 140's request for declaration of the number of frequently used shared resources (processing 20B).

処理207の条件を満足し、要求を受は付けると、共用
資源管理機構130は、宣言された数をプール管理テー
ブル110の全繁用共用資源数114に加え(処理20
9)、同時にプール管理テーブル110の空き資源数1
13から上記宣言された数を引く (処理210)、ま
た、見つかったユーザAP管理テーブル120について
、宣言要求を出したユーザAP140に特有のユーザA
P識別名をユーザAP11i別名121にセットする(
処理211)。
When the conditions of process 207 are satisfied and the request is accepted, the shared resource management mechanism 130 adds the declared number to the total number of frequently used shared resources 114 in the pool management table 110 (process 20
9) At the same time, the number of free resources in the pool management table 110 is 1.
13 (processing 210), and for the found user AP management table 120, the user A specific to the user AP 140 that issued the declaration request.
Set P identification name to user AP11i alias 121 (
Processing 211).

さらに上記のユーザAP管理テーブルの繁用共用資源数
122をプール管理テーブル110の全繁用共用資源数
114から引き、空き資源数113に繁用共用資源数1
22を足す、この後、そのユーザAP管理テーブルの繁
用共用資源数122に宣言された数をセットして繁用共
用資源数の宣言処理を終了する(処理212)。
Furthermore, the number of frequently used shared resources 122 in the above user AP management table is subtracted from the total number of frequently used shared resources 114 in the pool management table 110, and the number of free resources 113 is added to the number of frequently used shared resources 1.
After this, the declared number is set in the number of frequently used shared resources 122 of the user AP management table, and the process of declaring the number of frequently used shared resources is completed (process 212).

なお、ユーザAPが繁用共用資源数宣言を解除するには
、繁用共用資源数を0であると宣言すればよい。
Note that in order for the user AP to cancel the declaration of the number of frequently used shared resources, it is sufficient to declare that the number of frequently used shared resources is 0.

(2−2>  次に、ユーザAP140が共用資源管理
機構130に対して共用資源確保要求を発行したときの
動作を第3図を用いて説明する。
(2-2> Next, the operation when the user AP 140 issues a shared resource securing request to the shared resource management mechanism 130 will be described using FIG. 3.

ユーザAP140から共用資源確保要求が与えられると
、共用資源管理機構130は、まず、複数のユーザAP
管理テーブル120のなかで、ユーザAP識別名121
が要求を出したユーザAPを示すものを探索する(処理
301)、そして、探索は成功したかどうかを判断しく
処理302)、成功すれば処理307へ進み、失敗した
ら今度は複数のユーザAP管理テーブル120のなかで
、ユーザAP識別名121がありえない値であるユーザ
AP管理テーブル120を探す(処理303)。そして
、探索が成功したかどうかを判断しく処理304)、も
し失敗したらユーザAPI40からの共用資源確保要求
を拒否する(処理305)、また見つかれば、そのユー
ザAP管理テーブル120において、繁用共用資源数1
22および共用資源確保数123に0をセントし、また
ユーザAP識別値をユーザAPIII別名121にセッ
トする(処理306)、そして、処理307へ進む。
When a shared resource reservation request is given from the user AP 140, the shared resource management mechanism 130 first
In the management table 120, the user AP identification name 121
searches for something that indicates the user AP that issued the request (process 301), and then determines whether the search was successful or not (process 302). If successful, the process advances to process 307; if unsuccessful, it is time to manage multiple user APs. A user AP management table 120 in which the user AP identification name 121 has an impossible value is searched for in the table 120 (process 303). Then, it is determined whether the search was successful or not (process 304), and if it is unsuccessful, the shared resource reservation request from the user API 40 is rejected (process 305), and if it is found, the frequently used shared resource is Number 1
22 and the number of reserved shared resources 123, and sets the user AP identification value to the user API III alias 121 (process 306), and then proceeds to process 307.

処理307においては、共用資源管理機構130は、処
理301或いは処理303で探しだしたユーザAP管理
テーブル120において、繁用共用資源数122と共用
資源確保数123を比較する。そして、もし共用資源確
保数123が繁用共用資源数122を越えていなければ
処理311へ進み、それ以上であれば、プール管理テー
ブル110内の空き資源数113を調べる(処理308
)。そして、この空き資源数113が0であれば現在確
保要求を満たす資源はないため、本要求は保留とする(
処理309)。なお、保留の方法については既存の技術
を使用することができる。
In process 307, the shared resource management mechanism 130 compares the number of frequently used shared resources 122 and the number of secured shared resources 123 in the user AP management table 120 found in process 301 or process 303. If the number of reserved shared resources 123 does not exceed the number of frequently used shared resources 122, the process advances to process 311, and if it is greater than that, the number of free resources 113 in the pool management table 110 is checked (process 308).
). If the number of free resources 113 is 0, there are currently no resources that satisfy the reservation request, so this request is put on hold (
Processing 309). Note that existing technology can be used for the reservation method.

他方、空き資源数113がOより大きければ、これから
1を引く (処理310)。そして、処理311へ進む
On the other hand, if the number of free resources 113 is greater than O, 1 is subtracted from it (process 310). Then, the process advances to process 311.

処理311においては、共用資源管理機構130は、プ
ール管理テーブル110内の資源プールリンク111に
つながっている空きの共用資1xooのリストから一つ
の共用資源をはずして、確保要求の結果とする。この外
した共用資源すなわち第1図では共用資源102はユー
ザAP管理テーブル120における確保資源リスト12
4につなげる。そして、ユーザAP管理テーブル120
の共用確保資源数123をこのとき1増やす(処理31
1)。
In process 311, the shared resource management mechanism 130 removes one shared resource from the list of free shared resources 1xoo connected to the resource pool link 111 in the pool management table 110, and takes this as the result of the reservation request. This removed shared resource, that is, the shared resource 102 in FIG. 1, is the reserved resource list 12 in the user AP management table 120.
Connect to 4. And user AP management table 120
At this time, the number of shared resources 123 is increased by 1 (processing 31
1).

共用資源管理機構130における上述した二つの制御、
すなわち繁用共用資源数宣言制i(第2図)および共用
資源確保制御(第3図)は、宣言時に全宣言数つまり全
繁用共用資源数114を考慮しつつ空き資源数113を
更新することによって、空き資源が少ないときに他のユ
ーザAPの資源確保や繁用共用資源数宣言を制限するこ
とになる。これによって、繁用共用資源数宣言が成功し
たユーザAP140は、以降再度宣言をするまで資源確
保において待ち合わせることがなくなる。
The above two controls in the shared resource management mechanism 130,
That is, the frequently used shared resource number declaration system i (Figure 2) and the shared resource reservation control (Figure 3) update the number of free resources 113 while taking into account the total number of declarations, that is, the total number of frequently used shared resources 114 at the time of declaration. As a result, when there are few free resources, resource reservation for other user APs and declaration of the number of frequently used shared resources are restricted. As a result, the user AP 140 that has successfully declared the number of frequently used shared resources will not have to wait to secure resources until it declares again.

(2−3)  本実施例では上述の(2−1) 、 (
2−2)で述べた二つの制御に加え、共用資源返却要求
制御を共用資源管理機構130に設けている。次に、こ
の返却要求制御について第4図を用いて説明する。
(2-3) In this example, the above (2-1), (
In addition to the two controls described in 2-2), the shared resource management mechanism 130 is provided with shared resource return request control. Next, this return request control will be explained using FIG. 4.

ユーザA P 140が共用資源返却要求を出すと、共
用資源管理機構130は、まず、複数のユーザAP管理
テーブル120のなかで、ユーザAP識別名121が要
求をだしたユーザAP140を示すものを探索する(処
理401)、そして、探索は成功したかどうかを判断し
く処理402)、失敗したらユーザAP 140からの
共用資源返却要求を拒否する(処理403)。他方、探
索に成功したときは、探しだしたユーザAP管理テーブ
ル120において、共用資源確保数123が0より大き
いこと、且つ確保資源リス日24を調べてその中に返却
要求資源が入っているか否かを確認する(処理404)
。そして、もし偽であれば、共用資源返却要求を拒否す
る(処理403)。
When the user AP 140 issues a shared resource return request, the shared resource management mechanism 130 first searches among the multiple user AP management tables 120 for the user AP identification name 121 that indicates the user AP 140 that has issued the request. Then, it is determined whether the search was successful or not (process 402), and if it is unsuccessful, the shared resource return request from the user AP 140 is rejected (process 403). On the other hand, when the search is successful, it is checked that the number of shared resources secured 123 is greater than 0 in the searched user AP management table 120, and the secured resource list date 24 is checked to see if the resource requested to be returned is included therein. (Process 404)
. If it is false, the shared resource return request is rejected (process 403).

次に、処理404で真であれば、探しだしたユーザAP
管理テーブル120において繁用共用資源数122と共
用資源確保数123を比較する(処理405)。
Next, if it is true in process 404, the found user AP
In the management table 120, the number of frequently used shared resources 122 and the number of secured shared resources 123 are compared (processing 405).

そして、もし共用資源確保数123が繁用共用資源数1
22よりも大きければ、プール管理テーブル110内の
空き資源数113を1増やしく処理406)、次の処理
407へ進み、そうでなければ直ちに処理407へ進む
If the number of shared resources secured is 123, then the number of frequently used shared resources is 1.
If the number is greater than 22, the process 406) increases the number of free resources 113 in the pool management table 110 by 1, and the process proceeds to the next process 407; otherwise, the process immediately proceeds to process 407.

処理407においては、共用ff源管理機構130は、
返却資源をプール管理テーブル110内の資源プールリ
ンク111にリストとしてつなぎ、ユーザAP管理テー
ブル120内の確保資源リスト124から外し、共用資
源確保数123を1減らす(処理407)。
In process 407, the shared ff source management mechanism 130
The returned resources are connected as a list to the resource pool link 111 in the pool management table 110, removed from the secured resource list 124 in the user AP management table 120, and the shared resource secured number 123 is decreased by 1 (processing 407).

この後、共用資源確保数123及び繁用共用資源数12
2が共に0であるかどうかを確認しく処理408)、も
しそうであればユーザAP識別名121をありえない値
として未使用状態とする (処理409)。
After this, the number of shared resources secured is 123 and the number of frequently used shared resources is 12.
2 are both 0 (process 408), and if so, the user AP identification name 121 is set to an unused state as an impossible value (process 409).

最後に、もしプール管理テーブル110の空き資源数1
13が0より大きく、且つ、確保資源保留中のユーザA
Pがあれば、第3図の確保処理を再度状みる (処理4
10)。
Finally, if the number of free resources in the pool management table 110 is 1
User A whose 13 is greater than 0 and whose reserved resources are pending
If there is P, retry the securing process in Figure 3 (processing 4
10).

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

以上説明したように本発明では、オンライン処理などに
必要な共用資源の管理機構にユーザAP等のプログラム
が同時に使う共用資源数を予め宣言できる機能を設け、
この宣言数から未使用共用資源数を制御する方式によっ
て、以下に示す効果を得ることができる。
As explained above, in the present invention, the shared resource management mechanism necessary for online processing etc. is provided with a function that can declare in advance the number of shared resources that programs such as user APs will use simultaneously.
By controlling the number of unused shared resources from this number of declarations, the following effects can be obtained.

+11  繁用共用資源数の宣言に成功したプログラム
はその宣言した数の範囲内において資il!確保要求時
に未使用資源なしによる他プログラムの資源返却待ちが
生じることがなくなる。
+11 A program that successfully declares the number of frequently used shared resources can use resources within the range of the declared number! This eliminates the need to wait for other programs to return resources due to no unused resources when making a reservation request.

(2)ユーザAP等のプログラムは資源確保持ちを生じ
させないためにオンライン処理などと資源確保返却制御
とをわけて制御しなければならないといったことがなく
なり、オンライン処理などと資源制御はまとめて行なっ
ても確保持ちが生じなくなるか或いは最低限で済むこと
によって、オンライン処理などと資源制御をまとめたマ
クロ手段をオンライン処理等の管理側で用意することが
可能となる。このためユーザAP等のプログラムは資源
管理機能を繁用共用資源数の宣言以外は全く考慮する必
要がなくなりプログラミングの記述性および保守性が向
上する。
(2) Programs such as user APs no longer have to separately control online processing and resource securing/return control in order to avoid resource securing, and online processing and resource control are performed together. By eliminating or minimizing the need for securing resources, it becomes possible for the management side for online processing to prepare a macro means that combines online processing and resource control. Therefore, programs such as user APs do not need to consider the resource management function at all except for declaring the number of frequently used shared resources, and the descriptive and maintainability of programming is improved.

(3)予め資源を特定のユーザAP等のプログラムのも
のとして他プログラムに確保させない制御を共用資源管
理機構が行なうため、全資源を特定プログラムが独占し
てしまうといったことがなくなる。すなわち、全繁用共
用資源数を制限することによって独占されることのない
共用資源を定めることができ、繁用共用資源宣言をしな
いプログラムや宣言に失敗したプログラムも資源確保時
の待ち合わせは最低限におさえることができる。すなわ
ち繁用共用資源宣言に依存しない形態でもユーザAP等
のプログラムを構築できる。
(3) Since the shared resource management mechanism performs control in advance to prevent other programs from securing resources as belonging to a program such as a specific user AP, it is no longer possible for a specific program to monopolize all resources. In other words, by limiting the total number of frequently used shared resources, it is possible to define shared resources that will not be monopolized, and even programs that do not declare frequently used shared resources or programs that fail to declare them can have minimal waiting time when securing resources. can be suppressed. That is, a program such as a user AP can be constructed without depending on frequently used shared resource declarations.

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

第1図は本発明の一実施例の構成図、 第2図は繁用共用資源数宣言要求受は付は時の共用資源
管理機構の処理例を示す流れ図、第3図は共用資源確保
要求先は付は時の共用資源管理機構の処理例を示す流れ
図、 第4図は共用資源返却要求受は付は時の共用資源管理機
構の処理例を示す流れ図および、第5図は従来方式の構
成図である。 図において、100・・・空きの共用資源、101.1
03・・・資源リンクフィールド、102・・・割当て
済みの共用資源、110・・・プール管理テーブル、1
20・・・ユーザAP管理テーブル、130・・・共用
資源管理機構、140・・・ユーザAP。
Fig. 1 is a configuration diagram of an embodiment of the present invention, Fig. 2 is a flowchart showing an example of processing by the shared resource management mechanism when a request for declaring the number of frequently used shared resources is received, and Fig. 3 is a request for securing a shared resource. The first part is a flowchart showing an example of processing by the shared resource management mechanism at the time of use. Figure 4 is a flowchart showing an example of processing by the shared resource management mechanism at the time of receipt of a shared resource return request. FIG. In the figure, 100...free shared resource, 101.1
03... Resource link field, 102... Allocated shared resource, 110... Pool management table, 1
20... User AP management table, 130... Shared resource management mechanism, 140... User AP.

Claims (1)

【特許請求の範囲】 複数の共用資源を複数のプログラムで共用する際の共用
資源プール管理方式において、 前記複数の共用資源の管理を行なう共用資源管理機構を
有し、 該共用資源管理機構は、前記プログラムから繁用共用資
源数の宣言があったときは、予め定められた全繁用共用
資源最大数を越えないことを条件に該宣言された繁用共
用資源数の共用資源を該宣言元のプログラム用に確保し
て他のプログラムには使わせないようにすると共に、前
記宣言で確保された繁用共用資源数を使い切ったプログ
ラムからの共用資源の確保要求および前記宣言を行なわ
ないプログラムから出された共用資源の確保要求につい
ては、前記空きの共用資源のうち前記繁用共用資源とし
て確保されていない共用資源の中から割当てを行なうこ
とを特徴とする共用資源プール管理方式。
[Scope of Claims] A shared resource pool management method when a plurality of shared resources are shared by a plurality of programs, comprising a shared resource management mechanism for managing the plurality of shared resources, the shared resource management mechanism comprising: When the number of frequently used shared resources is declared by the program, the declared number of frequently used shared resources is sent to the source of the declaration, provided that the total number of frequently used shared resources does not exceed the predetermined maximum number. In addition, requests to secure shared resources from programs that have used up the number of frequently used shared resources secured by the above declaration, and from programs that do not make the above declaration. A shared resource pool management method characterized in that a shared resource reservation request issued is allocated from among the vacant shared resources that are not secured as the frequently used shared resources.
JP62078928A 1987-03-31 1987-03-31 Shared resource pool management method Expired - Lifetime JP2518268B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62078928A JP2518268B2 (en) 1987-03-31 1987-03-31 Shared resource pool management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62078928A JP2518268B2 (en) 1987-03-31 1987-03-31 Shared resource pool management method

Publications (2)

Publication Number Publication Date
JPS63245530A true JPS63245530A (en) 1988-10-12
JP2518268B2 JP2518268B2 (en) 1996-07-24

Family

ID=13675530

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62078928A Expired - Lifetime JP2518268B2 (en) 1987-03-31 1987-03-31 Shared resource pool management method

Country Status (1)

Country Link
JP (1) JP2518268B2 (en)

Also Published As

Publication number Publication date
JP2518268B2 (en) 1996-07-24

Similar Documents

Publication Publication Date Title
JP2566717B2 (en) Conditional operation providing apparatus and method
US7080377B2 (en) Method for effective utilizing of shared resources in computerized system
US5956712A (en) Byte range locking in a distributed environment
US6105098A (en) Method for managing shared resources
US5201049A (en) System for executing applications program concurrently/serially on different virtual machines
US5129085A (en) Computer network with shared memory using bit maps including flags to indicate reserved memory areas and task status
EP0362105A2 (en) Method for processing program threads of a distributed application program by a host computer and an intelligent work station in an SNA LU 6.2 network environment
EP0682312A2 (en) Hardware implemented locking mechanism for parallel/distributed computer system
US6158006A (en) Method for the coordination of parallel accesses of a plurality of processors to resource configurations
US5251317A (en) Computer system with an access control unit for resource
JPH0552980B2 (en)
JPH04182858A (en) Shared memory management system
McGee The information management system IMS/VS, Part V: Transaction processing facilities
US6754658B1 (en) Database server processing system, method, program and program storage device
JPH05250188A (en) Priority control system of process
JPS63245530A (en) Shared resource pool managing system
JPH1049388A (en) Input and output controller
JPH02122365A (en) Processor assignment system
JPS62177641A (en) Exclusive priority control system
JPH0644191A (en) Buffer control method
JPH11353197A (en) Shared pool resource control system
JPH02171952A (en) Dispatching system for multiprocessor
JPH0417041A (en) Resource managing system for decentralized data managing system
JPH04223533A (en) Common resource exclusive control system
JPH0528420B2 (en)