JPH0619858A - Automatic return system for common resources - Google Patents

Automatic return system for common resources

Info

Publication number
JPH0619858A
JPH0619858A JP17794092A JP17794092A JPH0619858A JP H0619858 A JPH0619858 A JP H0619858A JP 17794092 A JP17794092 A JP 17794092A JP 17794092 A JP17794092 A JP 17794092A JP H0619858 A JPH0619858 A JP H0619858A
Authority
JP
Japan
Prior art keywords
processor
common resource
common
exclusive control
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.)
Withdrawn
Application number
JP17794092A
Other languages
Japanese (ja)
Inventor
Takao Numakura
隆郎 沼倉
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.)
Fujitsu Ltd
Fujitsu Communication Systems Ltd
Original Assignee
Fujitsu Ltd
Fujitsu Communication Systems 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 Fujitsu Ltd, Fujitsu Communication Systems Ltd filed Critical Fujitsu Ltd
Priority to JP17794092A priority Critical patent/JPH0619858A/en
Publication of JPH0619858A publication Critical patent/JPH0619858A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To automatically release the exclusive control of a common resource when a fault occurs in a processor in the middle of the exclusive control of the common resource, and to permit the other normal processor to use the common resource. CONSTITUTION:In a multiprocessor system where plural processors 2 respectively have the common resources, the respective processors 2 are provided with operating system parts 2a controlling a self operation and managing the common resources 1 which they themselves have and common resource management tables 2b storing processor ID specifying the processor that exclusively controls the common resources 1 which the processors 2 have. The system is the automatic return system of the common resource.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数のプロセッサを備
え、それらを並列に起動して処理を行うマルチプロセッ
サシステムに関し、特にこれら複数のプロセッサが共通
して使用可能な共通資源を任意のプロセッサが使用して
いる際に、他のプロセッサが使用することを防止する排
他制御を行うマルチプロセッサシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multiprocessor system having a plurality of processors and activating them in parallel to perform processing. In particular, a common resource that can be commonly used by the plurality of processors is an arbitrary processor. The present invention relates to a multiprocessor system that performs exclusive control to prevent other processors from using the same when they are used.

【0002】[0002]

【従来の技術】計算機システムは、メモリ、プロセッ
サ、入出力装置からなるハードウェア資源(以下、リソ
ースと記す)と、個々のタスクにリソースを割り当て、
その動作を制御する制御プログラム、すなわちソフトウ
ェアとから構成されている。
2. Description of the Related Art A computer system allocates hardware resources (hereinafter referred to as resources) consisting of a memory, a processor and an input / output device, and resources to individual tasks.
It is composed of a control program for controlling the operation, that is, software.

【0003】最近では、複数のタスクを単一のプロセッ
サで時分割多重方式により並列処理可能とする機能をソ
フトウェアにもたせたマルチタスク方式が知られてい
る。このマルチタスク方式では、複数のタスク間でリソ
ースを効率よく共用することが可能となり、演算処理を
高速に行え、計算機システム全体の処理能力を向上させ
るという利点がある。
Recently, a multi-task system has been known in which a software has a function of enabling a plurality of tasks to be processed in parallel by a single processor by a time division multiplex system. The multitasking method has an advantage that resources can be efficiently shared among a plurality of tasks, the arithmetic processing can be performed at high speed, and the processing capacity of the entire computer system is improved.

【0004】しかし、近年では情報処理量が著しく増加
してきたために、一つのプロセッサでこれらの情報処理
を行うと非常に時間がかかるという問題が出てきたた
め、プロセッサを複数備えたマルチプロセッサシステム
が普及してきている。
However, since the amount of information processing has increased remarkably in recent years, there has been a problem that it takes a very long time to perform such information processing by one processor. Therefore, a multiprocessor system having a plurality of processors has become widespread. I'm doing it.

【0005】このマルチプロセッサシステムには、主記
憶装置等のリソースを複数のプロセッサに共用させて運
用するものがある。なかでも各プロセッサに複数の共通
資源を割り当て、この共通資源を他のプロセッサのタス
クが使用可能とした方式が知られている。
In some multiprocessor systems, resources such as a main memory are shared by a plurality of processors for operation. Among them, a method is known in which a plurality of common resources are allocated to each processor and the common resources can be used by tasks of other processors.

【0006】上記した共通資源に対して、複数のプロセ
ッサが同時に同一の共通資源を使用することを防止する
ため、すなわち任意のタスクが共通資源を使用している
際に他のタスクがこの共通資源を使用することを防止す
る排他制御が行われる。
In order to prevent a plurality of processors from using the same common resource at the same time with respect to the above-mentioned common resource, that is, when any task is using the common resource, another task can use this common resource. Exclusive control is performed to prevent the use of.

【0007】この排他制御は、セマフォと呼ばれる共通
資源管理情報に基いて行われている。このセマフォと
は、使用可能な共通資源数及び必要な共通資源数を獲得
するためのタスクの待ち行列とからなる。例えば、任意
のタスクが共通資源を使用する場合に、このタスクはシ
ステムコールにて必要な共通資源数獲得要求を行う。こ
れに対して当該共通資源を管理するプロセッサでは、要
求された共通資源数と当時点において使用可能な共通資
源数とを比較する。この結果、使用可能な共通資源数が
要求された共通資源数以上の場合は、プロセッサは当該
タスクに共通資源の使用許可を行う。これにより、当該
タスクは獲得した共通資源を使用して処理を続行でき
る。
This exclusive control is performed based on common resource management information called a semaphore. This semaphore consists of a queue of tasks for acquiring the number of available common resources and the required number of common resources. For example, when an arbitrary task uses a common resource, this task requests the acquisition of the number of common resources required by a system call. On the other hand, the processor that manages the common resource compares the requested number of common resources with the number of common resources that can be used at this time. As a result, when the number of available common resources is equal to or larger than the requested number of common resources, the processor permits the task to use the common resources. This allows the task to continue processing using the acquired common resource.

【0008】一方、使用可能な共通資源数が要求された
共通資源数未満の場合、すなわち要求元タスクが要求し
た共通資源数を獲得できない場合には、タスクは当該共
通資源が他のタスクから返却されるまで待機しなければ
ならい。
On the other hand, if the number of available common resources is less than the required number of common resources, that is, if the number of common resources requested by the requesting task cannot be obtained, the task returns the common resources from other tasks. I have to wait until it is done.

【0009】そして、当該共通資源が返却されると、そ
の時点において使用可能な共通資源数と当該タスクが要
求する共通資源数とを比較し、使用可能な共通資源数が
要求数を上回っていれば、当該タスクは待ち状態から開
放されると共に、当該共通資源を使用して処理を再実行
することが可能である。
Then, when the common resource is returned, the number of common resources available at that time is compared with the number of common resources required by the task, and the number of available common resources exceeds the required number. For example, the task can be released from the wait state and the process can be re-executed using the common resource.

