JPH03147137A - System for allocating resources to resources waiting process - Google Patents

System for allocating resources to resources waiting process

Info

Publication number
JPH03147137A
JPH03147137A JP28637389A JP28637389A JPH03147137A JP H03147137 A JPH03147137 A JP H03147137A JP 28637389 A JP28637389 A JP 28637389A JP 28637389 A JP28637389 A JP 28637389A JP H03147137 A JPH03147137 A JP H03147137A
Authority
JP
Japan
Prior art keywords
priority
resources
resource
storage
processes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP28637389A
Other languages
Japanese (ja)
Inventor
Shigeo Idemura
井出村 重夫
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 JP28637389A priority Critical patent/JPH03147137A/en
Publication of JPH03147137A publication Critical patent/JPH03147137A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To exactly execute the resources allocation to a process decided to be optimal at that time point by the system in accordance with priority by executing the priority control and the request resources management of the resources waiting process. CONSTITUTION:A priority determining/storage means 1 determines the priority of a process which becomes resources waiting at the time of processing for allowing the process for requesting to secure resources to wait due to resources shortage or other factor and stores it in a priority storage part 7. A request resources storage means 2 stores request resources of the process in which the priority is stored in the priority storage part 7 in a request resources storage part 8 by the priority determining/storage means 1. A request storage allocating means 5 allocates resources read out by a request resources reading-out means 4 to the process in order of high priority in a priority table read out by a priority table reading-out means 3, and a priority storage changing means 6 deletes the priority of the process to which resources are allocated by the request resources allocating means 5 from the priority storage part 7. In such a way, the allocation of resources being faithful to the priority can be executed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は資源待ちプロセスへの資源割当て方式に関し、
特に資源不足等に伴う資源待ち状態にあるプロセスへの
資源再割当て処理を行う資源待ちプロセスへの資源割当
て方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a resource allocation method to a resource waiting process.
In particular, the present invention relates to a method for allocating resources to processes waiting for resources, which reallocates resources to processes waiting for resources due to resource shortages, etc.

〔従来の技術〕[Conventional technology]

従来、この種の資源待ちプロセスへの資源割当て方式で
は、資源待ちプロセスへの資源再割当て処理が資源待ち
状態にある全てのプロセスに一斉にもしくは順次に資源
の再要求を行わせることによって実現されていた。
Conventionally, in this type of resource allocation method for resource-waiting processes, resource reallocation to resource-waiting processes is achieved by having all processes in a resource-waiting state re-request resources at the same time or sequentially. was.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の資源待ちプロセスへの資源割当て方式で
は、資源の再要求の結果として割当てが成功するかどう
かの判断を正確には行い得ないので、仮想記憶空間から
実記憶空間への無駄なプロセス空間ロードが頻繁に発生
することが考えられて実行性能上の問題があるという欠
点がある。
In the conventional method of allocating resources to resource-waiting processes as described above, it is not possible to accurately determine whether the allocation will be successful as a result of re-requesting the resource, so there is no need to transfer wasteful processes from virtual storage space to real storage space. The disadvantage is that space loads may occur frequently, causing problems in execution performance.

また、資源待ち状態にある全てのプロセスに一斉に資源
の再要求を行わせる場合には資源を獲得するプロセスが
必ずしも最も高い資源待ち優先順位(以下、単に優先順
位という)を存するプロセスとは限らず、プロセスのス
ケジエーリングがシステム設計者の意図と一致しない場
合が生じるという欠点がある。
Furthermore, when all processes waiting for a resource are made to re-request the resource at the same time, the process that acquires the resource is not necessarily the process that has the highest resource waiting priority (hereinafter simply referred to as priority). First, there is a drawback that the scheduling of processes may not match the intentions of the system designer.

