JPH0228751A - System for processing process generation - Google Patents

System for processing process generation

Info

Publication number
JPH0228751A
JPH0228751A JP17854488A JP17854488A JPH0228751A JP H0228751 A JPH0228751 A JP H0228751A JP 17854488 A JP17854488 A JP 17854488A JP 17854488 A JP17854488 A JP 17854488A JP H0228751 A JPH0228751 A JP H0228751A
Authority
JP
Japan
Prior art keywords
request
priority
processing
stub
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.)
Pending
Application number
JP17854488A
Other languages
Japanese (ja)
Inventor
Mamiko Toda
戸田 麻美子
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 JP17854488A priority Critical patent/JPH0228751A/en
Publication of JPH0228751A publication Critical patent/JPH0228751A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To process a priority request within without generating a stub process whenever there is the priority request and securely processing the priority request even if resources lack and to save the resources by giving the function of a priority request processing in a main process. CONSTITUTION:The main process 2 is generated when the request is started, and it consists of a request discrimination part 2-1, a request processing part 2-2 and the like in addition to the control of a communication relation. The discrimination part 2-1 discriminates whether the request given from the other device is normal or not, or whether it is the priority request or not. The processing part 2-2 newly generates the stub process 3 and makes the request of the processing to the stub process 3 when the discrimination part 2-1 had discriminated the request to be normal. When it is discriminated to be the priority request, the processing part processes it. With giving the function of processing the priority request to the process 2, it can securely process a cancel request and the like in priority and the resources can be saved even if the resources lack and the new stub process cannot be generated.

Description

【発明の詳細な説明】 〔概要〕 他の装置からの要求に対応してプロセスを生成して処理
を行うプロセス生成処理方式に関し、メインプロセス中
に優先要求を処理する機能を持たせ、優先要求のときに
その都度スタブプロセスを生成することなく内部で処理
し、たとえ資源不足であっても優先要求を確実に処理す
ると共に資源を節約することを目的とし、 他の装置からの最初の開始要求時に生成したメインプロ
セス中に設け、この他の装置からの要求が通常の要求か
あるいは優先的な要求かを判別する要求判別部と、この
要求判別部によって通常の要求と判別した場合に、スタ
ブプロセスを新たに生成して処理を依頼し、一方、優先
的な要求の場合に、この要求を処理する上記メインプロ
セス中に設けた要求処理部とを備え、この要求処理部が
優先的な要求を処理するように構成する。
[Detailed Description of the Invention] [Summary] Regarding a process generation processing method in which processes are generated and processed in response to requests from other devices, a function for processing priority requests is provided in the main process. The purpose is to process the process internally without creating a stub process each time, and to reliably process priority requests and save resources even when resources are insufficient. A request discriminator is provided in the main process that is generated at the same time, and determines whether a request from another device is a normal request or a priority request. A request processing unit provided in the main process that newly generates a process and requests processing, and processes this request in the case of a priority request, and this request processing unit handles the priority request. Configure it to handle.

〔産業上の利用分野〕[Industrial application field]

本発明は、他の装置からの要求に対応してプロセスを生
成して処理を行うプロセス生成処理方式%式% 〔従来の技術と発明が解決しようとする課題〕従来、第
3図に示すように、相手WS(相手ワークステジョン)
24からの要求1.2.3などが通知される毎に、当該
WS21内にサービスプロセス1.2.3などをその都
度生成してこれらに処理を依願するようにしていた。こ
のため、キャンセル要求のような優先要求を受は付けた
時に資源不足のためにプロセスを生成できない場合、こ
の優先的なキャンセル要求などを処理し得ないという問
題があった。
The present invention is a process generation processing method that generates a process in response to a request from another device and performs the process. [Prior art and problems to be solved by the invention] , the opponent's WS (opponent's workstation)
Each time a request 1.2.3 or the like from 24 is notified, a service process 1.2.3 or the like is generated in the WS 21 and a request is made to these processes. Therefore, if a process cannot be generated due to lack of resources when a priority request such as a cancellation request is accepted, there is a problem in that the priority cancellation request cannot be processed.

また、固定的にいくつかのプロセスを別個に生成する方
式の時には、キャンセル要求のような優先要求について
予めプロセスを生成しておく必要があり、資源の無駄使
いが発生してしまうという問題があった。
Furthermore, when using a method that creates several fixed processes separately, it is necessary to create processes in advance for priority requests such as cancellation requests, which causes the problem of wasted resources. Ta.

