JPS60110046A - Resource controller - Google Patents

Resource controller

Info

Publication number
JPS60110046A
JPS60110046A JP21890983A JP21890983A JPS60110046A JP S60110046 A JPS60110046 A JP S60110046A JP 21890983 A JP21890983 A JP 21890983A JP 21890983 A JP21890983 A JP 21890983A JP S60110046 A JPS60110046 A JP S60110046A
Authority
JP
Japan
Prior art keywords
resources
program
interrupt
storage device
resource
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
JP21890983A
Other languages
Japanese (ja)
Inventor
Hiroshi Matsumoto
弘 松本
Yutaka Takano
豊 高野
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP21890983A priority Critical patent/JPS60110046A/en
Publication of JPS60110046A publication Critical patent/JPS60110046A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To facilitate exclusive control for use of resources with a computer system having no clock function by producing an interruption when the contents of a memory storing the using state of resources are equal to a specific value. CONSTITUTION:When a certain program delivers requests for resources 61-6n which cannot be used simultaneously with other program for an OS, the OS registers the corresponding program to a waiting line and sets the state of a request signal line 7 at 1 to shift the control to another program. In this case, all flags of a momory 1 are set at 0 as long as the resources 61-6n are all available. Then an interruption signal is produced from an interruption generating circuit 2. Thus an interruption processing program of the OS is started, and the resources 61-6n are allocated to the programs connected to the head of the waiting line. Then the program is set under an executable state and removed from the waiting line, and the state of the line 7 is set at 0.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、コンピュータシステムに於ける資源管理を行
なう資源管理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a resource management device for managing resources in a computer system.

従来例の構成とその問題点 オペレーティングシステム(以後O8と呼))の重要外
機能の一つとして資源管理機能がある。
Conventional configuration and its problems One of the non-essential functions of the operating system (hereinafter referred to as O8) is a resource management function.

資源とは、コンピュータシステムに於いて処理を行方う
ために必要なもので、中央処理装置、主記憶装置、入出
力装置などの物理的な装置や、O8の機能、データの集
合といった論理的なものをも含む。従って、コンピュー
タシステムの処理能力の大小は、各種資源を如何に効果
的に割当てるかにかかつているといっても過言ではない
Resources are things that are necessary for processing in a computer system, and include physical devices such as the central processing unit, main memory, and input/output devices, as well as logical devices such as O8 functions and data collections. Including things. Therefore, it is no exaggeration to say that the processing power of a computer system depends on how effectively various resources are allocated.

従来の資源管理の方法を以下に説明する。A conventional resource management method will be explained below.

資源管理機能は、複数個のプログラムが同時に使用でき
ない1個の資源を共有する場合、あるプログラムが資源
を使用している間、他のプログラムは資源を使用できな
いように排他制御を行なう。
When a plurality of programs share a single resource that cannot be used simultaneously, the resource management function performs exclusive control so that while one program is using the resource, other programs cannot use the resource.

また、複数個の資源を同時に必要とするプログラムを実
行する場合、尚該プログラムが必要とする資源が全て使
用可能となった時点で、当該プログラムの実行を開始さ
せる。
Furthermore, when executing a program that requires a plurality of resources at the same time, execution of the program is started when all the resources required by the program become available.

プログラムが複数個の資源を同時に必要とする場合、各
資源の使用状況を示す複数個のフラグビットを各資源に
対応させて主記憶装置内に設け、フラグビットの状態を
参照することによって、当該プログラムが要求する各資
源が使用用能か否かを調べる。もし、尚該プログラムが
要求する全ての資源が使用n1能ならば、資源に対応す
るフラグビットを、使用状態であることを示すように更
新し、他プログラムに対して資源が使用不可能になった
ことを示す。即ち、資源の使用状況を示すフラグビット
を使用状態であることを示すように更新することによっ
て、他プログラムに対して資源の使用を禁止し、排他制
御を行なう。
When a program requires multiple resources at the same time, multiple flag bits indicating the usage status of each resource are provided in the main memory corresponding to each resource, and the status of the flag bits is referenced. Checks the availability of each resource required by the program. If all the resources requested by the program are n1 available, the flag bits corresponding to the resources are updated to indicate that they are in use, making the resources unavailable to other programs. to show that That is, by updating the flag bit indicating the usage status of the resource to indicate that it is in the usage status, other programs are prohibited from using the resource and exclusive control is performed.

