JPH08123771A - Client / server system and workstation device for the system - Google Patents

Client / server system and workstation device for the system

Info

Publication number
JPH08123771A
JPH08123771A JP6260719A JP26071994A JPH08123771A JP H08123771 A JPH08123771 A JP H08123771A JP 6260719 A JP6260719 A JP 6260719A JP 26071994 A JP26071994 A JP 26071994A JP H08123771 A JPH08123771 A JP H08123771A
Authority
JP
Japan
Prior art keywords
tag
request
processing
client
server
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.)
Granted
Application number
JP6260719A
Other languages
Japanese (ja)
Other versions
JP3320221B2 (en
Inventor
Ayumi Suda
歩 須田
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 JP26071994A priority Critical patent/JP3320221B2/en
Publication of JPH08123771A publication Critical patent/JPH08123771A/en
Application granted granted Critical
Publication of JP3320221B2 publication Critical patent/JP3320221B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Computer And Data Communications (AREA)

Abstract

(57)【要約】 【目的】 本発明は、クライアントからの要求を多段の
サーバにより処理するクライアント/サーバシステム、
および、同システム用ワークステーション装置に関し、
デッドロック発生の要因を速やかに発見し、その要因に
応じた対処を確実に行なえるようにして、処理依頼元へ
の多重処理要求発行に起因するデッドロックを確実に回
避することを目的とする。 【構成】 クライアント側に、依頼元固有のタグを処理
依頼に付加するタグ付加部3をそなえ、サーバ側に、ク
ライアントからの処理依頼に付加されたタグを参照しタ
グに自己の依頼元固有のタグが存在するか否かを判定す
るタグ判定部4と、タグに自己の依頼元固有のタグが存
在する場合に処理を中断し処理依頼を依頼元へエラー復
帰させるエラー処理部5とをそなえて構成する。
(57) [Summary] [Object] The present invention is a client / server system for processing a request from a client by a multistage server,
And regarding the workstation device for the system,
The purpose is to promptly find the cause of deadlock occurrence and to be able to take corrective action according to the cause, so as to reliably avoid deadlock caused by issuing multiple processing requests to the processing request source. . [Structure] The client side is provided with a tag adding unit 3 for adding a tag unique to the requester to the processing request, and the server side refers to the tag added to the processing request from the client to refer to the tag unique to its own requesting source. A tag determination unit 4 for determining whether or not a tag exists, and an error processing unit 5 for interrupting the processing and returning the processing request to the request source with an error when the tag has a tag unique to its own request source are provided. Configure.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、クライアントからの要
求を多段のサーバにより処理するクライアント/サーバ
システム、および、そのシステムにおいてクライアント
もしくはサーバとして用いられるワークステーション装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a client / server system for processing a request from a client by a multistage server, and a workstation device used as a client or a server in the system.

【0002】[0002]

【従来の技術】近年、複数のワークステーション装置を
LAN等のネットワークにより接続してクライアント/
サーバシステムを構成し、クライアントからの要求を多
段のサーバにより処理することが行なわれている。例え
ば2段のサーバによりクライアントからの要求を処理す
る例を、図5に簡易的に示す。この図5において、40
はクライアントアプリケーションプログラム(以下、ク
ライアントアプリという)、41は第1段のサーバアプ
リケーションプログラム(以下、サーバアプリという;
SV−A)、42は第2段のサーバアプリ(SV−B)
である。なお、図5にはアプリケーションプログラムの
みをブロック化して図示しているが、実際にはこれらの
プログラムは、それぞれワークステーション装置内にソ
フトウエアとしてそなえられるものである。
2. Description of the Related Art In recent years, a plurality of workstation devices have been connected via a network such as a LAN to enable clients / clients
A server system is configured so that a request from a client is processed by a multistage server. For example, an example in which a request from a client is processed by a two-stage server is simply shown in FIG. In FIG. 5, 40
Is a client application program (hereinafter referred to as a client application), 41 is a first stage server application program (hereinafter referred to as a server application;
SV-A), 42 is the second stage server application (SV-B)
Is. In FIG. 5, only the application programs are shown as blocks, but in reality, these programs are provided as software in the workstation device.

【0003】[0003]

【発明が解決しようとする課題】ところで、クライアン
トからの要求を多段のサーバにより処理するクライアン
ト/サーバシステムでは、複数段のサーバを経由して処
理を行なっているうちに処理を正常に行なって依頼元へ
順次復帰させるよりも前に、依頼元のサーバに対して処
理を要求してしまう場合がある。
By the way, in a client / server system in which a request from a client is processed by a multi-stage server, a request is normally made while performing the process via the multi-stage server. In some cases, the requesting server may be requested to perform processing before it is sequentially restored.

【0004】例えば図5に示すように2段のサーバによ
り処理を行なう場合に、クライアントアプリ40から第
1段のサーバアプリ41に対して処理要求が発行さ
れ、この処理要求を受けた第1段のサーバアプリ41
が第2段のサーバアプリ42に対して処理要求を発行
した後に、この処理要求を受けた第2段のサーバアプ
リ42が、今回の処理要求の依頼元であるサーバアプ
リ41へ処理要求を発行したものとする。
For example, as shown in FIG. 5, when processing is performed by a two-stage server, a processing request is issued from the client application 40 to the first-stage server application 41, and the first-stage receiving the processing request. Server application 41
After issuing a processing request to the second-stage server application 42, the second-stage server application 42 that has received this processing request issues a processing request to the server application 41 that is the request source of this processing request. It is assumed that

【0005】このような場合、デッドロック(deadlock;
資源利用が競合し互いに待ち状態となって動きがとれな
くなる状態)が発生し、この状況を回避することは困難
である。図5では最も簡単な2段のサーバ構成の場合で
あるが、実際により多数段のサーバ構成になった場合に
は、デッドロックは発生しやすくなる。また、このデッ
ドロックの発生は、システムテスト時に初めて分かるケ
ースもあり、その発生原因を突き止めるのに困難を究め
る。
In such a case, deadlock;
It is difficult to avoid this situation because resource utilization conflicts with each other, and the two become in a waiting state and cannot move. Although FIG. 5 shows the simplest two-stage server configuration, deadlock is likely to occur when the number of server configurations is actually increased. In some cases, the occurrence of this deadlock is not known until the system test, and it is difficult to find out the cause of the occurrence.

【0006】本発明は、このような課題に鑑み創案され
たもので、クライアントの要求に対してデッドロック発
生の要因を速やかに発見し、その要因に応じた対処を確
実に行なえるようにして、処理依頼元への多重処理要求
発行に起因するデッドロックを確実に回避できる、クラ
イアント/サーバシステムおよび同システム用ワークス
テーション装置を提供することを目的とする。
The present invention was devised in view of the above problems, and it is possible to promptly find the cause of deadlock occurrence in response to a request from a client and surely take appropriate action according to the cause. SUMMARY OF THE INVENTION An object of the present invention is to provide a client / server system and a workstation device for the same system, which can surely avoid deadlock resulting from issuance of multiple processing requests to a processing request source.

【0007】[0007]

【課題を解決するための手段】図1は本発明の原理ブロ
ック図で、この図1において、1はワークステーション
装置で、各ワークステーション装置1は、ネットワーク
2を介して相互に通信可能に接続され、クライアントか
らの要求を多段のサーバにより処理するクライアント/
サーバシステムを構成するものである。
FIG. 1 is a block diagram of the principle of the present invention. In FIG. 1, 1 is a workstation device, and each workstation device 1 is connected via a network 2 so that they can communicate with each other. Clients that process requests from clients by multiple servers
It constitutes a server system.

【0008】そして、各ワークステーション装置1に
は、タグ付加部3,タグ判定部4およびエラー処理部5
がそなえられている。なお、図1では、一つのワークス
テーション装置1の構成のみを詳細に示しているが、他
のワークステーション装置1も同様に構成されている。
ここで、タグ付加部3は、サーバ(依頼先のワークステ
ーション装置1)に対して処理依頼を行なう際に、依頼
元固有のタグを処理依頼に付加するものである。
Each workstation device 1 has a tag addition unit 3, a tag determination unit 4, and an error processing unit 5.
Is provided. Although FIG. 1 shows only the configuration of one workstation device 1 in detail, the other workstation devices 1 have the same configuration.
Here, the tag adding unit 3 adds a tag unique to the request source to the processing request when making a processing request to the server (workstation device 1 that is the request destination).

【0009】また、タグ判定部4は、クライアントから
処理依頼を受けると、当該処理依頼に付加されたタグを
参照して、そのタグに自己の依頼元固有のタグが存在す
るか否かを判定するものである。さらに、エラー処理部
5は、タグ判定部4により処理依頼に付加されたタグに
自己の依頼元固有のタグが存在すると判定された場合
に、処理を中断し、その処理依頼を依頼元(クライアン
ト)へエラー復帰させるものである。
Further, when receiving the processing request from the client, the tag judging unit 4 refers to the tag added to the processing request and judges whether or not the tag unique to the requester of the tag exists. To do. Further, when the tag determination unit 4 determines that the tag added to the processing request includes a tag unique to its own request source, the error processing unit 5 interrupts the processing and sends the processing request to the request source (client). ) To error recovery.

