JPH05100875A - Controller for execution order of transaction - Google Patents

Controller for execution order of transaction

Info

Publication number
JPH05100875A
JPH05100875A JP25930591A JP25930591A JPH05100875A JP H05100875 A JPH05100875 A JP H05100875A JP 25930591 A JP25930591 A JP 25930591A JP 25930591 A JP25930591 A JP 25930591A JP H05100875 A JPH05100875 A JP H05100875A
Authority
JP
Japan
Prior art keywords
resource
transaction
resources
service
securing
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
JP25930591A
Other languages
Japanese (ja)
Inventor
Ryoji Kataoka
良治 片岡
Ushio Inoue
潮 井上
Tetsuji Sato
哲司 佐藤
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP25930591A priority Critical patent/JPH05100875A/en
Publication of JPH05100875A publication Critical patent/JPH05100875A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the offering characteristic of service and the real time characteristic of service offering by appropriately controlling the execution order of a resource securing transaction and a resource release transaction. CONSTITUTION:The total number of resources which can be used is managed apart from a database which manages the use state of the resources. When the total number of the resources which can be used exceeds a setting reference value, it is judged that the use rate of the resource is comparatively low and the resource can highly possibly be secured, and the resource securing transaction 106 is preferentially executed compared to the resource release transaction 107. Thus, the real time characteristic of service offering is improved without deteriorating the offering characteristic of service. When the total number of the resources which can be used does not exceed the setting reference value, it is judged that the use rate of the resource is comparatively high and the resources cannot highly possibly be secured, and the resource release transaction 107 is preferentially executed compared to the resource securing transaction 106. Thus, the deterioration of the service offering characteristic can be prevented.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、サービスを提供するた
めに必要な資源の利用状態がデータベースにより管理さ
れ、サービスの要求に伴う資源確保のための資源確保ト
ランザクションとサービスの終了に伴う資源解放のため
の資源解放トランザクションが同時に入力されるシステ
ムにおけるトランザクションの実行順序制御装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention manages the use state of resources required for providing a service by a database, and a resource securing transaction for securing resources in response to a request for a service and a resource release upon termination of the service. The present invention relates to a transaction execution order control device in a system in which resource release transactions for are input at the same time.

【0002】[0002]

【従来の技術】利用者に対してオンラインでサービスを
提供するために、サービスに必要な資源の利用状態をデ
ータベースにより管理しておき、サービスを要求された
ときは資源確保トランザクションの実行によりそのサー
ビスで利用する資源を確保するためのデータベース処理
を行い、サービスが終了したときは資源解放トランザク
ションの実行によりそのサービスで利用した資源を解放
するためのデータベース処理を行うシステムがある。こ
のようなシステムには、要求されたサービスを確実に提
供できる性質であるサービスの提供性と、要求されたサ
ービスを即時提供できる性質であるサービス提供のリア
ルタイム性が求められる。サービスの提供性を高めるた
めにはサービス終了に伴う資源の解放を迅速に行う必要
があり、資源解放トランザクションを資源確保トランザ
クションより優先的に実行することが有効である。一
方、サービス提供のリアルタイム性を高めるためには資
源確保トランザクションの応答時間を短くする必要があ
り、資源確保トランザクションを資源解放トランザクシ
ョンより優先的に実行することが有効である。このよう
に、トランザクションの実行順序制御はサービスの提供
性とサービス提供のリアルタイム性に影響を与える。
2. Description of the Related Art In order to provide a service to a user online, the usage state of resources required for the service is managed by a database, and when the service is requested, the service is secured by executing a resource securing transaction. There is a system that performs a database process for securing resources used in the above, and performs a database process for releasing resources used by the service by executing a resource release transaction when the service ends. Such a system is required to have a service providing property that can reliably provide the requested service and a real-time service providing property that can immediately provide the requested service. In order to improve the service provision property, it is necessary to release the resource promptly when the service is terminated, and it is effective to execute the resource release transaction prior to the resource securing transaction. On the other hand, in order to improve real-time service provision, it is necessary to shorten the response time of the resource securing transaction, and it is effective to execute the resource securing transaction with priority over the resource releasing transaction. As described above, the transaction execution order control affects the service provision property and the service provision real-time property.