ところが、前述の排他制御を行なうだめには、フラグピ
ッ]・の参照、更新の一連の処理を行なっている間は、
他プログラムによる前記フラグビットの参照、更新を禁
止しなければ々らない。もし能プログラムからの参照、
更新を許してしまうと、同時に使用できない資源を、複
数個のプログラムが同時に使用するといった事態が発生
する可能性がある。
However, in order to perform the above-mentioned exclusive control, while performing the series of reference and update processes for the flag pin,
It is necessary to prohibit reference and update of the flag bits by other programs. If a reference from a Noh program,
If updates are allowed, a situation may occur in which multiple programs use resources that cannot be used simultaneously.

以」二のような問題を回避するには、フラグビットを参
照、更新する間、バスを占有することによって不可分の
処理とし、他プログラムによる参照。
In order to avoid problems like the above, the flag bits can be referenced and updated by occupying the bus, making them an inseparable process and allowing other programs to reference them.

更新を禁止ずればよい。You can prohibit updates.

しかし、バスを占有したまま一連の処理を行々う機能(
以後バスロック機能と呼ぶ)を持たないコンピュータに
於いては、上記のような排他制御を行なうことができな
いため、資源使用のU1゛他制御を行なうことができな
い。
However, the function that performs a series of processing while occupying the bus (
Computers that do not have a bus lock function (hereinafter referred to as a bus lock function) cannot perform exclusive control as described above, and therefore cannot perform other controls on resource use.

発明の目的 本発明は、バスロック機能を持たないコンビコータシス
テムに於いて、複数個のプログラムによって同時に使用
することのできない複数個の資源の排他制御を割込みを
用いて行なうことにより、資源管理を行なう資源管理装
置を提供するものである。
Purpose of the Invention The present invention improves resource management by using interrupts to exclusively control multiple resources that cannot be used simultaneously by multiple programs in a combicoater system that does not have a bus lock function. The present invention provides a resource management device that performs the following tasks.

発明の構成 本発明は、資源の使用が可能か否かを表わずフラグビッ
トを複数個設けた記憶装置と、前記記憶装置の内容があ
る特定の状態になった時に、中央処理装置に対して割込
みを発生させる割込み発生回路を備えた資源管理装置で
あり、バスロック機能ヲ持たないコンピュータシステム
に於いて、前記記憶装置の内容が特定の状態になった時
、前記割込み発生回路によって発生した割込みを用いて
、同時に複数個必要とされる資源の使用を管理するもの
である。
Composition of the Invention The present invention provides a storage device that is provided with a plurality of flag bits that do not indicate whether or not resources can be used, and that when the contents of the storage device reach a certain specific state, the information is sent to a central processing unit. This resource management device is equipped with an interrupt generation circuit that generates an interrupt when the contents of the storage device reach a specific state in a computer system that does not have a bus lock function. Interrupts are used to manage the use of multiple required resources at the same time.

実施例の説明 以下、本発明の一実施例について図面を参照しながら説
明する。第1図は、本発明による資源管理装置の構成を
示すブロック図である。
DESCRIPTION OF EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a resource management device according to the present invention.

1はコンピュータシステムの各利i資源61.62〜6
nと1対1に対応し資源61.62〜6nの使用状況を
記憶するフラグビットの集合を実現するために主記憶装
置とは別に設けられた記憶装置、2は記憶装置1の各フ
ラグビットの出力と資源61.62〜6nの使用要求が
あることを示す要求信号線7を入力として、記憶装置1
の全てのフラグビットが未使用状態を示しかつ要求信号
線7が資源の使用要求がある状態になった時に割込み信
号を発生する割込み発生回路、3は割込み発生回路2に
よって発生した割込み信号を中央処理装置4に伝達する
割込み信号線、6は中央処理装置4が割込み信号を受け
付けるのに充分外パルス幅を保証すると共に記憶装置1
のフラグビットを使用状態であることを示すようにセン
トする動作を確実に行うように、割込み信号に遅延を与
える遅延回路である。
1 represents each resource of the computer system 61.62-6
A storage device provided separately from the main storage device in order to realize a set of flag bits that store the usage status of resources 61, 62 to 6n in one-to-one correspondence with n, 2 is each flag bit of storage device 1 The output of the storage device 1 and the request signal line 7 indicating that there is a request to use the resources 61,62 to 6n are input.
3 is an interrupt generation circuit that generates an interrupt signal when all flag bits of indicate an unused state and the request signal line 7 is in a state where there is a request to use a resource. An interrupt signal line 6 that transmits to the processing unit 4 guarantees a sufficient external pulse width for the central processing unit 4 to accept the interrupt signal, and also connects the storage device 1 to the interrupt signal line 6.
This is a delay circuit that delays the interrupt signal to ensure that the flag bit of the interrupt signal is set to indicate that it is in use.

第2図は本実施例の具体的な構成を示す回路図である。FIG. 2 is a circuit diagram showing a specific configuration of this embodiment.

第2図に於いて、記憶装置1の各フラグビットはフリソ
フリロソプを用いて構成されており、フラグビットに対
応する資源が使用可能である場合は” O”がセットさ
れ、そうでない場合はパ1“がセットされる。
In FIG. 2, each flag bit of the storage device 1 is configured using a Frisophore, and if the resource corresponding to the flag bit is available, "O" is set; otherwise, the flag bit is set to "O". “ is set.

丑だ、割込み発生回路2は、記憶装置1の全てのフラグ
ビットが11 o IIであり、かつ要求信号線7の状
態が′1′”である時に割込み信号を発生するように構
成されている。
The interrupt generation circuit 2 is configured to generate an interrupt signal when all flag bits of the storage device 1 are 11 o II and the state of the request signal line 7 is '1'. .

遅延回路6は、インパークを偶数個直列に接続して記憶
装置1の全てのフラグビットをパ1“にセットし、かつ
中央処理装置4が割込みを受け伺けるのに充分な遅延を
割込み信号に与えるように(11)成する。
The delay circuit 6 connects an even number of impulses in series, sets all the flag bits of the storage device 1 to "P1", and outputs the interrupt signal with a sufficient delay for the central processing unit 4 to receive the interrupt. (11) is done so that it is given to .

以上のように構成された本実施例の資源管理装置につい
て以下その動作を説明する。
The operation of the resource management device of this embodiment configured as described above will be described below.

あるプログラムが、O8に対して他のプログラムと同時
に使用できない資源61.62〜6nの要求を発すると
、O8は資源を要求したプログラムを待ち行列に接続し
て待ち状態とし、要求信号線7の状態をパ1“′にセノ
t・した後、いったん他のプログラムに制御を移す。待
ち行列は、資源が複数個のプログラムによって同時に使
用されることがないように、待ち行列に接続されて待ち
状態になっているプログラムに資源を順次割当てるため
に設けられたものである。
When a certain program issues a request to O8 for resources 61, 62 to 6n that cannot be used at the same time as other programs, O8 connects the program that requested the resource to a queue and puts it in a waiting state. After changing the state to par1, the control is transferred to another program.The queue is connected to the queue so that the resource is not used by multiple programs at the same time. It is provided to sequentially allocate resources to programs that are in a state.

要求信号線7の状態が“1”になった時、資源61.6
2〜6nが全て使用可能ならば、即ち記憶装置1の全て
のフラグビットが′0 +−斤らば、割込み発生回路2
は割込み信号を発生する。割込み信号は、割込み信号線
3によって中央処理装置4に到達する。中央処理装置4
に割込み信号が到達すると、O8の一部を構成する割込
み処理プログラムが起動され、割込み処理プログラムの
処理の中で、全ての資源が使用可能になったことを示す
割込みであることが判明すると、O8は待ち行列の先頭
に接続されたプログラムに資源61゜62〜6nを割当
て、プログラムを実行可能状態にして待ち行列から取り
はずす。この時、待ち行列が空になったならば、要求信
号線7の状態を“0゛°にする。
When the state of the request signal line 7 becomes “1”, the resource 61.6
If all flag bits 2 to 6n can be used, that is, if all flag bits of the storage device 1 are '0 +-, then the interrupt generation circuit 2
generates an interrupt signal. The interrupt signal reaches the central processing unit 4 via the interrupt signal line 3. Central processing unit 4
When an interrupt signal arrives at , an interrupt processing program forming part of O8 is started, and during the processing of the interrupt processing program, it is determined that the interrupt signal indicates that all resources are available. O8 allocates resources 61, 62 to 6n to the program connected to the head of the queue, makes the program executable, and removes it from the queue. At this time, if the queue becomes empty, the state of the request signal line 7 is set to "0".

また、割込み信号は遅延回路5を経由して記憶装置1の
全てのフラグビットをa 11+にリセットするよう機
能する。この時、遅延回路5は割込み信−弓に遅延を与
えて、記憶装置1のフラグビットのりセント動作及び中
央処理装置4への割込み動作を確実にする。
The interrupt signal also functions to reset all flag bits of the memory device 1 to a11+ via the delay circuit 5. At this time, the delay circuit 5 delays the interrupt signal to ensure that the flag bits of the storage device 1 and the central processing unit 4 can receive the interrupt.

一方、要求した資源61.62〜6nのうち一個でも使
用不可能であるならば、即ち記憶装置1のフラグビット
のうち一個でもII 111であるならば、割込みは発
生しないので、資源61.62〜6nを要求したプログ
ラムは待ち行列に接続されだま丑要求した全ての資源が
使用可能になるまで待ち状態になる。
On the other hand, if even one of the requested resources 61.62 to 6n is unavailable, that is, if even one of the flag bits of the storage device 1 is II 111, no interrupt will occur, so the resources 61.62 The program that requested ~6n is connected to the queue and waits until all requested resources are available.

他プログラムの終了等により、それ址で占有されていた
資源が開放されて使用可能になると、開放された資源に
対応する記憶装置1のフラグピノhu*源が開放された
ことを表わす信号によって○′′にセントされる。そし
て、記憶装置1の全てのフラグビットがIt OIIに
なると、割込み発生回路2により割込み信号が発生し、
前述したような動作を行なう。
When the resource occupied by the other program is released and becomes usable due to the termination of another program, the flag pino hu* source of the storage device 1 corresponding to the released resource is activated by a signal indicating that the resource has been released. ’ cents. Then, when all flag bits of the storage device 1 become ItOII, an interrupt signal is generated by the interrupt generation circuit 2,
Perform the operations described above.

以後、前記と同様な動作が繰り返され、資源は自動的に
管理されていく。
Thereafter, operations similar to those described above are repeated, and resources are automatically managed.

以上のように本実施例によれば、プログラムが他のプロ
グラムと同時に使用できない複数個の資源を同時に要求
する場合、要求された全ての資源が使用可能である時は
、当該プログラムに資源を排他的に割当てることが可能
となる。また、要求された資源のうち1個でも使用不可
能ならば、全ての資源が使用可能となるまで資源の割当
てを行なわないようにすることが可能となり、パスロッ
ク機能を持たないコンピュータシステムに於いても、前
述したような資源使用の排他制御を容易に実現できる。
As described above, according to this embodiment, when a program simultaneously requests multiple resources that cannot be used simultaneously by other programs, if all the requested resources are available, the resource is exclusive to the program. It becomes possible to allocate the In addition, if even one of the requested resources is unavailable, it is possible to prevent resource allocation until all resources are available, which is useful in computer systems that do not have a pass lock function. However, even if the resource usage is limited, exclusive control of resource usage as described above can be easily achieved.

なお、本発明は、記憶装置1のフラグビットの信渇の極
性を本実施例中で説明した極性にのみ限定するものでは
ない。
Note that the present invention does not limit the polarity of the reliability of the flag bit of the storage device 1 to only the polarity described in this embodiment.

また、本発明は、遅延回路6を本実施例で示した構成に
のみ限定するものではない。
Furthermore, the present invention does not limit the delay circuit 6 to the configuration shown in this embodiment.

発明の効果 以上のように本発明は、資源の使用状況を表わす記憶装
置と、記憶装置の内容が特定の値になった時に割込みを
発生する割込み発生回路を設けることにより、バスロッ
ク機能を持たないコンピュータシステムに於いても、資
源使用の排他制御を容易に実現することができ、その実
用的効果は犬なるものがある。
Effects of the Invention As described above, the present invention has a bus lock function by providing a storage device that represents the resource usage status and an interrupt generation circuit that generates an interrupt when the contents of the storage device reach a specific value. Exclusive control of resource use can be easily achieved even in computer systems that do not have a computer system, and its practical effects are significant.

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

第1図は本発明の一実施例における資源管理装置を示す
ブロック図、第2図は同実施例の具体的(11?成を示
す回路図である。− 1・・・・・・記憶装置、2・・・・・・割込み発生回
路、38.。 ・割込み信号線、4・・・・・中央処理装置、5− 、
=遅延回路、61.62〜6n・・・・・・資源、7・
・・・・・要求信−号胚(。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第1
図−
FIG. 1 is a block diagram showing a resource management device according to an embodiment of the present invention, and FIG. 2 is a circuit diagram showing a specific (11) configuration of the same embodiment.-1...Storage device , 2... Interrupt generation circuit, 38. - Interrupt signal line, 4... Central processing unit, 5-,
=Delay circuit, 61.62-6n... Resources, 7.
・・・・・・Request signal embryo (. Name of agent: Patent attorney Toshio Nakao and 1 other person No. 1
Figure-

Claims (1)

【特許請求の範囲】[Claims] コンピュータシステムの資源と1対1に対応し、前記資
源の使用状況を表示するフラグビットの集合から成る記
憶装置と、前記記憶装置のフラグビットの出力と前記資
源の使用を要求するプログラムが存在することを示す要
求信号線を入力として、前記フラグビットが全て未使用
状態を示しかつ前記要求信号線が資源の使用を要求する
プログラムが存在する状態を示す時に割込み信号を発生
する割込み発生回路と、前記割込み発生回路の出力が割
込み信号入力端子に接続される中央処理装置と、前記割
込み発生回路の出力によって前記記憶装置をリセツトす
る際に、前記リセット動作を確実に行なうように前記割
込み信号に遅延を与える遅延回路とによって構成され、
前記コンピュータシステム内で実行されているプログラ
ムが、他のプログラムと同時には使用できない複数個の
前記資源を要求する場合、前記要求信号線に前記資源の
使用要求を示す信号を送出し、前記要求した資源が全て
使用可能であることを割込みによって検出して、要求を
発したプログラムに資源を与え、かつ前記記憶装置の全
てのフラグビットを使用状態ニセットすることによって
排他制御を行なうことを%徴とする資源管理装置。
There is a storage device consisting of a set of flag bits that corresponds one-to-one with the resources of a computer system and displays the usage status of the resources, and a program that requests output of the flag bits of the storage device and use of the resources. an interrupt generation circuit that receives a request signal line indicating that the resource is to be used, and generates an interrupt signal when all of the flag bits indicate an unused state and the request signal line indicates that a program requesting the use of the resource exists; A central processing unit to which the output of the interrupt generation circuit is connected to an interrupt signal input terminal, and a delay to the interrupt signal to ensure the reset operation when the storage device is reset by the output of the interrupt generation circuit. and a delay circuit that gives
When a program running in the computer system requests a plurality of the resources that cannot be used simultaneously by other programs, it sends a signal indicating a request to use the resources to the request signal line, and The system detects through an interrupt that all the resources are available, gives the resources to the program that issued the request, and performs exclusive control by resetting all the flag bits of the storage device to the usage state. resource management device.
JP21890983A 1983-11-21 1983-11-21 Resource controller Pending JPS60110046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21890983A JPS60110046A (en) 1983-11-21 1983-11-21 Resource controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21890983A JPS60110046A (en) 1983-11-21 1983-11-21 Resource controller

Publications (1)

Publication Number Publication Date
JPS60110046A true JPS60110046A (en) 1985-06-15

Family

ID=16727212

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21890983A Pending JPS60110046A (en) 1983-11-21 1983-11-21 Resource controller

Country Status (1)

Country Link
JP (1) JPS60110046A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6288037A (en) * 1985-10-11 1987-04-22 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Signal processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6288037A (en) * 1985-10-11 1987-04-22 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Signal processing system

Similar Documents

Publication Publication Date Title
EP0644487B1 (en) Scalable system interrupt structure for a multiprocessing system
CN105579961B (en) Data processing system, operating method and hardware unit for data processing system
TW490638B (en) Computer for executing plural operating systems
TWI239450B (en) Apparatus, computer readable recording medium, and method for yielding to a processor within a logically partitioned data processing system
JP4034969B2 (en) Memory management system for common memory
JP3659062B2 (en) Computer system
KR100509794B1 (en) Method of scheduling jobs using database management system for real-time processing
US7770177B2 (en) System for memory reclamation based on thread entry and release request times
KR20010087404A (en) Interrupt architecture for a non-uniform memory access data processing system
JP2013506179A (en) Execution management system combining instruction threads and management method
EP0644489A2 (en) Method and apparatus for signalling interrupt information in a data processing system
JPH1097490A (en) Method and device for distributing interruption without changing bus width or bus protocol in scalable symmetrical multiprocessor
CN116302617B (en) Method for sharing memory, communication method, embedded system and electronic equipment
JP3546694B2 (en) Multi-thread computer system and multi-thread execution control method
JPS59114659A (en) Memory access control circuit
JPH08161254A (en) Information processing system and bus arbitration system therefor
JPS60110046A (en) Resource controller
US10713188B2 (en) Inter-process signaling system and method
CN114675954A (en) Task scheduling method and device
CN114416322A (en) Task scheduling method and device based on double linked lists, electronic equipment and storage medium
JPH03150654A (en) Preference control system for processor having cash
CN117149471B (en) Communication method, device, embedded system, storage medium and electronic equipment
JPS6327936A (en) File management method
JPS61143858A (en) File share method for plural operating systems
JP2001014177A (en) Method for processing asynchronous data input and output and program recording medium