JPH07244627A - Request control unit - Google Patents

Request control unit

Info

Publication number
JPH07244627A
JPH07244627A JP6036718A JP3671894A JPH07244627A JP H07244627 A JPH07244627 A JP H07244627A JP 6036718 A JP6036718 A JP 6036718A JP 3671894 A JP3671894 A JP 3671894A JP H07244627 A JPH07244627 A JP H07244627A
Authority
JP
Japan
Prior art keywords
request
processing unit
request processing
unit
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.)
Pending
Application number
JP6036718A
Other languages
Japanese (ja)
Inventor
Takahisa Miyamoto
貴久 宮本
Riichi Yasue
利一 安江
Shuji Ono
修司 大野
Norihiro Gotou
法宏 後藤
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP6036718A priority Critical patent/JPH07244627A/en
Publication of JPH07244627A publication Critical patent/JPH07244627A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the overhead of the generation and start of processing parts which perform request processings and eliminate the upper limit of the number of accepted requests as to a system which accepts plural requests and performs processings corresponding to them. CONSTITUTION:The request processing parts 403-406 are previously generated and held in a wait state. As a request is received, a request reception part calls a request control part. The request processing part start part in the called request control part actuates the request processing parts 403-406. At this time, when there is no request processing part to be actuated at this time, a request processing part generation part generates a new request processing part. Then the actuated request processing part performs a processing for the request and when the processing ends, the processing of a request control unit 401 ends.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、リクエスト制御装置に
係り、特に、複数のクライアントとサーバがネットワー
クを介して接続されており、クライアントがサーバに対
してリクエストの要求を行うシステムで、サーバ内に、
立ち上げ時などにリクエストを処理する複数のプロセス
を予め生成、待機させておき、その数以上のリクエスト
がクライアントから要求された場合でも、全てのリクエ
ストの処理を並行して行うことを可能とする制御装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a request control device, and more particularly to a system in which a plurality of clients and servers are connected via a network, and the clients request requests from the server. To
Multiple processes that process requests at startup etc. are created in advance and made to wait, and even if more than that number of requests are requested by the client, it is possible to process all requests in parallel. Regarding the control device.

【0002】[0002]

【従来の技術】初めに、本発明で対象としているクライ
アントサーバシステムについて、図1を用いて説明す
る。図1はサーバとn台のクライアントがネットワーク
を介して接続されおり、クライアントがサーバに対して
リクエストの要求を行い、サーバがそれに対して処理を
行う様子を示した図である。初めに構成について説明す
る。サーバ101は複数クライアントからのリクエストに
対する処理を行う情報機器で、PC(Personal
Computer)、WS(Work Statio
n)等があり、ディスク102が接続されている。ディス
ク102はファイル107、ファイル108、ファイル109からな
る記憶装置で、それぞれのファイルがクライント103、
クライアント104、クライアント105からアクセスされ
る。クライント103、クライアント104、クライアント10
5はサーバ101に対してリクエストの要求を行う情報機器
で、PC、WS等がある。ネットワーク106はサーバ101
とクライアント間を接続するものであり、一般的なもの
として、イーサネットとFDDI(Fiber Dis
tributed Data Interface)があ
る。なお、イーサネットはXerox社の登録商標であ
る。次に処理について説明する。初めにクライント103
が、サーバ101に接続されているディスク102のファイル
107をアクセス(データの読みだしや書き込み)するた
めに、サーバ101にリクエスト要求を行う。サーバ101は
リクエストを受信した後、ディスク102に対してアクセ
ス要求を発行する。そして、ディスク102が要求された
処理を実行し、リクエストに対する処理は終了する。ク
ライアント104、クライアント105からのリクエスト要求
も同様に行われる。ここで、図1のようにクライアント
からアクセスされるファイルが独立している場合、サー
バ101の処理とディスク102の処理は並行して行われる。
よってサーバ101内に複数のリクエストを受付け、処理
を行う機構を設けることにより、クライント103、クラ
イアント104、クライアント105からのリクエストを並行
して処理することができる。並行処理を実現するため
に、従来2つの方法がとられていた。
2. Description of the Related Art First, a client-server system which is the object of the present invention will be described with reference to FIG. FIG. 1 is a diagram showing a state in which a server and n clients are connected via a network, the client requests a server for a request, and the server processes the request. First, the configuration will be described. The server 101 is an information device that processes requests from multiple clients, and is a PC (Personal).
Computer), WS (Work Status)
n) etc., and the disk 102 is connected. The disk 102 is a storage device including a file 107, a file 108, and a file 109, and each file is a client 103,
It is accessed from the clients 104 and 105. Client 103, Client 104, Client 10
Reference numeral 5 denotes an information device that makes a request to the server 101, such as a PC or WS. Network 106 is server 101
It connects a client and a client, and generally, Ethernet and FDDI (Fiber Dis) are used.
There is a Tributed Data Interface). Ethernet is a registered trademark of Xerox. Next, the processing will be described. First Client 103
Files on disk 102 connected to server 101
In order to access (read and write data) 107, a request request is made to the server 101. After receiving the request, the server 101 issues an access request to the disk 102. Then, the disk 102 executes the requested processing, and the processing for the request ends. Request requests from the clients 104 and 105 are similarly made. Here, when the files accessed by the client are independent as shown in FIG. 1, the processing of the server 101 and the processing of the disk 102 are performed in parallel.
Therefore, by providing the server 101 with a mechanism for receiving a plurality of requests and processing the requests, the requests from the client 103, the client 104, and the client 105 can be processed in parallel. Conventionally, two methods have been used to realize parallel processing.