本発明は、メインプロセス中に優先要求を処理する機能
を持たせ、優先要求のときにその都度スタブプロセスを
生成することなく内部で処理し、たとえ資源不足であっ
ても優先要求を確実に処理すると共に資源を節約するこ
とを目的としている。
The present invention provides a function to process priority requests in the main process, processes them internally without creating a stub process each time a priority request occurs, and ensures that priority requests are processed even when resources are insufficient. The purpose is to save resources while doing so.

〔課題を解決する手段〕[Means to solve problems]

第1図を参照して課題を解決する手段を説明する。 Means for solving the problem will be explained with reference to FIG.

第1図において、メインプロセス2は、要求開始時に生
成されるプロセスであって、通信関係の制御の他に要求
判別部2−1および要求処理部22などから構成されて
いる。
In FIG. 1, a main process 2 is a process that is generated at the start of a request, and includes a request determining section 2-1, a request processing section 22, etc. in addition to communication-related control.

要求判別部2−1は、他の装置から通知された要求が通
常の要求かあるいは優先的な要求かを判別するものであ
る。
The request determining unit 2-1 determines whether a request notified from another device is a normal request or a priority request.

要求処理部2−2は、要求判別部2−1によって通常の
要求と判別された場合、スタブプロセス3を新たに生成
してこれに処理を依願し、一方、優先的な要求と判別さ
れた場合、この優先的な要求(例えばキャンセル要求な
ど)を処理するものである。
If the request is determined to be a normal request by the request determining unit 2-1, the request processing unit 2-2 generates a new stub process 3 and requests it to process the request.On the other hand, if the request is determined to be a priority request, In this case, this priority request (for example, a cancellation request) is processed.

スタブプロセス3は、通常要求時に生成され、処理を行
うものである。
The stub process 3 is normally generated upon request and performs processing.

〔作用〕[Effect]

本発明は、第1図に示すように、要求開始時に生成され
たメインプロセス2を構成する要求判別部2−1が他の
装置から通知された要求が通常の要求かあるいは優先的
な要求かを判別し、要求処理部2−2が通常の要求の時
にスタブプロセス3を新たに生成してこれに処理を依頼
し、一方、優先的な要求の時にこの優先的な要求(例え
ばキャンセル要求など)を処理するようにしている。
As shown in FIG. 1, the present invention allows a request determining unit 2-1 forming a main process 2 generated at the start of a request to determine whether a request notified from another device is a normal request or a priority request. When the request is a normal request, the request processing unit 2-2 generates a new stub process 3 and requests the process to be processed.On the other hand, when the request is a priority request, the request processing unit 2-2 generates a new stub process 3 and requests the process to be processed. ).

従って、メインプロセス2に優先要求を処理する機能を
持たせることにより、たとえ資源不足などであって新た
なスタブプロセスを生成し得ない状態でも、優先的に確
実にキャンセル要求などを処理することが可能となる。
Therefore, by providing the main process 2 with the function of processing priority requests, it is possible to ensure that cancellation requests and the like are processed with priority even if a new stub process cannot be created due to lack of resources. It becomes possible.

〔実施例〕〔Example〕

次に、第1図および第2図を用いて本発明の1実施例の
構成および動作を順次詳細に説明する。
Next, the configuration and operation of one embodiment of the present invention will be explained in detail using FIGS. 1 and 2.

第1図において、装置1.4は、ワークステーションな
どであって、各種処理を分散する態様で行う装置(例え
ばプリンタ装置)である。これら装W1.4は、プロセ
ス2.3.3−13−2.4−2などを生成して各種処
理をこれらに行わせるようにしている。
In FIG. 1, a device 1.4 is a workstation or the like, and is a device (for example, a printer device) that performs various types of processing in a distributed manner. These devices W1.4 generate processes 2.3.3-13-2.4-2, etc., and have them perform various processes.

メインプロセス2は、サービス要求開始時に生成される
プロセスであって、装置1と装W4との間などにおける
通信関係の制御、および本実施例に係わる要求判別部2
−1、要求処理部2−2などを行うプロセスである。
The main process 2 is a process that is generated at the start of a service request, and controls the communication relationship between the device 1 and the device W4, and the request determination unit 2 related to this embodiment.
-1, a process that performs the request processing unit 2-2, etc.