【0010】[0010]

【作用】図1にて上述した本発明のクライアント/サー
バシステムおよび同システム用ワークステーション装置
では、クライアント(ワークステーション装置1)がサ
ーバ(依頼先のワークステーション装置1)に対して処
理依頼を行なう際に、タグ付加部3により、その処理依
頼に依頼元固有のタグが付加される。
In the client / server system of the present invention and the workstation device for the system described above with reference to FIG. 1, the client (workstation device 1) makes a processing request to the server (requestee workstation device 1). At this time, the tag addition unit 3 adds a tag unique to the requester to the processing request.

【0011】クライアントから処理依頼を受けたサーバ
では、その処理依頼に付加されたタグを参照し、タグ判
定部4により、そのタグに自己の依頼元固有のタグが存
在するか否かが判定される。そして、タグ判定部4によ
り処理依頼に付加されたタグに自己の依頼元固有のタグ
が存在すると判定された場合に、エラー処理部5によ
り、処理が中断され、その処理依頼が依頼元(クライア
ント)へエラー復帰させられる。
In the server which has received the processing request from the client, the tag added to the processing request is referred to, and the tag determination unit 4 determines whether or not the tag unique to the requester of the server exists. It If the tag determination unit 4 determines that the tag added to the processing request includes a tag unique to its own request source, the error processing unit 5 interrupts the processing, and the processing request is performed by the request source (client). ) Is returned to the error.