【0003】一つ目は、リクエストの受付けに伴い、リ
クエストの処理を行うプロセスを新たに生成し、そのプ
ロセスに処理を行わせる方法である。なお、プロセスと
はコンピュータ上で動作するプログラムの実体のことを
ここでは言う。この方法はPRENTICE HALL社の「UNIX NET
WORK PROGRAMMING」に記述されており、主なものに、T
CP/IPプロトコル上で動作するtelnet、ft
p等がある。ここで、この方法による処理を図2を用い
て説明する。図2は、図1のサーバ101内にリクエスト
受信部201を設けることにより、n個のリクエストを受
付けてそれに対して処理を行う場合の例である。初め
に、リクエスト受信部201がn個のリクエストを受信す
る。次にリクエスト受信部201はn個のリクエスト処理
部(リクエスト処理部202、リクエスト処理部203、…、
リクエスト処理部n204)を順次生成する。そして、リ
クエスト受信部201がリクエストをリクエスト処理部に
登録してから、リクエスト処理部がリクエストに対する
処理を開始する。処理の終了したリクエスト処理部はリ
クエスト受信部201により消去されて、リクエストに対
する一連の処理は終了する。このようにリクエスト処理
部を必要に応じて生成することにより、不特定多数の相
手とのやり取りを可能にしていた。
The first is a method in which a process for processing a request is newly generated in response to the acceptance of the request, and the process is caused to perform the processing. A process is the substance of a program running on a computer. This method is based on the "UNIX NET" of PRENTICE HALL.
WORK PROGRAMMING ”, and the main ones are
Telnet, ft operating on CP / IP protocol
There are p etc. Here, the processing by this method will be described with reference to FIG. FIG. 2 shows an example of a case where the request receiving unit 201 is provided in the server 101 of FIG. 1 to receive n requests and process the requests. First, the request receiving unit 201 receives n requests. Next, the request receiving unit 201 includes n request processing units (request processing unit 202, request processing unit 203, ...
The request processing unit n204) is sequentially generated. Then, after the request receiving unit 201 registers the request in the request processing unit, the request processing unit starts processing for the request. The request processing unit that has completed processing is deleted by the request receiving unit 201, and the series of processing for the request ends. By thus generating the request processing unit as needed, it is possible to communicate with an unspecified number of opponents.

【0004】二つ目は、リクエストの処理を行う複数の
デーモンを予め生成、待機させ、リクエストの受付けに
伴い、待機中のデーモンを起動し、そのデーモンに処理
を行わせる方法である。なお、デーモンとはマシンの立
上げ時などに生成され、処理の要求が発生するまで待機
し、処理が終了すると再び待機するプロセスのことをこ
こでは言う。この方法はアスキー出版社の「NFS and NI
S」に記述されており、主なものに、NFS(Network Fi
le System)がある。なお、NFSはSunマイクロシ
ステムズ社の登録商標である。ここで、この方法による
処理を図3を用いて説明する。図3は、図1のサーバ10
1内にリクエスト受信部301を設け、予めm個のデーモン
を生成、待機させておき、n個のリクエストを受付けて
それに対して処理を行う場合の例である。初めに、リク
エスト受信部301はサーバが立ち上がったときなどにm
個のリクエスト処理部群305(リクエスト処理部302、リ
クエスト処理部303、…、リクエスト処理部304)を生成
し、その全てを待機状態にしておく。次にn個のリクエ
ストを受信したリクエスト受信部301は、待機中のリク
エスト処理部群305を起動する。そして起動されたリク
エスト処理部群305は、リクエストに対する処理を行
い、処理の終了したリクエスト処理部は、再び待機状態
になり、リクエストに対する一連の処理は終了する。こ
のように複数のリクエスト処理部を予め生成、待機させ
ておき、それらを起動することにより、リクエスト処理
プロセスをリクエストの受付けの度に生成する必要が無
く、生成に要するオーバヘッドが削減できる。
The second is a method in which a plurality of daemons for processing a request are generated in advance and waited, and when a request is accepted, a daemon on standby is activated and the daemons perform the processing. A daemon is a process that is created when a machine is started up, waits for a processing request, and waits again when the processing ends. This method is described by ASCII publisher "NFS and NI
S ”, and the main ones are NFS (Network Fi
le System). Note that NFS is a registered trademark of Sun Microsystems. Here, the processing by this method will be described with reference to FIG. FIG. 3 shows the server 10 of FIG.
This is an example of a case where the request receiving unit 301 is provided in 1, the m daemons are generated and made to stand by in advance, and the n requests are received and the requests are processed. First, the request receiving unit 301 sets m when the server starts up.
Request processing unit group 305 (request processing unit 302, request processing unit 303, ..., Request processing unit 304) is generated, and all of them are placed in a standby state. Next, the request receiving unit 301 that has received n requests activates the request processing unit group 305 on standby. Then, the activated request processing unit group 305 performs a process for the request, the request processing unit that has completed the process returns to the standby state again, and the series of processes for the request ends. By thus generating and waiting a plurality of request processing units in advance and activating them, it is not necessary to generate the request processing process each time a request is received, and the overhead required for generation can be reduced.

【0005】[0005]

