JPH025134A - Message schedule system - Google Patents
Message schedule systemInfo
- Publication number
- JPH025134A JPH025134A JP63157287A JP15728788A JPH025134A JP H025134 A JPH025134 A JP H025134A JP 63157287 A JP63157287 A JP 63157287A JP 15728788 A JP15728788 A JP 15728788A JP H025134 A JPH025134 A JP H025134A
- Authority
- JP
- Japan
- Prior art keywords
- message
- time
- processing
- execution
- variable
- 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
- 238000000034 method Methods 0.000 claims description 12
- 238000010586 diagram Methods 0.000 description 3
- 238000003672 processing method Methods 0.000 description 2
- 239000000284 extract Substances 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
Landscapes
- Devices For Executing Special Programs (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はメツセージスケジュール方式、特にオブジェク
トと呼ぶ処理実体が並列にメツセージを送出することに
より、メツセージを受け取った複数のオブジェクトが並
列に処理を進める並列オブジェクト指向言語の実行方式
において、逐次型計算機上で疑似並列に処理するメツセ
ージスケジュール方式に関する。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a message scheduling method, in particular, a message scheduling method in which a processing entity called an object sends messages in parallel, so that multiple objects that receive messages proceed with processing in parallel. This paper relates to a message scheduling method for pseudo-parallel processing on a sequential computer in the execution method of parallel object-oriented languages.
並列オブジェクト指向言語は、処理主体であるオブジェ
クト単位での並列性を実現するなめに、オブジェク1−
間でやり取りするメツセージに非同期機構3設けている
(参考文献:米澤明憲他/オフシエクト指向に基づく並
列情報処理モデルABCM/1とその記述言語ABCL
/1.コンピュータソフトウェア、3巻3号、1986
)。In parallel object-oriented languages, in order to realize parallelism in units of objects, which are the main processing objects,
3 asynchronous mechanisms are provided for messages exchanged between them (Reference: Akinori Yonezawa et al./Parallel information processing model ABCM/1 based on offset orientation and its description language ABCL)
/1. Computer Software, Volume 3, No. 3, 1986
).
たとえは、第1のオブジェクトが非同期メツセージを第
2のオブジェクトに送出する場合に、非同期メツセージ
を送出した後の第1.のオブジェクトと、非同期メツセ
ージを受け取った第2オブジエクI・とか、並列に動作
するというものであり、オブジェクト自身の実行は逐次
的に進む。この処理方式はオブジェクト単位の並列性が
自然な考え方であることもあって広く使われている。For example, if a first object sends an asynchronous message to a second object, the first object after sending the asynchronous message. The object and the second object I, which received the asynchronous message, operate in parallel, and the execution of the objects themselves proceed sequentially. This processing method is widely used because parallelism in object units is a natural concept.
従来の並列オブジェクト指向言語では、オブジェクト単
位の並列性を想定しており、メツセージ単位での並列性
を考えていない。その結果、オブジェクトのスケジュー
リングとメツセージのスケジューリングとの二つの問題
を取扱う必要があり、複雑な処理方式を必要とするとい
う欠点がある。Conventional parallel object-oriented languages assume parallelism in units of objects, but do not consider parallelism in units of messages. As a result, it is necessary to deal with two problems: object scheduling and message scheduling, and there is a drawback that a complicated processing method is required.
本発明の目的は、上述の欠点を解消したメツセージ単位
での並列性を基本とする並列オブジェクト指向言語に対
するメツセージスケジュール方式を提供することにある
。SUMMARY OF THE INVENTION An object of the present invention is to provide a message scheduling method for a parallel object-oriented language based on parallelism in units of messages, which eliminates the above-mentioned drawbacks.
本発明のメツセージスケジュール方式は、第1の処理実
体が複数のメツセージを他の処理実体に同時に送出する
ことにより、前記メツセージを受取った複数の処理実体
が並列に処理を進め、前記第1の処理実体が値の確定し
ていない変数をメツセージ内に持たせることにより、前
記第1の処理実体が前記メツセージによる処理依頼結果
を待つ並列オブジェクト指向言語の実行方式において、
スケジュールのための仮想的な時刻を管理する時刻管理
部と、この時刻管理部の指示する時刻に従って同時に実
行する複数のメツセージを一括して管理するメツセージ
格納部と、このメツセージ格納部から取り出したメツセ
ージを実行するのに他の変数が確定するのを待つ必要が
あるかどうか及び前記変数が確定しているかどうかを判
定する実行可能性判定部と、メツセージを実行できない
場合に前記メツセージを再度前記メツセージ格納部に移
行させるメツセージ再格納制御部と、メツセージを実行
できる場合にメツセージを送りつけるメツセージ実行管
理部とを有することにより構成される。In the message scheduling method of the present invention, a first processing entity simultaneously sends a plurality of messages to other processing entities, so that the plurality of processing entities that have received the messages proceed with processing in parallel, and the first processing entity sends a plurality of messages to other processing entities simultaneously. In an execution method of a parallel object-oriented language, the first processing entity waits for the result of a processing request made by the message by causing the entity to have a variable whose value is not determined in the message,
A time management section that manages virtual time for scheduling, a message storage section that collectively manages multiple messages to be executed simultaneously according to the time specified by this time management section, and messages retrieved from this message storage section. an executable determination unit that determines whether it is necessary to wait for other variables to be determined in order to execute the message and whether or not the variable is determined; It is configured by having a message restorage control section that causes the message to be transferred to the storage section, and a message execution management section that sends the message when the message can be executed.
時刻管理部が指定する時刻Tをメツセージ格納部に与え
て、時刻Tに対応するエントリに格納されているメツセ
ージ群を取り出す。このメツセージ群に属するメツセー
ジは同時に実行されるべきものであり、このメツセージ
群から順次メツセージを取出して、実行可能性判定部に
引渡す。実行可能性判定部は受取ったメツセージが変数
を含むかどうか、変数を含むならば、値が確定していな
いとこのメツセージを実行できないかどうかを判定する
。メツセージが変数を含みかつ値が確定していないと実
行できない場合にはメツセージ再格納管理部に引渡し、
メツセージ再格納管理部はこのメツセージをメツセージ
格納部の時刻T+1に対応するエントリに追加格納する
。一方、このメツセージを実行できる場合にはメツセー
ジ実行管理部に引渡しメツセージを実行させる。通常、
メツセージを実行することにより、さらにメツセージを
生成し、メツセージ格納部の時刻T+1に対応するエン
トリに追加格納する。時刻管理部は時刻を更新し処理を
実行する。The time T specified by the time management section is given to the message storage section, and the message group stored in the entry corresponding to the time T is retrieved. Messages belonging to this message group are to be executed at the same time, and messages are sequentially extracted from this message group and handed over to the execution possibility determination section. The executable determination unit determines whether the received message includes a variable, and if so, determines whether the message cannot be executed unless the value is determined. If the message cannot be executed unless it contains a variable and the value has been determined, it is passed to the message restorage management department,
The message restorage management section additionally stores this message in the entry corresponding to time T+1 in the message storage section. On the other hand, if this message can be executed, the message execution management section is handed over and the message is executed. usually,
By executing the message, another message is generated and additionally stored in the entry corresponding to time T+1 in the message storage section. The time management unit updates the time and executes processing.
次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.
第1図は本発明の一実施例を示す構成図、第2図は第1
図における時刻管理部1とメツセージ格納部2との一実
施例を示す構成図である。第2図において、時刻管理部
1は現在時刻保持部10と時刻更新処理部11とからな
り、現在時刻保持部10の出力によりメツセージを格納
する環状構造部(以下タイム環という)20のエントリ
を指示する。タイム環20は複数のエントリからなり、
各時刻に対応するエントリ210〜213の各工ントリ
には、同時に実行すべきメツセージがつながっている。FIG. 1 is a configuration diagram showing one embodiment of the present invention, and FIG.
FIG. 2 is a configuration diagram showing an example of a time management section 1 and a message storage section 2 in the figure. In FIG. 2, the time management section 1 consists of a current time holding section 10 and a time update processing section 11, and uses the output of the current time holding section 10 to create entries in a circular structure section (hereinafter referred to as time ring) 20 that stores messages. Instruct. The time ring 20 consists of multiple entries,
Messages to be executed simultaneously are connected to each of the entries 210 to 213 corresponding to each time.
第3図は各メツセージの形式図で、処理内容、本メツセ
ージの受け手であるオブジェクト、さらにゼロ個以上の
変数欄によって構成されている。FIG. 3 is a format diagram of each message, which is composed of processing contents, an object that is the recipient of this message, and zero or more variable fields.
変数欄は第4図に示すように、格納される変数が確定し
ているときに限り変数欄を含むメツセージを実行するこ
とができることを示す待ちモードフラッグと、変数とか
ら構成される。As shown in FIG. 4, the variable field is comprised of variables and a wait mode flag indicating that a message including the variable field can be executed only when the variables to be stored are determined.
第5図は本発明の処理手順を示すフローチャートである
。以下、第5図のフローチャートを参照して本実施例を
説明する。時刻更新処理部11.により現在時刻保持部
10の現在時刻が時刻Tに更新される(ステップ101
)。時刻Tが示すタイム環20のエントリ211に格納
されているメツセージ群があるかどうかの判定を行い、
無い場合はステップ101に分岐する。実行可能性判定
部3は処理すべきメツセージ群がある場合はこのメツセ
ージ群を取出しくステップ102>、すべてのメツセー
ジに対して以下の処理を行なう。FIG. 5 is a flowchart showing the processing procedure of the present invention. The present embodiment will be described below with reference to the flowchart shown in FIG. Time update processing unit 11. The current time in the current time holding unit 10 is updated to time T (step 101).
). Determine whether there is a message group stored in the entry 211 of the time ring 20 indicated by the time T,
If there is none, the process branches to step 101. If there is a message group to be processed, the feasibility determining section 3 extracts the message group (step 102) and performs the following processing on all messages.
すなわち、メツセージ群からメツセージを一つ取出しく
ステップ103,104)、待ちモードの変数があるか
どうかを検査する(ステップ105)。これは第3図に
示したメツセージ形式の変数欄をみればわかる。待ちモ
ードの変数がある場合には、第4図の待ちモードフラッ
グ欄をみて値が確定しているかどうかを検査する(ステ
ップ106)。待ちモードでありかつ確定していない場
合は、メツセージで再格納制御部4にこのメツセージが
渡され、現在時刻を一単位進めた時刻T−1−1に対応
するタイム環20のエンl〜す212の最後尾にこのメ
ツセージを追加する(ステップ107)。一方、待ちモ
ードの変数を含まないか、あるいは待ちモードの変数で
確定している場合には、このメツセージをメツセージ実
行管理部5に引渡す。メツセージ管理部5は、キューの
形式で受取ったメツセージを貯えていく(ステップ10
8)。ステップ102で取り出したすべてのメツセージ
に対して、以上の処理を行ないステップ103でメツセ
ージがなくなると、ステップ108でキューに貯えたメ
ツセージを実行する(ステップ109)。That is, one message is extracted from the message group (steps 103, 104), and a check is made to see if there is a waiting mode variable (step 105). This can be seen by looking at the message format variable column shown in Figure 3. If there is a wait mode variable, the wait mode flag column in FIG. 4 is checked to see if the value is fixed (step 106). If it is in the waiting mode and has not been confirmed, this message is passed to the restorage control unit 4, and the entries 1 to 1 of the time ring 20 corresponding to time T-1-1, which is one unit ahead of the current time, are sent to the restorage control unit 4. This message is added to the end of 212 (step 107). On the other hand, if the message does not include the wait mode variable or is fixed as the wait mode variable, the message is passed to the message execution management section 5. The message management unit 5 stores the received messages in the form of a queue (step 10).
8). The above processing is performed on all the messages retrieved in step 102, and when there are no more messages in step 103, the messages stored in the queue in step 108 are executed (step 109).
以上説明したように本発明によれば、メツセージ単位で
の並列性を基本とする並列オブジェクト指向言語に対す
るメツセージスケジュール方式を提供することができる
。As described above, according to the present invention, it is possible to provide a message scheduling method for a parallel object-oriented language based on parallelism in units of messages.
213・・・各時刻に対応するエントリ。213...Entry corresponding to each time.
Claims (1)
時に送出することにより、前記メッセージを受取った複
数の処理実体が並列に処理を進め、前記第1の処理実体
が値の確定していない変数をメッセージ内に持たせるこ
とにより、前記第1の処理実体が前記メッセージによる
処理依頼結果を待つ並列オブジェクト指向言語の実行方
式において、スケジュールのための仮想的な時刻を管理
する時刻管理部と、この時刻管理部の指示する時刻に従
って同時に実行する複数のメッセージを一括して管理す
るメッセージ格納部と、このメッセージ格納部から取り
出したメッセージを実行するのに他の変数が確定するの
を待つ必要があるかどうか及び前記変数が確定している
かどうかを判定する実行可能性判定部と、メッセージを
実行できない場合に前記メッセージを再度前記メッセー
ジ格納部に移行させるメッセージ再格納制御部と、メッ
セージを実行できる場合にメッセージの受け手にメッセ
ージを送りつけるメッセージ実行管理部とを有すること
を特徴とするメッセージスケジュール方式。When the first processing entity simultaneously sends multiple messages to other processing entities, the multiple processing entities that received the messages proceed with processing in parallel, and the first processing entity has an undetermined value. a time management unit that manages virtual time for scheduling in an execution method of a parallel object-oriented language in which the first processing entity waits for a processing request result according to the message by including a variable in the message; There is a message storage section that collectively manages multiple messages to be executed simultaneously according to the time specified by this time management section, and a message storage section that requires waiting for other variables to be determined before executing a message retrieved from this message storage section. an executable determination unit that determines whether the message exists and whether the variable is fixed; a message restorage control unit that moves the message to the message storage unit again if the message cannot be executed; 1. A message scheduling method comprising: a message execution management unit that sends a message to a message recipient when the message is received.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63157287A JPH025134A (en) | 1988-06-24 | 1988-06-24 | Message schedule system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63157287A JPH025134A (en) | 1988-06-24 | 1988-06-24 | Message schedule system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH025134A true JPH025134A (en) | 1990-01-10 |
Family
ID=15646360
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63157287A Pending JPH025134A (en) | 1988-06-24 | 1988-06-24 | Message schedule system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH025134A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007149081A (en) * | 2005-11-25 | 2007-06-14 | Internatl Business Mach Corp <Ibm> | System for storing message order |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5813155Y2 (en) * | 1978-06-23 | 1983-03-14 | 昭和電線電纜株式会社 | Vibration isolator |
| JPS6241874A (en) * | 1985-08-19 | 1987-02-23 | 株式会社ブリヂストン | Multistage earthquake damping support apparatus |
-
1988
- 1988-06-24 JP JP63157287A patent/JPH025134A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5813155Y2 (en) * | 1978-06-23 | 1983-03-14 | 昭和電線電纜株式会社 | Vibration isolator |
| JPS6241874A (en) * | 1985-08-19 | 1987-02-23 | 株式会社ブリヂストン | Multistage earthquake damping support apparatus |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007149081A (en) * | 2005-11-25 | 2007-06-14 | Internatl Business Mach Corp <Ibm> | System for storing message order |
| US8364743B2 (en) | 2005-11-25 | 2013-01-29 | International Business Machines Corporation | System for preserving message order |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2709705B2 (en) | Program management method in multi-computer system | |
| JP3462064B2 (en) | Distributed simulation system | |
| JPH025135A (en) | Message schedule system | |
| US5754856A (en) | MVS/ESA message transport system using the XCF coupling facility | |
| JP2000148699A (en) | Network management system | |
| JPH03257633A (en) | Process control method | |
| JPS62126457A (en) | Distributed data processing system | |
| JPH09245003A (en) | Parallel distributed processing system and method | |
| JPH0398123A (en) | Instruction series processor with time stamp | |
| JP3982077B2 (en) | Multiprocessor system | |
| JP2749058B2 (en) | Data-driven control method | |
| JP2908202B2 (en) | Synchronizer and control information generator in logic simulator | |
| JPH0240723A (en) | Message transmission/reception control system | |
| JP2536081B2 (en) | Multiple scheduling control system | |
| JPH02118841A (en) | Input queue control system | |
| JP2512540B2 (en) | Processing routine search speedup method | |
| JPS63261431A (en) | Merge process control system | |
| JPH10269302A (en) | Workflow control system and workflow control method | |
| JPH0458334A (en) | Message output selection system | |
| JPH04113442A (en) | Inter-processor communication system | |
| JPH01300741A (en) | System for storing history of transmission data route | |
| JPH0262634A (en) | Capability activating system | |
| Gaspar | DELPHI Collaboration@, DELPHI 92-12 PHYS 119 | |
| Brookes et al. | Lattice and ring array topologies using transputers | |
| JPS61175747A (en) | Data transfer control system |