【0003】システムに入力されたトランザクションの
実行順序を決定する従来の方法として、システムに入力
された順序に従う方式とトランザクションに予め付与さ
れた優先度の順序に従う方式とがあることが、例えば文
献「オペレーティングシステムの基礎」(培風館、19
78)に示されている。これらの方式を用いたシステム
200の構成例を図2に示す。図2において、システム
200に入力されたトランザクション203は実行待合
せ部201に保留された後、トランザクション実行部2
02により取り出されて実行される。そして、実行に際
し、前者の方式においては、トランザクション実行部2
02が実行待合せ部201に保留されたトランザクショ
ンを保留開始時刻の早いものから順番に取り出して実行
する。後者の方式では、トランザクション203に予め
優先度を付与しておき、トランザクション実行部202
が実行待合せ部201に保留されたトランザクションを
優先度の高いものから順番に取り出して実行する。
As a conventional method for determining the execution order of transactions input to the system, there are a method according to the order input to the system and a method according to the order of priorities given to the transactions. Operating System Basics "(Baifukan, 19
78). FIG. 2 shows a configuration example of a system 200 using these methods. In FIG. 2, the transaction 203 input to the system 200 is held in the execution queuing unit 201, and then the transaction execution unit 2
02 to be executed. When executing the transaction, in the former method, the transaction execution unit 2
02 takes out the transactions held in the execution waiting unit 201 in order from the earliest holding start time and executes them. In the latter method, the transaction 203 is given a priority in advance, and the transaction execution unit 202
Executes the transactions held in the execution queuing unit 201 in order of priority.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、前者の
方式は、サービスを提供するために必要な資源の利用状
態がデータベースにより管理され、サービスの要求に伴
う資源確保のためのトランザクションとサービスの終了
に伴う資源解放のためのトランザクションが同時に入力
されるシステムに適用されるとき、確保しようとする資
源が全て使用中であっても資源確保トランザクションの
保留開始時刻が資源解放トランザクションの保留開始時
刻より早ければ必ず資源確保トランザクションを先に実
行するため、該資源確保トランザクションに対応するサ
ービスを提供できず、サービスの提供性が低下するとい
う問題があった。逆に、確保しようとする資源が利用可
能な状態にあっても資源解放トランザクションの保留開
始時刻が資源確保トランザクションの保留開始時刻より
早ければ資源解放トランザクションを先に実行するた
め、資源確保トランザクションの応答時間が長くなり、
サービス提供のリアルタイム性が低下するという問題が
あった。
However, in the former method, the use state of the resources necessary for providing the service is managed by the database, and the transaction for securing the resources and the termination of the service are requested when the service is requested. When a transaction for releasing the accompanying resources is applied to a system that is input at the same time, if the holding start time of the resource securing transaction is earlier than the holding start time of the resource releasing transaction even if all the resources to be secured are in use Since the resource securing transaction is always executed first, the service corresponding to the resource securing transaction cannot be provided, and there is a problem in that the service provision capability is deteriorated. On the contrary, even if the resource to be secured is available, if the hold start time of the resource release transaction is earlier than the hold start time of the resource reserve transaction, the resource release transaction is executed first. Time will increase,
There is a problem that the real-time property of service provision is deteriorated.

【0005】一方、後者の方式は、サービス提供のリア
ルタイム性を高めるために資源確保トランザクションに
対して資源解放トランザクションより高い優先度を与え
ると、確保しようとする資源が全て使用中であっても資
源確保トランザクションが資源解放トランザクションよ
り優先的に実行されるため、該資源確保トランザクショ
ンに対応するサービスを提供できず、サービスの提供性
が低下するという問題があり、逆に、サービスの提供性
を高めるために資源解放トランザクションに対して資源
確保トランザクションより高い優先度を与えると、確保
しようとする資源が利用可能な状態にあっても資源解放
トランザクションが資源確保トランザクションより優先
的に実行されるため、資源確保トランザクションの応答
時間が長くなり、サービス提供のリアルタイム性が低下
するという問題があった。
On the other hand, in the latter method, when a resource reservation transaction is given a higher priority than a resource release transaction in order to improve the real-time property of service provision, even if all the resources to be reserved are in use. Since the securing transaction is executed with priority over the resource releasing transaction, there is a problem that the service corresponding to the resource securing transaction cannot be provided and the service providing ability is deteriorated. Conversely, the service providing ability is enhanced. If a higher priority is given to a resource release transaction than a resource secure transaction, the resource release transaction will be executed with priority over the resource secure transaction even if the resource to be secured is available. Transaction response time will increase, Real-time-bis provided there was a problem of a decrease.