【発明が解決しようとする課題】上記、従来技術として
あげた2つの方法により、クライアントサーバシステム
を構築すると、次の課題があった。
When the client / server system is constructed by the above-mentioned two methods of the prior art, there are the following problems.

【0006】・1番目のプロセス生成の方法の場合、リ
クエストを受信する度に、プロセスの生成、処理、消去
を行うため、それらのオーバヘッドにより、処理性能が
劣化する。
In the case of the first process generation method, since the process is generated, processed, and deleted each time a request is received, the overhead of those processes deteriorates the processing performance.

【0007】・2番目のプロセス待機起動の方法の場
合、予め生成、待機させておいた数のリクエストの受付
けしか行うことができず、リクエストに対する処理を行
う能力がまだある場合でも、その数以上のリクエストの
処理を行うことができない。
In the case of the second process standby activation method, only the number of requests generated and waited in advance can be accepted, and even if there is the ability to process the requests, the number of requests or more is exceeded. Cannot process the request of.

【0008】本発明の目的は、上記課題を解決すること
にある。
An object of the present invention is to solve the above problems.

【0009】[0009]

【課題を解決するための手段】上記課題を解決するた
め、従来のシステムに加えて以下の手段を設ける。
In order to solve the above problems, the following means are provided in addition to the conventional system.

【0010】リクエストの受付けを行うリクエスト受信
部と、予め生成、待機させておいた複数のリクエスト処
理部の状態を登録する処理部管理テーブル、リクエスト
処理部の起動を行うリクエスト処理部起動部、予め生
成、待機させておいた全てのリクエスト処理部が処理中
の場合、新たにリクエスト処理部を生成するリクエスト
処理部生成部からなるリクエスト制御部。
A request receiving section for accepting requests, a processing section management table for registering the states of a plurality of request processing sections that have been generated and made to stand by in advance, a request processing section starting section for starting the request processing section, A request control unit including a request processing unit generation unit that newly generates a request processing unit when all the request processing units that have been generated and waited are being processed.

【0011】[0011]

【作用】初めにリクエスト制御部が、複数のリクエスト
処理部を生成、待機させておき、処理部管理テーブルに
登録することにより、リクエスト処理部の状態の登録を
行う。次にリクエスト受信部がリクエストを受信し、リ
クエスト制御部をコールする。次にコールされたリクエ
スト制御部内のリクエスト処理部起動部が、処理部管理
テーブルを参照し、リクエスト処理部の起動を行う。こ
こで、起動すべきリクエスト処理部が無い場合、リクエ
スト処理部生成部が新リクエスト処理部の生成と、処理
部管理テーブルへの登録を行う。起動されたリクエスト
処理部はリクエストに対する処理を行い、処理が終了し
たら、リクエスト制御部内の処理部管理テーブルの更新
を行う。更新が終了したら、リクエスト処理部は再び待
機状態になり、リクエスト制御装置の処理は終了する
First, the request control unit registers a state of the request processing unit by generating and waiting a plurality of request processing units and registering them in the processing unit management table. Next, the request receiving unit receives the request and calls the request control unit. Next, the request processing unit activation unit in the called request control unit refers to the processing unit management table and activates the request processing unit. If there is no request processing unit to be activated, the request processing unit generation unit generates a new request processing unit and registers it in the processing unit management table. The activated request processing unit processes the request, and when the processing is completed, updates the processing unit management table in the request control unit. When the update is completed, the request processing unit enters the standby state again, and the processing of the request control device ends.

【0012】[0012]

【実施例】以下、本発明の一実施例について説明する。
本実施例では予め生成、待機させておくリクエスト処理
部の数は4個とする。
EXAMPLES An example of the present invention will be described below.
In this embodiment, it is assumed that the number of request processing units that are previously generated and made to stand by is four.