本発明の目的は、上述の点に鑑み、資源待ち状態にある
プロセスからの資源の再要求を不要とするとともに、優
先順位に忠実な資源の割当てを可能とする資源待ちプロ
セスへの資源割当て方式を提供することにある。
In view of the above-mentioned points, an object of the present invention is to provide a method for allocating resources to processes that are waiting for resources, which eliminates the need for re-requesting resources from processes that are waiting for resources, and which makes it possible to allocate resources faithfully to priorities. Our goal is to provide the following.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の資源待ちプロセスへの資源割当て方式は、資源
確保を要求するプロセスを資源不足その他の要因から待
たせる処理時に資源待ちとするプロセスの優先順位を決
定して優先順位記憶部に記憶する優先順位決定/記憶手
段と、この優先順位決定/記憶手段により前記優先順位
記憶部に優先順位が記憶されたプロセスの要求資源を要
求資源記憶部に記憶する要求資源記憶手段と、他プロセ
スの資源解放等による再割当て処理時に解放された資源
を待つプロセスの優先順位一覧を前記優先順位記憶部か
ら読み出す優先順位一覧読出し手段と、この優先順位一
覧読出し手段により読み出された優先順位一覧中の優先
順位を有するプロセスの要求資源を前記要求資源記憶部
から読み出す要求資源読出し手段と、前記優先順位一覧
読出し手段により読み出された優先順位一覧中の優先順
位が高い順にプロセスに前記要求資源読出し手段により
読み出された資源を割り当てる要求資源割当て手段と、
この要求資源割当て手段により資源が割り当てられたプ
ロセスの優先順位を前記優先順位記憶部から削除する優
先順位記憶変更手段とを存する。
The method of allocating resources to resource-waiting processes according to the present invention is to determine the priority of a process that is waiting for a resource and to store it in a priority storage unit when a process that requests resource reservation is made to wait due to lack of resources or other factors. a priority determination/storage means; a requested resource storage means for storing, in a requested resource storage, the requested resources of a process whose priority is stored in the priority storage by the priority determination/storage means; and resource release for other processes. priority list reading means for reading out from the priority storage unit a priority list of processes waiting for resources released at the time of reallocation processing, etc.; and priorities in the priority list read by the priority list reading means. requested resource reading means for reading out the requested resources of a process having the requested resource from the requested resource storage unit; request resource allocation means for allocating the issued resources;
and priority storage changing means for deleting the priority of the process to which resources have been allocated by the requested resource allocation means from the priority storage.

〔作用〕[Effect]

本発明の資源待ちプロセスへの資源割当て方式では、優
先順位決定/記憶手段が資源確保を要求するプロセスを
資源不足その他の要因から待たせる処理時に資源待ちと
するプロセスの優先順位を決定して優先順位記憶部に記
憶し、要求資源記憶手段が優先順位決定/記憶手段によ
り優先順位記憶部に優先順位が記憶されたプロセスの要
求資源を要求資源記憶部に記憶し、優先順位一覧読出し
手段が他プロセスの資源解放等による再割当て処理時に
解放された資源を待つプロセスの優先順位一覧を優先順
位記憶部から読み出し、要求資源読出し手段が優先順位
一覧読出し手段により読み出された優先順位一覧中の優
先順位を有するプロセスの要求資源を要求資源記憶部か
ら読み出し、要求資源割当て手段が優先順位一覧読出し
手段により読み出された優先順位一覧中の優先順位が高
い順にプロセスに要求資源読出し手段により読み出され
た資源を割り当て、優先順位記憶変更手段が要求資源割
当て手段により資源が割り当てられたプロセスの優先順
位を優先順位記憶部から削除する。
In the resource allocation method for resource-waiting processes of the present invention, the priority determination/storage means determines the priority of the resource-waiting process and gives priority to it when the process that requests resource reservation is made to wait due to lack of resources or other factors. The requested resource storage means stores in the requested resource storage section the requested resources of the processes whose priorities have been stored in the priority storage section by the priority determination/storage means, and the priority list reading means At the time of reallocation processing due to process resource release, etc., the priority list of the process waiting for the released resource is read from the priority storage unit, and the request resource reading means selects the priority list from the priority list read by the priority list reading means. The requested resources of the processes having the rankings are read from the requested resource storage section, and the requested resource allocation means reads out the requested resources to the processes in descending order of priority in the priority list read out by the priority list reading means. The priority storage changing means deletes the priority of the process to which the resource has been allocated by the requesting resource allocation means from the priority storage section.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明の一実施例に係る資源待ちプロセスへ
の資源割当て方式の構成を示すブロック図である0本実
施例の資源待ちプロセスへの資源割当て方式は、資源確
保を要求するプロセスを資源不足その他の要因から待た
せる処理時に資源待ちとするプロセスの優先順位を決定
して優先順位記憶部7に記憶する優先順位決定/記憶手
段1と、優先順位決定/記憶手段lにより優先順位記憶
部7に優先順位が記憶されたプロセスの要求資源を要求
資源記憶部8に記憶する要求資源記憶手段2と、他プロ
セスの資源解放等による再割当て処理時に解放された資
源を待つプロセスの優先順位一覧を優先順位記憶部7か
ら読み出す優先順位一覧読出し手段3と、優先順位一覧
読出し手段3により読み出された優先順位一覧中の優先
順位を有するプロセスの要求資源を要求資源記憶部8か
ら読み出す要求資源読出し手段4と、優先順位一覧読出
し手段3により読み出された優先順位一覧中の優先順位
が高い順にプロセスに要求資源読出し手段4により読み
出された資源を割り当てる要求資源割当て手段5と、要
求資源割当て手段5により資源が割り当てられたプロセ
スの優先順位を優先順位記憶部7から削除する優先順位
記憶変更手段6と、プロセスの優先順位を記憶する優先
順位記憶部7と、プロセスの要求資源を記憶する要求資
源記憶部8とから構成されている。
FIG. 1 is a block diagram showing the configuration of a method for allocating resources to processes waiting for resources according to an embodiment of the present invention. A priority determination/storage means 1 determines the priority of a process that is to wait for resources when a process is made to wait due to lack of resources or other factors and stores it in a priority storage section 7, and a priority determination/storage means 1 determines the priority of a process that is to wait for resources due to resource shortage or other factors. Request resource storage means 2 stores the requested resources of processes whose priorities are stored in the storage unit 7 in the requested resource storage unit 8, and the priority of processes that wait for resources released during reallocation processing due to resource release etc. of other processes. The priority list reading means 3 reads out the priority list from the priority storage section 7, and the requested resource of the process having the priority order in the priority list read out by the priority list reading means 3 is read from the requested resource storage section 8. requested resource reading means 4; requested resource allocation means 5 for allocating the resources read by the requested resource reading means 4 to processes in order of priority in the priority list read by the priority list reading means 3; a priority storage changing unit 6 for deleting the priorities of processes to which resources have been allocated by the resource request allocation unit 5 from the priority storage unit 7; a priority storage unit 7 for storing the priorities of processes; and a requested resource storage unit 8 that stores .

