JPH04225433A - Semaphore synchronization system with canceling function - Google Patents

Semaphore synchronization system with canceling function

Info

Publication number
JPH04225433A
JPH04225433A JP40746690A JP40746690A JPH04225433A JP H04225433 A JPH04225433 A JP H04225433A JP 40746690 A JP40746690 A JP 40746690A JP 40746690 A JP40746690 A JP 40746690A JP H04225433 A JPH04225433 A JP H04225433A
Authority
JP
Japan
Prior art keywords
synchronization
semaphore
cancellation
value
processing
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
JP40746690A
Other languages
Japanese (ja)
Inventor
Mitsuhiro Kishimoto
岸本 光弘
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
Original Assignee
Fujitsu 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 filed Critical Fujitsu Ltd
Priority to JP40746690A priority Critical patent/JPH04225433A/en
Publication of JPH04225433A publication Critical patent/JPH04225433A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To quickly restart a semaphore synchronization system with a canceling function in a simple constitution and processing by providing an extension semaphore containing a canceling function and performing the synchronization and the cancel processing through plural processes with operation of the extension semaphore. CONSTITUTION:An extension semaphore 4 is provided to show three states, that is, a synchronization waiting state, a synchronization end state, and a cancel instruction state. Then the value is set in response to the number of processes. A process where a cancel event occurred writes the value of the cancel instruction state and also instructs a process waiting for the end of synchronization. At the same time, the process performs the cancel processing of its own. Meanwhile a process where no cancel event occurred reads out the value to make the process waiting for the end of synchronization complete the synchronization in a synchronization end state. At the same time, the process completes the synchronization of its own or subtracts or adds the value to wait for the end of synchronization in a synchronization incomplete state.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、セマフォを用いて同期
とキャンセル処理を行うキャンセル機能付セマフォ同期
方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a semaphore synchronization system with a cancellation function that uses semaphores to perform synchronization and cancellation processing.

【0002】0002

【従来の技術】従来、並列処理における同期機構は、図
4の(a)に示すように、セマフォ21を用いて複数の
プロセス1、2、3が、図4の(b)のフローチャート
に示す手順によって、同期をとって処理を行うようにし
ている。この際、異常事態の発生時(例えば演算のオー
バーフローの発生時)に処理全体のキャンセルを制御す
るために、別の機構としてキャンセルフラグ22を設け
、図5のフローチャートに示す手順によって、いずれか
のプロセスでキャンセルする異常が発生した時にキャセ
ルフラグ22をオンとし、同期成立時に全てのプロセス
1、2、3がこのキャンセルフラグ22をチェックし、
オンのときにキャンセル処理をそれぞれ行うようにして
いた。以下簡単に説明する。
2. Description of the Related Art Conventionally, as shown in FIG. 4(a), a synchronization mechanism in parallel processing uses a semaphore 21 to synchronize a plurality of processes 1, 2, and 3 as shown in the flowchart of FIG. 4(b). Processing is performed in synchronization according to the procedure. At this time, in order to control the cancellation of the entire process when an abnormal situation occurs (for example, when an overflow occurs in calculations), a cancel flag 22 is provided as another mechanism, and one of the When an abnormality that causes cancellation occurs in a process, the cancel flag 22 is turned on, and when synchronization is established, all processes 1, 2, and 3 check this cancel flag 22,
When it was on, the cancellation process was performed respectively. This will be briefly explained below.

【0003】図4の(b)は、セマフォ21を用いた並
列処理における同期機構の手順を示す。プロセス1、2
、3がセマフォ21の内容を読み出し(S21)、その
値が“0”で同期成立と判明したとき(S22のYES
)にセマフォ待ちのプロセスを起こし(S23、既に処
理を終了して同期待ち状態にあるプロセスを起動し)、
同期終了する(S24)。一方、その値が“0”でなく
同期非成立と判明したとき(S22のNO)に、セマフ
ォ21の内容を−1してその値を書き込み(S25)、
他のプロセスの同期完了待ち状態に入る(S26)。
FIG. 4(b) shows the procedure of the synchronization mechanism in parallel processing using the semaphore 21. Process 1, 2
, 3 reads the contents of the semaphore 21 (S21), and when it is found that the value is "0" and synchronization is established (YES in S22)
) to wake up a process waiting for a semaphore (S23, start a process that has already finished processing and is in a synchronization wait state),
The synchronization ends (S24). On the other hand, when it is determined that the value is not "0" and that synchronization is not established (NO in S22), the content of the semaphore 21 is decremented by 1 and the value is written (S25).
The process enters a state of waiting for the completion of synchronization of other processes (S26).