【0013】初めにリクエスト制御装置を、サーバと複
数のクライアントからなるCSS(Client Se
rver System)に実装した場合を、図4を用
いて説明する。図4は、図1のクライアントサーバシス
テムのサーバ101内に、リクエスト制御装置401を設け、
予め4個のリクエスト処理部から成るリクエスト処理部
群402を生成、待機させておくことにより、サーバ101が
リクエスト処理を並行して行う様子を示した図である。
初めに構成について説明する。サーバ101は複数クライ
アントから要求されたリクエストに対する処理を行う情
報機器でPC、WSなどがある。また、サーバ101はリ
クエスト制御装置401と、複数のリクエスト処理部から
成るリクエスト処理部群402を備え、ディスク102が接続
されている。リクエスト制御装置401はリクエスト処理
部群402の管理を行う。リクエスト処理部群402は、リク
エスト処理部403、リクエスト処理部404、リクエスト処
理部405、リクエスト処理部406からなる。リクエスト処
理部は、マシンの立ち上げ時などに、ユーザが指定した
数だけ、生成、待機され、それぞれがリクエストに対す
る処理を行う。ディスク102はファイル107、ファイル10
8、ファイル109からなり、それぞれがクライント103、
クライアント104、クライアント105からアクセスされ
る。クライント103、クライアント104、クライアント10
5はサーバ101に対してリクエストの要求を行う情報機器
でPC、WSなどがある。ネットワーク106はサーバ101
とクライアント間を接続するものであり、一般的なもの
として、イーサネットとFDDIがある。次に処理につ
いて説明する。初めにクライント103が、サーバ101に接
続されているディスク102のファイル107をアクセス(デ
ータの読みだしや書き込み)するために、サーバ101に
リクエスト要求を行う。サーバ101はリクエストを受信
した後、リクエスト制御装置401にリクエストを渡し、
リクエスト制御装置401を起動する。起動されたリクエ
スト制御装置401は、待機中のリクエスト処理部群402の
内、リクエスト処理部403にリクエストを割り当て、リ
クエスト処理部403にリクエストを渡し、リクエスト処
理部403を起動する。起動されたリクエスト処理部401は
リクエストに対する処理として、ディスク102にアクセ
ス要求を発行する。そして、ディスク102が要求された
処理を実行し、リクエストに対する処理は終了する。同
様にして、クライアント104は、リクエスト処理部404に
よってファイル109をアクセスし、クライアント105は、
リクエスト処理部405によってファイル108をアクセスす
る。この際、全てのリクエスト処理部が起動中の場合、
リクエスト制御装置401が新たにリクエスト処理部を生
成し、それに処理させる。よってリクエストの受付数に
上限を持たない。また、リクエストの受け付けに対して
リクエスト処理部を限定して起動するので、不要なリク
エスト処理部の起動が発生しない。
First, the request control device is provided with a CSS (Client Se) which is composed of a server and a plurality of clients.
The case of implementation in the Rever System) will be described with reference to FIG. FIG. 4 shows that the request control device 401 is provided in the server 101 of the client server system of FIG.
FIG. 11 is a diagram showing a state in which the server 101 performs request processing in parallel by generating and waiting a request processing unit group 402 including four request processing units in advance.
First, the configuration will be described. The server 101 is an information device that processes requests requested by a plurality of clients, and includes a PC and WS. The server 101 also includes a request control device 401 and a request processing unit group 402 including a plurality of request processing units, to which the disk 102 is connected. The request control device 401 manages the request processing unit group 402. The request processing unit group 402 includes a request processing unit 403, a request processing unit 404, a request processing unit 405, and a request processing unit 406. The request processing unit generates and waits the number specified by the user when the machine is started up, and each process the request. Disk 102 has file 107, file 10
8 files 109, each of which is client 103,
It is accessed from the clients 104 and 105. Client 103, Client 104, Client 10
Reference numeral 5 denotes an information device that makes a request to the server 101, such as a PC or WS. Network 106 is server 101
And Ethernet and FDDI are common ones for connecting the client and the client. Next, the processing will be described. First, the client 103 makes a request request to the server 101 to access (read or write data) the file 107 of the disk 102 connected to the server 101. After the server 101 receives the request, it passes the request to the request control device 401,
The request control device 401 is activated. The activated request control device 401 assigns a request to the request processing unit 403 in the waiting request processing unit group 402, passes the request to the request processing unit 403, and activates the request processing unit 403. The activated request processing unit 401 issues an access request to the disk 102 as processing for the request. Then, the disk 102 executes the requested processing, and the processing for the request ends. Similarly, the client 104 accesses the file 109 by the request processing unit 404, and the client 105
The file 108 is accessed by the request processing unit 405. At this time, if all request processing units are running,
The request control device 401 newly generates a request processing unit and causes it to process it. Therefore, there is no upper limit to the number of requests that can be received. In addition, since the request processing unit is limitedly activated for accepting a request, unnecessary activation of the request processing unit does not occur.

【0014】次に、リクエスト制御装置について図5〜
図12を用いて説明する。
Next, the request control device will be described with reference to FIGS.
This will be described with reference to FIG.

【0015】初めに全体構成について図5を用いて説明
する。図5は、図4のサーバ101内に設けたリクエスト
制御装置401の構造と、リクエスト受信時の動作を示し
た図である。リクエスト受信部501はリクエストの受付
け、リクエスト制御部502のコールを行う。リクエスト
制御部502は、処理部管理テーブル503と、リクエスト処
理部起動部504と、リクエスト処理部生成部505からなり
リクエスト処理部群402の管理を行う。処理部管理テー
ブル503はリクエスト処理部群402の状態の登録が行われ
る。リクエスト処理部起動部504は、処理部管理テーブ
ル503に従い、リクエスト処理部群402の内、一つのリク
エスト処理部の起動と、処理部管理テーブルの更新を行
う。リクエスト処理部生成部505は、予め用意しておい
たリクエスト処理部が全て起動中の場合、新リクエスト
処理部508の生成と、処理部管理テーブルへの追加を行
う。リクエスト処理部群402はリクエスト処理部403、リ
クエスト処理部404、リクエスト処理部405、リクエスト
処理部406からなる。リクエスト処理部403、リクエスト
処理部404、リクエスト処理部405、リクエスト処理部40
6は、リクエストに対する処理と、処理部管理テーブル
の更新を行う。
First, the overall structure will be described with reference to FIG. FIG. 5 is a diagram showing the structure of the request control device 401 provided in the server 101 of FIG. 4 and the operation when receiving a request. The request receiving unit 501 receives a request and calls the request control unit 502. The request control unit 502 includes a processing unit management table 503, a request processing unit activation unit 504, and a request processing unit generation unit 505, and manages the request processing unit group 402. The state of the request processing unit group 402 is registered in the processing unit management table 503. The request processing unit activation unit 504 activates one request processing unit in the request processing unit group 402 and updates the processing unit management table according to the processing unit management table 503. The request processing unit generation unit 505 generates a new request processing unit 508 and adds it to the processing unit management table when all the request processing units prepared in advance are activated. The request processing unit group 402 includes a request processing unit 403, a request processing unit 404, a request processing unit 405, and a request processing unit 406. Request processing unit 403, request processing unit 404, request processing unit 405, request processing unit 40
6 performs processing for the request and updates the processing unit management table.