【0006】本発明は上記に鑑みてなされたもので、そ
の目的としては、資源確保トランザクションおよび資源
解放トランザクションの実行順序の適切な制御により、
サービスの提供性とサービス提供のリアルタイム性とを
向上させたトランザクションの実行制御装置を提供する
ことにある。
The present invention has been made in view of the above, and an object thereof is to appropriately control the execution order of resource securing transactions and resource releasing transactions.
Another object of the present invention is to provide a transaction execution control device that improves the service provision property and the service provision real-time property.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、サービスの提供に必要な資源の利用状態をデータベ
ースにより管理しておき、サービスを要求されたときは
資源確保のための資源確保トランザクションを実行し、
サービスが終了したときは資源解放のための資源解放ト
ランザクションを実行する装置において、本発明は、資
源確保トランザクションまたは資源解放トランザクショ
ンの実行に伴い利用可能な資源の数を逐次に更新記憶す
る資源数記憶手段と、この資源数記憶手段で記憶されて
いる資源の数が設定基準値を越えるときには資源確保ト
ランザクションを資源解放トランザクションより優先し
て実行させ、資源の数が前記設定基準値を越えないとき
には資源解放トランザクションを資源確保トランザクシ
ョンより優先して実行させる実行順序制御手段とを有す
ることを要旨とする。
[Means for Solving the Problems] In order to achieve the above object, the use state of resources required for providing a service is managed by a database, and when a service is requested, a resource securing transaction for securing resources is performed. Run and
In a device that executes a resource release transaction for releasing resources when a service ends, the present invention provides a resource number storage that sequentially updates and stores the number of resources that can be used with the execution of a resource securing transaction or a resource releasing transaction. Means for executing the resource securing transaction with priority over the resource releasing transaction when the number of resources stored in the resource number storage means exceeds the set reference value, and when the number of resources does not exceed the set reference value The gist of the present invention is to have an execution order control means for executing the release transaction with priority over the resource securing transaction.

【0008】[0008]

【作用】本発明に係るトランザクションの実行順序制御
装置にあっては、利用可能な資源の総数を資源の利用状
態を管理するデータベースとは別に管理しておき、利用
可能な資源総数が設定基準値を越えるときには、資源の
利用率が比較的低く資源を確保できる可能性が高いと判
断して資源確保トランザクションを資源解放トランザク
ションより優先的に実行することでサービスの提供性を
低下させることなくサービス提供のリアルタイム性を高
め、利用可能な資源総数が設定基準値を越えないときに
は、資源の利用率が比較的高く資源を確保できない可能
性が高いと判断して、資源解放トランザクションを資源
確保トランザクションより優先的に実行することでサー
ビス提供性の低下を防止する。
In the transaction execution order control device according to the present invention, the total number of available resources is managed separately from the database that manages the usage state of the resources, and the total number of available resources is set as a reference value. When it exceeds the threshold, it is judged that the resource utilization rate is relatively low and there is a high possibility that the resource can be secured, and the resource securing transaction is executed with priority over the resource releasing transaction, thereby providing the service without degrading the service availability. When the total number of available resources does not exceed the set reference value, it is judged that the resource usage rate is relatively high and there is a high possibility that resources cannot be secured, and resource release transactions are given priority over resource securing transactions. It is possible to prevent the deterioration of service provision by executing the program.

【0009】[0009]

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

【0010】図1は本発明の一実施例の構成図であり、
101は確保待合せ部、102は解放待合せ部、103
は実行順序制御部、104は資源数記憶部、105はト
ランザクション実行部、106は資源確保トランザクシ
ョン、107は資源解放トランザクションである。
FIG. 1 is a block diagram of an embodiment of the present invention.
101 is a reservation waiting unit, 102 is a release waiting unit, 103
Is an execution order control unit, 104 is a resource number storage unit, 105 is a transaction execution unit, 106 is a resource securing transaction, and 107 is a resource releasing transaction.