【0004】図5は、セマフォ21およびキャンセルフ
ラグ22を用いた並列処理における同期機構およびキャ
ンセル機構の手順を示す。プロセス1、2、3で異常事
態が発生してキャンセル動作が必要な場合(S31のY
ES)にキャンセルフラグ22をオンにセットしてS3
3に進み、一方、キャンセル動作が不要の場合(S32
のNO)にS33に進む。S33でセマフォ22の内容
を読み出し、その値が“0”で同期成立と判明したとき
(S34のYES)にセマフォ待ちのプロセスを起こし
(S35)、この起こされたプロセスがキャンセルフラ
グ22の内容を読み出し(S36)、キャンセルのとき
(S37のYES)にキャンセル処理を行い(S39)
、キャンセルでないとき(S37のNO)に同期処理を
終了する(S38)。一方、その値が“0”でなく同期
非成立と判明したとき(S34のNO)にセマフォ21
の内容を−1して書き込み(S40)、同期完了待ちに
入る(S41)。
FIG. 5 shows the procedure of a synchronization mechanism and a cancellation mechanism in parallel processing using a semaphore 21 and a cancellation flag 22. If an abnormal situation occurs in processes 1, 2, or 3 and a cancellation operation is required (Y in S31)
ES), set the cancel flag 22 to ON, and execute S3.
On the other hand, if the cancel operation is not required (S32
(NO), the process advances to S33. The contents of the semaphore 22 are read in S33, and when it is found that the value is "0" and synchronization is established (YES in S34), a process waiting for the semaphore is woken up (S35), and this woken up process reads the contents of the cancel flag 22. Read (S36), perform cancel processing when canceling (YES in S37) (S39)
, if it is not canceled (NO in S37), the synchronization process ends (S38). On the other hand, when it is determined that the value is not "0" and that synchronization is not established (NO in S34), the semaphore 21
The content is written by -1 (S40), and the process waits for synchronization completion (S41).

【0005】[0005]

【発明が解決しようとする課題】上述した図4の(a)
および図5に示すように、従来は、同期処理時にキャン
セルを行う場合、セマフォ21およびキャンセルフラグ
22を用いて複数のプロセスが同期してキャンセルする
ようにしていたため、同期のためのセマフォ21の他に
更にキャンセル用のキャンセルフラグ22が余分に必要
となってしまうと共に同期がとれるまでキャンセル処理
を開始できないという問題があった。
[Problem to be solved by the invention] (a) of FIG. 4 mentioned above
As shown in FIG. 5, conventionally, when canceling during synchronous processing, a semaphore 21 and a cancel flag 22 were used to cancel multiple processes synchronously. Furthermore, there is a problem in that an extra cancellation flag 22 is required for cancellation, and cancellation processing cannot be started until synchronization is achieved.

【0006】本発明は、キャンセル機能を付加した拡張
セマフォを設け、これを操作して複数のプロセスが同期
およびキャンセル処理を行い、簡単な構成と処理によっ
て速やかに再起動することを目的としている。
An object of the present invention is to provide an extended semaphore with a cancel function, operate the extended semaphore to synchronize and cancel a plurality of processes, and quickly restart the process with a simple configuration and process.

【0007】[0007]

【課題を解決するための手段】図1は、本発明の原理構
成および動作説明図を示す。図1の(a)において、プ
ロセス1、2、3は、同期して並列処理を行うプロセス
である。拡張セマフォ4は、同期待ち状態、同期完了状
態、およびキャンセル指示状態の3つの状態を表す値を
保持するものである。
[Means for Solving the Problems] FIG. 1 shows a diagram illustrating the basic configuration and operation of the present invention. In (a) of FIG. 1, processes 1, 2, and 3 are processes that perform parallel processing synchronously. The extended semaphore 4 holds values representing three states: a synchronization wait state, a synchronization completion state, and a cancel instruction state.

【0008】[0008]

【作用】本発明は、図1に示すように、複数のプロセス
が同期処理の開始時に拡張セマフォ4にプロセス数に対
応する値を設定しておき、キャンセル事象の発生したプ
ロセスがこの拡張セマフォ4にキャンセル指示状態の値
を書き込むおよび同期完了待ちのプロセスを起動してキ
ャンセル処理を行わせると共に自プロセスのキャンセル
処理を行い、一方、キャンセル事象が発生しなくて処理
が完了したプロセスが拡張セマフォ4から値を読みだし
て同期完了状態であったときに同期完了待ちの他のプロ
セスを起動して同期終了させる共に自プロセスの同期終
了し、あるいは同期完了状態でなかったときに拡張セマ
フォ4の値を減算(あるいは加算)して同期完了待ちに
入るようにしている。
[Operation] As shown in FIG. 1, in the present invention, multiple processes set a value corresponding to the number of processes in the extended semaphore 4 at the start of synchronization processing, and the process in which the cancellation event occurs writes the value of the cancellation instruction state to , starts the process waiting for synchronization completion to perform the cancellation process, and cancels the own process, while the process that completes the process without a cancellation event writes the extended semaphore 4. Read the value from , and when the synchronization is complete, start another process waiting for synchronization to complete the synchronization, and also read the value of extended semaphore 4 when the own process completes the synchronization, or when the synchronization is not complete. is subtracted (or added) and waits for synchronization to complete.

【0009】従って、キャンセル機能を付加した拡張セ
マフォ4を設け、これを操作して複数のプロセスが同期
およびキャンセル処理を行うことにより、簡単な構成と
処理によって速やかに再起動することが可能となる。
[0009] Therefore, by providing an extended semaphore 4 with a cancel function and operating it to synchronize and cancel multiple processes, it becomes possible to restart quickly with a simple configuration and process. .

【0010】0010

【実施例】次に、図1ないし図3を用いて本発明の実施
例の構成および動作を順次詳細に説明する。図1の(a
)において、プロセス1、2、3は、同期して並列処理
、例えば科学技術の配列計算やオンライントラザクショ
ンにおける資源確保処理などを行う複数のプロセスであ
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the structure and operation of an embodiment of the present invention will be explained in detail with reference to FIGS. 1 to 3. Figure 1 (a
), processes 1, 2, and 3 are a plurality of processes that synchronously perform parallel processing, such as array calculations in science and technology and resource securing processing in online transactions.

【0011】拡張セマフォ4は、同期待ち状態を表す値
(例えば1、2、3・・・の整数値)、同期完了状態を
表す値(例えば0の整数値)、およびキャンセル指示状
態を表す値(−1、−2・・・の負の整数値)の3つの
うちのいずれか1つを持つものである。ここで、例えば
2は2つのプロセスが処理を完了していない状態を表す
。0は複数のプロセスが同期完了した状態を表す。−2
のうちの−はキャンセル指示を表し、2はキャンセル指
示された後に処理完了したプロセスが1つ存在すること
を表す。
The extended semaphore 4 has a value representing a synchronization wait state (for example, an integer value of 1, 2, 3, etc.), a value representing a synchronization completion state (for example, an integer value of 0), and a value representing a cancel instruction state. (negative integer values of -1, -2, etc.). Here, for example, 2 represents a state in which two processes have not completed processing. 0 represents a state in which multiple processes have completed synchronization. -2
Among them, - represents a cancellation instruction, and 2 represents that there is one process that completed processing after the cancellation instruction was issued.

【0012】次に、図1の(b)のフローチャートを用
いて図1の(a)の構成の動作を詳細に説明する。 (1)  並列処理を開始したプロセス1、2、3のう
ちの処理の終了したプロセスが、拡張セマフォ4の値を
読み出す(S1)。 (2)  キャンセル動作が自プロセス内で発生した場
合(S2のYES)、−1を拡張セマフォ4に書き込み
(S3)、セマフォ待ち(同期完了待ち)のプロセスを
起こす(起動する、S4)。
Next, the operation of the configuration shown in FIG. 1(a) will be explained in detail using the flowchart shown in FIG. 1(b). (1) Among processes 1, 2, and 3 that have started parallel processing, the process that has finished reading the value of extended semaphore 4 (S1). (2) If the cancel operation occurs within the own process (YES in S2), -1 is written to the extended semaphore 4 (S3), and the process waiting for the semaphore (waiting for synchronization completion) is woken up (activated, S4).

【0013】(3)  拡張セマフォ4の値が負の場合
(S5のYES)、キャンセル指示状態にあったので、
キャンセル処理を行う(S6)。一方、拡張セマフォ4
の値が0でない場合(S5のNO)、キャンセル指示状
態でなかったので、同期終了する(S7)。 (4)  また、キャンセル動作が自プロセス内で発生
しなかった場合(S2のNO)、拡張セマフォ4から読
み出した値が0の場合(S8のYES)、並列処理中の
全てのプロセスの同期が成立したので、S4ないしS7
によって同期完了待ちの他のプロセスを起動して拡張セ
マフォ4の値が負のときにキャンセル処理を行い、負で
ないときに同期終了する。一方、拡張セマフォ4から読
み出した値が0でない場合(S8のNO)、−1してそ
の値を拡張セマフォ4に書き込み(S9)、同期完了待
ちに入る。
(3) If the value of extended semaphore 4 is negative (YES in S5), it is in the cancel instruction state, so
A cancellation process is performed (S6). On the other hand, extended semaphore 4
If the value of is not 0 (NO in S5), the synchronization ends (S7) since the cancellation instruction state has not been reached. (4) In addition, if the cancel operation does not occur within the own process (NO in S2), or if the value read from extended semaphore 4 is 0 (YES in S8), all processes in parallel processing are synchronized. Since it was established, S4 to S7
starts another process waiting for synchronization completion, performs cancellation processing when the value of extended semaphore 4 is negative, and completes synchronization when it is not negative. On the other hand, if the value read from the extended semaphore 4 is not 0 (NO in S8), it is decremented by 1, the value is written to the extended semaphore 4 (S9), and the process waits for synchronization completion.

【0014】以上のように、並列処理を行う複数のプロ
セス1、2、3が処理終了時に、自プロセスで異常が発
生(例えば演算中にオーバーフローが発生)してキャン
セル処理を行う必要がある場合、−1(キャンセル指示
状態)を拡張セマフォ4に書き込み、同期完了待ちの他
のプロセスを起動してキャンセル処理を行わせる。また
、異常が発生しなかった場合、拡張セマフォ4の値が0
であったとき(同期完了状態)に他のプロセスを起動し
て拡張セマフォ4の値に対応してキャンセル処理あるい
は同期終了を行い、一方、拡張セマフォ4の値が0でな
かったとき(同期完了していない状態)であったとき、
−1した値を拡張セマフォ4に書き込み、同期完了待ち
に入る。これらの処理によって、簡単な構成と処理によ
って同期処理およびキャンセル処理を行い、速やかに再
起動することが可能となる。
As described above, when multiple processes 1, 2, and 3 that perform parallel processing complete processing, an abnormality occurs in the own process (for example, an overflow occurs during calculation) and cancellation processing needs to be performed. , -1 (cancellation instruction state) is written to the extended semaphore 4, and other processes waiting for synchronization completion are activated to perform cancellation processing. Also, if no abnormality occurs, the value of extended semaphore 4 is 0.
When the value of extended semaphore 4 is not 0 (synchronization complete state), another process is started and cancel processing or synchronization ends according to the value of extended semaphore 4. On the other hand, when the value of extended semaphore 4 is not 0 (synchronization complete state) when the situation was not
Writes the -1 value to extended semaphore 4 and waits for synchronization completion. These processes make it possible to perform synchronization processing and cancellation processing with a simple configuration and processing, and to quickly restart the system.

【0015】図2は、本発明の計算時の同期およびキャ
ンセル例を示す。これは、科学技術計算などで大きな配
列計算を複数のCPU(プロセス)で並列して行う場合
、中間結果の受け渡しの際に同期が必要である。この同
期の際にいずれか1つのCPU(プロセス)で計算結果
にオーバーフローなどの異常が発生した場合、計算を継
続する意味がなくなったので至急停止する必要があり、
このときに■や■’のキャンセル付同期処理の位置で、
図1の(b)のフローチャートに示すキャンセル処理を
行う。具体的に説明すると、 (1)  プロセス1、2、3、4が処理1と処理2、
あるいは処理3というように、配列を並列に計算する。
FIG. 2 shows an example of synchronization and cancellation during calculation according to the present invention. This is because when large array calculations are performed in parallel by multiple CPUs (processes), such as in scientific and technical calculations, synchronization is required when passing intermediate results. If an abnormality such as an overflow occurs in the calculation results of any one CPU (process) during this synchronization, there is no point in continuing the calculation and it must be stopped immediately.
At this time, at the position of ■ or ■' synchronous processing with cancellation,
The cancellation process shown in the flowchart of FIG. 1(b) is performed. To explain specifically, (1) Processes 1, 2, 3, and 4 are Process 1 and Process 2,
Alternatively, as in process 3, the array is calculated in parallel.

【0016】(2)  いずれかのプロセスの処理1と
処理2、あるいは処理3のときにオーバーフローなどの
異常が発生して当該配列の並列の計算の全体をキャンセ
ル処理する必要が発生した場合、■や■’のキャンセル
付同期処理で、図1の(b)のフローチャートに従って
異常の発生したプロセスが拡張セマフォ4に−1を書き
込み、他の完了待ちのプロセスを起動してキャンセル処
理を行わせると共に自プロセスのキャンセル処理を行う
。 そして、同期完了待ちでない他のプロセスは、自己の処
理が完了したときに拡張セマフォ4の値を読み出したと
きにその値が負であるのでキャンセル処理を行う。
(2) If an abnormality such as an overflow occurs during processing 1, processing 2, or processing 3 of any process, and it is necessary to cancel the entire parallel calculation of the array, In the synchronous processing with cancellation of or ■', the process in which the error occurred writes -1 to the extended semaphore 4 according to the flowchart in FIG. Performs cancellation processing of the own process. Then, other processes that are not waiting for synchronization completion perform cancel processing because when they read the value of extended semaphore 4 when their own processing is completed, the value is negative.

【0017】図3は、本発明のオンライントランザクシ
ョン時の同期およびキャンセル例を示す。これは、オン
ライントランザクション処理において、複数の資源の確
保処理を並列に実行する際に、いずれか1つでも資源が
確保できなかった場合、デッドロックが発生する可能性
があるので、これを回避するためのキャンセル付の同期
処理が必要である。このキャンセル付の同期処理として
、■や■’の位置で、図1の(b)のフローチャートに
示すキャンセル処理を行う。具体的に説明すると、(1
)  プロセス1、2、3、4が資源確保を並列に行う
FIG. 3 shows an example of synchronization and cancellation during online transactions according to the present invention. This is to avoid deadlocks that may occur if even one resource cannot be secured when multiple resources are secured in parallel during online transaction processing. Synchronous processing with cancellation is required for this purpose. As this synchronization process with cancellation, the cancel process shown in the flowchart of FIG. 1(b) is performed at the positions of ■ and ■'. To explain specifically, (1
) Processes 1, 2, 3, and 4 secure resources in parallel.