【0010】[0010]

【発明が解決しようとする課題】しかし、前記した方式
では、任意のプロセッサが共通資源を排他制御中に障害
を発生した場合、当該プロセッサが再立ち上げされた後
も、共通資源は排他制御状態を保持することとなり、他
の正常なプロセッサが当該共通資源を使用できなくな
り、マルチプロセッサシステム全体の能力の低下を招い
ていた。
However, in the above-mentioned method, if any processor fails during exclusive control of the common resource, the common resource remains in the exclusive control state even after the processor is restarted. Therefore, the other normal processors cannot use the common resource, resulting in a decrease in the capability of the entire multiprocessor system.

【0011】そこで、本発明は前記問題点に鑑みてなさ
れたものであり、任意の共通資源を排他制御中のプロセ
ッサが障害発生により正常動作が不可能となった場合
に、当該共通資源の排他制御を自動的に解除して他の正
常なプロセッサがこの共通資源を利用可能とし、当該マ
ルチプロセッサシステム全体の処理能力の向上を図るこ
とを技術的目的とする。
Therefore, the present invention has been made in view of the above-mentioned problems, and when a processor that is performing exclusive control of an arbitrary common resource cannot normally operate due to a failure, the exclusion of the common resource is performed. It is a technical object to automatically release control so that another normal processor can use this common resource and to improve the processing capability of the entire multiprocessor system.

【0012】[0012]

【課題を解決するための手段】本発明は、前記課題を解
決するために以下のようにした。これを図1の原理図に
基いて説明する。
In order to solve the above-mentioned problems, the present invention is as follows. This will be described based on the principle diagram of FIG.

【0013】第1の手段として、本発明にかかるマルチ
プロセッサシステムは、複数のプロセッサ2と、各プロ
セッサ2毎に管理される共通資源1とから構成される。
ここで、前記各プロセッサ2は、オペレーティングシス
テム部2aと、共通資源管理テーブル2bとを有し、オ
ペレーティングシステム部2aは、自身を備えるプロセ
ッサ2の動作を制御すると共に、当該プロセッサ2の備
える共通資源1を管理するものである。
As a first means, the multiprocessor system according to the present invention comprises a plurality of processors 2 and a common resource 1 managed by each processor 2.
Here, each processor 2 has an operating system unit 2a and a common resource management table 2b, and the operating system unit 2a controls the operation of the processor 2 including itself and the common resource included in the processor 2. It manages 1.

【0014】一方、共通資源管理テーブル2bは、当該
プロセッサ2が備える共通資源1毎に、その共通資源1
を排他制御しているプロセッサ2を特定するプロセッサ
IDを格納するものである。
On the other hand, the common resource management table 2b includes a common resource 1 for each common resource 1 included in the processor 2.
It stores a processor ID that identifies the processor 2 that exclusively controls the.

【0015】さらに、共通資源管理テーブル2bには、
当該プロセッサ2が備える共通資源1のうち、同一機能
の共通資源1を特定する共通資源ID毎に、使用可能な
資源数、すなわち排他制御されていない資源数と、当該
共通資源1を排他制御しているプロセッサ2のプロセッ
サIDと、このプロセッサ2が排他制御している共通資
源数とを格納するようにしてもよい。この場合、オペレ
ーティングシステム部2aは、任意のプロセッサ2から
共通資源ID及び使用要求数を受けると、この共通資源
管理テーブル2bを参照して使用可能資源数と当該使用
要求数とを比較する。そして、使用可能資源数が使用要
求数以上ならば前記プロセッサ2に使用許可を与えると
共に、使用可能資源数から使用要求数を減算した値を新
たにこの使用可能資源数として登録する。
Further, in the common resource management table 2b,
Of the common resources 1 included in the processor 2, the number of usable resources, that is, the number of resources that are not exclusively controlled and the common resource 1 are exclusively controlled for each common resource ID that identifies the common resource 1 having the same function. The processor ID of the existing processor 2 and the number of common resources exclusively controlled by the processor 2 may be stored. In this case, when the operating system unit 2a receives the common resource ID and the use request number from any processor 2, the operating system unit 2a refers to the common resource management table 2b and compares the usable resource number with the use request number. If the number of available resources is equal to or greater than the number of required usages, the processor 2 is given permission to use and a value obtained by subtracting the number of required usages from the number of available resources is newly registered as the number of usable resources.

【0016】また、前記共通資源管理テーブル2bに任
意の共通資源1の使用を待機すべきプロセッサ2のプロ
セッサID及び共通資源1の使用要求数を先入れ先出し
する待合せ管理テーブルを設けるようにしてもよい。
Further, the common resource management table 2b may be provided with a waiting management table for first-in first-out of the processor ID of the processor 2 which should wait for the use of any common resource 1 and the number of requests for use of the common resource 1.

【0017】一方、第2の手段として、本発明にかかる
マルチプロセッサシステムは、複数のプロセッサ2と、
各プロセッサ2毎に管理される共通資源1と、各プロセ
ッサ2からアクセス可能な共有メモリ3とから構成され
る。
On the other hand, as a second means, the multiprocessor system according to the present invention comprises a plurality of processors 2.
It is composed of a common resource 1 managed for each processor 2 and a shared memory 3 accessible by each processor 2.

【0018】前記プロセッサ2は、自身の動作を管理す
ると共に、自身が備える共通資源1を管理するオペレー
ティングシステム部2aを備える。前記共有メモリ3
は、同一機能の共通資源1を特定する共通資源IDと、
前記共通資源ID毎に、当該共通資源1を排他制御中の
プロセッサ2を特定する排他制御プロセッサIDと、当
該共通資源1を備えるプロセッサ2を特定する管理プロ
セッサIDと、当該共通資源1のうち排他制御中の共通
資源数を示す排他制御数とを登録するための排他制御管
理テーブル3aを設けた。
The processor 2 includes an operating system section 2a that manages its own operation and also manages the common resource 1 of its own. The shared memory 3
Is a common resource ID that identifies the common resource 1 having the same function,
For each common resource ID, an exclusive control processor ID that specifies a processor 2 that is in exclusive control of the common resource 1, a management processor ID that specifies a processor 2 that includes the common resource 1, and an exclusion of the common resource 1 An exclusive control management table 3a is provided for registering the exclusive control number indicating the number of common resources under control.

【0019】[0019]

【作用】前記第1の手段によれば、オペレーティングシ
ステム部2aは、共通資源管理テーブル2bを監視し
て、特定の共通資源1が所定時間以上排他制御されてい
ないかを判別する。
According to the first means, the operating system section 2a monitors the common resource management table 2b to determine whether or not the specific common resource 1 is exclusively controlled for a predetermined time or longer.