【0011】資源確保トランザクション106は、サー
ビスに必要な資源をシステム100に要求するトランザ
クションである。システム100に入力された資源確保
トランザクション106は、トランザクションの到着順
に確保待合せ部101へ登録される。一方、資源解放ト
ランザクション107は、サービスが終了して資源が解
放されたことをシステム100へ通知するトランザクシ
ョンである。システム100に入力された資源解放トラ
ンザクション107は、トランザクションの到着順に解
放待合せ部102へ登録される。
The resource securing transaction 106 is a transaction for requesting the system 100 for resources required for a service. The resource reservation transaction 106 input to the system 100 is registered in the reservation waiting unit 101 in the order of transaction arrival. On the other hand, the resource release transaction 107 is a transaction that notifies the system 100 that the service has ended and the resource has been released. The resource release transaction 107 input to the system 100 is registered in the release waiting unit 102 in the order of transaction arrival.

【0012】トランザクション実行部105は、例えば
サービスAではタイプ1、タイプ2、およびタイプ3と
いう3種類の資源を必要とするというようなサービスと
それに必要な資源の種別の対応関係、例えばタイプ1の
資源は全部で5個あり、現在3個が利用可能であるとい
うような資源の種別と利用可能な資源数の関係等をデー
タベースとして管理しており、実行順序制御部103に
要求して受け取った資源確保トランザクション106あ
るいは資源解放トランザクション107を該データベー
スをアクセスしながら実行するものである。より具体的
には、資源確保トランザクション106を実行する場
合、該トランザクションに対応するサービスに必要な資
源の種別を求め、求めた全ての資源の種別について利用
可能な資源が存在するかどうかを確認し、全ての資源が
利用可能ならば利用すべき資源に関する情報を、少なく
とも1つの資源が利用不可能ならばサービスの提供が不
可能であることを表わす情報をトランザクションの発行
元へ返す。更に、サービスに必要な全ての資源が利用可
能なときはデータベースを更新して該資源を使用中とす
ると共に、利用可能な資源の総数が減少したことを資源
数記憶部104へ通知する。一方、資源解放トランザク
ション107を実行する場合、該トランザクションに対
応するサービスで利用した資源を空き状態とするように
データベースを更新し、利用可能な資源の総数が増加し
たことを資源数記憶部104へ通知するのである。
The transaction executing unit 105, for example, the service A requires three types of resources of type 1, type 2, and type 3, and the corresponding relation between the types of resources required for the service, for example, type 1 There are 5 resources in total, and the relationship between the type of resources and the number of available resources, such as the currently available 3 resources, is managed as a database, which is requested by the execution order control unit 103 and received. The resource securing transaction 106 or the resource releasing transaction 107 is executed while accessing the database. More specifically, when executing the resource securing transaction 106, the type of resources required for the service corresponding to the transaction is obtained, and it is confirmed whether or not there are available resources for all the obtained resource types. If all resources are available, information about the resources to be used is returned to the transaction issuer, and if at least one resource is unavailable, information indicating that the service cannot be provided. Further, when all the resources required for the service are available, the database is updated to make the resources in use, and the resource number storage unit 104 is notified that the total number of available resources has decreased. On the other hand, when executing the resource release transaction 107, the database is updated so that the resources used by the service corresponding to the transaction are made empty, and the fact that the total number of available resources has increased is stored in the resource number storage unit 104. Notify me.

【0013】資源数記憶部104は、トランザクション
実行部105からの通知に従って、現時点で利用可能な
資源の総数を管理するものである。総数の初期値はシス
テム立ち上げ時にトランザクション実行部105から通
知され、例えば100種類の資源の各種別毎に5個の資
源が存在する場合、初期値として500が設定される。
そして、トランザクション実行部105における資源確
保トランザクション106の実行に伴い利用可能な資源
数の減少が通知されると、該総数を現在の値から通知さ
れた資源数を引いた値に更新する。トランザクション実
行部105における資源解放トランザクション107の
実行に伴い利用可能な資源数の増加が通知されると、該
総数を現在の値に通知された資源数を加えた値に更新す
るのである。
The resource number storage unit 104 manages the total number of resources currently available according to the notification from the transaction execution unit 105. The initial value of the total number is notified from the transaction execution unit 105 when the system is started up. For example, when there are 5 resources for each of 100 types of resources, 500 is set as the initial value.
Then, when the decrease in the number of available resources is notified by the execution of the resource securing transaction 106 in the transaction execution unit 105, the total number is updated to a value obtained by subtracting the notified number of resources from the current value. When the increase in the number of available resources due to the execution of the resource release transaction 107 in the transaction execution unit 105 is notified, the total number is updated to a value obtained by adding the notified number of resources to the current value.