【0016】ここで処理部管理テーブル503の構造とそ
の登録例について図6を用いて説明する。図6は4個の
リクエスト処理部を管理する処理部管理テーブル503の
構造を示した図である。処理部管理テーブル503はリク
エスト処理部名を登録する処理部名格納エリア601と、
現在のリクエスト処理部の状態を登録する状態エリア60
2から成る。処理部名格納エリア601には、ここでは起動
が名前によって行える場合として、名前を登録する例を
あげた。しかし、起動が名前以外で行われる場合は、起
動先を示す物を登録すれば良く、例えば、処理部の位置
(メモリ上のアドレス)等があげられる。状態エリア60
2が管理する状態は、現在起動中であるため、起動する
事ができないことを示すR(Run)、現在待機中であ
るため、起動する事ができることを示すF(Free)
の2種類である。図6の場合、リクエスト処理部1は起
動中で、リクエスト処理部2、リクエスト処理部3、リ
クエスト処理4は待機中である(フリーリクエスト処理
部)ことを表す。また初期化の時点では、全てのリクエ
スト処理部の状態エリア602はFで起動する事ができ
る。このように処理部管理テーブル503への登録によ
り、リクエスト処理部群402の状態管理が行われ、それ
を用いてリクエスト処理部の起動、新規生成等を行う。
The structure of the processing unit management table 503 and its registration example will be described with reference to FIG. FIG. 6 is a diagram showing the structure of a processing unit management table 503 that manages four request processing units. The processing unit management table 503 includes a processing unit name storage area 601 for registering a request processing unit name,
Status area 60 for registering the current status of the request processing unit
Composed of two. In the processing unit name storage area 601, an example in which a name is registered is given here as the case where activation can be performed by name. However, when the activation is performed by other than the name, the object indicating the activation destination may be registered, and examples thereof include the position of the processing unit (address on the memory). Status area 60
The state managed by 2 is R (Run) indicating that it cannot be activated because it is currently activated, and F (Free) that indicates that it can be activated because it is currently waiting.
There are two types. In the case of FIG. 6, the request processing unit 1 is active, and the request processing unit 2, the request processing unit 3, and the request processing 4 are on standby (free request processing unit). Further, at the time of initialization, the status areas 602 of all request processing units can be activated in F. In this way, by registering in the processing unit management table 503, the state management of the request processing unit group 402 is performed, and the request processing unit is activated, new generation, etc. are performed using it.

【0017】ここでリクエスト制御部502が行う、リク
エスト処理部群402の初期化について図8を用いて説明
する。図8はリクエスト処理部群402の初期化フローを
示した図である。初めにリクエスト処理部の生成801を
行う。本実施例では、あらかじめ生成しておくリクエス
ト処理部数の初期値は4個としたので、4個生成する。
生成が終了したら、それらを待機802させ、最後に処理
部管理テーブル503への登録803を行い、初期化は終了す
る。この処理はマシンの立上時などに一回行われる。
Initialization of the request processing unit group 402 performed by the request control unit 502 will be described with reference to FIG. FIG. 8 is a diagram showing an initialization flow of the request processing unit group 402. First, the request processing unit is generated 801. In this embodiment, since the initial value of the number of request processing units generated in advance is four, four are generated.
When the generation is completed, they are made to wait 802, finally registered 803 in the processing unit management table 503, and the initialization is completed. This process is performed once when the machine starts up.

【0018】次に全体フローついて図5、図7を用いて
説明する。図7はリクエスト制御装置402の全体フロー
を示した図である。初めにリクエスト受信部501の処理
が行われる701。次にリクエスト制御部502の処理が行わ
れる702。最後にリクエスト処理部の処理が行われ703、
リクエスト制御装置401の処理は終了する。
Next, the overall flow will be described with reference to FIGS. FIG. 7 is a diagram showing the overall flow of the request control device 402. First, the processing of the request receiving unit 501 is performed 701. Next, the processing of the request control unit 502 is performed 702. Finally, the processing of the request processing unit is performed 703,
The process of the request control device 401 ends.