【0020】ここで、特定の共通資源1が所定時間以上
排他制御されていると、当該オペレーティングシステム
部2aは、この共通資源1を排他制御しているプロセッ
サ2のプロセッサIDを検出する。そして、このプロセ
ッサ2による排他制御を強制解除させ、当該プロセッサ
IDを他のプロセッサ2にも通知して各プロセッサ2が
備える共通資源1に対する排他制御を強制解除するよう
促すことが可能となる。また、オペレーティングシステ
ム部2aは、任意のプロセッサ2から共通資源1の使用
要求を受けると、共通資源管理テーブル2bを参照して
当該使用要求数と、使用可能状態の資源数とを比較す
る。
When the specific common resource 1 is exclusively controlled for a predetermined time or longer, the operating system section 2a detects the processor ID of the processor 2 which is exclusively controlling the common resource 1. Then, it is possible to forcibly cancel the exclusive control by the processor 2, notify the other processors 2 of the processor ID, and prompt the forced cancellation of the exclusive control for the common resource 1 included in each processor 2. When the operating system unit 2a receives a request for use of the common resource 1 from an arbitrary processor 2, the operating system unit 2a refers to the common resource management table 2b and compares the number of use requests with the number of available resources.

【0021】そして、使用可能状態の資源数が使用要求
数以上の場合は、当該プロセッサ2に排他制御を許可
し、使用可能状態数から使用要求数を減算した値を新た
に使用可能状態数として共通資源管理テーブル2bに格
納すると共に、排他制御されている資源数に当該使用要
求数を加算した値を新たに排他制御中の資源数として格
納する。
If the number of resources in the usable state is equal to or greater than the number of required usages, exclusive control is permitted for the processor 2 and a value obtained by subtracting the number of required usages from the number of usable states is newly set as the number of usable states. The value is stored in the common resource management table 2b, and a value obtained by adding the number of usage requests to the number of resources under exclusive control is newly stored as the number of resources under exclusive control.

【0022】一方、上記した使用要求数と使用可能状態
の資源数の比較において、使用要求数が使用可能状態の
資源数を上回っている場合には、当該プロセッサ2のプ
ロセッサIDと共に使用要求数を共通資源管理テーブル
2b内の待合せ管理テーブルに登録する。そして、任意
のプロセッサ2により当該共通資源1の返却が行われた
際に、再度共通資源1の使用可能数と当該使用要求数と
を比較する。ここで、使用可能状態数が使用要求数以上
ならば、当該プロセッサ2に共通資源1の排他制御を許
可すると共に、前記の待合せ管理テーブルから当該プロ
セッサIDを削除する。
On the other hand, in the above comparison between the number of use requests and the number of resources in the usable state, if the number of use requests exceeds the number of resources in the usable state, the number of use requests is calculated together with the processor ID of the processor 2. It is registered in the waiting management table in the common resource management table 2b. Then, when the common resource 1 is returned by the arbitrary processor 2, the usable number of the common resource 1 is compared again with the use request number. If the number of usable states is equal to or greater than the number of requests for use, the processor 2 is permitted to perform exclusive control of the common resource 1, and the processor ID is deleted from the waiting management table.

【0023】また、任意の共通資源1を排他制御中に障
害を発生したプロセッサ2が当該障害から再立ち上げさ
れると、このプロセッサ2において、オペレーティング
システム部2aは、共有メモリ3にアクセスして、排他
制御管理テーブル3aを参照する。ここで、排他制御プ
ロセッサIDに自身のプロセッサIDが格納されている
か否かを判別し、格納されている場合には、かかる共通
資源1の排他制御を自動解除することが可能となる。
When the processor 2 in which a failure has occurred during exclusive control of an arbitrary common resource 1 is restarted from the failure, the operating system unit 2a in the processor 2 accesses the shared memory 3 to access the shared memory 3. , And the exclusive control management table 3a. Here, it is determined whether or not the processor ID of the processor itself is stored in the exclusive control processor ID, and if it is stored, the exclusive control of the common resource 1 can be automatically released.

【0024】以上から、排他制御中のプロセッサ2が障
害により正常な動作をできなくなった場合に、その排他
制御を自動解除することができ、他のプロセッサ2は、
不当な待ち時間なしにかかる共通資源1を使用可能とな
る。
From the above, when the processor 2 under exclusive control cannot operate normally due to a failure, the exclusive control can be automatically released, and the other processors 2 can
The common resource 1 can be used without undue waiting time.

【0025】[0025]

【実施例】以下に、本発明の具体的な実施例について説
明する。 (実施例1)図2は、本実施例1におけるマルチプロセ
ッサシステムの概略構成ブロック図である。
EXAMPLES Specific examples of the present invention will be described below. (Embodiment 1) FIG. 2 is a schematic block diagram of a multiprocessor system according to the first embodiment.

【0026】本実施例1のマルチプロセッサシステム
は、第1〜第3プロセッサ4a〜4cと、各プロセッサ
4が備える共通資源5と、各プロセッサ4からアクセス
可能な共有メモリ6とから構成される。本実施例1で
は、プロセッサ4毎に3つの共通資源5を備えるように
した。
The multiprocessor system according to the first embodiment includes first to third processors 4a to 4c, a common resource 5 included in each processor 4, and a shared memory 6 accessible from each processor 4. In the first embodiment, each processor 4 is provided with three common resources 5.

【0027】図3は、プロセッサ4の内部構成図であ
る。本実施例1におけるプロセッサ4は、自身に割り当
てられたタスクからの命令に従って自身の動作を制御す
ると共に、自身の備える共通資源A〜C(5a〜5c)
の管理を行うオペレーティングシステム部44、及び共
通資源管理テーブル40とから構成される。
FIG. 3 is an internal block diagram of the processor 4. The processor 4 according to the first embodiment controls its own operation in accordance with an instruction from a task assigned to itself, and also has its own common resources A to C (5a to 5c).
The common resource management table 40 and the operating system unit 44 that manages the.

【0028】前記の共通資源管理テーブル40は、当該
プロセッサ4が備える各共通資源5を管理するための情
報を格納している。この情報については、後述する。す
なわち、当該プロセッサ4は、他のプロセッサ4から共
通資源5の使用要求を受けた場合に、共通資源管理テー
ブル40を参照し、共通資源5の使用を許可するか否か
を判別する。
The common resource management table 40 stores information for managing each common resource 5 included in the processor 4. This information will be described later. That is, when the processor 4 receives a request for using the common resource 5 from another processor 4, the processor 4 refers to the common resource management table 40 and determines whether to permit the use of the common resource 5.