【0012】つまり、サーバに対して処理依頼を行なう
度に、タグ付加部3により処理依頼に順次付加されるタ
グを参照することにより、自己の依頼元固有タグが存在
すれば、その処理依頼は、自己が以前に発行したもので
あり、その処理は既に依頼されたものであると判断でき
る。そのような処理依頼を実行することは、前述した通
りデッドロック発生要因になるので、タグの参照によっ
てデッドロック発生の要因を速やかに発見することがで
きる。
That is, each time a processing request is made to the server, by referring to the tags sequentially added to the processing request by the tag adding unit 3, if the requester's own unique tag exists, the processing request is given. , It can be judged that it was issued by itself before and the processing has already been requested. Executing such a processing request becomes a cause of deadlock as described above, so that the cause of deadlock can be promptly found by referring to the tag.

【0013】[0013]

【実施例】以下、図面を参照して本発明の実施例を説明
する。図2は本発明の一実施例としてのクライアント/
サーバシステムおよび同システム用ワークステーション
装置を示すブロック図であり、この図2に示すように、
本実施例でも、3つのワークステーション装置10,2
0,30が、LAN等のネットワーク2を介して相互に
通信可能に接続されている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 2 shows a client / client according to an embodiment of the present invention.
FIG. 3 is a block diagram showing a server system and a workstation device for the system, and as shown in FIG.
Also in this embodiment, three workstation devices 10, 2 are used.
0 and 30 are communicably connected to each other via a network 2 such as a LAN.

【0014】これらのワークステーション装置10,2
0,30のうち、本実施例では、基本的に、ワークステ
ーション装置10がクライアントとして機能し、ワーク
ステーション装置20,30がサーバとして機能し、ク
ライアントからの要求を多段のサーバにより処理するク
ライアント/サーバシステムが構成されている。このた
め、ワークステーション装置10には、サーバを利用し
て処理を行なうクライアントアプリケーションプログラ
ム(以下、クライアントアプリという)11がそなえら
れるとともに、ワークステーション装置20,30に
は、それぞれ、処理要求に対応して処理を行なうサーバ
アプリケーションプログラム(以下、サーバアプリとい
う)21,31がそなえられている。
These workstation devices 10, 2
In this embodiment, the workstation device 10 basically functions as a client, the workstation devices 20 and 30 function as a server, and a client / server that processes a request from the client by a multistage server is used. A server system is configured. For this reason, the workstation device 10 is provided with a client application program (hereinafter referred to as a client application) 11 that uses a server to perform processing, and the workstation devices 20 and 30 respectively respond to processing requests. A server application program (hereinafter referred to as a server application) 21 and 31 for performing the processing is provided.