【0014】実行順序制御部103は、トランザクショ
ン実行部103から実行すべきトランザクションを要求
されると、資源数記憶部104に現在利用可能な資源の
総数を問い合わせ、該総数と設定基準値である予め設定
された臨界値とを比較し、以下に述べる規則で資源確保
トランザクション106あるいは資源解放トランザクシ
ョン107を確保待合せ部101あるいは解放待合せ部
102から取り出し、トランザクション実行部105へ
与えるものである。具体的には、利用可能な資源の総数
が臨界値よりも大きいときは、確保待合せ部101に登
録された資源確保トランザクション106をトランザク
ション実行部105へ与え、逆に、利用可能な資源の総
数が臨界値以下であるときは、解放待合せ部102に登
録された資源解放トランザクション107をトランザク
ション実行部105へ与えるのである。なお、資源確保
トランザクション106のトランザクション実行部10
5への伝達に際し、確保待合せ部101に資源確保トラ
ンザクション106が登録されておらず、解放待合せ部
102に資源解放トランザクション107が登録されて
いる場合には、該資源解放トランザクションをトランザ
クション実行部105へ与え、資源解放トランザクショ
ン107のトランザクション実行部105への伝達に際
し、解放待合せ部102に資源解放トランザクション1
07が登録されておらず、確保待合せ部101に資源確
保トランザクション106が登録されている場合には、
該資源確保トランザクションをトランザクション実行部
105へ与える。また、確保待合せ部101あるいは解
放待合せ部102に同時に複数のトランザクションが登
録されているときは、システムへの到着順の早いトラン
ザクションを優先させ、確保待合せ部101と解放待合
せ部102の双方にトランザクションが登録されていな
いときは、実行すべきトランザクションが存在しないこ
とをトランザクション実行部105へ通知する。以上述
べた規則で用いる臨界値は0以上かつシステムで管理す
る全資源数以下の値をとり、例えばシステムで管理する
全資源数の30%というように定めておき、システム立
ち上げ時に資源数記憶部104に設定される利用可能な
資源総数の初期値から算出することで設定できる。この
場合、サービス提供のリアルタイム性は臨界値を0に近
い値とするほど高くなり、サービスの提供性は臨界値を
システムで管理する全資源数に近い値とするほど高くな
る。
When the transaction execution unit 103 requests a transaction to be executed, the execution order control unit 103 inquires of the resource number storage unit 104 about the total number of currently available resources, and the total number and a preset reference value are set in advance. By comparing with the set critical value, the resource securing transaction 106 or the resource releasing transaction 107 is taken out from the securing waiting unit 101 or the releasing waiting unit 102 and given to the transaction executing unit 105 according to the rule described below. Specifically, when the total number of available resources is larger than the critical value, the resource securing transaction 106 registered in the securing waiting unit 101 is given to the transaction executing unit 105, and conversely, the total number of available resources is When it is below the critical value, the resource release transaction 107 registered in the release waiting section 102 is given to the transaction executing section 105. The transaction execution unit 10 of the resource securing transaction 106
5, when the resource reservation transaction 106 is not registered in the reservation waiting unit 101 and the resource release transaction 107 is registered in the release waiting unit 102, the resource release transaction is sent to the transaction execution unit 105. When transmitting the resource release transaction 107 to the transaction execution unit 105, the resource release transaction 1 is sent to the release waiting unit 102.
If 07 is not registered and the resource reservation transaction 106 is registered in the reservation waiting unit 101,
The resource securing transaction is given to the transaction executing unit 105. Further, when a plurality of transactions are simultaneously registered in the secure queuing unit 101 or the release queuing unit 102, the transaction with the earliest arrival order to the system is prioritized, and the transaction is made to both the secure queuing unit 101 and the release queuing unit 102. If not registered, the transaction execution unit 105 is notified that there is no transaction to be executed. The critical value used in the rules described above is a value that is 0 or more and less than or equal to the total number of resources managed by the system. For example, 30% of the total number of resources managed by the system is set, and the number of resources is stored when the system is started It can be set by calculating from the initial value of the total number of available resources set in the unit 104. In this case, the real-time property of service provision becomes higher as the critical value is closer to 0, and the service provision property becomes higher as the critical value is closer to the total number of resources managed by the system.

