JPH07105149A - Distributed processing method to select subprogram transfer execution - Google Patents
Distributed processing method to select subprogram transfer executionInfo
- Publication number
- JPH07105149A JPH07105149A JP5252833A JP25283393A JPH07105149A JP H07105149 A JPH07105149 A JP H07105149A JP 5252833 A JP5252833 A JP 5252833A JP 25283393 A JP25283393 A JP 25283393A JP H07105149 A JPH07105149 A JP H07105149A
- Authority
- JP
- Japan
- Prior art keywords
- program
- resources
- computer
- server
- subprogram
- 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
Links
Landscapes
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、複数の計算機で構成し
たコンピュータネットワークにおける分散処理に関し、
特に他の計算機からも利用可能な資源を持つ計算機を1
台以上その構成に含むコンピュータネットワークにおい
て、ある計算機が他の計算機の資源を利用する場合に好
適な処理時間短縮方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to distributed processing in a computer network composed of a plurality of computers,
In particular, select a computer that has resources that can be used by other computers.
The present invention relates to a processing time reduction method suitable when a computer uses resources of another computer in a computer network including one or more computers in its configuration.
【0002】[0002]
【従来の技術】コンピュータネットワークにおける分散
処理では、資源を持ち、それを共通のサービスとして提
供するための汎用性のあるプログラムを備えた計算機で
あるサーバと、個別の処理プログラムを持ち、サーバが
提供するサービスを利用する計算機であるクライアント
に分かれ、それぞれの計算機で動作するプログラムが通
信により互いにデータを交換し合い処理を行うのが一般
的である。この処理方法では、通常はプログラムは各計
算機に固定されている。2. Description of the Related Art In distributed processing in a computer network, a server, which is a computer having a versatile program for providing resources as a common service, and an individual processing program, are provided by the server. In general, the programs that operate on the respective computers are divided into clients that are computers that use the service, and the programs that operate on the respective computers exchange data with each other and perform mutual processing. In this processing method, the program is usually fixed in each computer.
【0003】コンピュータネットワークにおいて、プロ
グラムを転送することにより、処理時間を短縮すること
を狙った従来の方式では、例えば特開昭63−76050号公
報に開示されている様に、プログラム実行前にそのプロ
グラムを最小時間で実行できる計算機を決定し、その計
算機にプログラムを転送し、実行する、プログラム実行
をスケジューリングする方法がある。In a conventional method aiming to shorten the processing time by transferring a program in a computer network, as disclosed in, for example, Japanese Patent Laid-Open No. 63-76050, the prior art method is used. There is a method of scheduling a program execution by determining a computer that can execute the program in the minimum time, transferring the program to the computer, and executing the program.
【0004】[0004]
【発明が解決しようとする課題】従来の方法では、ネッ
トワークのトラフィックが一定であると仮定した場合、
プログラム全体の実行を単位として、そのプログラム全
体を最小時間で実行できる計算機を選定することが期待
出来る。しかし、現実のコンピュータネットワークにお
いては、ネットワークのトラフィックはネットワークに
接続されている各計算機のネットワークの利用状況によ
り、時々刻々と変化し、プログラムの実行途中であって
も、ネットワークの通信速度は一定には定まらない。従
来の方法ではこのことが考慮されてはいなかった。従っ
て、他の計算機の資源を利用する処理によっては、必要
な結果を得るために、計算機間で頻繁に、あるいは大量
の通信データを用いて通信をしなければならない場合が
あるため、従来の方法ではこの様な場合、特にネットワ
ークの通信速度が遅くなっている時には通信に時間かか
り、結果を得るまでに著しく時間を要することがあると
いう欠点がある。かといって、資源アクセスの効率を挙
げるために、資源を持つ計算機の中に、その資源を利用
する計算機が従来個別に持つ、資源を利用する処理プロ
グラムをすべて持ったのでは、複雑なコンピュータネッ
トワークでは、資源を持つ各々の計算機には膨大な記憶
容量が必要であり、また、資源を利用する各計算機のプ
ログラムの仕様変更ごとに、資源を持つ計算機のプログ
ラムの保守作業が必要となるため、非現実的である。本
発明は先に述べた欠点を解決することを目的とする。In the conventional method, assuming that the traffic of the network is constant,
With the execution of the entire program as a unit, it is expected to select a computer that can execute the entire program in the minimum time. However, in a real computer network, the network traffic changes moment by moment depending on the network usage status of each computer connected to the network, and the network communication speed remains constant even during the execution of the program. Is not determined. This has not been taken into consideration in conventional methods. Therefore, depending on the processing that uses the resources of other computers, it may be necessary to perform communication between computers frequently or using a large amount of communication data in order to obtain the required result. However, in such a case, there is a drawback that communication takes time, especially when the communication speed of the network is slow, and it may take a considerable time to obtain the result. On the other hand, in order to improve the efficiency of resource access, it is considered that a computer that has resources has all the processing programs that individually use the resources that the computers that use the resources have individually. Therefore, each computer having resources requires a huge storage capacity, and maintenance work of the programs of the computers having resources is required every time the specifications of the programs of the computers using the resources are changed. Unrealistic. The present invention aims to overcome the drawbacks mentioned above.
【0005】[0005]
【課題を解決するための手段】本発明は、以上の問題を
解決するために、他の計算機の資源を利用する計算機
に、他の計算機との通信速度を測定する手段を備え、あ
る計算機で実行中のプログラムに含まれる、他の計算機
の資源を利用する副プログラムが、ネットワークを介し
て他の計算機の資源へアクセスする場合と、他の計算機
の資源を利用する副プログラムを資源を持つ計算機へ転
送し、資源を持つ計算機の内部で、転送した資源を利用
する副プログラムを実行し、その結果を資源を利用する
計算機で実行中のプログラムが受け取る場合との処理時
間を事前に評価し、処理時間が短い方を選択して実行す
るという処理を、他の計算機の資源を利用する副プログ
ラムごとに行う。また、他の計算機の資源を利用するプ
ログラムを転送する場合の時間の短縮をはかるために、
資源を持つ計算機に、圧縮されたプログラムの圧縮を解
除する手段を備え、他の計算機の資源を利用する副プロ
グラムを実行する計算機に、その副プログラムと同じ仕
様を持ち、資源を持つ計算機に備えられた、圧縮された
プログラムの圧縮を解除する手段で解除できるように圧
縮した副プログラムを、別プログラムとしてあらかじめ
用意し、副プログラムを資源を持つ計算機に転送する場
合には、圧縮した副プログラムの方を転送し、資源を持
つ計算機の内部で、圧縮されたプログラムの圧縮を解除
する手段を用いて、その副プログラムの圧縮を解除し、
その副プログラムを実行する。In order to solve the above problems, the present invention provides a computer that uses the resources of another computer with means for measuring the communication speed with the other computer. A subprogram that uses the resources of another computer, which is included in the running program, accesses the resources of another computer via the network, and a computer that has the subprogram that uses the resources of another computer as resources. To a computer that has resources, executes a subprogram that uses the transferred resources, and evaluates the processing time in advance when the program running on the computer that uses the resources receives the result in advance. The process of selecting and executing the shorter processing time is performed for each subprogram that uses the resources of another computer. Also, in order to reduce the time when transferring a program that uses the resources of another computer,
A computer that has resources is equipped with a means for decompressing a compressed program, and a computer that executes a subprogram that uses the resources of another computer has the same specifications as the subprogram. If a subprogram compressed so that it can be decompressed by the means for decompressing the compressed program prepared in advance is prepared as a separate program and the subprogram is transferred to a computer having resources, the compressed subprogram , And decompresses the subprogram by means of decompressing the compressed program inside the computer with resources.
Execute the subprogram.
【0006】[0006]
【作用】本発明では、ネットワークにおける通信速度が
時々刻々と変化する中、ある計算機で実行中のプログラ
ムに含まれる、他の計算機の資源を利用する副プログラ
ムが、ネットワークを介して他の計算機の資源へアクセ
スする場合と、他の計算機の資源を利用する副プログラ
ムを資源を持つ計算機へ転送し、資源を持つ計算機の内
部で、転送した資源を利用する副プログラムを実行し、
その結果を資源を利用する計算機で実行中のプログラム
が受け取る場合との処理時間を事前に評価し、処理時間
が短い方を選択して実行するという処理を、他の計算機
の資源を利用する副プログラムごとに行うことにより、
処理時間の短縮を図ることが出来る。また、他の計算機
の資源を利用する副プログラムを転送する場合に、あら
かじめ用意された、圧縮された副プログラムを転送する
ことにより、一層の処理時間の短縮を図ることが出来
る。According to the present invention, while the communication speed in the network changes every moment, a sub-program included in a program running on a computer that uses the resources of another computer is connected to another computer via the network. When accessing a resource, transfer a subprogram that uses the resource of another computer to the computer that has the resource, and execute the subprogram that uses the transferred resource inside the computer that has the resource,
A process that evaluates the processing time in advance when a program running on a computer that uses the resource receives the result and selects the one with the shorter processing time to execute the result is a sub process that uses the resource of another computer. By doing for each program,
The processing time can be shortened. Further, when a subprogram that uses the resources of another computer is transferred, it is possible to further reduce the processing time by transferring a compressed subprogram prepared in advance.
【0007】[0007]
【実施例】以下、本発明の実施例を、図面に基づいて詳
細に説明する。Embodiments of the present invention will now be described in detail with reference to the drawings.
【0008】図1は本発明の実施例を実施するための処
理手順を示す流れ図であり、図2は本発明に係わるコン
ピュータネットワークのシステム構成を示す図である。
図2において1は他の計算機から利用可能な資源を持つ
計算機(以下サーバと書く)、2は他の計算機が持つ資
源を利用する計算機(以下クライアントと書く)、3は
サーバとクライアントを結ぶネットワーク、4はプログ
ラム実行手段、5はプログラムを記憶する記憶手段。6
は5に記憶されている圧縮されたプログラムの圧縮を解
除する手段、7はサーバが持つ資源、8は資源7にアク
セスする手段で、サーバの内部で動作するプログラム、
あるいは通信手段9からの要求で資源7にアクセスし、
その結果、得られたデータを要求元へ提供する機能を持
つ。9は通信手段で、ネットワーク3を介してクライア
ントが持つ通信手段13と通信を行い、通信手段13が
転送したプログラムを受信して記憶手段5へ渡す機能、
通信手段13から送られた要求に従い、圧縮解除手段6
を起動する機能、通信手段13から送られた要求に従
い、プログラム実行手段4を起動する機能、通信手段1
3から送られた要求を資源アクセス手段8に渡し、資源
アクセス手段8が提供するデータを通信手段13へ送る
機能、通信手段13が通信速度測定手段15の指示によ
り送った一定量のデータを、そのまま直ちに通信手段1
3へ送り返す機能を持つ。10はプログラム実行指示受
付手段で、利用者からの指示を受け付けて、指示内容に
従いプログラム実行手段11を起動する。11はプログ
ラム実行手段、12はプログラムを記憶する記憶手段、
13は通信手段で、ネットワーク3を介してサーバが持
つ通信手段9と通信を行い、通信手段9へプログラムを
転送する機能、サーバの各手段への要求を通信手段9へ
送る機能、通信手段9から送られたデータを受け取る機
能、通信速度測定手段9の指示により、一定量のデータ
を通信手段9へ送る機能、またその一定量のデータが通
信手段9から送り返されたら、そのことを通信速度測定
手段15へ通知する機能を持つ。14はプログラムの実
行結果を出力する出力手段、15は通信速度測定手段で
あり、クライアントで動作するプログラムからの指示に
より通信手段13へ指示を送り、その指示を受けた通信
手段13が一定量のデータを通信手段9へ送り、それを
受けた通信手段9が直ちにその一定量のデータを通信手
段13へ送り返し、それを受け取った通信手段13が受
け取ったことを通信速度測定手段15へ通知するまでの
一連の処理にかかる時間を測定し、その時間から、現在
の通信手段9との間の通信速度を測定し、その結果をプ
ログラムへ通知する機能を持つ。FIG. 1 is a flow chart showing a processing procedure for carrying out an embodiment of the present invention, and FIG. 2 is a diagram showing a system configuration of a computer network according to the present invention.
In FIG. 2, 1 is a computer that has resources available from other computers (hereinafter referred to as a server), 2 is a computer that uses resources of other computers (hereinafter referred to as a client), and 3 is a network connecting the server and the client. Reference numeral 4 is a program execution means, and 5 is a storage means for storing the program. 6
Is a means for decompressing the compressed program stored in 5, 7 is a resource possessed by the server, 8 is a means for accessing the resource 7, a program operating inside the server,
Alternatively, the resource 7 is accessed by a request from the communication means 9,
As a result, it has the function of providing the obtained data to the request source. Reference numeral 9 denotes a communication unit, which has a function of communicating with the communication unit 13 of the client via the network 3 and receiving the program transferred by the communication unit 13 and passing it to the storage unit 5.
In accordance with the request sent from the communication means 13, the decompression means 6
Function for activating program execution function 4 according to a request sent from communication means 13, communication means 1
3 has a function of passing the request sent from the resource access means 3 to the resource access means 8 and sending the data provided by the resource access means 8 to the communication means 13, and a certain amount of data sent by the communication means 13 according to the instruction of the communication speed measurement means 15, Communication means 1 immediately
It has a function to send back to 3. A program execution instruction receiving unit 10 receives an instruction from a user and activates the program executing unit 11 in accordance with the instruction content. 11 is a program execution means, 12 is a storage means for storing the program,
A communication unit 13 communicates with the communication unit 9 of the server via the network 3 to transfer a program to the communication unit 9, a function of sending a request to each unit of the server to the communication unit 9, and a communication unit 9 The function of receiving data sent from the communication means, the function of sending a fixed amount of data to the communication means 9 in accordance with an instruction from the communication speed measuring means 9, and when the fixed amount of data is sent back from the communication means 9, the communication speed It has a function of notifying the measuring means 15. Reference numeral 14 is an output means for outputting the execution result of the program, and 15 is a communication speed measuring means. Until data is sent to the communication means 9, the communication means 9 receiving the data immediately returns the fixed amount of data to the communication means 13, and the communication means 13 receiving the data notifies the communication speed measuring means 15 of the reception. Has a function of measuring the time required for a series of processes, measuring the communication speed with the current communication means 9 from that time, and notifying the result to the program.
【0009】図3はクライアント1の記憶装置に記憶さ
れているプログラム、及びデータを示している。図3に
おいて、16はプログラムの構造を示している。17は
主プログラムであり、18はサーバの資源を利用する、
クライアントで動作する副プログラムであり、19はク
ライアントで動作する副プログラム18と同じ仕様を持
つ、サーバで動作するプログラムであり、サーバの圧縮
解除手段6で解除できるように圧縮してある。20はプ
ログラム情報であり、この中には、クライアントで動作
する副プログラム18の大きさ、サーバで動作する副プ
ログラム19の大きさ(圧縮された状態)、サーバで動
作する副プログラム19の圧縮を解除した時の大きさ、
クライアントで動作する副プログラム18とサーバの資
源アクセス手段との間で交換する総データ量、主プログ
ラム17と、サーバで動作する副プログラム19との間
で交換する総データ量、及び、主プログラム17からサ
ーバのプログラム実行手段及び圧縮解除手段へ送る指示
データの総量が記憶されている。21は計算機情報であ
り、この中には、コンピュータネットワークを構成する
各計算機のCPUの処理速度、及び、サーバ(サーバが
複数の場合は各サーバごと)の圧縮解除手段の圧縮解除
速度が記憶されている。FIG. 3 shows programs and data stored in the storage device of the client 1. In FIG. 3, 16 indicates the structure of the program. 17 is the main program, 18 uses the resources of the server,
Reference numeral 19 denotes a sub-program that operates on the client, and 19 is a program that has the same specifications as the sub-program 18 that operates on the client and that operates on the server. The program is compressed so that it can be decompressed by the decompression means 6 of the server. Reference numeral 20 is program information, which includes the size of the subprogram 18 operating on the client, the size of the subprogram 19 operating on the server (compressed state), and the compression of the subprogram 19 operating on the server. Size when released,
The total amount of data exchanged between the subprogram 18 operating on the client and the resource access means of the server, the total amount of data exchanged between the main program 17 and the subprogram 19 operating on the server, and the main program 17 The total amount of instruction data sent from the server to the program execution means and the decompression means of the server is stored. Reference numeral 21 is computer information, in which the processing speed of the CPU of each computer constituting the computer network and the decompression speed of the decompression means of the server (each server when there are a plurality of servers) are stored. ing.
【0010】次に、図1の流れ図を用いて、実施例を詳
細に説明する。利用者がクライアントのプログラム実行
指示受付手段からプログラムの実行を指示すると、その
指示はプログラム実行指示受付手段からプログラム実行
手段に渡り、プログラム実行手段は記憶手段に記憶され
ている主プログラムの実行を開始する(101)。プロ
グラムの実行途中、サーバの資源を利用する副プログラ
ムの実行が必要になると、主プログラムは通信速度測定
手段へ指示を送り、通信速度測定手段が測定したクライ
アントの通信手段と、サーバの通信手段との間の現在の
通信速度を受け取る(102)。主プログラムは、記憶
手段に記憶されているプログラム情報、及び計算機情報
を読み込み、処理105の実行時間と、処理106の実
行時間を計算する(103)。本実施例では、処理10
5と処理106の実行時間を以下の方法により概略計算
する。まず、記憶手段に記憶されているプログラム情報
の各情報の値を、 (1)クライアントで動作する副プログラムの大きさを m(バイト) (2)サーバで動作する副プログラムが圧縮された状態での大きさを n(バイト) (3)サーバで動作する副プログラムの圧縮を解除した時の大きさを p(バイト) (4)クライアントで動作する副プログラムとサーバの資源アクセス手段との 間で交換する総データ量を q(バイト) (5)主プログラムとサーバで動作する副プログラムとの間で交換する総デー タ量を r(バイト) (6)主プログラムからサーバのプログラム実行手段及び圧縮解除手段へ送る 指示データの総量を s(バイト) また、記憶装置に記憶されている計算機情報の各情報を (7)クライアントのCPU処理速度を t(バイト/秒) (8)サーバのCPU処理速度を u(バイト/秒) (9)サーバの圧縮解除手段の圧縮解除速度を w(バイト/秒) また、主プログラムが通信速度測定手段から受け取った
クライアントの通信手段とサーバの通信手段との間の通
信速度をv(バイト/秒)とする。また、本実施例で
は、 (10)同一計算機内のプログラム間の通信時間を0 (11)同一計算機内の各手段間の通信時間を0 (12)同一計算機内のプログラムと各手段との間の通
信時間を0 とみなす。また、サーバの資源と資源アクセス手段との
間のアクセス時間は、処理105の場合も処理106の
場合も同じであり、比較の対象にはならないので、0と
する。これらにより、処理105および処理106の実
行時間は (処理105の実行時間)=(m/t)+(q/v) (処理106の実行時間)=(r+s+u)+(n/
w)+(p/u) で求めることが出来る。Next, the embodiment will be described in detail with reference to the flowchart of FIG. When the user gives an instruction to execute the program from the program execution instruction receiving means of the client, the instruction is passed from the program execution instruction receiving means to the program executing means, and the program executing means starts the execution of the main program stored in the storage means. Yes (101). When it is necessary to execute a sub-program that uses the resources of the server during the execution of the program, the main program sends an instruction to the communication speed measuring means, and the communication means of the client measured by the communication speed measuring means and the communication means of the server The current communication speed during the period is received (102). The main program reads the program information and the computer information stored in the storage means, and calculates the execution time of the process 105 and the execution time of the process 106 (103). In this embodiment, the process 10
5 and the execution time of the process 106 are roughly calculated by the following method. First, the value of each piece of program information stored in the storage means is (1) the size of the sub-program operating on the client is m (bytes) (2) The sub-program operating on the server is compressed. Is n (bytes) (3) The size when the subprogram running on the server is decompressed is p (bytes) (4) Between the subprogram running on the client and the resource access means of the server The total amount of data exchanged is q (bytes) (5) The total amount of data exchanged between the main program and the sub-programs operating on the server is r (bytes) (6) Program execution means and compression of the main program to the server The total amount of instruction data sent to the canceling means is s (bytes). Also, each piece of computer information stored in the storage device is (7) The CPU processing speed of the client is t ( (8) The CPU processing speed of the server is u (bytes / second) (9) The decompression speed of the decompression means of the server is w (bytes / second) Also, the main program received from the communication speed measurement means. The communication speed between the client communication means and the server communication means is v (bytes / second). Further, in the present embodiment, (10) the communication time between programs in the same computer is 0 (11) the communication time between each means in the same computer is 0 (12) between the program and each means in the same computer The communication time of is regarded as 0. Further, the access time between the resource of the server and the resource access means is the same in both the process 105 and the process 106, and is not a target for comparison, and thus is set to 0. As a result, the execution time of the process 105 and the process 106 is (execution time of the process 105) = (m / t) + (q / v) (execution time of the process 106) = (r + s + u) + (n /
w) + (p / u).
【0011】図1の説明に戻る。計算した処理105の
実行時間と処理106の実行時間とを比較し、実行時間
が短い方へ分岐する(104)。処理105で、主プロ
グラムはクライアントで動作する副プログラムを起動す
る。クライアントで動作する副プログラムはクライアン
ト及びサーバの通信手段を利用して、サーバの資源アク
セス手段へ指示を送り、資源アクセス手段が資源から得
たデータを通信手段を介して受け取る。次に図4の流れ
図を用いて、処理106へ分岐した時の実施例を詳細に
説明する。図4において、106は図1の処理106と
同じである。また、処理201はクライアントで実行す
る処理、処理202はサーバで実行する処理を示す。処
理106へ分岐すると、主プログラムはまず、サーバで
動作する副プログラムを通信手段を用いてサーバに転送
し(203)、サーバはそれを受信して記憶装置に記憶
する(204)。次に主プログラムは通信手段を用いて
サーバの圧縮解除手段へ指示を送り(205)、サーバ
の圧縮解除手段は記憶手段に記憶されている、サーバで
動作する副プログラムの圧縮を解除する(206)。次
に主プログラムは通信手段を用いてサーバのプログラム
実行手段に指示を送り(207)、記憶手段に記憶され
ている、圧縮が解除されたサーバで動作する副プログラ
ム(以下単に副プログラムと書く)を起動する(20
8)。副プログラムは資源アクセス手段を用いて資源へ
アクセスする(209)。副プログラムは資源へアクセ
スして得た処理結果を通信手段を用いて主プログラムへ
送り(210)、その処理結果を主プログラムが受信す
る(211)。ここから図1の残りの処理の説明に戻
る。処理105または処理106を終えて、処理結果を
得た主プログラムは必要ならば出力手段を用いて結果を
出力する(107)。サーバの資源を利用する副プログ
ラムが複数ある場合は、以下、サーバの資源を利用する
副プログラムごとに、処理103から処理107までを
繰り返す(108)。Returning to the explanation of FIG. The calculated execution time of the process 105 and the calculated execution time of the process 106 are compared, and the process is branched to the shorter execution time (104). In process 105, the main program starts the sub program running on the client. The sub-program operating on the client uses the communication means of the client and the server to send an instruction to the resource access means of the server, and the resource access means receives the data obtained from the resource via the communication means. Next, with reference to the flowchart of FIG. 4, an embodiment when branching to the process 106 will be described in detail. 4, 106 is the same as the process 106 of FIG. A process 201 indicates a process executed by the client, and a process 202 indicates a process executed by the server. When the process branches to step 106, the main program first transfers the sub program running on the server to the server using the communication means (203), and the server receives it and stores it in the storage device (204). Next, the main program sends an instruction to the decompression means of the server using the communication means (205), and the decompression means of the server decompresses the sub program stored in the storage means and operating in the server (206). ). Next, the main program sends an instruction to the program execution means of the server using the communication means (207), and the sub program stored in the storage means and operated in the decompressed server (hereinafter simply referred to as the sub program). Start (20
8). The sub-program accesses the resource using the resource access means (209). The sub program sends the processing result obtained by accessing the resource to the main program using the communication means (210), and the main program receives the processing result (211). From here, it returns to description of the remaining processing of FIG. After the processing 105 or 106 is completed, the main program which has obtained the processing result outputs the result using the output means if necessary (107). When there are a plurality of subprograms that use the resources of the server, the processes 103 to 107 are repeated for each subprogram that uses the resources of the server (108).
【0012】[0012]
【発明の効果】以上で述べた通り、本発明は、以上の問
題を解決するために、他の計算機の資源を利用する計算
機に、他の計算機との通信速度を測定する手段を備え、
ある計算機で実行中のプログラムに含まれる、他の計算
機の資源を利用する副プログラムが、ネットワークを介
して他の計算機の資源へアクセスする場合と、他の計算
機の資源を利用する副プログラムを資源を持つ計算機へ
転送し、資源を持つ計算機の内部で、転送した資源を利
用する副プログラムを実行し、その結果を資源を利用す
る計算機で実行中のプログラムが受け取る場合との処理
時間を事前に評価し、処理時間が短い方を選択して実行
するという処理を、他の計算機の資源を利用する副プロ
グラムごとに行い、また、他の計算機の資源を利用する
プログラムを転送する場合の時間の短縮をはかるため
に、資源を持つ計算機に、圧縮されたプログラムの圧縮
を解除する手段を備え、他の計算機の資源を利用する副
プログラムを実行する計算機に、その副プログラムと同
じ仕様を持ち、資源を持つ計算機に備えられた、圧縮さ
れたプログラムの圧縮を解除する手段で解除できるよう
に圧縮した副プログラムを、別プログラムとしてあらか
じめ用意し、副プログラムを資源を持つ計算機に転送す
る場合には、圧縮した副プログラムの方を転送し、資源
を持つ計算機の内部で、圧縮されたプログラムの圧縮を
解除する手段を用いて、その副プログラムの圧縮を解除
し、その副プログラムを実行する方法であり、サーバの
資源を利用する副プログラムを多数含む、規模が大きい
プログラムでは、特に本発明による処理時間短縮の効果
が大きい。As described above, in order to solve the above problems, the present invention provides a computer that uses the resources of another computer with means for measuring the communication speed with the other computer,
When a sub-program that uses the resources of another computer, which is included in a program running on a computer, accesses the resources of another computer via the network, and when a sub-program that uses the resources of another computer To the computer that has the resource, execute the subprogram that uses the transferred resource inside the computer that has the resource, and process the time when the result is received by the program running on the computer that uses the resource. For each subprogram that uses the resources of another computer, evaluate and execute the process that selects the one with the shortest processing time. Also, in the case of transferring a program that uses the resources of another computer, In order to reduce the time, a computer having resources is provided with a means for decompressing a compressed program, and a subprogram that uses the resources of another computer is executed. Prepare a subprogram that has the same specifications as the subprogram and has the same specifications as the subprogram, and that can be decompressed by the means for decompressing the compressed program provided in the computer with resources as a separate program. When transferring a program to a computer that has resources, transfer the compressed subprogram, and use the means for decompressing the compressed program inside the computer that has resources to compress the subprogram. Is executed and the subprogram is executed, and a large-scale program including a large number of subprograms that utilize the resources of the server is particularly effective in reducing the processing time according to the present invention.
【図1】実施例の処理手順を表す流れ図である。FIG. 1 is a flowchart showing a processing procedure of an embodiment.
【図2】本発明に係わるコンピュータネットワークのシ
ステム構成を示す図である。FIG. 2 is a diagram showing a system configuration of a computer network according to the present invention.
【図3】サーバの資源を利用する計算機の記憶装置に記
憶されているプログラム、及びデータを示す図である。FIG. 3 is a diagram showing programs and data stored in a storage device of a computer that uses the resources of the server.
【図4】図1の流れ図の、処理105の中の詳細な処理
手順を表す流れ図である。4 is a flowchart showing a detailed processing procedure in processing 105 of the flowchart of FIG. 1. FIG.
1…サーバ、 2…クライアント、 3…ネットワーク、 4、11…プログラム実行手段、 5、12…記憶手段、 6…圧縮解除手段、 7…資源、 8…資源アクセス手段、 9、13…通信手段、 10…プログラム実行指示受付手段、 14…出力手段、 15…通信速度測定手段、 16…プログラム構造、 17…主プログラム、 18…クライアントで動作する副プログラム、 19…サーバで動作する副プログラム、 20…プログラム情報、 21…計算機情報、 101…主プログラム実行開始ステップ、 102…クライアント・サーバ間通信速度測定ステッ
プ、 103…処理105及び処理106の処理時間計算ステ
ップ、 104…処理105及び処理106の処理時間比較・分
岐ステップ、 105…クライアントからネットワークを介してサーバ
の資源を利用するステップ、 106…サーバへプログラムを転送してサーバ内で資源
を利用する処理、 107…処理結果出力ステップ、 108…処理103から処理107までの繰り返し、 201…クライアントでの処理、 202…サーバでの処理、 203…副プログラム転送ステップ、 204…副プログラム受信ステップ、 205…副プログラムの圧縮解除指示ステップ、 206…副プログラムの圧縮解除ステップ、 207…副プログラム起動ステップ、 208…副プログラム実行開始ステップ、 209…資源アクセスステップ、 210…処理結果送信ステップ、 211…処理結果受信ステップ。DESCRIPTION OF SYMBOLS 1 ... Server, 2 ... Client, 3 ... Network, 4, 11 ... Program execution means, 5, 12 ... Storage means, 6 ... Decompression means, 7 ... Resource, 8 ... Resource access means, 9, 13 ... Communication means, 10 ... Program execution instruction receiving means, 14 ... Output means, 15 ... Communication speed measuring means, 16 ... Program structure, 17 ... Main program, 18 ... Sub-program operating on client, 19 ... Sub-program operating on server, 20 ... Program information, 21 ... Computer information, 101 ... Main program execution start step, 102 ... Client / server communication speed measurement step, 103 ... Processing time calculation step of 105 and 106, 104 ... Processing time of 105 and 106 Comparison / branching step, 105 ... From client via network A step of using the resources of the server, 106 ... A process of transferring the program to the server and using the resources in the server, 107 ... A step of outputting a processing result, 108 ... Repeating steps 103 to 107, 201 ... Processing: 202 ... Server processing, 203 ... Subprogram transfer step, 204 ... Subprogram receiving step, 205 ... Subprogram decompression instruction step, 206 ... Subprogram decompression step, 207 ... Subprogram activation step, 208 ... sub-program execution start step, 209 ... resource access step, 210 ... processing result sending step, 211 ... processing result receiving step.
Claims (2)
算機を1台以上その構成に含む、他計算機との通信速度
を測定する手段を備えた複数の計算機で構成したコンピ
ュータネットワークにおいて、ある計算機で実行中のプ
ログラムに含まれる1つ以上の副プログラムが、他の計
算機の資源を利用する場合、他の計算機の資源を利用す
る副プログラムがネットワークを介して他の計算機の資
源へアクセスする場合と、他の計算機の資源を利用する
副プログラムを資源を持つ計算機へ転送し、資源を持つ
計算機の内部で、転送した資源を利用する副プログラム
を実行し、その結果を資源を利用する計算機で実行中の
プログラムが受け取る場合との処理時間を事前に評価
し、処理時間が短い方を選択して実行するという処理
を、副プログラムごとに行うことを特徴とする方法。1. A computer network comprising a plurality of computers including means for measuring a communication speed with another computer, the computer network including in its configuration one or more computers having resources available to other computers. When one or more subprograms included in a program running on a computer use the resources of another computer, the subprogram that uses the resources of another computer accesses the resources of the other computer via the network. In some cases, a subprogram that uses the resources of another computer is transferred to the computer that has the resources, the subprogram that uses the transferred resources is executed inside the computer that has the resources, and the result is the computer that uses the resources. For each subprogram, evaluate the processing time in advance when the program being executed in Wherein the performing.
機に、圧縮されたプログラムの圧縮を解除する手段を備
え、他の計算機の資源を利用する副プログラムを実行す
る計算機に、その副プログラムと同じ仕様を持ち、資源
を持つ計算機に備えられた、圧縮されたプログラムの圧
縮を解除する手段で解除できるように圧縮した副プログ
ラムを、別プログラムとしてあらかじめ用意し、副プロ
グラムを資源を持つ計算機に転送する場合には、圧縮し
た副プログラムの方を転送し、資源を持つ計算機の内部
で、圧縮されたプログラムの圧縮を解除する手段を用い
て、その副プログラムの圧縮を解除し、その副プログラ
ムを実行することを特徴とする方法。2. The method according to claim 1, wherein the computer having the resources is provided with means for decompressing the compressed program, and the computer executing the subprogram utilizing the resources of another computer is provided with the subprogram. A computer that has the same specifications as above, but has a subprogram compressed so that it can be decompressed by the means for decompressing a compressed program provided in a computer that has resources In the case of transfer to the sub-program, the compressed sub-program is transferred, and the means for decompressing the compressed program is used inside the computer having resources to decompress the sub-program A method characterized by executing a program.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5252833A JPH07105149A (en) | 1993-10-08 | 1993-10-08 | Distributed processing method to select subprogram transfer execution |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5252833A JPH07105149A (en) | 1993-10-08 | 1993-10-08 | Distributed processing method to select subprogram transfer execution |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH07105149A true JPH07105149A (en) | 1995-04-21 |
Family
ID=17242835
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5252833A Pending JPH07105149A (en) | 1993-10-08 | 1993-10-08 | Distributed processing method to select subprogram transfer execution |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07105149A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006293743A (en) * | 2005-04-12 | 2006-10-26 | Mitsubishi Electric Corp | Server-type computer and transfer evaluation judgment device |
-
1993
- 1993-10-08 JP JP5252833A patent/JPH07105149A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006293743A (en) * | 2005-04-12 | 2006-10-26 | Mitsubishi Electric Corp | Server-type computer and transfer evaluation judgment device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108009028B (en) | Message processing method, device, equipment and computer readable storage medium | |
| CA2218187C (en) | Differencing communication system | |
| CN103873321B (en) | Distributed file system-based simulation distributed parallel computing platform and method | |
| US9807189B2 (en) | Data transfer device and data transfer system using adaptive compression algorithm | |
| CN113064742A (en) | Message processing method, device, equipment and storage medium | |
| CN119336517B (en) | Intelligent computing center model development method and device for inclusive computing power | |
| CN107291544A (en) | Method and device, the distributed task scheduling execution system of task scheduling | |
| CN102255866A (en) | Method and device for downloading data | |
| CN116401071A (en) | A resource allocation method and system for edge computing | |
| JPH05145437A (en) | Data transmission system | |
| JPH07105149A (en) | Distributed processing method to select subprogram transfer execution | |
| CN120751005A (en) | Internet of things data processing method and system based on edge calculation | |
| CN117076057B (en) | AI service request scheduling method, device, equipment and medium | |
| CN111367875B (en) | Ticket file processing method, system, equipment and medium | |
| CN119484583A (en) | A computer network data transmission management system based on cloud computing | |
| CN116361120B (en) | A database heterogeneous resource management and scheduling method, device, equipment and medium | |
| JPH10185634A (en) | Measuring system | |
| CN118467196A (en) | Queue type ECU (electronic control Unit) refreshing method, refreshing system, storage medium and electronic equipment | |
| JP4575218B2 (en) | Server-type computer and transfer evaluation judgment device | |
| US20230195536A1 (en) | Data offloading processes and systems | |
| CN110365694B (en) | System and method for synchronous processing of data between virtual host and real host | |
| CN106162674B (en) | A system performance testing method and device | |
| CN115604010A (en) | Data hybrid processing method, system, device, medium, and data processing system | |
| CN121151301B (en) | Communication energy efficiency optimization methods, apparatus, equipment and storage media | |
| CN112468541B (en) | Data processing method, device and system based on Internet of things |