【0015】また、ワークステーション装置10,2
0,30には、処理依頼を行なうためのコマンドをサー
バへ送信するコマンド送信機構12,22,32がそれ
ぞれそなえられるとともに、サーバとして機能するワー
クステーション装置20,30には、処理依頼としての
コマンドを受信するコマンド受信機構23,33がそれ
ぞれそなえられている。
Further, the workstation devices 10, 2
Command transmission mechanisms 12, 22 and 32 for transmitting a command for requesting processing to the server are provided at 0 and 30, respectively, and the workstation devices 20 and 30 functioning as servers are provided with a command as a processing request. Command receiving mechanisms 23 and 33 for receiving the are respectively provided.

【0016】そして、本実施例のコマンド送信機構1
2,22,32には、タグ生成部6,タグ付加部3およ
びタグ削除部7がそなえられるとともに、本実施例のコ
マンド受信機構23および33には、タグ判定部4およ
びエラー処理部5がそなえられている。ここで、タグ生
成部6は、各ワークステーション装置10,20,30
毎に、ワークステーションID,依頼元のプロセスID
および依頼元の処理マクロIDに基づいて、自己の依頼
元固有タグを生成するものである。
Then, the command transmission mechanism 1 of this embodiment
2, 22, and 32 are provided with a tag generation unit 6, a tag addition unit 3, and a tag deletion unit 7, and the command receiving mechanisms 23 and 33 of this embodiment include a tag determination unit 4 and an error processing unit 5. It is provided. Here, the tag generation unit 6 is configured to operate the workstation devices 10, 20, 30.
For each, workstation ID, requesting process ID
Also, based on the processing macro ID of the request source, the own unique tag of the request source is generated.

【0017】タグ付加部3は、コマンド送信機構12,
22,32によりサーバ(依頼先ワークステーション装
置)に対して処理依頼コマンドを送信する際に、タグ生
成部6により生成された依頼元固有タグを、処理依頼コ
マンドのヘッダ部における依頼テーブルに付加(スタッ
ク)するものである。タグ判定部4は、コマンド受信機
構23,33によりクライアントから処理依頼コマンド
を受信すると、その処理依頼コマンドのヘッダ部におけ
る依頼テーブル内のタグを参照して、そのタグに自己の
依頼元固有タグが存在するか否かを判定するものであ
る。
The tag addition unit 3 includes a command transmission mechanism 12,
When the process request command is transmitted to the server (request destination workstation device) by 22, 32, the request source unique tag generated by the tag generation unit 6 is added to the request table in the header part of the process request command ( Stack). When the tag determination unit 4 receives the processing request command from the client by the command receiving mechanisms 23 and 33, the tag determination unit 4 refers to the tag in the request table in the header of the processing request command, and determines that the tag is unique to the request source. It is to determine whether or not it exists.

【0018】エラー処理部5は、タグ判定部4により依
頼テーブル内に自己の依頼元固有タグが存在すると判定
された場合に、処理を中断し、その処理依頼を依頼元
(クライアント)へエラー復帰させるものである。タグ
削除部7は、クライアントからの処理依頼コマンドを正
常に実行・終了し、その処理依頼を依頼元に正常に復帰
させる際に、処理依頼コマンドのヘッダ部における依頼
テーブルから自己の依頼元固有タグを削除するものであ
る。
When the tag determination unit 4 determines that the request source unique tag is present in the request table, the error processing unit 5 interrupts the process and returns the processing request to the request source (client) with an error. It is what makes me. The tag deleting unit 7 executes the processing request command from the client normally and ends, and when returning the processing request to the request source normally, from the request table in the header portion of the processing request command, the tag deletion unit 7 own tag Is to be deleted.

【0019】次に、上述のごとく構成された本実施例の
動作を、図2〜図4により説明する。まず、図3,図4
に示すフローチャート(ステップS1〜S9)により、
本実施例のコマンド送信機構12,22,32およびコ
マンド受信機構の動作について説明する。
Next, the operation of this embodiment constructed as described above will be described with reference to FIGS. First, FIGS. 3 and 4
According to the flowchart (steps S1 to S9) shown in
The operation of the command transmitting mechanism 12, 22, 32 and the command receiving mechanism of this embodiment will be described.

【0020】各コマンド送信機構12,22,32で
は、処理要求を受けると、その要求が処理依頼要求(CAL
L)であるか処理正常終了後の復帰要求(RETURN)であるか
を判定し(図3のステップS1)、処理依頼要求(CALL)
である場合には、タグ生成部6により、各ワークステー
ション装置10,20,30毎に、ワークステーション
ID,依頼元のプロセスIDおよび依頼元の処理マクロ
IDに基づいて、自己の依頼元固有タグを生成する(図
3のステップS2)。
Upon receipt of a processing request, each of the command transmitting mechanisms 12, 22, and 32 receives the processing request (CAL).
L) or a return request (RETURN) after the normal end of processing (step S1 in FIG. 3), and a processing request request (CALL)
In this case, the tag generation unit 6 causes each of the workstation devices 10, 20, 30 to identify its own request source unique tag based on the workstation ID, the request source process ID, and the request source process macro ID. Is generated (step S2 in FIG. 3).