【0029】図4に、本実施例1における共通資源管理
テーブル40の具体例を示す。共通資源管理テーブル4
0には、当該プロセッサ4が備える共通資源5のうち、
同一機能の共通資源5毎に共通資源IDを定め、この共
通資源ID毎に資源の数、すなわち同一機能の共通資源
5の数を格納する。さらに、当該マルチプロセッサシス
テムを構成する各プロセッサ4のプロセッサIDとその
プロセッサ4が排他制御している共通資源5の数を格納
すると共に、排他制御中の共通資源5の合計数を格納し
ている。
FIG. 4 shows a concrete example of the common resource management table 40 in the first embodiment. Common resource management table 4
In 0, of the common resources 5 included in the processor 4,
A common resource ID is determined for each common resource 5 having the same function, and the number of resources, that is, the number of common resources 5 having the same function is stored for each common resource ID. Further, it stores the processor ID of each processor 4 constituting the multiprocessor system and the number of common resources 5 under exclusive control by the processor 4, and also stores the total number of common resources 5 under exclusive control. .

【0030】例えば、本実施例1においては、各プロセ
ッサ4には、共通資源A(5a)、共通資源B(5
b)、共通資源C(5c)の3つの共通資源を備えてい
るため、共通資源管理テーブル40は3つの領域に分割
してある。これら各領域には、使用可能な資源数、排他
制御数合計の値と共に、当該マルチプロセッサシステム
を構成する第1プロセッサ4aのプロセッサIDとこの
第1プロセッサ4aが排他制御している共通資源の資源
数を、同様に第2プロセッサ4b、第3プロセッサ4c
のそれぞれのプロセッサIDと排他制御中の共通資源数
を格納するようにしている。
For example, in the first embodiment, each processor 4 has a common resource A (5a) and a common resource B (5).
b), the common resource management table 40 is divided into three areas because the common resource C (5c) has three common resources. In each of these areas, the number of usable resources and the value of the total number of exclusive controls, together with the processor ID of the first processor 4a constituting the multiprocessor system and the resources of the common resource exclusively controlled by the first processor 4a. Similarly, the number of the second processor 4b, the third processor 4c
Each processor ID and the number of common resources under exclusive control are stored.

【0031】次に、図5は排他制御による共通資源管理
テーブルの変更過程を示す図である。同図においてX
は、初期状態における共通資源管理テーブル40の具体
例である。
Next, FIG. 5 is a diagram showing a process of changing the common resource management table by exclusive control. X in the figure
Is a specific example of the common resource management table 40 in the initial state.

【0032】ここで、第1プロセッサ4aから共通資源
A(5a)の排他制御要求を受けるとオペレーティング
システム部44は、当該共通資源管理テーブル40の共
通資源A(5a)の領域にアクセスし、使用可能資源数
を参照する。同図のXにおいて使用可能資源数は1であ
り、第1プロセッサ4aからの排他制御要求を1とする
と、 使用可能資源数−排他制御要求数=1−1=0≧0 であるから、当該オペレーティングシステム部44は、
第1プロセッサ4aの排他制御要求を許可する。すなわ
ち第1プロセッサ4aは共通資源A(5a)を使用する
ことが可能となる。
When the exclusive control request for the common resource A (5a) is received from the first processor 4a, the operating system section 44 accesses the area of the common resource A (5a) in the common resource management table 40 and uses it. Refer to the number of available resources. When the number of available resources is 1 in X of the figure, and the exclusive control request from the first processor 4a is 1, the number of available resources-the number of exclusive control requests = 1-1 = 0 ≧ 0. The operating system unit 44 is
The exclusive control request of the first processor 4a is permitted. That is, the first processor 4a can use the common resource A (5a).

【0033】ここで、オペレーティングシステム部44
は、共通資源管理テーブル40において、使用可能資源
数を”0”にすると共に、第1プロセッサ4aの排他制
御数を”0”から”1”に更新し、排他制御数合計を”
0”から”1”に更新する(図中Y)。
Here, the operating system unit 44
Sets the number of available resources to "0" in the common resource management table 40, updates the exclusive control number of the first processor 4a from "0" to "1", and sets the total exclusive control number to "1".
Update from 0 "to" 1 "(Y in the figure).

【0034】一方、使用可能な資源数が1であり、第1
プロセッサ4aからの排他制御要求が2以上の場合は、 使用可能資源数−排他制御要求数=1−2=−1≦0 であるから、当該オペレーティングシステム部44は、
第1プロセッサ4aを待機させる。
On the other hand, the number of usable resources is 1, and the first
When the number of exclusive control requests from the processor 4a is 2 or more, the number of usable resources-the number of exclusive control requests = 1-2 = -1 ≦ 0, and therefore the operating system unit 44
The first processor 4a is put on standby.

【0035】さらに、第1プロセッサ4aから前記共通
資源A(5a)が返却されると、当該オペレーティング
システム部44は、共通資源管理テーブル40の共通資
源A(5a)の領域にアクセスし、使用可能資源数”
0”に返却のあった資源数”1”を加算して”1”とす
ると共に、第1プロセッサ4aの排他制御数”1”から
返却のあった資源数”1”を減算して”0”を新たに格
納させる。これにより必然的に排他制御数合計は”0”
となる。
Further, when the common resource A (5a) is returned from the first processor 4a, the operating system section 44 can access and use the common resource A (5a) area of the common resource management table 40. Number of resources ”
The number of returned resources "1" is added to "0" to obtain "1", and the number of returned resources "1" is subtracted from the exclusive control number "1" of the first processor 4a to obtain "0". "Is newly stored. As a result, the total exclusive control number is necessarily" 0 ".
Becomes

【0036】次に、排他制御中のプロセッサ4が障害を
発生した際の当該マルチプロセッサシステムの動作過程
を図6のフローチャート図に基いて説明する。オペレー
ティングシステム部44は、自身の属するプロセッサ4
が備えている共通資源管理テーブル40を監視して(ス
テップ601)、特定の共通資源5を所定時間以上使用
(排他制御)しているプロセッサ4がないか監視する
(ステップ602)。ここで、所定時間以上同一の共通
資源5を排他制御しているプロセッサ4が存在する場合
には、そのプロセッサ4のプロセッサIDを当該共通資
源管理テーブル40より認識する(ステップ603)。
Next, the operation process of the multiprocessor system when the processor 4 under exclusive control fails will be described with reference to the flowchart of FIG. The operating system unit 44 is the processor 4 to which it belongs.
The common resource management table 40 included in the common resource management table 40 is monitored (step 601), and whether there is a processor 4 that has used (exclusive control) the specific common resource 5 for a predetermined time or longer (step 602). If there is a processor 4 that exclusively controls the same common resource 5 for a predetermined time or longer, the processor ID of the processor 4 is recognized from the common resource management table 40 (step 603).

【0037】さらに、当該共通資源管理テーブル40の
他の領域を参照し、当該プロセッサ4による排他制御中
の共通資源5を認識し、当該プロセッサ4による排他制
御から全ての共通資源5を強制的に解放させる(ステッ
プ604)。
Further, by referring to another area of the common resource management table 40, the common resource 5 under the exclusive control by the processor 4 is recognized, and all the common resources 5 are forcibly controlled by the exclusive control by the processor 4. It is released (step 604).