第2図を参照すると、優先順位記憶部7には、優先順位
が高い順にプロセス識別子(以下、プロセスIDと略記
する)が記憶される。
Referring to FIG. 2, the priority storage unit 7 stores process identifiers (hereinafter abbreviated as process ID) in descending order of priority.

同じく、第2図を参照すると、要求資源記憶部8には、
プロセスID対応に要求資源が記憶される。
Similarly, referring to FIG. 2, the requested resource storage unit 8 has the following information:
Requested resources are stored in correspondence with process IDs.

次に、このように構成された本実施例の資源待ちプロセ
スへの資源割当て方式の動作について説明する。
Next, the operation of the resource allocation method for the resource waiting process of this embodiment configured as described above will be explained.

プロセスP1が資源R1に対して待ち状態となる前の時
点では、優先順位記憶部7および要求資源記憶部8の内
容は、例えば第2図に示すようであったものとする。
It is assumed that before the process P1 enters the waiting state for the resource R1, the contents of the priority storage unit 7 and the requested resource storage unit 8 are as shown in FIG. 2, for example.

プロセスPIが資源R1に対する待ち状態となった契機
で、優先順位決定/記憶手段1は、プロセスP1に対し
て現在の資源待ち状態の全てのプロセス中の優先順位n
1を決定し、優先順位n1およびプロセスID(PL)
を優先順位記憶部7に記憶する。また、これと同時に、
要求資源記憶手段2は、プロセスPiの要求資源R1,
R2およびR3を要求資源記憶部8にプロセスID(P
l)対応に記憶する。この結果、優先順位記憶部7およ
び要求資源記憶部8の内容は、第3図に示すようになる
When the process PI enters the waiting state for the resource R1, the priority determination/storage unit 1 determines the priority n of all the processes currently in the resource waiting state for the process P1.
1, priority n1 and process ID (PL)
is stored in the priority storage unit 7. Also, at the same time,
The requested resource storage means 2 stores the requested resources R1,
R2 and R3 are stored in the request resource storage unit 8 with the process ID (P
l) Correspondingly stored. As a result, the contents of the priority storage section 7 and the requested resource storage section 8 become as shown in FIG.

この状態で、他のプロセスの資源解放等により資源R1
,R4およびR5の解放処理が行われると、優先順位一
覧読出し手段3は、これを契機に資源R1,R4および
R5のいずれかを待つ全てのプロセスP2.P3および
Plの優先順位n2n3およびnlの一覧を優先順位記
憶部7から求める。
In this state, resource R1 is released due to resource release of other processes, etc.
, R4 and R5, the priority list reading means 3 uses this as an opportunity to release all processes P2. A list of priorities n2n3 and nl of P3 and Pl is obtained from the priority storage unit 7.