【0015】したがって、本実施例によれば、利用可能
な資源の総数を資源の利用状態を管理するデータベース
とは別に管理しておき、該総数によりデータベースをア
クセスすることなく資源の利用状態を推測し、資源の利
用状態に応じて資源確保トランザクションと資源解放ト
ランザクションの優先度を動的に変化させてトランザク
ションの実行順序を決定できる。すなわち、実行順序制
御部103がトランザクション実行部105から次に実
行すべきトランザクションを要求される際に、資源数記
憶部104より得られるその時点で利用可能な資源総数
と予め定めた臨界値を比較することで、その時点で資源
確保トランザクションを実行したときに資源を確保でき
る可能性が高いか低いかを判断する。そして、利用可能
な資源総数が臨界値より大きいときは、資源の利用率が
比較的低く資源を確保できる可能性が高いと判断でき、
資源確保トランザクションを資源解放トランザクション
より優先的に実行することでサービスの提供性を低下さ
せることなくサービス提供のリアルタイム性を高められ
る。利用可能な資源総数が臨界値以下であるときは、資
源の利用率が比較的高く資源を確保できない可能性が高
いと判断でき、資源解放トランザクションを資源確保ト
ランザクションより優先的に実行することでサービス提
供性の低下を防止できるのである。
Therefore, according to the present embodiment, the total number of available resources is managed separately from the database for managing the resource usage state, and the resource usage state is estimated without accessing the database based on the total number. However, the execution order of the transactions can be determined by dynamically changing the priorities of the resource securing transaction and the resource releasing transaction according to the resource usage state. That is, when the execution order control unit 103 requests the next transaction to be executed from the transaction execution unit 105, it compares the total number of resources available at that time obtained from the resource number storage unit 104 with a predetermined critical value. By doing so, it is determined whether or not there is a high possibility that the resource can be secured when the resource securing transaction is executed at that time. When the total number of available resources is larger than the critical value, it can be determined that the resource utilization rate is relatively low and there is a high possibility of securing resources.
By executing the resource securing transaction with priority over the resource releasing transaction, the real-time property of service provision can be enhanced without degrading the service provision capability. When the total number of available resources is less than the critical value, it can be determined that the resource usage rate is relatively high and there is a high possibility that resources cannot be secured, and the resource release transaction is executed with priority over the resource securing transaction. It is possible to prevent the deterioration of the providing property.

【0016】[0016]

【発明の効果】以上説明したように本発明によれば、利
用可能な資源の総数を資源の利用状態を管理するデータ
ベースとは別に管理しておき、利用可能な資源総数が設
定基準値を越えるときには、資源の利用率が比較的低く
資源を確保できる可能性が高いと判断して資源確保トラ
ンザクションを資源解放トランザクションより優先的に
実行することでサービスの提供性を低下させることなく
サービス提供のリアルタイム性を高め、利用可能な資源
総数が設定基準値を越えないときには、資源の利用率が
比較的高く資源を確保できない可能性が高いと判断し
て、資源解放トランザクションを資源確保トランザクシ
ョンより優先的に実行することでサービス提供性の低下
を防止するようにしたので、資源確保トランザクション
および資源解放トランザクションの実行順序を適切に制
御でき、もってサービスの提供性とサービス提供のリア
ルタイム性とを向上させることができる。
As described above, according to the present invention, the total number of available resources is managed separately from the database that manages the usage state of resources, and the total number of available resources exceeds the set reference value. Sometimes it is determined that the resource utilization rate is relatively low and there is a high possibility that resources can be secured, and by executing resource securing transactions with priority over resource releasing transactions, real-time service provision without degrading service availability. When the total number of available resources does not exceed the set standard value, it is judged that the resource usage rate is relatively high and there is a high possibility that resources cannot be secured, and resource release transactions are given priority over resource securing transactions. By executing it, it is possible to prevent deterioration of service provision. Can appropriately control the execution order of-transactions, it is possible to improve the real-time offer and service providing service have.

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

【図1】本発明の一実施例の構成を示す図である。FIG. 1 is a diagram showing a configuration of an exemplary embodiment of the present invention.

【図2】従来の方法の構成を示す図である。FIG. 2 is a diagram showing a configuration of a conventional method.

【符号の説明】[Explanation of symbols]