【0018】(2)  いずれかのプロセスが資源を確
保することができなく、デッドロックを回避するために
資源確保処理の全体をキャンセル処理する必要が発生し
た場合、■や■’のキャンセル付同期処理で、図1の(
b)のフローチャートに従って、資源を確保できなかっ
たプロセスが拡張セマフォ4に−1を書き込み、他の完
了待ちのプロセスを起動してキャンセル処理を行わせる
と共に自プロセスのキャンセル処理を行う。そして、同
期完了待ちでない他のプロセスは、自己の資源確保が完
了したときに拡張セマフォ4の値を読み出し、その値が
負であるのでキャンセル処理を行う。
(2) If one of the processes is unable to secure resources and it becomes necessary to cancel the entire resource securing process to avoid deadlock, synchronization with cancellation of ■ or ■' In the process, (
According to the flowchart of b), the process that cannot secure the resource writes -1 to the extended semaphore 4, activates other processes waiting for completion to perform cancellation processing, and also cancels its own process. Then, other processes that are not waiting for the synchronization to complete read the value of extended semaphore 4 when their own resource reservation is completed, and since the value is negative, they perform cancellation processing.

【0019】[0019]

【発明の効果】以上説明したように、本発明によれば、
同期待ち状態、同期完了状態、およびキャンセル指示状
態の3つの状態を持つ拡張セマフォ4を設け、これを操
作して複数のプロセスが同期およびキャンセル処理を行
う構成を採用しているため、簡単な構成と処理によって
並列処理を行う複数のプロセス間で同期を行ったり、キ
ャンセル処理を行って速やかに再起動したりすることが
できる。
[Effects of the Invention] As explained above, according to the present invention,
The extended semaphore 4 has three states: a synchronization wait state, a synchronization completion state, and a cancel instruction state, and multiple processes operate on this to perform synchronization and cancellation processing, resulting in a simple configuration. By using this process, you can synchronize multiple processes that are performing parallel processing, or perform cancel processing to quickly restart the process.

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