【0021】そして、タグ付加部3により、サーバに対
して送信すべき処理依頼コマンドのヘッダ部における依
頼テーブルに、タグ生成部6により生成された依頼元固
有タグをセットした後(図3のステップS3)、サーバ
へ処理依頼コマンドを送信して処理依頼を行なう(図3
のステップS4)。一方、処理依頼コマンドを受信した
各コマンド受信機構23,33では、処理依頼コマンド
のヘッダ部における依頼テーブルを参照し、タグ判定部
4により、自己に該当するタグが既に存在するか否かを
判定する(図4のステップS7)。その判定の結果、該
当するタグが存在しない場合には、自己のサーバアプリ
21もしくは31への処理依頼を行なう(図4のステッ
プS8)。しかし、ステップS7による判定の結果、該
当タグが既に存在する場合には、エラー処理部5によ
り、自己のサーバアプリ21もしくは31への処理依頼
を行なわず処理を中断し、依頼元へエラー復帰する(図
4のステップS9)。
After the tag addition unit 3 sets the request source unique tag generated by the tag generation unit 6 in the request table in the header of the processing request command to be transmitted to the server (step of FIG. 3). S3), a processing request command is transmitted to the server to request processing (FIG. 3).
Step S4). On the other hand, in each of the command receiving mechanisms 23 and 33 that have received the processing request command, the tag determination unit 4 determines whether or not a tag corresponding to itself already exists by referring to the request table in the header portion of the processing request command. (Step S7 in FIG. 4). As a result of the determination, if the corresponding tag does not exist, a processing request is made to the server application 21 or 31 of its own (step S8 in FIG. 4). However, as a result of the determination in step S7, when the corresponding tag already exists, the error processing unit 5 interrupts the process without requesting the server application 21 or 31 of its own to return the error to the request source. (Step S9 in FIG. 4).

【0022】図4のステップS8へ移行し、サーバアプ
リ21,31において処理を正常に終了した場合には、
依頼元へ正常復帰すべく復帰要求(RETURN)を発行してコ
マンド送信機構22,32へ制御を移す。これにより、
コマンド送信機構22,32では、図3のステップS1
からステップS5の処理へ移行し、タグ削除部7によ
り、ヘッダ部における依頼テーブルから自己(該当サー
バアプリ)の依頼元固有タグを削除し、依頼テーブルを
更新した内容を付加してから、依頼元への復帰を行なう
(図3のステップS6)。
When the process proceeds to step S8 in FIG. 4 and the processing is normally completed in the server applications 21 and 31,
A return request (RETURN) is issued to return to the request source and control is transferred to the command transmission mechanisms 22 and 32. This allows
In the command transmission mechanisms 22 and 32, step S1 in FIG.
To the process of step S5, the tag deleting unit 7 deletes the requester unique tag of the self (corresponding server application) from the request table in the header part, adds the updated contents of the request table, and then the requester (Step S6 in FIG. 3).

【0023】より具体的な処理依頼例を、図2を参照し
ながら説明すると、まず、ワークステーション装置10
のクライアントアプリ11が、ワークステーション装置
20のサーバアプリ21に対して処理依頼を行なう場
合、コマンド送信機構12にて処理依頼コマンドC1の
ヘッダ部Hに自己のタグ“CL”を付加して、その処理
依頼コマンドC1をワークステーション装置20へ送信
し処理依頼を行なう。
A more specific processing request example will be described with reference to FIG.
When the client application 11 of FIG. 1 requests the server application 21 of the workstation device 20 for processing, the command transmission mechanism 12 adds its own tag “CL” to the header portion H of the processing request command C1 and The processing request command C1 is transmitted to the workstation device 20 to request processing.

【0024】ワークステーション装置20では、コマン
ド受信機構23にて、依頼元処理のタグを参照して自分
自身への発行でないかをチェックし、妥当であれば、サ
ーバアプリ21へ処理依頼を行なう。さらに、サーバア
プリ21が、ワークステーション装置30のサーバアプ
リ31に対して処理依頼を行なう場合、コマンド送信機
構22にて処理依頼コマンドC2のヘッダ部Hに自己の
タグ“SV−A”を付加して、その処理依頼コマンドC
2をワークステーション装置30へ送信し処理依頼を行
なう。
In the workstation device 20, the command receiving mechanism 23 refers to the request source processing tag to check whether it is issued to itself, and if it is appropriate, requests the server application 21 for processing. Further, when the server application 21 makes a processing request to the server application 31 of the workstation device 30, the command transmission mechanism 22 adds its own tag “SV-A” to the header portion H of the processing request command C2. And the processing request command C
2 is transmitted to the workstation device 30 to request processing.