【0038】そして、当該プロセッサ4のプロセッサI
Dを他のプロセッサ4のオペレーティングシステム部4
4に通知し、このプロセッサ4による共通資源5の排他
制御を解除するよう促す(ステップ605)。
The processor I of the processor 4 concerned
D is the operating system unit 4 of the other processor 4.
4 and prompts the processor 4 to cancel the exclusive control of the common resource 5 (step 605).

【0039】従って、本実施例1によれば、任意のプロ
セッサ4において、共通資源5を排他制御中に障害を発
生したプロセッサ4を認識し、これを他のプロセッサ4
に通知することにより排他制御を自動的に解除でき、正
常なプロセッサ4は処理を続行することができる。
Therefore, according to the first embodiment, the arbitrary processor 4 recognizes the processor 4 that has failed during the exclusive control of the common resource 5 and recognizes it as the other processor 4.
The exclusive control can be automatically released by notifying that the normal processor 4 can continue the processing.

【0040】(実施例2)本実施例2のプロセッサの内
部構成を図7に示す。本実施例2におけるマルチプロセ
ッサシステムは、前述の実施例1の構成に対して各プロ
セッサ4に特定時間の計時を行うタイマ41を設けた。
その他の構成は実施例1と同様である。
(Embodiment 2) FIG. 7 shows the internal configuration of the processor according to the second embodiment. In the multiprocessor system according to the second embodiment, each processor 4 is provided with a timer 41 for measuring a specific time in the configuration of the first embodiment.
Other configurations are the same as those in the first embodiment.

【0041】このマルチプロセッサシステムの動作過程
を図8のフローチャート図に基いて説明する。オペレー
ティングシステム部44は、任意のプロセッサ4に共通
資源5の排他制御を許可した際に、タイマ41を起動さ
せる(ステップ801)。
The operation process of this multiprocessor system will be described with reference to the flowchart of FIG. The operating system unit 44 activates the timer 41 when permitting the exclusive control of the common resource 5 to any processor 4 (step 801).

【0042】そして、タイマ41が特定時間の計時を終
了した際に前記プロセッサ4が共通資源5を排他制御中
であるか否かを共通資源管理テーブル40を参照して判
別する(ステップ802)。ここで、タイマ起動終了後
も前記プロセッサ4が共通資源5を排他制御中の場合、
当該オペレーティングシステム部44は、このプロセッ
サ4が障害を発生したと判別し、共通資源管理テーブル
40より当該プロセッサ4のプロセッサIDを認識し
(ステップ803)、このプロセッサ4が他の共通資源
5を排他制御しているか否かを共通資源管理テーブル4
0より判別して、排他制御中の共通資源5があればそれ
ら全てを強制的に解放させる(ステップ804)。
Then, when the timer 41 finishes measuring the specific time, it is judged whether or not the processor 4 is in the exclusive control of the common resource 5 by referring to the common resource management table 40 (step 802). Here, when the processor 4 is in the exclusive control of the common resource 5 even after the timer is activated,
The operating system unit 44 determines that the processor 4 has failed, recognizes the processor ID of the processor 4 from the common resource management table 40 (step 803), and the processor 4 excludes other common resources 5. Common resource management table 4 for controlling
If it is determined from 0, if there are common resources 5 under exclusive control, all of them are forcibly released (step 804).

【0043】さらに、当該オペレーティングシステム部
44は、当該プロセッサIDを他のプロセッサ4のオペ
レーティングシステム部44に通知し、このプロセッサ
4による共通資源5の排他制御を強制解除するよう促
す。
Further, the operating system unit 44 notifies the operating system unit 44 of the other processor 4 of the processor ID, and prompts the processor 4 to forcibly cancel the exclusive control of the common resource 5.

【0044】従って、本実施例2によれば、任意のプロ
セッサ4において、共通資源5を排他制御中に障害を発
生したプロセッサ4を認識し、これを他のプロセッサ4
に通知することにより排他制御を自動的に解除でき、正
常なプロセッサ4は処理を続行することができる。
Therefore, according to the second embodiment, the arbitrary processor 4 recognizes the processor 4 which has failed during the exclusive control of the common resource 5 and recognizes it.
The exclusive control can be automatically released by notifying that the normal processor 4 can continue the processing.

【0045】(実施例3)本実施例3におけるマルチプ
ロセッサシステムの概略構成を図9に示す。本実施例3
におけるマルチプロセッサシステムは、前述の実施例1
の構成に対して第1プロセッサ4aに共通資源A(55
a)を備え、同様に第2プロセッサ4bには共通資源B
(55b)を、第3プロセッサ4cには共通資源C(5
5c)を備えるようにする。また、各プロセッサ4から
アクセス可能な共有メモリ6を備える構成とした。この
共有メモリ6の具体的な説明は後述する。
(Third Embodiment) FIG. 9 shows a schematic configuration of a multiprocessor system according to the third embodiment. Example 3
The multiprocessor system in FIG.
The common resource A (55
a), and similarly the second processor 4b has a common resource B
(55b) to the common resource C (5
5c). Further, the shared memory 6 accessible from each processor 4 is provided. A detailed description of this shared memory 6 will be given later.

【0046】図10は、本実施例3におけるプロセッサ
の内部構成図である。本実施例3におけるプロセッサ4
は、前述の実施例1の構成に対してオペレーティングシ
ステム部44を備える構成とした。
FIG. 10 is an internal block diagram of the processor in the third embodiment. Processor 4 in the third embodiment
In addition to the configuration of the first embodiment described above, the operating system unit 44 is provided.

【0047】次に、図11は、本実施例3における共有
メモリ6の内部構成を示す図である。本実施例3におけ
る共有メモリ6は、前述の実施例1に対して当該マルチ
プロセッサシステムの全ての共通資源55を管理する排
他制御管理テーブル6aを設けてある。
Next, FIG. 11 is a diagram showing the internal structure of the shared memory 6 in the third embodiment. The shared memory 6 in the third embodiment is provided with an exclusive control management table 6a for managing all the common resources 55 of the multiprocessor system in the first embodiment.

【0048】この排他制御管理テーブル6aは、同一機
能の共通資源55毎にその共通資源IDと、当該共通資
源55を排他制御しているプロセッサ4のプロセッサI
Dと、当該共通資源55の従属しているプロセッサ4の
プロセッサID、排他制御プロセッサ4の排他制御数を
格納している。
The exclusive control management table 6a has a common resource ID for each common resource 55 having the same function and the processor I of the processor 4 which exclusively controls the common resource 55.
D, the processor ID of the processor 4 on which the common resource 55 is dependent, and the exclusive control number of the exclusive control processor 4 are stored.