【0019】次にリクスト受信部501が行う処理701につ
いて図9を用いて説明する。図9は図5のリクエスト制
御装置401内に設けた、リクエスト受信部501の処理を示
した図である。リクエスト受信部501は初めにリクエス
トを受信する901。そして、そのリクエストをリクエス
ト制御部に渡し、リクエスト制御部502をコールし903、
リクエスト受信部501の処理702は終了する、次にリクエ
スト制御部502の処理702を図5、図10を用いて説明す
る。図10は図4のリクエスト制御装置401内に設けた、
リクエスト制御部502の処理を示した図である。初めに
処理部管理テーブル503を用いて、フリーリクエスト処
理部の探索を行う1001。処理部管理テーブル503の状態
エリアにFがある場合、まだフリーリクエスト処理部が
あるので次の処理に進む。無い場合(Rのみ)は、リク
エスト処理部生成部505が新リクエスト処理部506を生成
し、それを待機させる1002。生成、待機が終了したら、
新リクエスト処理部506を処理部管理テーブル503に追加
する1003。フリーリクエスト処理部がある、又は、新た
に生成、追加が終了したら、処理部管理テーブル503の
状態エリア602がFであるリクエスト処理部を探索し、
その状態エリア602をFからRにすることにより、処理
部管理テーブル503の更新を行う1005。処理部管理テー
ブル503の更新により、リクエスト処理部が現在処理中
で、その時は起動する事ができないことがわかる。そし
て、状態エリア602をFからRに変更したリクエスト処
理部の起動、及び、起動したリクエスト処理部へのリク
エストの受け渡しを行い1005、リクエスト制御部502の
処理702は終了する。
Next, the processing 701 performed by the request receiving section 501 will be described with reference to FIG. FIG. 9 is a diagram showing processing of the request receiving unit 501 provided in the request control device 401 of FIG. The request receiving unit 501 first receives 901 a request. Then, the request is passed to the request control unit, the request control unit 502 is called 903,
The process 702 of the request receiving unit 501 ends. Next, the process 702 of the request control unit 502 will be described with reference to FIGS. 5 and 10. 10 is provided in the request control device 401 of FIG. 4,
FIG. 6 is a diagram showing a process of a request control unit 502. First, the processing unit management table 503 is used to search 1001 for a free request processing unit. If there is F in the status area of the processing unit management table 503, there is still a free request processing unit, so the process proceeds to the next process. If not (only R), the request processing unit generation unit 505 generates a new request processing unit 506 and puts it on standby 1002. When generation and waiting are completed,
The new request processing unit 506 is added to the processing unit management table 503 1003. When there is a free request processing unit or when new generation and addition are completed, the request processing unit whose state area 602 of the processing unit management table 503 is F is searched,
By changing the status area 602 from F to R, the processing unit management table 503 is updated 1005. By updating the processing unit management table 503, it can be seen that the request processing unit is currently processing and cannot be activated at that time. Then, the request processing unit whose status area 602 is changed from F to R is activated, and the request is passed to the activated request processing unit 1005, and the process 702 of the request control unit 502 ends.

【0020】ここでリクエスト処理部生成部505が行
う、処理部管理テーブル503への追加処理1003を図11を
用いて説明する。図11は4個のリクエスト処理部を登録
しておいた処理部管理テーブル503への、新しく生成し
たリクエスト処理部5の追加を示した図である。初め
に、処理部管理テーブル503の一番最後に新たにエリア
を設け、処理部名格納エリア1101に追加するリクエスト
処理部の名前であるリクエスト処理部5、状態エリア11
02にフリーリクエスト処理部を示すFを登録し、処理は
終了する。
Here, the addition processing 1003 to the processing unit management table 503 performed by the request processing unit generation unit 505 will be described with reference to FIG. FIG. 11 is a diagram showing the addition of the newly generated request processing unit 5 to the processing unit management table 503 in which four request processing units are registered. First, a new area is newly provided at the very end of the processing unit management table 503, and the request processing unit 5, which is the name of the request processing unit to be added to the processing unit name storage area 1101, and the status area 11
F indicating the free request processing unit is registered in 02, and the process ends.

【0021】次にリクエスト処理部の処理703につい
て、図12を用いて説明する。初めに、起動されたリクエ
スト処理部は、リクエスト制御部502から渡されたリク
エストに対する処理を行う1201。処理が終了したらリク
エスト制御部502内の処理部管理テーブル503の更新を行
う1202。処理部管理テーブル503の更新は、処理部管理
テーブル503の処理部名格納エリア601から自リクエスト
処理部名を探し、そこの状態エリア602をRからFにす
ることにより行われる。この処理により、リクエスト処
理部は待機状態になり、リクエスト制御部502からの起
動が再び行えるようになる。処理部管理テーブルの更新
が終了したら、リクエスト処理部の処理は待機状態にな
り、リクエスト処理部の処理は終了する。
Next, the processing 703 of the request processing unit will be described with reference to FIG. First, the started request processing unit 1201 processes the request passed from the request control unit 502. When the processing is completed, the processing unit management table 503 in the request control unit 502 is updated 1202. The processing unit management table 503 is updated by searching the processing unit name storage area 601 of the processing unit management table 503 for the own request processing unit name and changing the status area 602 there from R to F. By this processing, the request processing unit enters the standby state, and the request control unit 502 can be activated again. When the updating of the processing unit management table is completed, the processing of the request processing unit is put in a standby state, and the processing of the request processing unit is completed.

【0022】以上のようにして、リクエスト制御装置40
1がリクエスト処理部群402の管理を行うことにより、リ
クエスト受付数に上限を持たず、且つ、不要なリクエス
ト処理部の起動を行わずに済む。
As described above, the request control device 40
Since 1 manages the request processing unit group 402, there is no upper limit on the number of requests that can be received, and unnecessary request processing units are not activated.

【0023】本実施例は、単一のCPUから成るシステ
ムを前提にリクエストの受付け、制御、処理を説明し
た。複数のCPUから成るシステムの場合、リクエスト
制御部がリクエスト処理部をそれぞれのCPUに割り当
てる形で初期化し、複数リクエストの受付けに対して、
それぞれのCPUでリクエストの処理を行わせることに
より、複数CPUによる並列処理を行うことができる。
In this embodiment, the request acceptance, control, and processing have been described on the assumption that the system is composed of a single CPU. In the case of a system consisting of multiple CPUs, the request control unit initializes the request processing unit by allocating it to each CPU,
By causing each CPU to process the request, it is possible to perform parallel processing by a plurality of CPUs.