【0025】ワークステーション装置30では、コマン
ド受信機構33にて、依頼元処理のタグを参照して自分
自身への発行が既に行なわれていないかをチェックし、
自分自身への処理依頼が行なわれていない場合には、サ
ーバアプリ31へ処理依頼を行なう。そして、サーバア
プリ31が処理を終了して、依頼元へ復帰する場合は、
コマンド送信機構32にて、他サーバへの依頼が行なわ
れていないかどうかをチェックしてから、他サーバへの
依頼が行なわれていない場合には、そのまま依頼元へ復
帰する。サーバアプリ21が処理を終了して、依頼元へ
復帰する場合には、コマンド送信機構22のタグ削除部
7によりサーバアプリ21についてのタグを削除して依
頼元へ正常復帰する。
In the workstation device 30, the command receiving mechanism 33 refers to the tag of the request source process to check whether or not the command is issued to itself,
If the processing request to the user is not made, the processing request is made to the server application 31. When the server application 31 finishes the process and returns to the request source,
The command transmitting mechanism 32 checks whether or not a request to another server is made, and if a request to another server is not made, the process directly returns to the request source. When the server application 21 finishes the process and returns to the request source, the tag deletion unit 7 of the command transmission mechanism 22 deletes the tag for the server application 21 and returns to the request source normally.

【0026】ところで、上述のようにクライアントアプ
リ11からサーバアプリ21,サーバアプリ31まで処
理依頼が行なわれた後に、さらに、サーバアプリ31
が、図2に示すように、ワークステーション装置20の
サーバアプリ21に対して処理依頼を行なう場合、コマ
ンド送信機構32にて処理依頼コマンドC3のヘッダ部
Hに自己のタグ“SV−B”を付加して、その処理依頼
コマンドC3をワークステーション装置20へ送信し処
理依頼を行なう。
By the way, after the client application 11 requests the server application 21 and the server application 31 as described above, the server application 31 is further processed.
However, as shown in FIG. 2, when making a processing request to the server application 21 of the workstation device 20, the command transmitting mechanism 32 adds its own tag "SV-B" to the header portion H of the processing request command C3. In addition, the processing request command C3 is transmitted to the workstation device 20 to request processing.

【0027】このとき、ワークステーション装置20の
コマンド受信機構23にて、依頼元処理のタグを参照し
て自分自身への発行が既に行なわれていないかをチェッ
クすると、そのコマンドC3のヘッダ部Hには、既に自
己のタグ“SV−A”がセットされている。従って、こ
のコマンドC3については自分自身への発行が既に行な
われているものと判断され、エラー処理部5により、処
理依頼を行なわず処理を中断し、依頼元へエラー復帰す
る。
At this time, the command receiving mechanism 23 of the workstation device 20 refers to the tag of the request source processing to check whether the issuing to the self has already been performed, and the header portion H of the command C3 is checked. Has already been set to its own tag "SV-A". Therefore, it is determined that the command C3 has already been issued to itself, and the error processing unit 5 interrupts the process without requesting the process and returns to the request source with an error.

【0028】このように、本発明の一実施例によれば、
サーバに対して処理依頼を行なう度に、処理依頼コマン
ドのヘッダ部に順次付加されるタグを参照することによ
り、自己の依頼元固有タグが存在すれば、その処理依頼
は、自己が以前に発行したものであり、その処理は既に
依頼されたものであると判断できる。そのような処理依
頼を実行すると、デッドロックが発生してしまうので、
自己の依頼元固有タグがヘッダ部に存在した場合には、
処理を中断して依頼元へエラー復帰することにより、障
害の原因を素早く見つけることができ、処理依頼元への
多重処理要求発行に起因するデッドロックを確実に回避
できる利点がある。
Thus, according to one embodiment of the present invention,
Each time a processing request is made to the server, by referring to the tags that are sequentially added to the header of the processing request command, if the requester's own unique tag exists, the processing request is issued by itself. It can be determined that the processing has already been requested. If you execute such a processing request, deadlock will occur, so
If your requester's unique tag exists in the header,
By interrupting the process and returning to the request source with an error, it is possible to quickly find the cause of the failure, and it is possible to reliably avoid the deadlock due to the issuance of the multiple processing request to the process request source.

