JPH01223557A - Multiprocessor system - Google Patents
Multiprocessor systemInfo
- Publication number
- JPH01223557A JPH01223557A JP4939188A JP4939188A JPH01223557A JP H01223557 A JPH01223557 A JP H01223557A JP 4939188 A JP4939188 A JP 4939188A JP 4939188 A JP4939188 A JP 4939188A JP H01223557 A JPH01223557 A JP H01223557A
- Authority
- JP
- Japan
- Prior art keywords
- processor
- task
- sub
- priority level
- communication line
- 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
- 238000010586 diagram Methods 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〈産業上の利用分野〉
本発明は、1個の統括プロセッサに複数のサブプロセッ
サが接続されるマルチプロセッサ・システムに関し、特
に新たに処理するタスクが発生した場合に、最適なサブ
プロセッサにこの新たなタスクを割り当てる方式を提供
するものである。[Detailed Description of the Invention] <Industrial Application Field> The present invention relates to a multiprocessor system in which a plurality of subprocessors are connected to one overall processor, and particularly when a new task is generated, This provides a method for allocating this new task to the optimal subprocessor.
〈従来の技術〉
統括プロセッサに少なくとも1個以上のサブプロセッサ
を接続したマルチプロセッサ・システムにおいて、薪た
に実行すべきタスクが発生した場合、統括プロセッサは
、各々のサブプロセッサで現在実行しているタスクに関
する情報をメモリより取り出し、順次比軟して新たなタ
スクを割り当てるサブプロセッサを決定していた。<Prior Art> In a multiprocessor system in which at least one or more subprocessors are connected to a master processor, when a task to be executed occurs immediately, the master processor executes a task that is currently being executed by each subprocessor. Information about the task was retrieved from memory, and the subprocessor to which the new task should be assigned was determined by sequential comparison.
〈発明が解決しようとする課題〉
しかしながら、上述のようなタスクの割り付は方式は時
間がかかるとともに、統括プロセッサの負荷が大きくな
るという問題があった。<Problems to be Solved by the Invention> However, the above-described task allocation method takes time and has the problem of increasing the load on the supervising processor.
本発明はこのようなことを課題としてなされたものであ
り、新たに処理すべきタスクが発生した場合にこのタス
クをサブプロセッサに割り当てるi&適な方式を実現す
ることを目的とする。The present invention has been made with this in mind, and it is an object of the present invention to realize an i&appropriate method for allocating a new task to a subprocessor when a new task to be processed occurs.
く課題を解決するための手段〉
以上の課題を解決した本発明は、統括プロセッサと各サ
ブプロセッサ間で新たなタスクの優先レベルと現在実行
しているタスクに関連する値(例えば優先レベル)との
差を算出して通信するものであり、その具体的な構成は
次の通りである。Means for Solving the Problems> The present invention, which has solved the above problems, communicates between the supervising processor and each subprocessor the priority level of a new task and the value (for example, priority level) related to the currently executing task. The specific configuration is as follows.
即ち、統括プロセッサに少なくとも1個以上のサブプロ
セッサが接続されるマルチプロセッサ・システムにおい
て、前記統括プロセッサから全てのサブプロセッサを巡
回して戻る通信線を殺菌し、前記各々のサブプロセッサ
に、現在実行中のタスクに関連する値PLiが設定され
る保持手段と、前記値PLiと前記統括プロセッサから
送出された新たなタスクの優先レベルNl、との差DF
iを求める比較手段とを設け、前記統括プロセッサから
新たなタスクの優先レベルが送出された際に、前記通信
線上に常に最も大きな前記差DFiとこの差を出力した
サブプロセッサの識別番号IDiとを送出して前記統括
プロセッサに戻すことを特徴とするマルチプロセッサ・
システムである。That is, in a multiprocessor system in which at least one or more subprocessors are connected to a central processor, a communication line that circulates from the central processor to all the subprocessors and returns is sterilized, and each of the subprocessors is provided with the information currently being executed. a holding means in which a value PLi related to the task is set; and a difference DF between the value PLi and the priority level Nl of the new task sent from the supervising processor.
i, and when the priority level of a new task is sent from the supervising processor, the largest difference DFi and the identification number IDi of the subprocessor that outputs this difference are always displayed on the communication line. A multiprocessor system characterized by transmitting data and returning it to the central processor
It is a system.
く作用〉
本発明のマルチプロセッサ・システムは次のように動作
する。Operation> The multiprocessor system of the present invention operates as follows.
統括プロセッサは、新たに処理するタスクが発生すると
その優先レベルを通信線に出力する。When a new task to be processed is generated, the supervising processor outputs its priority level to the communication line.
各サブプロセッサは、この新たな優先レベルと現在実行
中のタスクに関連する値(例えばそのタスクの優先レベ
ル)との差を算出し、通信線上に最も大きな差の値とそ
のサブプロセッサの識別番号とを送出する。Each subprocessor calculates the difference between this new priority level and the value associated with the currently executing task (for example, the priority level of that task), and sends the value of the largest difference and the identification number of that subprocessor over the communication line. and send out.
統括プロセッサは、通信線により戻ってきた情報により
新たなタスクを割り当てるべきサブプロセッサを知る。The supervising processor learns the subprocessor to which a new task should be assigned based on the information returned via the communication line.
〈実施例〉
第1図は、本発明を実施したマルチプロセッサ・システ
ムの構成を表わす図である。<Embodiment> FIG. 1 is a diagram showing the configuration of a multiprocessor system in which the present invention is implemented.
第1図において、1は統括プロセッサ、21゜22、・
・・、2nはサブプロセッサ、3は統括プロセッサ1か
らサブプロセッサ21.サブプロセッサ22.・・・、
サブプロセッサ2nと巡回して統括プロセッサ1に戻る
通信線である。In FIG. 1, 1 is the general processor, 21°22, .
. . , 2n is a sub-processor, 3 is a sub-processor from the supervising processor 1 to the sub-processor 21 . Sub-processor 22. ...,
This is a communication line that circulates with the sub-processor 2n and returns to the central processor 1.
各サブプロセッサ21.22.・・・、2nは、通信線
3と情報を授受するインターフェイス部II。Each sub-processor 21.22. . . , 2n is an interface unit II that exchanges information with the communication line 3.
I2.・・・、Inを有している。I2. ..., has In.
第2図に、サブプロセッサ21におけるインターフェイ
ス部Itの具体的な構成を表わし、その動作を説明する
。FIG. 2 shows a specific configuration of the interface section It in the sub-processor 21, and its operation will be explained.
インターフェイス部Ifにおいて、41はこのサブプロ
セッサ21が現在実行中のタスクに関連するfia(例
えば優先レベル) P L iが設定されるレジスタ、
42はこのインターフェイス部II内で発生する各種の
値を比較する比較器、43は比較器42で算出された、
優先レベルNLとレジスタ41に保持されている値PL
iとの差DFiを保持するレジスタ、44はこのサブプ
ロセッサ21の識別番号IDiが設定されるレジスタ、
45はこのインターフェイス部Ii内で加工された情報
を通信線3上に送出する送出部である。In the interface part If, 41 is a register in which fia (for example, priority level) P L i related to the task currently being executed by this subprocessor 21 is set;
42 is a comparator for comparing various values generated within this interface section II; 43 is a comparator calculated by the comparator 42;
Priority level NL and value PL held in register 41
a register that holds the difference DFi from i; 44 is a register in which the identification number IDi of this subprocessor 21 is set;
Reference numeral 45 denotes a sending section that sends the information processed within this interface section Ii onto the communication line 3.
さて、このように構成された本発明のシステムの動作を
次に説明する。Now, the operation of the system of the present invention configured as described above will be explained next.
はじめに、統括プロセッサ1は、新たに処理すべきタス
クが発生するとその優先レベル情報を3バイト情報で送
出する。First, when a new task to be processed occurs, the supervisory processor 1 sends its priority level information in the form of 3-byte information.
この3バイト情報は、第1バイトが新規に処理されるタ
スクの優先レベルNL、第2バイトが“0”、第3バイ
トが統括プロセッサ1自身の識別番号IDOである。In this 3-byte information, the first byte is the priority level NL of the newly processed task, the second byte is "0", and the third byte is the identification number IDO of the supervising processor 1 itself.
このような3バイト情報がサブプロセッサ2(i−1)
からこのサブプロセッサ21まで巡回してくると、第1
バイトが優先レベルNL、第2バイトがこのサブプロセ
ッサ21に巡回してくるまでにサブプロセッサ2h(h
<i)で発生した差DFh (dfとする)、第3バイ
トがそのサブプロセッサ2hの識別番号IDhとなって
いる。Such 3-byte information is sent to subprocessor 2 (i-1)
When it comes to this sub-processor 21, the first
Byte is at priority level NL, and subprocessor 2h (h
The third byte of the difference DFh (referred to as df) generated in <i) is the identification number IDh of the subprocessor 2h.
以下、このインターフェイス部Itにおける3バイト情
報の処理を詳しく述べる。The processing of 3-byte information in this interface section It will be described in detail below.
第1バイト目の優先レベルN Lについては、比較器4
2にて(NL−PLi)を算出し、その結果を差DFi
としてレジスタ43に保持する。For the priority level N L of the first byte, comparator 4
2, calculate (NL-PLi) and use the result as the difference DFi
It is held in the register 43 as .
次に比較器42において、値DFiの大きさをみる。Next, the comparator 42 checks the magnitude of the value DFi.
DFi≦0の時は、通信線3からの3バイト情報(優先
レベルNL、差df (=DFh)、識別番号DFhl
をそのまま次のサブプロセッサ2(i+1)へ送出する
。When DFi≦0, 3-byte information from communication line 3 (priority level NL, difference df (=DFh), identification number DFhl
is sent as is to the next sub-processor 2 (i+1).
DFi>0の時は、まず、優先レベルNLを第1バイト
として出力する。When DFi>0, first, the priority level NL is output as the first byte.
次に、与えられた第2バイト情報df (=DFh)よ
り、比較器42にて(DFi−df)を算出する。Next, the comparator 42 calculates (DFi-df) from the given second byte information df (=DFh).
(DFi−df)≦0の時は、第2バイト、第3バイト
とも、サブプロセッサ2(i−1)から与えられた情報
(差df (=DFh>、m別番号IDh+をそのまま
送出する。When (DFi-df)≦0, the information (difference df (=DFh>, m-specific number IDh+) given from the sub-processor 2 (i-1) is sent as is for both the second and third bytes.
即ち、DFi>0かつ(D′FI−df)≦0の時に通
信線3上に送出されてサブプロセッサ2(i+1)に与
えられる3バイト情報は、(優先レベルN L 、差d
f (=DFh)、識別番号IDh)である。That is, when DFi>0 and (D'FI-df)≦0, the 3-byte information sent onto the communication line 3 and given to the subprocessor 2(i+1) is (priority level N L , difference d
f (=DFh), identification number IDh).
(DFi−df)>Oの時は、第2バイトとして値DF
iを、第3バイトとしてこのサブプロセッサ21の識別
番号IDiを送出する。When (DFi-df)>O, the value DF is used as the second byte.
The identification number IDi of this sub-processor 21 is sent with i as the third byte.
即ち、DFi>0かつ(DFi−df)>Oの時に通信
線3上に送出されてサブプロセッサ2(i+1)に与え
られるる3バイト情報は、(優先レベルNL、差df(
=DFi)、識別番号ID1)である。That is, when DFi>0 and (DFi-df)>O, the 3-byte information sent onto the communication line 3 and given to the subprocessor 2(i+1) is (priority level NL, difference df(
=DFi), identification number ID1).
このような操作を行って、3バイト情報は全てのサブプ
ロセッサ21,22.・・・、2nを巡回する。By performing such operations, the 3-byte information is transmitted to all sub-processors 21, 22 . ..., it cycles through 2n.
統括プロセッサ1は、この3バイト情報の巡回結果によ
り、最も低いレベルのタスクを実行中のサブプロセッサ
を知ることができ、このサブプロセッサに新たなタスク
を割り当てる。The supervising processor 1 can know which sub-processor is currently executing the lowest level task based on the circulation result of this 3-byte information, and allocates a new task to this sub-processor.
尚、インターフェイス部1iに設置する比較器42等の
実現の容易さ、処理による遅延時間を最小にするには、
3バイト情報のうち、第1バイトをLSBより出力し、
第2バイトをM S Bより出力するようにすれば良い
。In addition, in order to easily realize the comparator 42 etc. installed in the interface section 1i and to minimize the delay time due to processing,
Outputs the first byte of the 3-byte information starting with the LSB,
The second byte may be output from the MSB.
また、実施例の説明にあっては、新たなタスクを割り当
てる還定基準として各サブプロセッサで実行中のタスク
の優先度を用いたが、これに限ることなく、実行中タス
クに関連する値なら何でも良い。In addition, in the explanation of the embodiment, the priority of the task currently being executed in each subprocessor is used as the return criterion for allocating a new task, but the priority is not limited to this, and any value related to the currently executing task can be used. anything is fine.
更に、統括プロセッサ1から発する情報の大きさを3バ
イトとしたが、このバイト数に限らない。Furthermore, although the size of the information issued from the central processor 1 is assumed to be 3 bytes, it is not limited to this number of bytes.
〈発明の効果〉
以上述べたように、本発明のシステムによれば、新たに
処理すべきタスクが発生した場合に、このタスクを最適
なサブプロセッサに高速に割り当てることができ、統括
プロセッサまたはサブプロセッサの負荷を増すことなく
、簡単な構成で新規タスク割り当てを実現することがで
きる。<Effects of the Invention> As described above, according to the system of the present invention, when a new task to be processed occurs, this task can be quickly assigned to the optimal sub-processor, and New task assignment can be realized with a simple configuration without increasing the load on the processor.
第1図は本発明を実施したマルチプロセッサ・システム
の全体構成図、第2図は本発明システムにおけるサブプ
ロセッサ21内のインターフェイス部Tiの構成を表わ
す図である。
1:統括プロセッサ、
21、 22. ・・・、 2 j 。
・・・、2n;サブプロセッサ、
II、I2.・・・、Ii。
・・・、In;インターフェイス部、
3:通信線、 41.43.44;レジスタ、42:比
較器、45:送出部。FIG. 1 is an overall configuration diagram of a multiprocessor system embodying the present invention, and FIG. 2 is a diagram showing the configuration of an interface section Ti within a sub-processor 21 in the system of the present invention. 1: Supervisory processor, 21, 22. ..., 2 j. ..., 2n; sub-processor, II, I2. ..., Ii. ..., In: interface section, 3: communication line, 41.43.44; register, 42: comparator, 45: sending section.
Claims (1)
セッサが接続されるマルチプロセッサ・システムにおい
て、前記統括プロセッサから全てのサブプロセッサを巡
回して戻る通信線を設置し、前記各々のサブプロセッサ
に、現在実行中のタスクに関連する値PLiが設定され
る保持手段と、前記値PLiと前記統括プロセッサから
送出された新たなタスクの優先レベルNLとの差DFi
を求める比較手段とを設け、前記統括プロセッサから新
たなタスクの優先レベルが送出された際に、前記通信線
上に常に最も大きな前記差DFiとこの差を出力したサ
ブプロセッサの識別番号IDiとを送出して前記統括プ
ロセッサに戻すことを特徴とするマルチプロセッサ・シ
ステム。(1) In a multiprocessor system in which at least one or more subprocessors are connected to a central processor, a communication line is installed that circulates from the central processor to all the subprocessors and returns, and the current A holding means in which a value PLi related to the task being executed is set, and a difference DFi between the value PLi and the priority level NL of a new task sent from the supervising processor.
and when the priority level of a new task is sent from the supervising processor, the largest difference DFi and the identification number IDi of the subprocessor that outputs this difference are always sent on the communication line. A multiprocessor system characterized in that the data is sent back to the supervising processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4939188A JPH01223557A (en) | 1988-03-02 | 1988-03-02 | Multiprocessor system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP4939188A JPH01223557A (en) | 1988-03-02 | 1988-03-02 | Multiprocessor system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01223557A true JPH01223557A (en) | 1989-09-06 |
Family
ID=12829731
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP4939188A Pending JPH01223557A (en) | 1988-03-02 | 1988-03-02 | Multiprocessor system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01223557A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07121485A (en) * | 1993-03-19 | 1995-05-12 | Tamura Electric Works Ltd | Task processing system |
-
1988
- 1988-03-02 JP JP4939188A patent/JPH01223557A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07121485A (en) * | 1993-03-19 | 1995-05-12 | Tamura Electric Works Ltd | Task processing system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US3348210A (en) | Digital computer employing plural processors | |
US6820155B1 (en) | Interruption managing device and interruption managing method | |
Xu et al. | Optimal dynamic assignment of customers to heterogeneous servers in parallel | |
US7529875B2 (en) | Assigning interrupts for input/output (I/O) devices among nodes of a non-uniform memory access (NUMA) system | |
US5687073A (en) | Initial program loading system for multiprocessor system | |
EP0077619B1 (en) | Data-packet driven digital computer | |
JPH01223557A (en) | Multiprocessor system | |
JPS63129449A (en) | Control interface apparatus | |
US5392426A (en) | Method and apparatus for use in program operation, control and control block management and storage | |
Tsitsiklis | A short proof of the Gittins index theorem | |
JPH09245003A (en) | Parallel distributed processing system and method therefor | |
JPH04107690A (en) | Execution control system for data driving type information processor | |
Huisken et al. | Synthesis of synchronous communication hardware in a multiprocessor architecture | |
JPS63142433A (en) | Environment identifier giving system | |
GB2107497A (en) | Digital computers | |
JPH04227589A (en) | Device and method for allocating data flow program | |
JP2845780B2 (en) | Data transfer control circuit | |
JPH01100634A (en) | Data processor | |
JPH03204744A (en) | Address converting mechanism | |
JPH08305668A (en) | Connection type server client system | |
JPH01207866A (en) | System for dynamic load distribution of multi-processor | |
JPH02177637A (en) | Network system | |
JPS62287361A (en) | Completion judging system for parallel processing | |
JPH05324534A (en) | Dma transfer system | |
JPH01125141A (en) | Computer address assignment system |