スタブプロセス3.3−1.3−2などは、通常の要求
に対応してその都度生成するプロセスであって、処理例
えばデイスプレィ5上にメソセージ“用紙が入っていま
せん”を表示などするプロセスである。
Stub processes 3.3-1.3-2, etc. are processes that are generated each time in response to a normal request, and are processes that perform processing such as displaying the message "No paper in" on the display 5. It is.

次に、第1図構成の動作を説明する。Next, the operation of the configuration shown in FIG. 1 will be explained.

第1図において、第1に、装置(相手WS)4を構成す
る応用プログラム4−1からの指示(例えば印刷指示)
に対応してプロセス4−2からのザーヒス開始要求が装
置1に通知された時、当該装W1はメインプロセス2を
生成する。これは、装置4が、第2図ヘッダ中に“開始
”などを記載した要求情報を装W1に通知することによ
って行われる。
In FIG. 1, first, an instruction (for example, a print instruction) from an application program 4-1 constituting the device (partner WS) 4
When the device 1 is notified of the start request from the process 4-2 in response to this, the device W1 generates the main process 2. This is done by the device 4 notifying the device W1 of request information in which "start" is written in the header of FIG. 2.

第2に、このサービス開始要求に続けて通知された要求
(1)に対応してメインプロセス2を構成する要求判別
部2−1がこの要求(1)が通常の要求かあるいは優先
的な要求かを判別し、この場合には通常の要求であるの
で要求処理部2−2がこの要求に対応する図示スタブプ
ロセス3−1を新たに生成して処理を依頼するようにし
ている。これにより、要求(1)の発行元に代わって当
該スタブプロセス3−1がその処理を代行する。これは
、装置4が、第2図ヘッダ中に“要求”、個別情報中の
種別“要求(通常要求)”などを格納した要求情報を装
置1に通知することによって行われる。
Second, in response to the request (1) notified subsequent to this service start request, the request determination unit 2-1 that constitutes the main process 2 determines whether this request (1) is a normal request or a priority request. In this case, since it is a normal request, the request processing unit 2-2 newly generates the illustrated stub process 3-1 corresponding to this request and requests the process. As a result, the stub process 3-1 performs the processing in place of the issuer of the request (1). This is done by the device 4 notifying the device 1 of request information including "request" in the header of FIG. 2, type "request (normal request)" in the individual information, and the like.

第3に、キャンセル要求が通知された場合、メインプロ
セス2を構成する要求判別部2−1がこれを優先的な要
求と判別し、要求処理部2−2がこのキャンセル要求を
処理例えば上記スタブプロセス3−1などに依頼された
内容がキューイングされていた場合には該当する依頼内
容をデキュー(キャンセル)し、その結果を要求元に応
答するようにしている。これは、装置4が、第2図ヘッ
ダ中に“要求”、個別情報中の種別“キャンセル要求(
優先要求)”などを格納した要求情報を装置1に通知す
ることによって行われる。
Third, when a cancellation request is notified, the request determination unit 2-1 that constitutes the main process 2 determines this as a priority request, and the request processing unit 2-2 processes this cancellation request. If the content requested by process 3-1 or the like is queued, the corresponding request content is dequeued (cancelled) and the result is sent back to the request source. This means that the device 4 has "request" in the header in Figure 2 and type "cancellation request" in the individual information.
This is done by notifying the device 1 of request information including "priority request" and the like.

第4に、以降第2あるいは第3を繰り返し実行する。Fourthly, the second or third step is repeated thereafter.

以上のように、メインプロセス2中に通信関係の制御お
よび本実施例に係わる要求判別部2−1、要求処理部2
−2を設けることにより、他の装置4からの優先要求に
対応して、確実にキャンセル処理などを行うことが可能
となる。
As described above, during the main process 2, communication-related control and the request determination unit 2-1 and the request processing unit 2 related to this embodiment are performed.
By providing -2, it becomes possible to reliably perform cancellation processing in response to priority requests from other devices 4.

第2図は要求/応答情報例を示す。ここで、ヘッダ中の
“開始”はサービス開始要求を通知するときに格納する
もの、“要求”は要求(il常/優先要求)を通知する
ときに格納するもの、°“応答”は要求先が要求元に応
答するときに格納するもの、“′終了”はサービス終了
要求を通知するときに格納するものである。また、個別
情報中の“種別”は要求が通常要求/優先要求の区別を
格納するもの、あるいは応答時には関数値(0:NOR
MAL、正常に処理を実行した旨の応答値)を格納する
もの、“データ”は処理要求するデータである。
FIG. 2 shows example request/response information. Here, "start" in the header is what is stored when notifying a service start request, "request" is what is stored when notifying a request (regular/priority request), and "response" is what is stored when notifying the request destination. ``End'' is stored when responding to a request source, and ``end'' is stored when notifying a service termination request. In addition, the "type" in the individual information stores the distinction between a normal request/priority request, or the function value (0:NOR) at the time of response.
MAL (response value indicating that the process was executed normally) is stored, and "data" is the data that requests the process.

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