【0029】なお、上述した実施例では、ワークステー
ション装置10は、基本的にクライアントとして機能
し、サーバのように処理依頼を受けないものとして、コ
マンド受信機構をそなえていないが、このワークステー
ション装置10にも、サーバとして機能するワークステ
ーション装置20,30と同様にコマンド受信機構をそ
なえても構わない。
In the above-described embodiment, the workstation device 10 basically functions as a client and does not receive a processing request like a server does not have a command receiving mechanism. 10 may be provided with a command receiving mechanism like the workstation devices 20 and 30 functioning as servers.

【0030】また、上述した実施例では、クライアント
アプリとサーバアプリとが別々のワークステーション装
置上に存在しているが、クライアントアプリとサーバア
プリとは同一ワークステーション装置内に存在しても構
わない。さらに、上述した実施例では、サーバが2段そ
なえられている場合について説明したが、本発明は、こ
れに限定されるものではなく、3段以上の場合にも同様
に適用され、より多くのサーバを用いて処理を行なう場
合に、より有効に機能する。
Further, in the above-mentioned embodiment, the client application and the server application exist on different workstation devices, but the client application and the server application may exist on the same workstation device. . Furthermore, in the above-described embodiment, the case where the server has two stages has been described, but the present invention is not limited to this, and is similarly applied to the case of three or more stages, and more servers are provided. It works more effectively when processing is done using a server.

【0031】[0031]

【発明の効果】以上詳述したように、本発明のクライア
ント/サーバシステムおよび同システム用ワークステー
ション装置によれば、サーバに対して処理依頼を行なう
度に、処理依頼に順次付加されるタグを参照することに
より、デッドロック発生要因を速やかに発見することが
できる。
As described above in detail, according to the client / server system and the workstation device for the same system of the present invention, each time a processing request is made to the server, a tag is sequentially added to the processing request. By referring, the cause of deadlock can be found promptly.

【0032】そして、デッドロック発生要因を発見した
場合には、処理を中断して依頼元へエラー復帰すること
により、障害の原因を素早く見つけることができ、処理
依頼元への多重処理要求発行に起因するデッドロックを
確実に回避できる効果がある。
When the cause of the deadlock is found, the cause of the failure can be quickly found by interrupting the process and returning to the request source with an error. This has the effect of reliably avoiding the deadlock caused.

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

【図1】本発明の原理ブロック図である。FIG. 1 is a principle block diagram of the present invention.

【図2】本発明の一実施例としてのクライアント/サー
バシステムおよび同システム用ワークステーション装置
を示すブロック図である。
FIG. 2 is a block diagram showing a client / server system and a workstation device for the same system as an embodiment of the present invention.

【図3】本実施例のコマンド送信機構の動作を説明する
ためのフローチャートである。
FIG. 3 is a flow chart for explaining the operation of the command transmission mechanism of this embodiment.

【図4】本実施例のコマンド受信機構の動作を説明する
ためのフローチャートである。
FIG. 4 is a flowchart for explaining the operation of the command receiving mechanism of this embodiment.

【図5】一般的なデッドロック発生状態を説明するため
のブロック図である。
FIG. 5 is a block diagram for explaining a general deadlock occurrence state.

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