【0024】[0024]

【発明の効果】リクエスト制御装置により、複数リクエ
ストの処理を行うシステムを構築すると、以下の2点の
効果がある。
When the system for processing a plurality of requests is constructed by the request control device, the following two effects are obtained.

【0025】(1)リクエスト処理部の状態を管理し、
リクエスト処理部の不足に伴い、新たにリクエスト処理
部の生成を行うため、受付けリクエスト数に上限を持た
ない。
(1) Managing the status of the request processing unit,
Since the request processing unit is newly generated due to the shortage of request processing units, there is no upper limit to the number of received requests.

【0026】(2)予め、複数のリクエスト処理部を生
成、待機させておき、リクエスト数と同じ数のリクエス
ト処理部の起動を行うため、リクエスト処理部の生成オ
ーバヘッド、及び、不要な起動オーバヘッドを発生させ
ずに済む。
(2) Since a plurality of request processing units are generated and made to stand by in advance and the same number of request processing units as the number of requests are activated, the generation overhead of the request processing units and unnecessary activation overhead are generated. It does not have to occur.

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

【図1】複数クライアントとサーバがネットワークによ
って接続されている、クライアントサーバシステムのモ
デルを示した図である。
FIG. 1 is a diagram showing a model of a client-server system in which a plurality of clients and a server are connected by a network.

【図2】リクエスト受信に伴い、リクエスト処理部を生
成する従来の1方式を示した図である。
FIG. 2 is a diagram showing a conventional one method of generating a request processing unit when a request is received.

【図3】予めリクエスト処理部を生成、待機させてお
き、リクエスト受信に伴い、待機中のリクエスト処理を
起動する従来の1方式を示した図である。
FIG. 3 is a diagram showing one conventional method in which a request processing unit is generated and made to stand by in advance, and request processing in standby is activated when a request is received.

【図4】複数クライアントとサーバがネットワークによ
って接続されているクライアントサーバシステムに、本
発明であるリクエスト制御装置を実装した図である。
FIG. 4 is a diagram in which a request control device according to the present invention is installed in a client-server system in which a plurality of clients and a server are connected by a network.

【図5】リクエスト制御装置の全体構成図である。FIG. 5 is an overall configuration diagram of a request control device.

【図6】リクエスト制御部内に設けられていて、リクエ
スト処理部の状態管理を行う処理部管理テーブルを示し
た図である。
FIG. 6 is a diagram showing a processing unit management table which is provided in the request control unit and manages the state of the request processing unit.

【図7】リクエスト制御装置の全体フロー図である。FIG. 7 is an overall flow diagram of a request control device.

【図8】リクエスト制御部が行うリクエスト処理部群の
初期化を示した図である。
FIG. 8 is a diagram showing initialization of a request processing unit group performed by a request control unit.

【図9】リクエスト受信部の処理フロー図である。FIG. 9 is a processing flow diagram of a request receiving unit.

【図10】リクエスト制御部の処理を示した図である。FIG. 10 is a diagram showing processing of a request control unit.

【図11】処理部管理テーブルへの追加処理を示した図で
ある。
FIG. 11 is a diagram showing an addition process to the processing unit management table.

【図12】リクエスト処理部の処理を示した図である。FIG. 12 is a diagram showing processing of a request processing unit.

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

101…サーバ、 102…ディスク、 103…クライント、 104…クライアント、 105…クライアント、 106…ネットワーク、 107…ファイル、 108…ファイル、 109…ファイル、 401…リクエスト制御装置、 402…リクエスト処理部群、 403…リクエスト処理部、 404…リクエスト処理部、 405…リクエスト処理部、 406…リクエスト処理部。 101 ... Server, 102 ... Disk, 103 ... Client, 104 ... Client, 105 ... Client, 106 ... Network, 107 ... File, 108 ... File, 109 ... File, 401 ... Request control device, 402 ... Request processing unit group, 403 Request processing unit, 404 Request processing unit, 405 Request processing unit, 406 Request processing unit