第1図は本発明の1実施例構成図、第2図は要求/応答
情報例、第3図は従来技術の説明図を示す。 図中、1.4は装置(WS) 、2はメインプロセス、
2−1は要求判別部、2−2は要求処理部、3.3−1
.3−2はスタブプロセスを表す。
FIG. 1 shows a configuration diagram of one embodiment of the present invention, FIG. 2 shows an example of request/response information, and FIG. 3 shows an explanatory diagram of a prior art. In the figure, 1.4 is the device (WS), 2 is the main process,
2-1 is a request determination unit, 2-2 is a request processing unit, 3.3-1
.. 3-2 represents a stub process.

Claims (1)

【特許請求の範囲】 他の装置からの要求に対応してプロセスを生成して処理
を行うプロセス生成処理方式において、他の装置からの
最初の開始要求時に生成したメインプロセス(2)中に
設け、この他の装置からの要求が通常の要求かあるいは
優先的な要求かを判別する要求判別部(2−1)と、 この要求判別部(2−1)によって通常の要求と判別し
た場合に、スタブプロセス(3)を新たに生成して処理
を依頼し、一方、優先的な要求の場合に、この要求を処
理する上記メインプロセス(2)中に設けた要求処理部
(2−2)とを備え、 この要求処理部(2−2)が優先的な要求を処理するよ
うに構成したことを特徴とするプロセス生成制御方式。
[Scope of Claims] In a process generation processing method that generates a process in response to a request from another device and performs processing, a , a request determination unit (2-1) that determines whether a request from another device is a normal request or a priority request; , a request processing unit (2-2) provided in the main process (2) that newly generates a stub process (3) and requests processing, and processes this request in the case of a priority request. A process generation control method, comprising the following: The request processing unit (2-2) is configured to process requests with priority.
JP17854488A 1988-07-18 1988-07-18 System for processing process generation Pending JPH0228751A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17854488A JPH0228751A (en) 1988-07-18 1988-07-18 System for processing process generation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17854488A JPH0228751A (en) 1988-07-18 1988-07-18 System for processing process generation

Publications (1)

Publication Number Publication Date
JPH0228751A true JPH0228751A (en) 1990-01-30

Family

ID=16050336

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17854488A Pending JPH0228751A (en) 1988-07-18 1988-07-18 System for processing process generation

Country Status (1)

Country Link
JP (1) JPH0228751A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62284455A (en) * 1986-06-02 1987-12-10 Hitachi Ltd Distributed interaction processing system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62284455A (en) * 1986-06-02 1987-12-10 Hitachi Ltd Distributed interaction processing system

Similar Documents

Publication Publication Date Title
US7072059B2 (en) Method and system for submitting jobs to a reproduction center
US6321274B1 (en) Multiple procedure calls in a single request
JPH0287259A (en) Dispersion type digital data processing system
US7516195B2 (en) Method of handling a web service call
JP4516594B2 (en) Message transmission control method, message transmission control device, and message transmission control program
JPH0228751A (en) System for processing process generation
JPH08212180A (en) Inter-process communication processor
JPH0628322A (en) Information processor
JP3423477B2 (en) Printing method and system
JP3031774B2 (en) Network management method and network system
JPH05250112A (en) Print output control method
JPH11215178A (en) Atypical workflow control method and atypical workflow control email system
JPH08272739A (en) Method for improving on-line response
JPH10247616A (en) Exposure apparatus, semiconductor production system and semiconductor manufacturing method
JPH09212439A (en) Decentralized processing system and its data transfer method
JPS62125432A (en) Print control system for terminal equipment of 2-job operation system
JPH0675724A (en) Print control device
JP2001306717A (en) System and method for substituting user operation
JP3320221B2 (en) Client / server system and workstation for the same
JPH1115679A (en) Method and apparatus for communication between processes
JPH10247158A (en) On-line exclusive wait evading method
JPH02231668A (en) Job generating system for distributed system
JP2000207331A (en) Processor
JPH04243462A (en) Message output system
JPH0789150A (en) Printer controller