1 ワークステーション装置 2 ネットワーク 3 タグ付加部 4 タグ判定部 5 エラー処理部 6 タグ生成部 7 タグ削除部 10,20,30 ワークステーション装置 11 クライアントアプリケーションプログラム 12,22,32 コマンド送信機構 21,31 サーバアプリケーションプログラム 23,33 コマンド受信機構 1 workstation device 2 network 3 tag addition unit 4 tag determination unit 5 error processing unit 6 tag generation unit 7 tag deletion unit 10, 20, 30 workstation device 11 client application program 12, 22, 32 command transmission mechanism 21, 31 server Application program 23,33 Command receiving mechanism

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 クライアントからの要求を多段のサーバ
により処理するクライアント/サーバシステムにおい
て、 クライアント側に、サーバに対して処理依頼を行なう際
に依頼元固有のタグを前記処理依頼に付加するタグ付加
部がそなえられるとともに、 サーバ側に、 クライアントから処理依頼を受けると、当該処理依頼に
付加されたタグを参照して、該タグに自己の依頼元固有
のタグが存在するか否かを判定するタグ判定部と、 該タグ判定部により当該処理依頼に付加されたタグに自
己の依頼元固有のタグが存在すると判定された場合に、
処理を中断し、当該処理依頼をその依頼元へエラー復帰
させるエラー処理部とがそなえられていることを特徴と
する、クライアント/サーバシステム。
1. In a client / server system for processing a request from a client by a multistage server, a tag addition for adding a tag unique to a requester to the processing request when a processing request is made to the server on the client side. When a processing request is received from the client on the server side, the tag attached to the processing request is referred to, and it is determined whether or not the tag unique to the requester of that request exists. When it is determined by the tag determining unit and the tag added to the processing request that the tag unique to the requester itself exists,
A client / server system, comprising: an error processing unit for interrupting processing and returning the processing request to the request source with an error.
【請求項2】 クライアントからの要求を多段のサーバ
により処理するクライアント/サーバシステムにおい
て、クライアントもしくはサーバとして用いられるワー
クステーション装置であって、 サーバに対して処理依頼を行なう際に、依頼元固有のタ
グを前記処理依頼に付加するタグ付加部と、 処理依頼を受けると、当該処理依頼に付加されたタグを
参照して、該タグに自己の依頼元固有のタグが存在する
か否かを判定するタグ判定部と、 該タグ判定部により当該処理依頼に付加されたタグに自
己の依頼元固有のタグが存在すると判定された場合に、
処理を中断し、当該処理依頼をその依頼元へエラー復帰
させるエラー処理部とがそなえられていることを特徴と
する、クライアント/サーバシステム用ワークステーシ
ョン装置。
2. A workstation device used as a client or a server in a client / server system for processing a request from a client by a multi-stage server, which is unique to a requester when a processing request is made to the server. A tag adding unit that adds a tag to the processing request, and when receiving the processing request, refers to the tag added to the processing request and determines whether or not the tag unique to the requesting source of the tag exists. And a tag determination unit that determines that the tag added to the processing request includes a tag unique to its own requester,
A workstation device for a client / server system, comprising: an error processing unit for interrupting processing and returning the processing request to the request source with an error.
JP26071994A 1994-10-25 1994-10-25 Client / server system and workstation for the same Expired - Fee Related JP3320221B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26071994A JP3320221B2 (en) 1994-10-25 1994-10-25 Client / server system and workstation for the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26071994A JP3320221B2 (en) 1994-10-25 1994-10-25 Client / server system and workstation for the same

Publications (2)

Publication Number Publication Date
JPH08123771A true JPH08123771A (en) 1996-05-17
JP3320221B2 JP3320221B2 (en) 2002-09-03

Family

ID=17351813

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26071994A Expired - Fee Related JP3320221B2 (en) 1994-10-25 1994-10-25 Client / server system and workstation for the same

Country Status (1)

Country Link
JP (1) JP3320221B2 (en)

Also Published As

Publication number Publication date
JP3320221B2 (en) 2002-09-03

Similar Documents

Publication Publication Date Title
US6845505B1 (en) Web request broker controlling multiple processes
US5748897A (en) Apparatus and method for operating an aggregation of server computers using a dual-role proxy server computer
US5818448A (en) Apparatus and method for identifying server computer aggregation topologies
US7082551B2 (en) Method and data processing system providing checkpoint/restart across multiple heterogeneous computer systems
US8898191B2 (en) Method for providing connections for application processes to a database server
JP2675968B2 (en) Extension of subscriber distributed two-phase commit protocol
EP1099164A1 (en) Methods and apparatus for processing administrative requests of a distributed network application executing in a clustered computing environment
CN105933408A (en) Implementation method and device of Redis universal middleware
US20050021663A1 (en) Transparent disconnected services discovery and use
JP2002532777A (en) Timeout object for object-oriented real-time process control system and method of operation thereof
CN113835911A (en) Intranet penetration agent method, system, host and computer readable storage medium
JP3320221B2 (en) Client / server system and workstation for the same
JPH0628322A (en) Information processor
JP2023057210A (en) Information processing device, information processing method, and information processing program
JPH09288608A (en) File sharing controller in distributed processing system
US7493625B2 (en) Hierarchical event filtering for multiple parent event types
JPH06259397A (en) Distributed transaction processing system
JP2006185229A (en) Online synchronous processing method and apparatus
JP2006120080A (en) Web service request relay system, web service request relay method, relay server and program
JP2652989B2 (en) File transfer device
JP3403024B2 (en) Distributed service system
JP2002099510A (en) Multiple transaction processing system
JPH07253899A (en) Test processing system
JP3578408B2 (en) Computer network system
JPH03288255A (en) Network control system for multiprocessor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020604

LAPS Cancellation because of no payment of annual fees