【0049】図12は、排他制御による排他制御管理テ
ーブル6aの変更過程を示す図である。同図は、第1プ
ロセッサ4aの備える共通資源A(55a)の排他制御
管理テーブル6aを抽出したものであり、図中Xは、初
期状態における排他制御管理テーブル6aの具体例であ
る。
FIG. 12 is a diagram showing a process of changing the exclusive control management table 6a by exclusive control. In the figure, the exclusive control management table 6a of the common resource A (55a) included in the first processor 4a is extracted, and X in the figure is a specific example of the exclusive control management table 6a in the initial state.

【0050】ここで、第1プロセッサ4aのオペレーテ
ィングシステム部44は、第2プロセッサ4bより当該
共通資源A(55a)の排他制御要求を受けた場合、共
有メモリ6にアクセスし、排他制御管理テーブル6aの
共通資源A(55a)の領域を参照する。
Here, when the operating system unit 44 of the first processor 4a receives an exclusive control request for the common resource A (55a) from the second processor 4b, it accesses the shared memory 6 and executes the exclusive control management table 6a. The area of the common resource A (55a) is referred to.

【0051】そして、排他制御数を参照し、使用可能な
資源数を検出する。ここでは、第2プロセッサ4bから
の排他制御要求を1とすると、 使用可能資源数−排他制御要求数=1−1=0≧0 であるから、当該オペレーティングシステム部44は、
第2プロセッサ4bの排他制御要求を許可する。
Then, the number of usable resources is detected by referring to the exclusive control number. Here, assuming that the exclusive control request from the second processor 4b is 1, the number of usable resources-the number of exclusive control requests = 1-1 = 0 ≧ 0. Therefore, the operating system unit 44 is
The exclusive control request of the second processor 4b is permitted.

【0052】そして、当該オペレーティングシステム部
44は、排他制御管理テーブル6aにおいて、排他制御
プロセッサIDに第2プロセッサ4bのプロセッサID
を登録すると共に、排他制御数を”1”にする(図中
Y)。
Then, the operating system unit 44 adds the processor ID of the second processor 4b to the exclusive control processor ID in the exclusive control management table 6a.
Is registered and the exclusive control number is set to "1" (Y in the figure).

【0053】一方、使用可能な資源数より第2プロセッ
サ4bからの排他制御要求が大きい場合、すなわち 使用可能資源数−排他制御要求数≦0 の場合には、第2プロセッサ4bを待機させる。
On the other hand, when the exclusive control request from the second processor 4b is larger than the number of available resources, that is, when the number of available resources−the number of exclusive control requests ≦ 0, the second processor 4b is put on standby.

【0054】さらに第2プロセッサ4bから共通資源A
(55a)が返却されると、当該オペレーティングシス
テム部44は、排他制御管理テーブル6aの共通資源A
(55a)の領域にアクセスし、排他制御数を”1”か
ら”0”へ変更すると共に、第2プロセッサ4bのプロ
セッサIDを排他制御プロセッサIDから消去する(図
中C)。
Further, the common resource A from the second processor 4b
When (55a) is returned, the operating system section 44 causes the common resource A of the exclusive control management table 6a to be returned.
The area (55a) is accessed, the exclusive control number is changed from "1" to "0", and the processor ID of the second processor 4b is erased from the exclusive control processor ID (C in the figure).

【0055】本実施例3におけるマルチプロセッサシス
テムの動作過程を図13のフローチャート図に基いて説
明する。任意のプロセッサ4が障害発生から復帰する
と、このプロセッサ4のオペレーティングシステム部4
4は、共有メモリ6の排他制御管理テーブル6aにアク
セスし(ステップ1301)、この排他制御管理テーブ
ル6aの排他制御プロセッサIDに自身のプロセッサI
Dが登録されているか否かを判別する(ステップ130
2)。
The operation process of the multiprocessor system in the third embodiment will be described with reference to the flowchart of FIG. When an arbitrary processor 4 recovers from a failure, the operating system unit 4 of this processor 4
4 accesses the exclusive control management table 6a of the shared memory 6 (step 1301), and sets its own processor I to the exclusive control processor ID of this exclusive control management table 6a.
It is determined whether or not D is registered (step 130).
2).

【0056】前記ステップ1302において、いずれの
共通資源55の排他制御プロセッサIDにも自身のプロ
セッサIDが登録されていない場合には、当該プロセッ
サ4は障害発生前の処理を続行する(ステップ130
5)。
In the step 1302, when the processor ID of its own is not registered in the exclusive control processor ID of any of the common resources 55, the processor 4 continues the process before the occurrence of the failure (step 130).
5).

【0057】一方、自身のプロセッサIDが登録されて
いる場合には、登録されている共通資源55の領域から
管理プロセッサIDを検出し、この管理プロセッサID
に対応するプロセッサ4のオペレーティングシステム部
44へ当該共通資源55にかかる排他制御の解除を依頼
する(ステップ1303)。
On the other hand, when the own processor ID is registered, the management processor ID is detected from the area of the registered common resource 55, and this management processor ID is detected.
Requesting the operating system unit 44 of the processor 4 corresponding to to cancel the exclusive control of the common resource 55 (step 1303).

【0058】そして、排他制御管理テーブル6aの排他
制御プロセッサIDから自身のプロセッサIDを消去す
る(ステップ1304)。従って、本実施例3によれ
ば、排他制御中に障害を発生したプロセッサが、障害か
ら復帰後に排他制御中の共通資源55をすべて解放する
ことができ、他の正常なプロセッサは解放された共通資
源55により処理を継続して行える。
Then, the own processor ID is deleted from the exclusive control processor ID of the exclusive control management table 6a (step 1304). Therefore, according to the third embodiment, the processor that has failed during exclusive control can release all the common resources 55 under exclusive control after the recovery from the failure, and other normal processors can use the released common resource. The resource 55 allows the processing to continue.

【0059】[0059]

【発明の効果】よって、本発明によれば、共通資源を排
他制御中にプロセッサが障害発生によし、正常動作が不
可能となった場合に、当該共通資源の排他制御を自動的
に解除し、他の正常なプロセッサがこの共通資源を利用
可能とできる。さらに、マルチプロセッサシステム全体
の処理能力の向上を図ることが可能となる。
As described above, according to the present invention, when the normal operation cannot be performed due to the failure of the processor during the exclusive control of the common resource, the exclusive control of the common resource is automatically released. , Other normal processors can make use of this common resource. Furthermore, it is possible to improve the processing capacity of the entire multiprocessor system.

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

【図1】本発明の原理図FIG. 1 is a principle diagram of the present invention.

【図2】本実施例1におけるマルチプロセッサシステム
の概略構成図
FIG. 2 is a schematic configuration diagram of a multiprocessor system according to the first embodiment.