101 確保待合せ部 102 解放待合せ部 103 実行順序制御部 104 資源数記憶部 105 トランザクション実行部 106 資源確保トランザクション 107 資源解放トランザクション 201 実行待合せ部 202 トランザクション実行部 203 トランザクション 101 Secure Waiting Unit 102 Release Waiting Unit 103 Execution Order Control Unit 104 Resource Number Storage Unit 105 Transaction Execution Unit 106 Resource Securing Transaction 107 Resource Release Transaction 201 Execution Waiting Unit 202 Transaction Execution Unit 203 Transaction

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 サービスの提供に必要な資源の利用状態
をデータベースにより管理しておき、サービスを要求さ
れたときは資源確保のための資源確保トランザクション
を実行し、サービスが終了したときは資源解放のための
資源解放トランザクションを実行する装置において、資
源確保トランザクションまたは資源解放トランザクショ
ンの実行に伴い利用可能な資源の数を逐次に更新記憶す
る資源数記憶手段と、この資源数記憶手段で記憶されて
いる資源の数が設定基準値を越えるときには資源確保ト
ランザクションを資源解放トランザクションより優先し
て実行させ、資源の数が前記設定基準値を越えないとき
には資源解放トランザクションを資源確保トランザクシ
ョンより優先して実行させる実行順序制御手段とを有す
ることを特徴とするトランザクションの実行順序制御装
置。
1. A database is used to manage the usage status of resources required to provide a service. When a service is requested, a resource securing transaction for securing the resource is executed, and when the service is finished, the resource is released. In a device for executing a resource release transaction for a resource, a resource number storage means for sequentially updating and storing the number of resources available with the execution of a resource securing transaction or a resource release transaction, and a resource number storage means When the number of existing resources exceeds the setting reference value, the resource securing transaction is executed with priority over the resource releasing transaction, and when the number of resources does not exceed the setting reference value, the resource releasing transaction is executed with priority over the resource securing transaction. And an execution order control means. Transaction execution order controller.
JP25930591A 1991-10-07 1991-10-07 Controller for execution order of transaction Pending JPH05100875A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25930591A JPH05100875A (en) 1991-10-07 1991-10-07 Controller for execution order of transaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25930591A JPH05100875A (en) 1991-10-07 1991-10-07 Controller for execution order of transaction

Publications (1)

Publication Number Publication Date
JPH05100875A true JPH05100875A (en) 1993-04-23

Family

ID=17332233

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25930591A Pending JPH05100875A (en) 1991-10-07 1991-10-07 Controller for execution order of transaction

Country Status (1)

Country Link
JP (1) JPH05100875A (en)

Similar Documents

Publication Publication Date Title
US6763520B1 (en) Fair assignment of processing resources to queued requests
CN110099009B (en) Dynamic current limiting method based on interface response time trend and computer readable medium
US5999963A (en) Move-to-rear list scheduling
JP3951949B2 (en) Distributed resource management system, distributed resource management method and program
JP3922070B2 (en) Distributed control method and apparatus
US20020052909A1 (en) Efficient assignment of processing resources in a fair queuing system
US7694054B2 (en) Governing access to a computing resource
JPH09171470A (en) Resource allocating method for computer system
WO2007149224A1 (en) Resource-based scheduler
JP3664021B2 (en) Resource allocation method by service level
WO2019230576A1 (en) Resource reservation management device and resource reservation management method
CN111124674B (en) Management method of hardware resources, storage medium and terminal
US20080022287A1 (en) Method And System For Transferring Budgets In A Technique For Restrained Budget Use
CN113010309A (en) Cluster resource scheduling method, device, storage medium, equipment and program product
JPH10171667A (en) Task management method
US9792419B2 (en) Starvationless kernel-aware distributed scheduling of software licenses
JPH05100875A (en) Controller for execution order of transaction
JP2008225641A (en) Computer system, interrupt control method and program
US20220350666A1 (en) Resource allocation method, device and audio-visual playback terminal
JPH08305560A (en) Licence management system
EP1182553A2 (en) Efficient assignment of processing resources in a fair queuing system
JPH11175357A (en) Task management method
Lu et al. An adaptive algorithm for resolving processor thrashing in load distribution
JP3068556B2 (en) Shared resource exclusion control method and its program recording medium
JPH1040117A (en) System for changing task execution priority at the high load in on-line processing system