フロントページの続き (72)発明者 後藤 法宏 神奈川県横浜市戸塚区戸塚町5030番地株式 会社日立製作所ソフトウェア開発本部内Front Page Continuation (72) Inventor Norihiro Goto 5030 Totsuka-cho, Totsuka-ku, Yokohama-shi, Kanagawa Ltd. Software Development Division, Hitachi, Ltd.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】サーバと複数のクライアントがネットワー
クを介して接続されており、該サーバが該クライアント
からのリクエストに対する処理を行うシステムにおい
て、 該サーバ内に、 リクエストの処理を行う、1乃至n個のリクエスト処理
部を予め生成、待機させておき、 該リクエスト処理部の数以上のリクエストを受信した場
合、新たに該リクエスト処理部を生成し、該リクエスト
処理部に処理させるリクエスト制御部を設けることによ
り、リクエスト数に上限を持たないことを特徴としたリ
クエスト制御装置。
1. In a system in which a server and a plurality of clients are connected via a network, and the server processes a request from the client, 1 to n units that process the request in the server. Request processing units are previously generated and made to wait, and when a request more than the number of the request processing units is received, a request control unit that newly generates the request processing units and causes the request processing units to process is provided. According to the request control device, the number of requests does not have an upper limit.
【請求項2】請求項1において、 前記リクエスト制御部内に、 予め生成、待機させておいた複数個の前記リクエスト処
理部を登録し、前記リクエスト処理部の状態管理を行う
処理部管理テーブルと、 リクエストに対する処理を行っていない前記リクエスト
処理部(以後フリーリクエスト処理部とする)があるか
どうかを該処理部管理テーブルより調べ、該フリーリク
エスト処理部が無い場合、新規に不足分のリクエスト処
理部を生成し、該処理部管理テーブルに登録するリクエ
スト処理部生成部を設けることにより、リクエストの受
付け数に上限を設けないことを特徴としたリクエスト制
御装置。
2. The processing unit management table according to claim 1, wherein a plurality of the request processing units that have been generated and made to stand by in advance are registered in the request control unit, and the state management of the request processing unit is performed, It is checked from the processing unit management table whether there is the request processing unit (hereinafter referred to as a free request processing unit) that has not processed the request, and if there is no free request processing unit, a new request processing unit is newly generated. However, the request control device is characterized in that an upper limit is set on the number of received requests by providing a request processing unit generation unit to be registered in the processing unit management table.
【請求項3】請求項1又は2において、 前記サーバ内に、 リクエストの受付け処理を行うリクエスト受信部を設
け、 前記リクエスト制御部に、 前記処理部管理テーブルに登録されているリクエスト処
理部を起動するリクエスト処理部起動部を設けることに
より、待機させておいた該リクエスト処理部のうち、受
付けたリクエスト数だけ起動することを特徴としたリク
エスト制御装置。
3. The request receiving unit for receiving a request is provided in the server, and the request control unit activates a request processing unit registered in the processing unit management table. The request control device is characterized in that, by providing the request processing unit activation unit, the request processing unit is activated for the number of received requests among the request processing units that have been put on standby.
【請求項4】サーバと複数のクライアントがネットワー
クを介して接続されており、該サーバが該クライアント
からのリクエストに対する処理を行うシステムにおい
て、 該サーバ内に、 ユーザが指定した個数のリクエスト処理部を予め生成、
待機させておき、 該リクエスト処理部の数以上のリクエストを受信した場
合、新たに該リクエスト処理部を生成し、該リクエスト
処理部に処理させるリクエスト制御部を設けることによ
り、リクエスト数に上限を持たないことを特徴としたリ
クエスト制御装置。
4. In a system in which a server and a plurality of clients are connected via a network, and the server processes a request from the client, the number of request processing units designated by the user is provided in the server. Pre-generated,
When the number of requests that are in standby is received and more than the number of request processing units is received, a new request processing unit is generated and a request control unit that causes the request processing unit to process is provided so that the number of requests has an upper limit. A request control device characterized by the absence thereof.
JP6036718A 1994-03-08 1994-03-08 Request control unit Pending JPH07244627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6036718A JPH07244627A (en) 1994-03-08 1994-03-08 Request control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6036718A JPH07244627A (en) 1994-03-08 1994-03-08 Request control unit

Publications (1)

Publication Number Publication Date
JPH07244627A true JPH07244627A (en) 1995-09-19

Family

ID=12477538

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6036718A Pending JPH07244627A (en) 1994-03-08 1994-03-08 Request control unit

Country Status (1)

Country Link
JP (1) JPH07244627A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002075538A1 (en) * 2001-03-19 2002-09-26 Mitsubishi Denki Kabushiki Kaisha Vehicle-mounted multimedia device
JP2015176321A (en) * 2014-03-14 2015-10-05 株式会社リコー Information processing system and information processing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002075538A1 (en) * 2001-03-19 2002-09-26 Mitsubishi Denki Kabushiki Kaisha Vehicle-mounted multimedia device
US7231642B2 (en) 2001-03-19 2007-06-12 Mitsubishi Denki Kasbushiki Kaisha Vehicle-mounted multimedia device
JP2015176321A (en) * 2014-03-14 2015-10-05 株式会社リコー Information processing system and information processing method

Similar Documents

Publication Publication Date Title
US11836135B1 (en) Method and system for transparent database query caching
EP0717339B1 (en) Access to independent network resources
Thomas A resource sharing executive for the Arpanet
CA2279382C (en) Web request broker controlling multiple processes
US6654741B1 (en) URL mapping methods and systems
US7890554B2 (en) Apparatus and method of exporting file systems without first mounting the file systems
US6523130B1 (en) Storage system having error detection and recovery
US6829610B1 (en) Scalable storage system supporting multi-level query resolution
JPH1049423A (en) Virtual file system access subsystem
US6711559B1 (en) Distributed processing system, apparatus for operating shared file system and computer readable medium
WO2001033376A1 (en) System and method for scheduling downloads in a web crawler
JPH08263355A (en) System and method for multilevel token management for distributed file system
US6058425A (en) Single server access in a multiple TCP/IP instance environment
US6820127B2 (en) Method, system, and product for improving performance of network connections
JPH07244627A (en) Request control unit
Liu et al. A distributed web server and its performance analysis on multiple platforms
JP2002505474A (en) Method and system for facilitating access to a lookup service
JP2002297429A (en) Distributed transaction processing system, distributed transaction processing method and distributed transaction processing program
KR20040099442A (en) System and method for managing operating system option values
JPH05120023A (en) Program loading system
JP3055498B2 (en) Database search method
JPH05165700A (en) File server
JPH06168197A (en) Osi management manager device
Mullender et al. Programming distributed applications using plan 9 from bell labs
JP2650210B2 (en) Network system