【図1】本発明の原理構成および動作説明図である。FIG. 1 is an explanatory diagram of the principle configuration and operation of the present invention.

【図2】本発明の計算時の同期およびキャンセル例であ
る。
FIG. 2 is an example of synchronization and cancellation during calculation according to the present invention.

【図3】本発明のオンライントラザクション時の同期お
よびキャンセル例である。
FIG. 3 is an example of synchronization and cancellation during online transactions according to the present invention.

【図4】従来技術の説明図である。FIG. 4 is an explanatory diagram of the prior art.

【図5】従来の同期およびキャンセル例である。FIG. 5 is an example of conventional synchronization and cancellation.

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

1、2、3:プロセス(CPU) 4:拡張セマフォ 1, 2, 3: Process (CPU) 4: Extended semaphore

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  セマフォを用いて同期とキャンセル処
理を行うキャンセル機能付セマフォ同期方式において、
同期待ち状態、同期完了状態、およびキャンセル指示状
態の3つの状態を表す拡張セマフォ(4)を設け、複数
のプロセスによる並列処理の開始時に上記拡張セマフォ
(4)に当該プロセス数に対応する値を設定しておき、
キャンセル事象の発生したプロセスがこの拡張セマフォ
(4)にキャンセル指示状態の値を書き込むおよび同期
完了待ちのプロセスがあった場合にこれを起動してキャ
ンセル処理を行わせると共に自プロセスのキャンセル処
理を行い、一方、キャンセル事象が発生しなくて処理が
完了したプロセスが拡張セマフォ(4)から値を読みだ
して同期完了状態であったときに同期完了待ちのプロセ
スがあった場合にこれを起動して同期終了させる共に自
プロセスの同期終了し、あるいは同期完了状態でなかっ
たときに拡張セマフォ(4)の値を減算(あるいは加算
)して同期完了待ちするように構成したことを特徴とす
るキャンセル機能付セマフォ同期方式。
Claim 1: In a semaphore synchronization method with a cancellation function that performs synchronization and cancellation processing using a semaphore,
An extended semaphore (4) representing three states: a synchronization wait state, a synchronization completion state, and a cancel instruction state is provided, and when parallel processing by multiple processes is started, a value corresponding to the number of processes is assigned to the extended semaphore (4). Set it up,
The process in which the cancellation event occurred writes the value of the cancellation instruction state to this extended semaphore (4), and if there is a process waiting for synchronization completion, it starts it and causes it to perform the cancellation process, and also cancels its own process. , On the other hand, if a process that has completed processing without a cancellation event has read the value from the extended semaphore (4) and is in a synchronization completion state, and there is a process waiting for synchronization completion, start this process. A cancel function characterized in that it is configured to terminate synchronization, and when the self-process synchronizes or is not in a synchronization complete state, subtracts (or adds) the value of the extended semaphore (4) and waits for synchronization completion. Semaphore synchronization method.
【請求項2】  上記並列処理として並列計算を行い、
いずれかのプロセスの計算時に異常が発生したときに全
体の並列計算をキャンセルするように構成したことを特
徴とする請求項第1項記載のキャンセル機能付セマフォ
同期方式。
Claim 2: Performing parallel calculation as the parallel processing,
2. The semaphore synchronization system with a canceling function according to claim 1, characterized in that the entire parallel calculation is canceled when an abnormality occurs during calculation in any of the processes.
【請求項3】  上記並列処理としてオンライントラン
ザクションで必要な資源確保処理を行い、いずれかのプ
ロセスが資源確保処理に失敗したときに全体の資源確保
処理をキャンセルするように構成したことを特徴とする
請求項第1項記載のキャンセル機能付セマフォ同期方式
3. The above-mentioned parallel processing is characterized in that the resource securing process necessary for the online transaction is performed, and when any process fails in the resource securing process, the entire resource securing process is canceled. A semaphore synchronization system with a cancellation function according to claim 1.
JP40746690A 1990-12-27 1990-12-27 Semaphore synchronization system with canceling function Withdrawn JPH04225433A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP40746690A JPH04225433A (en) 1990-12-27 1990-12-27 Semaphore synchronization system with canceling function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP40746690A JPH04225433A (en) 1990-12-27 1990-12-27 Semaphore synchronization system with canceling function