【図3】本実施例1におけるプロセッサの内部構成ブロ
ック図
FIG. 3 is an internal configuration block diagram of a processor according to the first embodiment.

【図4】本実施例1における共通資源管理テーブルの具
体例
FIG. 4 is a specific example of a common resource management table according to the first embodiment.

【図5】排他制御による共通資源管理テーブルの変更過
程を示す図
FIG. 5 is a diagram showing a process of changing a common resource management table by exclusive control.

【図6】本実施例1におけるマルチプロセッサシステム
の動作過程を示すフローチャート図
FIG. 6 is a flowchart showing an operation process of the multiprocessor system according to the first embodiment.

【図7】本実施例2におけるプロセッサの内部構成を示
す図
FIG. 7 is a diagram showing an internal configuration of a processor according to the second embodiment.

【図8】本実施例2におけるマルチプロセッサシステム
の動作過程を示すフローチャート図
FIG. 8 is a flowchart showing an operation process of the multiprocessor system according to the second embodiment.

【図9】本実施例3におけるマルチプロセッサシステム
の概略構成図
FIG. 9 is a schematic configuration diagram of a multiprocessor system according to a third embodiment.

【図10】本実施例3におけるプロセッサの内部構成図FIG. 10 is an internal configuration diagram of a processor according to the third embodiment.

【図11】本実施例3における共有メモリの内部構成図FIG. 11 is an internal configuration diagram of a shared memory according to the third embodiment.

【図12】排他制御による排他制御管理テーブルの変更
過程
FIG. 12 is a process of changing the exclusive control management table by exclusive control.

【図13】本実施例3におけるマルチプロセッサシステ
ムの動作フローチャート図
FIG. 13 is an operation flowchart of the multiprocessor system according to the third embodiment.

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

1・・共通資源 2・・プロセッサ 2a・・オペレーティングシステム部 2b・・共通資源管理テーブル 3・・共有メモリ 3a・・排他制御管理テーブル 4・・プロセッサ 4a・・第1プロセッサ 4b・・第2プロセッサ 4c・・第3プロセッサ 5・・共通資源 5a・・共通資源A 5b・・共通資源B 5c・・共通資源C 6・・共有メモリ 6a・・排他制御管理テーブル 40・・共通資源管理テーブル 41・・タイマ 44・・オペレーティングシステム部 55・・共通資源 55a・・共通資源A 55b・・共通資源B 55c・・共通資源C 1-common resource 2-processor 2a-operating system section 2b-common resource management table 3-shared memory 3a-exclusive control management table 4-processor 4a-first processor 4b-second processor 4c 3rd processor 5 common resource 5a common resource A 5b common resource B 5c common resource C 6 shared memory 6a exclusive control management table 40 common resource management table 41・ Timer 44 ・ ・ Operating system 55 ・ ・ Common resource 55a ・ ・ Common resource A 55b ・ ・ Common resource B 55c ・ ・ Common resource C

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数のプロセッサ(2)と、前記プロセ
ッサ(2)毎に管理される共通資源(1)とからなり、
任意のプロセッサ(2)が特定の資源を使用している場
合にその資源を排他的に制御して他のプロセッサ(2)
からのアクセスを防止するマルチプロセッサシステムに
おいて、 前記各プロセッサ(2)は、当該プロセッサ(2)の動
作を制御すると共に当該プロセッサ(2)が備える共通
資源(1)を管理するオペレーティングシステム部(2
a)と、当該プロセッサ(2)が備える共通資源(1)
を排他制御しているプロセッサを特定するプロセッサI
Dを格納する共通資源管理テーブル(2b)とを備え、 前記オペレーティングシステム部(2a)は、共通資源
管理テーブル(2b)を監視して特定の共通資源(1)
が所定時間以上排他制御されていることを認識すると、
当該共通資源(1)を排他制御しているプロセッサ
(2)のプロセッサIDを検出してこのプロセッサ
(2)による排他制御を強制解除すると共に、当該プロ
セッサIDを他のプロセッサ(2)に通知して各プロセ
ッサ(2)が備える共通資源(1)に対する排他制御を
強制解除するよう促すことを特徴とする共通資源自動返
却方式。
1. A plurality of processors (2) and a common resource (1) managed for each processor (2),
When an arbitrary processor (2) uses a specific resource, that resource is exclusively controlled to another processor (2).
In the multiprocessor system for preventing access from the above, each processor (2) controls an operation of the processor (2) and manages a common resource (1) included in the processor (2).
a) and the common resource (1) included in the processor (2)
I that identifies the processor that exclusively controls
A common resource management table (2b) for storing D, and the operating system unit (2a) monitors the common resource management table (2b) to identify a specific common resource (1).
When it is recognized that is under exclusive control for more than a predetermined time,
The processor ID of the processor (2) that exclusively controls the common resource (1) is detected, the exclusive control by this processor (2) is forcibly released, and the processor ID is notified to the other processor (2). A common resource automatic return method characterized by urging that the exclusive control for the common resource (1) included in each processor (2) is forcibly released.
【請求項2】 前記共通資源管理テーブル(2b)に
は、同一機能の共通資源(1)毎に、使用可能状態にあ
る共通資源(1)の数と、前記マルチプロセッサシステ
ムを構成するプロセッサ(2)毎のプロセッサIDと、
前記プロセッサ(2)が排他制御している共通資源数と
を格納しており、 前記オペレーティングシステム部(2a)は、任意のプ
ロセッサ(2)から共通資源(1)の使用要求を受ける
と、当該共通資源(1)の使用可能数が当該使用要求数
以上の場合に、前記プロセッサ(2)に当該共通資源
(1)の排他制御を許可すると共に、 前記プロセッサ(2)の排他制御中の共通資源数に当該
使用要求数を加算し、使用可能数から当該使用要求数を
減算することを特徴とする請求項1記載の共通資源自動
返却方式。
2. The common resource management table (2b) includes, in each common resource (1) having the same function, the number of available common resources (1) and a processor (which constitutes the multiprocessor system). 2) Each processor ID,
The number of common resources exclusively controlled by the processor (2) is stored, and when the operating system unit (2a) receives a request for using the common resource (1) from an arbitrary processor (2), When the number of usable common resources (1) is equal to or greater than the number of required usage, the processor (2) is allowed to perform exclusive control of the common resource (1), and the common control during exclusive control of the processor (2) is performed. 2. The automatic common resource return system according to claim 1, wherein the number of required uses is added to the number of resources and the required number of uses is subtracted from the usable number.
【請求項3】 前記共通資源管理テーブル(2b)に任
意の共通資源(1)の使用を待機すべきプロセッサ
(2)のプロセッサID及び共通資源(1)の使用要求
数を先入れ先出しする待合せ管理テーブルを設け、 前記オペレーティングシステム部(2a)は、任意プロ
セッサ(2)から共通資源(1)の使用要求を受ける
と、当該共通資源(1)の使用可能数が当該使用要求数
未満の場合に、当該プロセッサ(2)のプロセッサID
及び使用要求数を前記待合せ管理テーブルに格納し、 当該共通資源(1)の返却が行われた場合に、再度共通
資源(1)の使用可能数と当該使用要求数とを比較し、
使用可能数が使用要求数以上ならば当該プロセッサ
(2)に当該共通資源(1)の排他制御を許可すると共
に、前記待合せ管理テーブルから当該プロセッサ(2)
を削除することを特徴とする請求項2記載の共通資源自
動返却方式。
3. A waiting management table in which the common resource management table (2b) first-in-first-out of the processor ID of the processor (2) that should wait for the use of an arbitrary common resource (1) and the number of requests for using the common resource (1). When the operating system unit (2a) receives a use request for the common resource (1) from the arbitrary processor (2), if the usable number of the common resource (1) is less than the use request number, Processor ID of the processor (2)
And the number of use requests are stored in the waiting management table, and when the common resource (1) is returned, the usable number of common resources (1) is compared again with the number of use requests,
If the usable number is equal to or larger than the use request number, exclusive control of the common resource (1) is permitted to the processor (2), and the processor (2) is read from the waiting management table.
3. The common resource automatic return method according to claim 2, wherein
【請求項4】 複数のプロセッサ(2)、前記プロセッ
サ(2)毎に管理される共通資源(1)、単一の共有メ
モリ(3)とからなり、任意のプロセッサ(2)が特定
の資源を使用している場合にその資源を排他的に制御し
て他のプロセッサ(2)からのアクセスを防止するマル
チプロセッサシステムにおいて、 前記プロセッサ(2)には、当該プロセッサ(2)の動
作を制御し、且つ自身が備える共通資源(1)を管理す
るオペレーティングシステム部(2a)を備えると共
に、 前記共有メモリ(3)には、同一機能の共通資源(1)
を特定する共通資源IDと、前記共通資源ID毎に格納
され、当該共通資源(1)を排他制御中のプロセッサ
(2)を特定する排他制御プロセッサID、当該共通資
源(1)を備えるプロセッサ(2)のプロセッサIDを
格納する管理プロセッサID、及び当該共通資源(1)
のうち排他制御中の共通資源数を格納する排他制御数と
を登録するための排他制御管理テーブル(3a)を設
け、 前記プロセッサ(2)では、自身が障害から再立ち上げ
された場合に、前記オペレーティングシステム部(2
a)が、当該プロセッサ(2)を動作して前記共有メモ
リ(3)にアクセスして前記排他制御管理テーブル(3
a)の排他制御プロセッサIDを参照し、自身のプロセ
ッサIDが格納されている場合には、かかる共通資源
(1)の排他制御を自動解除することを特徴とする共通
資源自動返却方式。
4. A plurality of processors (2), a common resource (1) managed for each processor (2), and a single shared memory (3), and an arbitrary processor (2) is a specific resource. In a multiprocessor system in which resources are exclusively controlled to prevent access from another processor (2), the processor (2) controls the operation of the processor (2). In addition, an operating system unit (2a) that manages the common resource (1) included in itself is provided, and the shared memory (3) has a common resource (1) having the same function.
A common resource ID that identifies the common resource (1), an exclusive control processor ID that is stored for each common resource ID and that identifies a processor (2) that is in exclusive control of the common resource (1), Management processor ID storing the processor ID of 2) and the common resource (1)
An exclusive control management table (3a) for registering the number of exclusive controls for storing the number of common resources under exclusive control is provided, and the processor (2) is The operating system section (2
a) operates the processor (2) to access the shared memory (3) to access the exclusive control management table (3
The common resource automatic return method, which refers to the exclusive control processor ID of a) and automatically releases the exclusive control of the common resource (1) when its own processor ID is stored.
JP17794092A 1992-07-06 1992-07-06 Automatic return system for common resources Withdrawn JPH0619858A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17794092A JPH0619858A (en) 1992-07-06 1992-07-06 Automatic return system for common resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17794092A JPH0619858A (en) 1992-07-06 1992-07-06 Automatic return system for common resources

