JPH0812610B2 - Process allocation control method - Google Patents

Process allocation control method

Info

Publication number
JPH0812610B2
JPH0812610B2 JP20292388A JP20292388A JPH0812610B2 JP H0812610 B2 JPH0812610 B2 JP H0812610B2 JP 20292388 A JP20292388 A JP 20292388A JP 20292388 A JP20292388 A JP 20292388A JP H0812610 B2 JPH0812610 B2 JP H0812610B2
Authority
JP
Japan
Prior art keywords
stub
access request
response
processes
generated
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.)
Expired - Lifetime
Application number
JP20292388A
Other languages
Japanese (ja)
Other versions
JPH0251740A (en
Inventor
敬藏 小池
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 JP20292388A priority Critical patent/JPH0812610B2/en
Publication of JPH0251740A publication Critical patent/JPH0251740A/en
Publication of JPH0812610B2 publication Critical patent/JPH0812610B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔概要〕 アクセス要求に対応してプロセスを割り当てるプロセ
ス割当制御方式に関し、 アクセス要求に対応して装置毎に所定個数のプロセス
を生成しておき、この生成されたプロセスをアクセス要
求に対応づけ、足りなくなった時に新たに動的にプロセ
スを生成して割り当て、レスポンスを速くすると共に最
小限のプロセスの割当てを保証することを目的とし、 アクセス要求に対応して予め定めた所定個数のプロセ
スを一括して生成するプロセス生成部と、アクセス要求
に対応してこのプロセス生成部によって予め生成された
未割り当てプロセスがある場合に、これを割り当てるプ
ロセス割当部と、アクセス要求に対応してこのプロセス
生成部によって予め生成された未割り当てプロセスがな
い場合に、新たにプロセスを動的に生成して割り当てる
プロセス動的割当部とを備え、上記プロセス生成部がア
クセス要求元の装置毎に所定個数のプロセスを予め生成
しておき、アクセス要求に対応して、上記プロセス割当
部あるいは上記プロセス動的割当部がプロセスを割り当
てて所定の処理を依頼するように構成する。
DETAILED DESCRIPTION [Overview] Regarding a process allocation control method for allocating a process in response to an access request, a predetermined number of processes are generated for each device in response to an access request, and the generated process is Corresponding to an access request, a new process is dynamically created and allocated when there is not enough, to speed up the response and guarantee the minimum process allocation. If there is a process generation unit that collectively generates a predetermined number of processes and an unallocated process that was previously generated by this process generation unit in response to an access request, a process allocation unit that allocates this process and an access request Then, if there is no unallocated process previously created by this process creation unit, a new process is newly created. A process dynamic allocation unit that dynamically generates and allocates a process, and the process generation unit previously generates a predetermined number of processes for each access request source device, and responds to the access request by the above process. The assigning unit or the process dynamic assigning unit assigns a process and requests a predetermined process.

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

本発明は、アクセス要求に対応してプロセスを割り当
てるプロセス割当制御方式に関するものである。
The present invention relates to a process allocation control system that allocates a process in response to an access request.

〔従来の技術と発明が解決しようとする課題〕[Problems to be Solved by Conventional Techniques and Inventions]

従来、第4図に示すように1つのサーバ21に対して複
数のWS(ワークステーション)1、2などが接続されて
いるシステムにおいて、WS1、2などのユーザプロセス
が当該サーバ21の資源であるファイルなどをリモート的
にアクセス要求した場合、サーバ21の図示外プロバイダ
によって生成されたメインプロセスがその都度、動的に
スタブプロセスを生成して処理を依頼(ファイルのアク
セスを依頼)し、処理終了後に消滅させるようにしてい
た。
Conventionally, in a system in which a plurality of WSs (workstations) 1 and 2 are connected to one server 21 as shown in FIG. 4, user processes such as WS 1 and 2 are resources of the server 21. When a file or the like is requested to be accessed remotely, the main process generated by a provider (not shown) of the server 21 dynamically generates a stub process and requests processing (requesting file access) each time, and the processing ends. I was trying to make it disappear later.

このため、WS1、2などのユーザプロセスからのアク
セス要求に対応してその都度、スタブプロセスを生成し
て処理を依頼し、処理終了後に消滅させるという時間が
必要となり、レスポンスが遅いという問題があった。ま
た、あるWSのユーザプロセスがサーバ上の多量の資源を
アクセスすると、その分だけスタブプロセスが生成さ
れ、他のユーザプロセスのアクセス要求に対応してスタ
ブプロセスを生成できず、資源をアクセスし得なくなっ
てしまうという問題があった。
Therefore, in response to an access request from a user process such as WS1 or 2, a stub process is generated each time, processing is requested, and it is necessary to delete the processing after the processing ends, which causes a problem of slow response. It was Also, when a user process of a certain WS accesses a large amount of resources on the server, a stub process is generated correspondingly, and the stub process cannot be generated in response to the access request of another user process, and the resource can be accessed. There was a problem of disappearing.

本発明は、アクセス要求に対応して装置毎に所定個数
のプロセスを生成しておき、この生成されたプロセスを
アクセス要求に対応づけ、足りなくなった時に新たに動
的にプロセスを生成して割り当て、レスポンスを速くす
ると共に最小限のプロセスの割当てを保証することを目
的としている。
The present invention creates a predetermined number of processes for each device in response to an access request, associates the created process with an access request, and dynamically creates and allocates a new process when insufficient. , It aims at making the response quick and guaranteeing the minimum process allocation.

〔課題を解決する手段〕[Means for solving the problem]

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

第1図において、プロセス生成部4は、WS2などから
のアクセス要求に対応して、所定個数のプロセス(スタ
ブプロセス)を生成するものである。
In FIG. 1, the process generation unit 4 generates a predetermined number of processes (stub processes) in response to an access request from WS2 or the like.

プロセス割当部5は、WS2などからのアクセス要求に
対応して、プロセス生成部4によって予め生成されたス
タブプロセスに空きがある場合、これを割り当てるもの
である。
The process allocation unit 5 allocates a stub process generated in advance by the process generation unit 4 when there is a space in response to an access request from the WS 2 or the like.

プロセス動的割当部6は、WS2などからのアクセス要
求に対応して、プロセス生成部4によって予め生成され
たスタブプロセスが使用中で空きがない場合、動的にス
タブプロセスをその都度生成して割り当てるものであ
る。
The process dynamic allocation unit 6 dynamically generates a stub process each time when a stub process generated in advance by the process generation unit 4 is in use and there is no space in response to an access request from WS2 or the like. To allocate.

スタブロセス3−1ないし3−3などは、アクセス要
求元からの依頼に対応した処理を代行するプロセスであ
る。
The stub processes 3-1 to 3-3 and the like are processes that act on behalf of the processing corresponding to the request from the access request source.

〔作用〕[Action]

本発明は、第1図に示すように、WS2の例えばユーザ
プロセス9−1がアクセス要求をサーバ1に通知したこ
とに対応して、生成されたメインプロセス3を構成する
プロセス生成部4が所定個数のスタブプロセス3−1な
いし3−3などをWS毎に生成し、プロセス割当部5がこ
の生成された所定個数のスタブプロセス3−1ないし3
−3に空きがある場合、これを割り当てて処理を依頼す
るようにしている。一方、生成された所定個数のスタブ
プロセス3−1ないし3−3に空きがない場合、プロセ
ス動的割当部6が動的にスタブプロセスをその都度生成
してこれに割り当てて処理を依頼するようにしている。
According to the present invention, as shown in FIG. 1, in response to a user process 9-1 of WS2, for example, notifying the server 1 of an access request, the process generation unit 4 constituting the generated main process 3 has a predetermined process. A number of stub processes 3-1 to 3-3 and the like are generated for each WS, and the process allocation unit 5 generates the predetermined number of generated stub processes 3-1 to 3-3.
-3, if there is a vacancy, it is allocated and requested to process. On the other hand, when there is no free space in the generated predetermined number of stub processes 3-1 to 3-3, the process dynamic allocation unit 6 dynamically generates a stub process each time and allocates it to the stub process to request processing. I have to.

従って、アクセス要求に対応して予め所定個数のスタ
ブプロセスをWS毎に生成しておき、これに順次割り当
て、空きがなくなった時に動的にスタブプロセスをその
都度生成して割り当てて処理を依頼することにより、ア
クセス要求に対応するレスポンスを速くすることが可能
になると共に、最小限の資源のアクセスを保証すること
が可能となる。
Therefore, a predetermined number of stub processes are created in advance for each WS in response to an access request, and are sequentially allocated to each WS, and when there is no more space, a stub process is dynamically created and allocated each time, and a process is requested. As a result, the response corresponding to the access request can be speeded up, and access to the minimum resources can be guaranteed.

〔実施例〕〔Example〕

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

第1図において、サーバ1は、複数のWS2などからの
アクセス要求に対応して、資源である例えばファイル7
から読み出したデータを転送などするものである。
In FIG. 1, the server 1 responds to access requests from a plurality of WS2s, etc.
The data read from is transferred.

プロバイダ2は、WS8などからのアクセス要求を受け
付けてメインプロセス3を生成して依頼するものであ
る。
The provider 2 receives an access request from the WS 8 or the like, generates the main process 3, and requests it.

メインプロセス3は、アクセス要求に対応してWS毎に
所定個数のスタブプロセスを生成するプロセス生成部
4、アクセス要求に対応して既に生成されているスタブ
プロセスに空きがある場合にこれを割り当てるプロセス
割当部5、および空きがない場合に動的にその都度スタ
ブプロセスを生成して割り当てるプロセス動的割当部6
などから構成されている。
The main process 3 is a process generation unit 4 that generates a predetermined number of stub processes for each WS in response to an access request, and a process that allocates a stub process that has already been generated in response to an access request when there is a free space. Allocation unit 5 and process dynamic allocation unit 6 that dynamically generates and allocates a stub process each time when there is no free space
Etc.

スタブプロセス3−1ないし3−3は、WS2のユーザ
プロセス9−1、9−2などからのアクセス要求によっ
て依頼された処理、例えばファイル7からデータをリー
ドして転送する処理などを代行するものである。
The stub processes 3-1 to 3-3 act on behalf of processes requested by access requests from the user processes 9-1, 9-2 of WS2, for example, processes of reading and transferring data from the file 7. Is.

ファイル7は、データを保存するものである。 The file 7 stores data.

WS(ワークステーション)8は、サーバ1に複数接続
されるものであって、各種処理を行う端末などである。
A plurality of WSs (workstations) 8 are connected to the server 1 and are terminals for performing various processes.

ユーザプロセス9−1、9−2は、ユーザに対応した
各種処理を行うものである。
The user processes 9-1 and 9-2 perform various processes corresponding to the user.

リクエスタ10は、ユーザプロセス9−1、9−2など
からのアクセス要求をサーバ1に通知などするものであ
る。
The requester 10 notifies the server 1 of access requests from the user processes 9-1 and 9-2.

次に、第2図フローチャートを用いて第1図構成の動
作を詳細に説明する。
Next, the operation of the configuration of FIG. 1 will be described in detail with reference to the flowchart of FIG.

第2図において、は、WAIT(待機)する。これは、
WS2からのアクセス要求をサーバ1が待機する状態を示
す。アクセス要求がサーバ1に通知されたことに対応し
て、以下を実行する。
In FIG. 2, WAIT is set. this is,
The state in which the server 1 waits for the access request from WS2 is shown. In response to the server 1 being notified of the access request, the following is executed.

は、スタブ生成済か否かを判別する。これは、WS毎
に所定個数のスタブプロセス3−1ないし3−3などが
既に生成されているか否かを判別することを意味してい
る。YESの場合には、を行う。NOの場合には、を行
う。
Determines whether the stub has been generated. This means determining whether or not a predetermined number of stub processes 3-1 to 3-3 and the like have already been generated for each WS. If YES, do If no, do.

は、でスタブプロセスが生成されていないと判別
されたので、所定個数(i個)のスタブプロセスを生成
する。これは、第1図メインプロセス3を構成するプロ
セス生成部4が、所定個数(i個)のスタブプロセス3
−1ないし3−3など、例えば第3図(イ)に示すよう
にWS(1)8−1、8−2に対応づけて2個を生成する
ことを意味している。
Since it is determined that the stub process is not generated in, the predetermined number (i) of stub processes is generated. This is because the process generation unit 4 constituting the main process 3 in FIG.
-1 to 3-3, for example, means to generate two in association with WS (1) 8-1 and 8-2 as shown in FIG.

は、スタブを割り当て、残数保存する。これは、第
1図プロセス割当部5がアクセス要求に対応してで生
成したスタブプロセスから割り当てると共に、残りのス
タブプロセス数を保存することを意味している。
Assigns a stub and saves the remaining number. This means that the process allocation unit 5 in FIG. 1 allocates from the stub process generated in response to the access request, and saves the remaining number of stub processes.

は、転送処理を行う。これは、で割り当てられた
スタブプロセスが、アクセス要求元のユーザプロセスに
代行して転送処理、例えばファイル7から読み出したデ
ータをユーザプロセスに転送することを意味している。
そして、を行う。
Performs a transfer process. This means that the stub process assigned in (4) transfers on behalf of the access request source user process, for example, the data read from the file 7 is transferred to the user process.
And do.

は、空スタブが有るか否かを判別する。これは、
でYESの場合(既にスタブプロセスが生成済と判別され
た場合)、この生成されたスタブプロセスに空きがある
か否か(で保存した残数があるか否か)を判別するこ
とを意味している。YESの場合(空きがある場合)に
は、で上述した場合と同様に、この空きのスタブプロ
セスにアクセス要求を割り当て、で転送処理する。NO
の場合(空きスタブプロセスがない場合)には、で第
1図プロセス動的割当部6が動的にその都度、新たに生
成したスタブプロセス、例えば第3図(ロ)点線を用い
て示すスタブプロセス(4)を動的に新たに生成してア
クセス要求に割り当て、で転送処理する。
Determines whether or not there is an empty stub. this is,
If YES in (when it is determined that the stub process has already been created), it means that it is determined whether there is a free space in this created stub process (whether there is a remaining number saved in). ing. In the case of YES (when there is a space), the access request is allocated to this empty stub process and the transfer processing is carried out in the same manner as in the case described above. NO
If there is no empty stub process, the process dynamic allocation unit 6 of FIG. 1 dynamically creates a newly created stub process each time, for example, the stub shown by the dotted line in FIG. A process (4) is dynamically newly generated and assigned to the access request, and is transferred by.

第3図(イ)は、WS(1)8−1、8−2毎にサーバ
1内に所定個数(2個)のスタブプロセスを固定的に生
成し、アクセス要求に対応してこれを割り当てる様子を
示す。このように固定的に生成したスタブプロセスに対
して、アクセス要求を割り当てることにより、その都
度、スタブプロセスを生成する手間が省け、レスポンス
を速くすることが可能となると共に、他のWSが多数のス
タブプロセスを生成してファイルなどをアクセスして
も、最小限のアクセス要求の依頼を保証することが可能
となる。
In FIG. 3 (a), a fixed number (two) of stub processes are fixedly created in the server 1 for each WS (1) 8-1, 8-2, and this is assigned in response to an access request. Show the situation. By allocating an access request to the stub process that is fixedly created in this way, it is possible to save the trouble of creating the stub process each time, and it is possible to speed up the response, and there are many other WSs. Even if a stub process is generated and a file or the like is accessed, it is possible to guarantee the request for the minimum access request.

第3図(ロ)は、固定的に生成したスタブプロセス
(1)ないし(3)が使用中で空きがなくなった場合、
動的に新たにスタブプロセス(4)を生成して割り当
て、処理依頼する様子を示す。これにより、多数のアク
セス要求に対応して固定的に生成したスタブプロセスの
数を超えて、処理依頼を行うことが可能となる。
FIG. 3 (b) shows that when the stub processes (1) to (3) that are fixedly created are in use,
It shows how a new stub process (4) is dynamically created, assigned, and requested for processing. As a result, it becomes possible to make processing requests in excess of the number of stub processes fixedly generated in response to a large number of access requests.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明によれば、アクセス要求
に対応して予め固定数のスタブプロセスをWS毎に生成し
ておき、これに順次割り当て、空きがなくなった時に動
的にスタブプロセスを生成して割り当てて処理を依頼す
る構成を採用しているため、アクセス要求に対応するレ
スポンスを速くすることができると共に、最小限のスタ
ブプロセスを割り当て資源のアクセスなどを保証するこ
とができる。
As described above, according to the present invention, a fixed number of stub processes are generated in advance for each WS in response to an access request, sequentially allocated to this, and a stub process is dynamically generated when there is no free space. Since a configuration for allocating and requesting processing is adopted, the response corresponding to the access request can be speeded up, and at the same time, a minimum stub process can be allocated to guarantee access to resources.

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

第1図は本発明の1実施例構成図、第2図は本発明の動
作説明フローチャート、第3図はスタブプロセス生成
例、第4図は従来技術の説明図を示す。 図中、1はサーバ、3はメインプロセス、3−1ないし
3−3はスタブプロセス、4はプロセス生成部、5はプ
ロセス割当部、6はプロセス動的割当部、8はWS(ワー
クステーション)、9−1、9−2はユーザプロセスを
表す。
FIG. 1 is a configuration diagram of an embodiment of the present invention, FIG. 2 is a flowchart for explaining the operation of the present invention, FIG. 3 is an example of stub process generation, and FIG. 4 is an explanatory diagram of a conventional technique. In the figure, 1 is a server, 3 is a main process, 3-1 to 3-3 are stub processes, 4 is a process generation unit, 5 is a process allocation unit, 6 is a process dynamic allocation unit, and 8 is a WS (workstation). , 9-1 and 9-2 represent user processes.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】アクセス要求に対応してプロセスを割り当
てるプロセス割当制御方式において、 アクセス要求に対応して予め定めた所定個数のプロセス
を一括して生成するプロセス生成部(4)と、 アクセス要求に対応してこのプロセス生成部(4)によ
って予め生成された未割り当てプロセスがある場合に、
これを割り当てるプロセス割当部(5)と、 アクセス要求に対応してこのプロセス生成部(4)によ
って予め生成された未割り当てプロセスがない場合に、
新たにプロセスを動的に生成して割り当てるプロセス動
的割当部(6)とを備え、 上記プロセス生成部(4)がアクセス要求元の装置毎に
所定個数のプロセスを予め生成しておき、アクセス要求
に対応して、上記プロセス割当部(5)あるいは上記プ
ロセス動的割当部(6)がプロセスを割り当てて所定の
処理を依頼するように構成したことを特徴とするプロセ
ス割当制御方式。
1. A process allocation control method for allocating a process in response to an access request, wherein a process generation unit (4) for collectively generating a predetermined number of processes corresponding to the access request and an access request Correspondingly, when there is an unallocated process previously generated by this process generation unit (4),
If there is no process allocation unit (5) that allocates this and an unallocated process previously generated by this process generation unit (4) in response to the access request,
A process dynamic allocation unit (6) is newly provided to dynamically generate and allocate a process, and the process generation unit (4) previously generates a predetermined number of processes for each access request source device, A process allocation control method characterized in that the process allocation unit (5) or the process dynamic allocation unit (6) is configured to allocate a process and request a predetermined process in response to a request.
JP20292388A 1988-08-15 1988-08-15 Process allocation control method Expired - Lifetime JPH0812610B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20292388A JPH0812610B2 (en) 1988-08-15 1988-08-15 Process allocation control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20292388A JPH0812610B2 (en) 1988-08-15 1988-08-15 Process allocation control method

Publications (2)

Publication Number Publication Date
JPH0251740A JPH0251740A (en) 1990-02-21
JPH0812610B2 true JPH0812610B2 (en) 1996-02-07

Family

ID=16465399

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20292388A Expired - Lifetime JPH0812610B2 (en) 1988-08-15 1988-08-15 Process allocation control method

Country Status (1)

Country Link
JP (1) JPH0812610B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0535505A (en) * 1991-07-16 1993-02-12 Fujitsu Ltd Input/output task control method
JPH076043A (en) * 1993-03-05 1995-01-10 Mitsubishi Electric Corp Multithread server
JP5540799B2 (en) * 2010-03-19 2014-07-02 富士通株式会社 Data input / output control method, data input / output control program, and data input / output control device

Also Published As

Publication number Publication date
JPH0251740A (en) 1990-02-21

Similar Documents

Publication Publication Date Title
KR100234654B1 (en) Process assignment by nodal affinity in a multiprocessor system having non-uniform memory access storage architecture
EP0205945B1 (en) Process transparent multi storage mode data transfer and buffer control
US4649473A (en) Flexible data transmission for message based protocols
JPH08123763A (en) Memory assigning system for distributed processing system
JPH0551942B2 (en)
JP6478430B2 (en) Memory allocation method and apparatus
JPH0628053B2 (en) Resource allocation control method for multiprocessor system
US5218713A (en) Distributed data management mechanism for handling a data stream
EP0205948B1 (en) Distributed data management mechanism
JPH0812610B2 (en) Process allocation control method
JPH0713823A (en) File resource management system of virtual computer system
JPS6364146A (en) Logical space control system
JPH09212426A (en) Storage device managing method for virtual computer system
JPH09146898A (en) Processor allocation control method
JP2507547B2 (en) Data server
JPH03132840A (en) Memory allocation device
JPH03132842A (en) High speed on-demand paging system
JPH04362766A (en) Shared resource control method
JP2576934B2 (en) Memory-mapped interrupt method
JPH0528120A (en) Processing system by multiprocessor
JPS62192828A (en) File space allocation system
JPH02178856A (en) Access method for graphic vram in multitask operating system
JPH04273792A (en) Processing allocation method
JPH0743664B2 (en) Shared storage area allocation processing method
JPH08153037A (en) Data management system in sequential area