次に、要求資源読出し手段4は、優先順位n2のプロセ
スP2の要求質′tAR4およびR5、優先順位n3の
プロセスP3の要求資源R4およびR6、優先順位nl
のプロセスP1の要求質6RIR2およびR3を要求資
源記憶部8から求める。
Next, the requested resource reading means 4 reads the requested qualities 'tAR4 and R5 of the process P2 with the priority level n2, the requested resources R4 and R6 of the process P3 with the priority level n3, and the requested resources 'tAR4 and R5 of the process P2 with the priority level n2,
The required qualities 6 RIR2 and R3 of the process P1 are obtained from the required resource storage unit 8.

続いて、要求資源割当て手段5は、優先順位が高い順に
優先順位n2のプロセスP2.優先順位n3のプロセス
P3および優先順位n1のプロセスP1に対して資源の
割当て処理を行い、資源R2およびR3が他のプロセス
にυ1り当てられていなければ、優先順位n2のプロセ
スP2と優先順(立n1のプロセスPIとに対して資源
の割当て処理が成功して資′aR4およびR5と資BR
1,R2およびR3とがそれぞれ割り当てられる。
Subsequently, the request resource allocation means 5 assigns processes P2 . Resource allocation processing is performed for process P3 with priority n3 and process P1 with priority n1, and if resources R2 and R3 are not allocated υ1 to other processes, process P2 with priority n2 and priority ( The resource allocation process is successful for the process PI of stand n1, and resources 'aR4 and R5 and resource BR are
1, R2 and R3, respectively.

最後に、優先順位記憶変更手段6は、要求資源割当て手
段5により資aR4およびR5と資源R1、R2および
R3とが割り当てられた)゛ロセスP2の優先順位n2
およびプロセスID (R2)とプロセスP1の優先順
位n1およびプロセスID(PI)とを優先順位記憶部
7上からそれぞれ削除し、優先順位の再設定を行う。
Finally, the priority storage changing means 6 stores the priority n2 of the process P2 to which the resources aR4 and R5 and the resources R1, R2 and R3 are allocated by the request resource allocation means 5.
Then, the process ID (R2), the priority n1 of the process P1, and the process ID (PI) are deleted from the priority storage section 7, and the priority is reset.

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

以上説明したように本発明は、資源待ちプロセスの優先
順位制御および要求資源管理を行うことにより、資源解
放等に伴う資源再割当て処理時に資源待ちプロセスを不
要に再起動することなく資源割当て可能なプロセスの判
断が可能となり、仮想記憶空間から実記憶空間への無駄
なプロセス空間ロードを不要とするとともに、資源割当
てを優先順位に従ってシステムがその時点で最適と判断
したプロセスに正確に行うことが可能になるという効果
がある。
As explained above, the present invention enables resource allocation without unnecessary restarting of resource waiting processes during resource reallocation processing due to resource release etc. by controlling the priority of resource waiting processes and requesting resource management. It is now possible to judge processes, eliminating the need for unnecessary process space loading from virtual storage space to real storage space, and making it possible to accurately allocate resources to processes that the system determines to be optimal at that time according to priority. It has the effect of becoming

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

第1図は本発明の一実施例に係る資源待ちプロセスへの
資源割当て方式の構成を示すブロック図、第2図は第1
図中の優先順位記憶部および要求資源記憶部におけるプ
ロセスの資源待ち処理前の内容の一例を示す図、 第3図は第1図中の優先順位記憶部および要求資源記憶
部におけるプロセスの資源待ち処理後の内容の一例を示
す図、 第4図は第1図中の優先順位記4g部および要求資源記
憶部における資源解放による資源再割当て処理後の内容
の一例を示す図である。 図において、 ■・・・優先順位決定/記憶手段、 2・・・要求資源記憶手段、 3・・・優先順位一覧読出し手段、 4・・・要求資源読出し手段、 5・・・要求資源割当て手段、 6・・・優先順位記憶変更手段、 nl、n2.n3・優先順位、 PI、R2,R3・プロセス、 R1,R2,R3,R4,R5,R6・資源である。 2図 第3図 第4図
FIG. 1 is a block diagram showing the configuration of a resource allocation method for resource-waiting processes according to an embodiment of the present invention, and FIG.
A diagram illustrating an example of the contents of the priority storage section and the requested resource storage section in the figure before the resource waiting process of the process. FIG. 4 is a diagram showing an example of the contents after the resource reallocation process due to resource release in the priority list section 4g and the requested resource storage section in FIG. 1. In the figure, ■...Priority determination/storage means, 2...Required resource storage means, 3...Priority list reading means, 4...Required resource reading means, 5...Required resource allocation means. , 6...Priority storage changing means, nl, n2. n3 - priority, PI, R2, R3 - process, R1, R2, R3, R4, R5, R6 - resource. Figure 2 Figure 3 Figure 4

Claims (1)

【特許請求の範囲】 資源確保を要求するプロセスを資源不足その他の要因か
ら待たせる処理時に資源待ちとするプロセスの優先順位
を決定して優先順位記憶部に記憶する優先順位決定/記
憶手段と、 この優先順位決定/記憶手段により前記優先順位記憶部
に優先順位が記憶されたプロセスの要求資源を要求資源
記憶部に記憶する要求資源記憶手段と、 他プロセスの資源解放等による再割当て処理時に解放さ
れた資源を待つプロセスの優先順位一覧を前記優先順位
記憶部から読み出す優先順位一覧読出し手段と、 この優先順位一覧読出し手段により読み出された優先順
位一覧中の優先順位を有するプロセスの要求資源を前記
要求資源記憶部から読み出す要求資源読出し手段と、 前記優先順位一覧読出し手段により読み出された優先順
位一覧中の優先順位が高い順にプロセスに前記要求資源
読出し手段により読み出された資源を割り当てる要求資
源割当て手段と、 この要求資源割当て手段により資源が割り当てられたプ
ロセスの優先順位を前記優先順位記憶部から削除する優
先順位記憶変更手段と を有することを特徴とする資源待ちプロセスへの資源割
当て方式。
[Scope of Claims] Priority determination/storage means that determines the priority of a process that is to wait for a resource when a process that requests resource reservation is made to wait due to lack of resources or other factors, and stores the priority in a priority storage unit; requested resource storage means for storing in a requested resource storage section the requested resources of the processes whose priorities are stored in the priority storage section by the priority order determination/storage means; priority list reading means for reading out a priority list of processes waiting for the requested resources from the priority storage unit; and requesting resources of processes having priorities in the priority list read by the priority list reading means. requested resource reading means for reading from the requested resource storage unit; and a request to allocate the resources read by the requested resource reading means to processes in order of priority in the priority list read by the priority list reading means. A method for allocating resources to processes waiting for resources, comprising: a resource allocating means; and a priority memory changing means for deleting the priority of a process to which resources have been allocated by the requested resource allocating means from the priority memory. .
JP28637389A 1989-11-02 1989-11-02 System for allocating resources to resources waiting process Pending JPH03147137A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28637389A JPH03147137A (en) 1989-11-02 1989-11-02 System for allocating resources to resources waiting process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28637389A JPH03147137A (en) 1989-11-02 1989-11-02 System for allocating resources to resources waiting process

Publications (1)

Publication Number Publication Date
JPH03147137A true JPH03147137A (en) 1991-06-24

Family

ID=17703555

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28637389A Pending JPH03147137A (en) 1989-11-02 1989-11-02 System for allocating resources to resources waiting process

Country Status (1)

Country Link
JP (1) JPH03147137A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06332725A (en) * 1993-05-20 1994-12-02 Nec Corp Resource waiting job managing device
JPH08166888A (en) * 1994-12-14 1996-06-25 Nec Corp Memory controller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06332725A (en) * 1993-05-20 1994-12-02 Nec Corp Resource waiting job managing device
JPH08166888A (en) * 1994-12-14 1996-06-25 Nec Corp Memory controller

Similar Documents

Publication Publication Date Title
US5826082A (en) Method for reserving resources
US9135060B2 (en) Method and apparatus for migrating task in multicore platform
WO2017113688A1 (en) Resource allocation method and device
JPH09171470A (en) Resource allocating method for computer system
JP2000235502A (en) Block allocating method for common memory, computer readable recording medium, memory allocating method and memory allocation adjusting system
CN115576683A (en) Coroutine pool scheduling management method, system, device and storage medium
JP3664021B2 (en) Resource allocation method by service level
JPH03147137A (en) System for allocating resources to resources waiting process
JPH08152903A (en) Multiprocessor system
CN113010453A (en) Memory management method, system, equipment and readable storage medium
JPS63200257A (en) Program loading system for computer
JPH01191221A (en) Dynamic assignment managing system for magnetic disk area
JPH11175357A (en) Task management method
JP2003248620A (en) Dynamic memory managing method and dynamic memory management information processing device
JPH0452942A (en) File transfer system
JP2000047916A (en) System for managing database
JPH03136148A (en) File recall system
JPH0424828A (en) Multi-task control system
JPH0348950A (en) Memory control system
CN117593170A (en) Video memory allocation method, device, equipment and readable storage medium
JPS62192828A (en) File space allocation system
CN117707992A (en) Data operation method, device and equipment
JPH08153037A (en) Data management system in sequential area
JPH09212426A (en) Storage device managing method for virtual computer system
JPH0492930A (en) Exclusive control processor