Publications (1)

Publication Number Publication Date
JPH0619858A true JPH0619858A (en) 1994-01-28

Family

ID=16039733

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17794092A Withdrawn JPH0619858A (en) 1992-07-06 1992-07-06 Automatic return system for common resources

Country Status (1)

Country Link
JP (1) JPH0619858A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001297072A (en) * 2000-03-09 2001-10-26 Dell Products Lp System and method for managing storage resource in clustered computer processing environment
JP2014179838A (en) * 2013-03-15 2014-09-25 Yamaha Corp Communication device and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001297072A (en) * 2000-03-09 2001-10-26 Dell Products Lp System and method for managing storage resource in clustered computer processing environment
JP2014179838A (en) * 2013-03-15 2014-09-25 Yamaha Corp Communication device and program

Similar Documents

Publication Publication Date Title
US5274809A (en) Task execution control method for a multiprocessor system with enhanced post/wait procedure
US4914570A (en) Process distribution and sharing system for multiple processor computer system
US7426732B2 (en) Placing a task of a multithreaded environment in a known state
US8234645B2 (en) Deallocation of computer data in a multithreaded computer
US5796937A (en) Method of and apparatus for dealing with processor abnormality in multiprocessor system
US5784618A (en) Method and system for managing ownership of a released synchronization mechanism
US9798595B2 (en) Transparent user mode scheduling on traditional threading systems
JPH05225048A (en) Digital data processor having distributed memory system
US20130097382A1 (en) Multi-core processor system, computer product, and control method
US5664090A (en) Processor system and method for maintaining internal state consistency between active and stand-by modules
CN107515781A (en) A kind of multicomputer system deterministic schedule and load-balancing method
US7003610B2 (en) System and method for handling shared resource writes arriving via non-maskable interrupts (NMI) in single thread non-mission critical systems with limited memory space
EP0343646B1 (en) Task execution control method for a multiprocessor system with enhanced post/wait procedure
JPH0619858A (en) Automatic return system for common resources
JP2003271404A (en) Multiprocessor system
Arnold et al. Design of tightly-coupled multiprocessing programming
US20010039558A1 (en) Cache memory management method for real time operating system
JPS63146153A (en) System for processing interprocessor exclusive control
JPH03116261A (en) Multiprocessor control system
CN118093228A (en) State sharing method, system and device for server-oriented non-perception computation
JPH0310343A (en) Hot spot data management processing system
JPH0830512A (en) Thread control system
JPH01204154A (en) Interruption/restart system using kernel primitive routine
JPH02244371A (en) Exclusive control method for multiprocessor system
JPH052496A (en) Multi-task monitor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19991005