Publications (1)

Publication Number Publication Date
JPH04225433A true JPH04225433A (en) 1992-08-14

Family

ID=18517037

Family Applications (1)

Application Number Title Priority Date Filing Date
JP40746690A Withdrawn JPH04225433A (en) 1990-12-27 1990-12-27 Semaphore synchronization system with canceling function

Country Status (1)

Country Link
JP (1) JPH04225433A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1102261A2 (en) * 1999-11-22 2001-05-23 Sanyo Electric Co., Ltd. Data recorder capable to prevent buffer underrun errors
EP1102258A2 (en) * 1999-11-22 2001-05-23 Sanyo Electric Co., Ltd. Controller for data recorder to prevent buffer underrun errors
US7196987B1 (en) 1999-11-22 2007-03-27 Sanyo Electric Co., Ltd. Controller for data recorder
JP2015144000A (en) * 2005-10-20 2015-08-06 クゥアルコム・インコーポレイテッドQualcomm Incorporated Method and apparatus to clear semaphore reservation

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1102261A2 (en) * 1999-11-22 2001-05-23 Sanyo Electric Co., Ltd. Data recorder capable to prevent buffer underrun errors
EP1102258A2 (en) * 1999-11-22 2001-05-23 Sanyo Electric Co., Ltd. Controller for data recorder to prevent buffer underrun errors
EP1102258A3 (en) * 1999-11-22 2006-11-15 Sanyo Electric Co., Ltd. Controller for data recorder to prevent buffer underrun errors
EP1102261A3 (en) * 1999-11-22 2006-11-15 Sanyo Electric Co., Ltd. Data recorder capable to prevent buffer underrun errors
US7196987B1 (en) 1999-11-22 2007-03-27 Sanyo Electric Co., Ltd. Controller for data recorder
JP2015144000A (en) * 2005-10-20 2015-08-06 クゥアルコム・インコーポレイテッドQualcomm Incorporated Method and apparatus to clear semaphore reservation

