JPH02126330A - Resources queuing system - Google Patents
Resources queuing systemInfo
- Publication number
- JPH02126330A JPH02126330A JP27978188A JP27978188A JPH02126330A JP H02126330 A JPH02126330 A JP H02126330A JP 27978188 A JP27978188 A JP 27978188A JP 27978188 A JP27978188 A JP 27978188A JP H02126330 A JPH02126330 A JP H02126330A
- Authority
- JP
- Japan
- Prior art keywords
- resource
- resources
- waiting
- request
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 claims abstract description 66
- 238000007726 management method Methods 0.000 claims description 26
- 238000013468 resource allocation Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000001174 ascending effect Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は多重プログラミング方式を採用しているオペレ
ティングシステムにおける資源待ち合わせ方式に関する
。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a resource waiting method in an operating system employing a multiple programming method.
磁気テープ、カードリーダ、プリンタ、紙テープなどの
入出力装置などの資源は、−度あるプロセスが確保する
とそのプロセスが解放するまで他のプロセスは使うこと
を禁止されている。これらの資源に対して複数のプロセ
スが使用を要求してきた時、オペレテイングシステムは
あとのプロセスを待たせる必要がある。Once a resource such as an input/output device such as a magnetic tape, card reader, printer, or paper tape is secured by a certain process, other processes are prohibited from using it until that process releases it. When multiple processes request use of these resources, the operating system must make the remaining processes wait.
従来のこの種の資源待ち合わせ方式は、資源を要求した
ときに必要な資源が確保できなければ、確保要求は待ち
行列に登録しておき、資源を使用しているプロセスが資
源を解放した時に待ち行列から確保要求が取り出され資
源が割り当るようにしている。In the conventional resource waiting method of this type, if the necessary resource cannot be secured when a resource is requested, the reservation request is registered in a queue, and when the process using the resource releases the resource, the reservation request is queued. Reservation requests are extracted from the queue and resources are allocated.
上述した従来の資源待ち合わせ方式は、待ち行列への登
録、取り出し1強制終了した際の削除処理など待ち行列
の処理が複雑であり、時間がかかるという欠点があった
。資源確保要求を再発行することにより、待ち行列を使
用せずに資源待ちを実現することが本発明の目的である
。The above-described conventional resource waiting method has the disadvantage that processing of the queue, such as registration in the queue and deletion processing when retrieval 1 is forcibly terminated, is complicated and takes time. It is an object of the present invention to realize resource waiting without using a queue by reissuing a resource reservation request.
本発明の資源待ち合わせ方式は、多重プログラミング方
式を採用しているオペレテイングシステムにおける資源
待ち合わせ方式において、資源割り当てのり否が登録さ
れる資源管理テーブルと、
資源待ちのプロセスが登録される資源待ちプロセステー
ブルと、
プロセスが動作するために必要な資源を判断するジョブ
管理部と、
該ジョブ管理部からの要求により資源確保要求を発行す
る資源要求手段と、
前記資源確保要求により資源割り当て可能か否かを前記
資源管理テーブルに基づいて判定する資源管理部と、
前記資源管理部により資源待ちと判断されたときに資源
待ちを前記資源待ちプロセステーブルに登録する資源待
ち登録手段と、
資源使用者が資源を解放したときに前記資源待ちプロセ
ステーブルに基づいて対象プロセスを動かし、資源確保
要求を再発行させる資源確保要求再発行手段とを含むこ
とを特徴とする。The resource waiting method of the present invention is a resource waiting method in an operating system that employs a multiple programming method, and includes a resource management table in which resource allocation status is registered, and a resource waiting process table in which resource waiting processes are registered. a job management unit that determines the resources necessary for the process to operate; a resource request unit that issues a resource reservation request in response to a request from the job management unit; and a resource request unit that issues a resource reservation request based on the resource reservation request. a resource management unit that makes a determination based on the resource management table; a resource wait registration unit that registers the resource wait in the resource wait process table when the resource management unit determines that the resource is waiting; and a resource wait register that registers the resource wait in the resource wait process table; The resource reservation request reissuing means is characterized in that the resource reservation request reissuing means moves the target process based on the resource waiting process table and causes the resource reservation request to be reissued when the resource reservation request is released.
次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明の一実施例の構成図である。FIG. 1 is a block diagram of an embodiment of the present invention.
この実施例はジョブ管理部101、資源要求手段102
、資源管理部201、資源管理テーブル202、資源待
ち登録手段203、資源待ちプロセステーブル204、
資源確保要求再発行手段205を含んでいる。In this embodiment, a job management unit 101, a resource requesting unit 102
, resource management unit 201, resource management table 202, resource waiting registration means 203, resource waiting process table 204,
It includes a resource securing request reissuing means 205.
第2図は資源待ちプロセステーブル204の構成例を示
す図である。FIG. 2 is a diagram showing an example of the configuration of the resource waiting process table 204.
資源待ちプロセステーブル204は、プロセスごとにエ
ントリが存在し、1つのエントリ2041は第2図に示
すようにプロセス番号2042と資源待ち状態フラグ2
043とで構成される。システム起動時にプロセス暗号
2042は0から昇順に格納され、資源待ち状態フラグ
2043はオフにセットされる。The resource waiting process table 204 has an entry for each process, and one entry 2041 has a process number 2042 and a resource waiting state flag 2 as shown in FIG.
043. When the system is started, the process codes 2042 are stored in ascending order starting from 0, and the resource waiting state flag 2043 is set to OFF.
次に資源待ちの処理について第31Nの流れ図に沿って
説明する。Next, resource waiting processing will be explained along the 31N flowchart.
ジョブ管理部101は、ジョブ制御部によってプロセス
が動作するために必要な資源を判断し、資源要求手段1
02により資源管理部201にたいして資源の確保を行
う。The job management unit 101 determines the resources necessary for the process to operate using the job control unit, and requests the resource request unit 1.
02, the resource management unit 201 secures resources.
資源管理部201は、資源割り当て状況を格納している
資源管理テーブル202に基づいて資源割り当て可能か
否かを判断する(ステップ301)、資源管理部201
は、資源割り当て不可と判断した場合は、資源待ち登録
手段203により資源待ちの登録を行う。The resource management unit 201 determines whether or not resources can be allocated based on the resource management table 202 that stores the resource allocation status (step 301).
If it is determined that resource allocation is not possible, resource waiting registration means 203 registers resource waiting.
資源待ち登録手段203は、資源管理部201よす資源
待ちすべきプロセスのプロセス番号が与えられると、与
えられたプロセス番号で資源待ちプロセステーブル20
4を検索して(303)、与えられたプロセス番号に対
応するエントリをみつけ、みつかったエントリの資源待
ち状態フラグ2043をオンにしく304) 、与えら
れたプロセス番号に対応するプロセスを停止状態にする
(305)。When the resource management unit 201 gives the process number of the process that should wait for resources, the resource waiting registration unit 203 registers the resource waiting process table 20 with the given process number.
4 (303), finds the entry corresponding to the given process number, turns on the resource waiting state flag 2043 of the found entry (304), and stops the process corresponding to the given process number. (305).
次に、資源待ち解除に処理について第4図の流れ図に沿
って説明する。Next, the process for releasing resource waiting will be explained along the flowchart of FIG. 4.
資源を確保していたプロセスが資源解放要求を資源管理
部201に要求すると、資源管理部201は、資源管理
テーブル202を更新し資源を解放して資源確保要求再
発行手段205に資源待ちプロセスの資源確保要求再発
行を要求する。When a process that has secured a resource requests a resource release request from the resource management unit 201, the resource management unit 201 updates the resource management table 202, releases the resource, and sends the resource reservation request reissue unit 205 to the resource waiting process. Request reissue of resource reservation request.
資源確保要求再発行手段205はプロセステーブル20
4を検索しく401)、資源待ち状態フラグ2043が
オンになっている(402>プロセス2042に対し、
そのフラグをオフとしく403)、そのプロセス番号2
04に対するプロセスの実行のアドレスを資源確保要求
手段102の先頭まで戻しく404)、そのプロセスに
停止状態を解除する(405>。The resource securing request reissue means 205 uses the process table 20
If you search for 4 (401), the resource waiting state flag 2043 is on (402>for process 2042,
Turn off that flag (403) and its process number 2
The execution address of the process for 04 is returned to the beginning of the resource reservation requesting means 102 (404), and the stopped state is released for that process (405>).
プロセスが働きだすと資源確保要求再発行手段205が
実行され資源確保要求が再び資源管理部201に通知さ
れ、資源割り当て処理が行なわれる。When the process starts working, the resource reservation request reissue unit 205 is executed, the resource reservation request is again notified to the resource management unit 201, and resource allocation processing is performed.
本発明は、以上のような構成の採用し、資源確保要求を
再発行することにより待ち行列を使用せずに資源待ちを
実現できるとうい効果がある。The present invention has the advantage that resource waiting can be realized without using a queue by employing the above configuration and reissuing a resource reservation request.
第1図は本発明の一実施例の機能ブロック図、第2図は
資源待ちプロセステーブルの1エントリの内容、第3図
は資源待ち登録をするための流れ図、第4図は資源確保
要求再発行を説明するための流れ図を示す図である。
101・・・・・・ジョブ管理部、102・・・・・・
資源要求手段、201・・・・・・資源管理部、202
・・・・・・資源テーブル、203・・・・・・資源待
ち登録手段、204・・・・・・資源待ちプロセステー
ブル、205・・・・・・資源確保要求再発行手段、2
041・・・・・・エントリ、2042・・・・・・プ
ロセス番号、2043・・・・・・資源待ち状態フラグ
。Fig. 1 is a functional block diagram of an embodiment of the present invention, Fig. 2 is the content of one entry in the resource waiting process table, Fig. 3 is a flowchart for registering resource waiting, and Fig. 4 is a re-request for resource reservation. FIG. 3 is a diagram showing a flowchart for explaining issuance. 101...Job management department, 102...
Resource requesting means, 201...Resource management section, 202
... Resource table, 203 ... Resource waiting registration means, 204 ... Resource waiting process table, 205 ... Resource reservation request reissuing means, 2
041...Entry, 2042...Process number, 2043...Resource waiting state flag.
Claims (1)
システムにおける資源待ち合わせ方式において、 資源割り当ての可否が登録される資源管理テーブルと、 資源待ちのプロセスが登録される資源待ちプロセステー
ブルと、 プロセスが動作するために必要な資源を判断するジョブ
管理部と、 該ジョブ管理部からの要求により資源確保要求を発行す
る資源要求手段と、 前記資源確保要求により資源割り当て可能か否かを前記
資源管理テーブルに基づいて判定する資源管理部と、 前記資源管理部により資源待ちと判断されたときに資源
待ちを前記資源待ちプロセステーブルに登録する資源待
ち登録手段と、 資源使用者が資源を解放したときに前記資源待ちプロセ
ステーブルに基づいて対象プロセスを動かし、資源確保
要求を再発行させる資源確保要求再発行手段とを含むこ
とを特徴とする資源待ち合わせ方式。[Scope of Claims] In a resource waiting method in an operating system that employs a multiple programming method, there is provided a resource management table in which resource allocation availability is registered, a resource waiting process table in which resource waiting processes are registered, a job management unit that determines resources necessary for a process to operate; a resource request unit that issues a resource reservation request in response to a request from the job management unit; and a resource request unit that issues a resource reservation request based on the resource reservation request; a resource management unit that makes a determination based on a management table; a resource waiting registration unit that registers resource waiting in the resource waiting process table when the resource management unit determines that the resource is waiting; and a resource waiting registration unit that registers resource waiting in the resource waiting process table; A resource waiting method characterized in that it includes a resource securing request reissuing means for moving a target process based on the resource waiting process table and reissuing a resource securing request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP27978188A JPH02126330A (en) | 1988-11-04 | 1988-11-04 | Resources queuing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP27978188A JPH02126330A (en) | 1988-11-04 | 1988-11-04 | Resources queuing system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH02126330A true JPH02126330A (en) | 1990-05-15 |
Family
ID=17615832
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP27978188A Pending JPH02126330A (en) | 1988-11-04 | 1988-11-04 | Resources queuing system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH02126330A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7278141B2 (en) | 2003-04-23 | 2007-10-02 | International Business Machines Corporation | System and method for adding priority change value corresponding with a lock to a thread during lock processing |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01297760A (en) * | 1988-05-26 | 1989-11-30 | Hitachi Ltd | System for lock control and task control in multiprocessor |
-
1988
- 1988-11-04 JP JP27978188A patent/JPH02126330A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01297760A (en) * | 1988-05-26 | 1989-11-30 | Hitachi Ltd | System for lock control and task control in multiprocessor |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7278141B2 (en) | 2003-04-23 | 2007-10-02 | International Business Machines Corporation | System and method for adding priority change value corresponding with a lock to a thread during lock processing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH02126330A (en) | Resources queuing system | |
JP3746826B2 (en) | Resource lock control mechanism | |
JPH05313923A (en) | Exclusive controller for shared resources | |
JPH04314147A (en) | Memory managing system | |
JP2923924B2 (en) | Resource waiting job start method | |
JPH07325779A (en) | Input/output controller | |
JPS63257830A (en) | Loosely coupled compound system | |
JPH02194442A (en) | Shared resource controller | |
JPH05113894A (en) | File resource managing system in virtual computer system | |
JPH02244228A (en) | Job start control method | |
JPH0586574B2 (en) | ||
JPH0447357A (en) | Control system for virtual computer system | |
JPH0581048A (en) | Management system for resource | |
JPH03225417A (en) | Input/output control system for extended storage device | |
JPH08292956A (en) | Device and method for data base management | |
JPH04107640A (en) | Computer system | |
JPH05113893A (en) | Volume resource managing system in virtual computer | |
JPH0237445A (en) | Assignment processing system for control table | |
JPH0351920A (en) | Resources waiting control system | |
JPH0797348B2 (en) | File access controller | |
JPS63298446A (en) | Operating system | |
JPH02120928A (en) | Printer output control system | |
JPH044456A (en) | Shared file processing system | |
JPS63245754A (en) | Input/output control system for information processing system | |
JPH0689192A (en) | Floating exclusive control system for online real time processing system |