Similar Documents

Publication Publication Date Title
JPH0120466B2 (en)
JPH1153202A (en) Parallel transaction processing system
JPH04225433A (en) Semaphore synchronization system with canceling function
JPS58149541A (en) Data processing device
JPH04127261A (en) Multiprocessor system
JPH0355657A (en) Shared memory access method for multi-task/multi-processor system
JP3996355B2 (en) Multiprocessor system
JPH0433127A (en) Check point control system
JPH04128957A (en) Exclusive control method for shared resource in multi-processor system
JPS62293372A (en) Master and slave processor
JP2544015B2 (en) Micro program processor
JPH03218524A (en) Instruction processor
JPS6175436A (en) Microprogram controller
JPS62173535A (en) Access control system for shared resources
JPH03127171A (en) Vector processor
JPS63234330A (en) Asynchronous processing system for computer system
JPH0357056A (en) Multiprocessor device
JPS6263362A (en) Multi-processor system
JPS63228230A (en) Process execution control system
JPS63173142A (en) Completion token output circuit
JPH0363866A (en) Master/slave processor
JPH0367357A (en) Multi-cpu system
JPH04153741A (en) Adverse debugging execution system for debugged program
JPH0447336A (en) Task synchronization controlling method for multi-task system
JPH0675789A (en) Information processor

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980312