JPH03189828A - Coordination operation system - Google Patents

Coordination operation system

Info

Publication number
JPH03189828A
JPH03189828A JP1330624A JP33062489A JPH03189828A JP H03189828 A JPH03189828 A JP H03189828A JP 1330624 A JP1330624 A JP 1330624A JP 33062489 A JP33062489 A JP 33062489A JP H03189828 A JPH03189828 A JP H03189828A
Authority
JP
Japan
Prior art keywords
context
operating
operating system
switcher
box
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
JP1330624A
Other languages
Japanese (ja)
Inventor
Toshihiko Sone
俊彦 曽根
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP1330624A priority Critical patent/JPH03189828A/en
Publication of JPH03189828A publication Critical patent/JPH03189828A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To uniformly control the operation rate of each operating system (OS) by actuating a context switcher by a system timer processing actuated at every prescribed time, and switching the OS, while managing and changing operating state information and scheduling information of the OS by the context switcher. CONSTITUTION:A context box 12 defines by its number so as to correspond to each OS (operating system), and has a queue pointer 13 and a context area 14 for storing context information. As for this queue structure, the context box 12 indicated by a context ready queue pointer shows the context box of the OS which is operating at present, and the context boxes 12 are connected, respectively one after another as per the sequence of waiting for the operation of the OS. In such a state, a context switcher actuated by a system timer processing used in common by each OS switches the OS, therefore, each OS can be switched at every prescribed time. In such a manner, the operation rate of each OS can be equalized.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、複数のオペレーティングシステムを並行して
稼働させるための電子計算機の協調動作システムに関す
る。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a computer cooperative operation system for running a plurality of operating systems in parallel.

従来の技術 従来、この種のオペレーティングシステム(以下、O8
と省略する。)の協調動作システムは、複数のO8の中
の一つがメインO8となり、他のO8をタスク(または
プロセス)の位置付けで管理するものであり、それぞれ
のO3はメインO3のスケジューラにより動作が制御さ
れている。
Conventional technology Conventionally, this type of operating system (hereinafter referred to as O8
It is abbreviated as ), one of the multiple O8s becomes the main O8 and manages the other O8s by positioning tasks (or processes), and the operation of each O3 is controlled by the scheduler of the main O3. ing.

発明が解決しようとする課題 しかしながら、上記従来のO8協調動作システムでは、
各O8の稼働率がメインO8のスケジューラに依存して
しまい、各O3の稼働率を均一にすることが困難である
場合が発生する。したがって、各O3の稼働率を均一に
するためには、各O8を均一にスケジューリングするス
ケジューラを持つO3をメインO8にしなければならな
いという問題があった。さらに、メインO3に管理され
ているO8に発生するアイドル時間を無駄時間にしてし
まい、全体の稼働率を低下させてしまう問題もあった。
Problems to be Solved by the Invention However, in the above-mentioned conventional O8 cooperative operation system,
Occasionally, the operating rate of each O8 depends on the scheduler of the main O8, and it is difficult to make the operating rates of each O3 uniform. Therefore, in order to make the operating rates of each O3 uniform, there is a problem in that an O3 that has a scheduler that uniformly schedules each O8 must be used as the main O8. Furthermore, there is also the problem that the idle time generated in the O8 managed by the main O3 becomes wasted time, reducing the overall operating rate.

本発明は、このような従来の問題を解決するものであり
、O8の協調動作において、各O8の稼働率を均一にし
、各O8のアイドル時間を有効活用できる優れた協調動
作システムを提供することを目的とする。
The present invention solves such conventional problems, and provides an excellent cooperative operation system that can equalize the operating rate of each O8 and effectively utilize the idle time of each O8 in cooperative operation of O8. With the goal.

課題を解決するための手段 本発明は、上記目的を達成するために、それぞれのO3
のコンテキスト情報を格納するためのコンテキストボッ
クスとO8の待ちとレディ状態およびレディ状態の中で
の実行順序を決定するためのスケジューリング情報を示
すためのコンテキストボックス待ちキューおよびコンテ
キストボックスレディキューとコンテキストボックスレ
ディキューで管理されているレディ状態のO8の中で現
稼働O3の次の実行順序のO8に切り換えるための第1
のコンテキストスイッチャ−と、現稼働のO8を待ち状
態にするためにフンテキストボックスレディキューから
コンテキストボックス待ちキューに双ぎ変えて、レディ
状態の中の次の実行順序のO8に制御を切り換える第2
のコンテキストスイッチャ−と、第1および第2のコン
テキストスイッチャ−をそれぞれシステムタイマーと各
O3配下のタスクから実行するために起動する2種の内
部割り込みハンドラと、各O8のアイドル時に走行して
第2のコンテキストスイッチャ−を実行する内部割り込
みハンドラを起動する各O3管理下のアイドルタスクと
、第1のコンテキストスイッチャ−を一定時間毎に起動
するための各O8で共用化させたシステムタイマー処理
とを備えたものである。
Means for Solving the Problems In order to achieve the above objects, the present invention provides each O3
Context box waiting queue and context box ready queue and context box ready queue for indicating the O8's wait and ready state and scheduling information for determining the order of execution within the ready state. The first one for switching to the next O8 in the execution order of the currently operating O3 among the O8s in the ready state that are managed in the queue.
and a second context switcher that switches the currently operating O8 from the text box ready queue to the context box wait queue to put it in the waiting state, and switches control to the next O8 in the execution order in the ready state.
a context switcher, two types of internal interrupt handlers that are activated to execute the first and second context switchers from the system timer and tasks under each O3, respectively, and a second interrupt handler that runs when each O8 is idle. An idle task under the control of each O3 that starts an internal interrupt handler that executes the first context switcher, and a system timer process that is shared by each O8 to start the first context switcher at regular intervals. It is something that

作用 本発明は、上記のような構成により次のような作用を有
する。すなわち、一定時間毎に起動されるシステムタイ
マー処理により第1のコンテキストスイッチャ−を起動
し、この第1のコンテキストスイッチャ−がコンテキス
トボックスレディキューで示すO3の稼働状態情報とス
ケジューリング情報を管理、変更しながらO8の切り換
えを実現することにより、各O8の稼働率を均一に制御
でき、また稼働O3のアイドル時間が発生するとアイド
ルタスクが動作し、同タスクが第1のコンテキストスイ
ッチャ−を起動する内部割り込みハンドラを起動するこ
とにより、O8のスケジューリング、切り換えが発生し
てアイドル時間を有効活用できるという効果を有する。
Effects The present invention has the following effects due to the above structure. That is, the first context switcher is activated by a system timer process that is activated at regular intervals, and this first context switcher manages and changes the operating status information and scheduling information of the O3 indicated by the context box ready queue. However, by realizing O8 switching, the operating rate of each O8 can be controlled uniformly, and when an idle time occurs in the active O3, an idle task is activated, and this task generates an internal interrupt that starts the first context switcher. By activating the handler, O8 scheduling and switching occur, which has the effect that idle time can be used effectively.

実施例 第1図から第7図は本発明の一実施例の構成を示すもの
である。第1図は各O8のコンテキスト情報を格納する
コンテキストボックスとコンテキストボックスレディキ
ューの構造を示す。11はコンテキストレディキューポ
インターであり、12はコンテキストボックスを示す。
Embodiment FIGS. 1 to 7 show the structure of an embodiment of the present invention. FIG. 1 shows the structure of a context box and a context box ready queue that store context information of each O8. 11 is a context ready queue pointer, and 12 indicates a context box.

コンテキストボックス12は、各O8に対応するように
その数だけ定義し、キューポインター13とコンテキス
ト情報を格納するためのコンテキストエリア14を持つ
。このキュー構造は、コンテキストレディキューポイン
ター11が指すコンテキストボックス12か現在稼働中
のO8のコンテキストボックスを示し、次々にO8の稼
働待ちの順番通りにそれぞれコンテキストボックス12
を繋いでいる。
The number of context boxes 12 is defined to correspond to each O8, and has a cue pointer 13 and a context area 14 for storing context information. This queue structure indicates the context box 12 pointed to by the context ready queue pointer 11 or the context box of the O8 that is currently in operation, and the context boxes 12 and 12 of the O8 that are currently in operation are sequentially ordered in the order in which the O8s are waiting for operation.
are connected.

第2図はコンテキストボックス待ちキューの構造を示す
。15はコンテキスト待ちキューポインターである。こ
のキュー構造は、稼働待ち状態のO3を管理するために
必要であり、特にキューイングの順番に意味を持たせな
くてもよい。
FIG. 2 shows the structure of the context box wait queue. 15 is a context wait queue pointer. This queue structure is necessary to manage the O3s that are waiting for operation, and the queuing order does not need to have any particular meaning.

第3図は第1のコンテキストスイッチャ−の処理手順を
示し、第1図のコンテキストレディキュー11とコンテ
キストボックス12を操作してO8の切り換えを実現す
る。第3図において、ステップ31は、第1図のコンテ
キストレディキューポインター11が指す現稼働O3の
コンテキストボックス12に該当O3のコンテキストを
格納する処理である。ステップ32は、稼働O8のスケ
ジューリング処理であり、コンテキストレディキューポ
インター11が指す先頭のコンテキストボックス12を
デキューし、キューの最後尾に繋ぐことにより稼働待ち
の先頭のコンテキストボックス12がコンテキストレデ
ィキューポインター11に指されることになる。したが
ってこのステップ32を繰り返すことにより、各O8が
スケジューリングされることになる。次にステップ33
は、コンテキストレディキューポインター11が指すコ
ンテキストボックス12に対応するO8固有のスケジュ
ーラを実行する処理である。ステップ34は、稼働O3
のコンテキストを回復する処理である。
FIG. 3 shows the processing procedure of the first context switcher, in which the context ready queue 11 and context box 12 of FIG. 1 are operated to realize switching of O8. In FIG. 3, step 31 is a process of storing the context of the corresponding O3 in the context box 12 of the currently operating O3 pointed to by the context ready queue pointer 11 of FIG. Step 32 is a scheduling process of the operating O8, in which the leading context box 12 pointed to by the context ready queue pointer 11 is dequeued and connected to the end of the queue, so that the leading context box 12 waiting to be activated becomes the context ready queue pointer 11. will be pointed out. Therefore, by repeating this step 32, each O8 will be scheduled. Next step 33
is a process of executing the O8-specific scheduler corresponding to the context box 12 pointed to by the context ready queue pointer 11. Step 34 is the operation O3
This is the process of recovering the context.

第4図は第2のコンテキストスイッチャ−の処理手順を
示す。ステップ41は、第3図のステップ31と同じ現
稼働O8のコンテキストの退避処理である。ステップ4
2は、コンテキストレディキューポインター11が指す
現稼働O8のコンテキストボックス12をデキューし、
第2図のコンテキストボックス待ちキュー15にキュー
イングする処理である。これにより、現稼働O8が待ち
状態になり、コンテキストレディキューポインター11
で指されるコンテキストボックスは新たな稼働O8のも
のとなる。ステップ43は、第3図のステップ33と同
じ新たな稼働O8のスケジューラの起動処理である。ス
テップ44は、第3図のステップ34と同じ処理である
FIG. 4 shows the processing procedure of the second context switcher. Step 41 is the same process of saving the context of the currently operating O8 as step 31 in FIG. Step 4
2 dequeues the context box 12 of the currently operating O8 pointed to by the context ready queue pointer 11,
This is a process of queuing to the context box waiting queue 15 in FIG. As a result, the currently operating O8 enters the waiting state, and the context ready queue pointer 11
The context box pointed to by will be that of the new operating O8. Step 43 is the process of starting up the scheduler of the new operating O8, which is the same as step 33 in FIG. Step 44 is the same process as step 34 in FIG.

第5図はシステムタイマー処理を示す。ステップ51は
、各O3固有に定義するシステムタイマー処理を示す。
FIG. 5 shows system timer processing. Step 51 shows system timer processing that is uniquely defined for each O3.

ステップ52は、第3図の第1のコンテキストスイッチ
ャ−の起動処理である。
Step 52 is the activation process of the first context switcher in FIG.

第6図は各アイドルタスクの処理を示す。アイドルタス
クが走行すると、ステップ61で即時に内部割り込みハ
ンドラが起動し、同ハンドラを無限に起動する。
FIG. 6 shows the processing of each idle task. When the idle task runs, an internal interrupt handler is immediately activated in step 61, and the same handler is activated indefinitely.

第7図は第6図のアイドルタスクから起動される内部割
り込みハンドラを示す。この割り込みハンドラは、ステ
ップ71に示すように第2のコンテキストスイッチャ−
を起動する。
FIG. 7 shows an internal interrupt handler activated from the idle task of FIG. This interrupt handler connects the second context switcher as shown in step 71.
Start.

次に上記実施例の動作について説明する。上記実施例に
おいて、第5図のシステムタイマー処理におけるステッ
プ52で第1のコンテキストスイッチャ−を起動すると
、第3図に示すような第1のコンテキストスイッチャ−
の処理が行なわれる。まず、ステップ31で第1図のキ
ュー先頭のコンテキストボックスに対応する現稼働O8
のコンテキスト情報を格納し、次にステップ32でO8
の稼働が均一になるようにスケジューリングし、稼働待
ち先頭のO8のコンテキストボックスをコンテキストボ
ックスレディキューの先頭にし、当該O8を新稼働O8
とする。次にステップ33で当該新稼働O8固有のスケ
ジューラを起動する。最後に、ステップ34で当該新稼
働O8のコンテキストボックスのコンテキストエリアか
らコンテキスト情報を回復することにより制御を当該O
8に移す。
Next, the operation of the above embodiment will be explained. In the above embodiment, when the first context switcher is activated in step 52 in the system timer process of FIG. 5, the first context switcher as shown in FIG.
processing is performed. First, in step 31, the current operating O8 corresponding to the context box at the head of the queue in FIG.
and then in step 32 O8
The context box of the first O8 waiting for operation is placed at the beginning of the context box ready queue, and the O8 becomes the new operating O8.
shall be. Next, in step 33, a scheduler specific to the new operating O8 is activated. Finally, in step 34, control is transferred to the O8 by recovering the context information from the context area of the context box of the O8.
Move to 8.

このように、上記実施例によれば、一定時間に起動され
るシステムタイマーが第1のコンテキストスイッチャ−
を起動することによりO8の切り換えが起こり、各O8
の稼働率を均一にすることができる。さらに、稼働O8
にアイドル時間が発生した時、すなわち稼働O3配下の
アイドルタスクが走行する時、当該タスクは第6図に示
すように内部割り込みハンドラを起動する。この内部割
り込みハンドラでは、第7図に示すように、第2のコン
テキストスイッチャ−に起動をかけ、第4図に示すよう
な第2のコンテキストスイッチャ−の処理を行なわせる
。この一連の処理により稼働O8にアイドル時間が発生
すると、O8をスケジューリングし、切り換えるため、
O3のアイドル時間を有効活用することができる。
In this way, according to the above embodiment, the system timer that is activated at a certain time is activated by the first context switcher.
By starting the O8, switching of O8 occurs, and each O8
It is possible to equalize the operating rate of Furthermore, operating O8
When an idle time occurs, that is, when an idle task under the active O3 runs, the task activates an internal interrupt handler as shown in FIG. This internal interrupt handler activates the second context switcher, as shown in FIG. 7, and causes the second context switcher to perform processing as shown in FIG. 4. When idle time occurs in the operating O8 due to this series of processing, the O8 is scheduled and switched.
The idle time of O3 can be effectively utilized.

発明の効果 本発明は、上記実施例から明らかなように、各O3で共
用化したシステムタイマー処理で起動する第1のコンテ
キストスイッチャ−がO3の切り換えを行なうため、各
O8を一定時間毎に切り替えることができ、各O3の稼
働率を均一にすることができるという効果を有する。ま
た、アイドルタスクが現稼働O8を待ち状態にしてから
第2のコンテキストスイッチャ−を起動することにより
、O8の切り換えを発生させるためのO8のアイドル時
間を有効活用することができるという効果を有する。
Effects of the Invention As is clear from the above embodiment, in the present invention, the first context switcher activated by the system timer processing shared by each O3 switches the O3, and therefore switches each O8 at regular intervals. This has the effect that the operating rate of each O3 can be made uniform. Further, by activating the second context switcher after the idle task places the currently active O8 in a waiting state, it is possible to effectively utilize the idle time of the O8 to cause switching of the O8.

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

第1図は本発明の一実施例におけるO8のコンテキスト
ボックスとコンテキストボックスレディキュー構造を示
す概略ブロック図、第2図はコンテキストボックス待ち
キュー構造を示す概略ブロック図、第3図は第1のコン
テキストスイッチャ−の処理手順を示す70−チャート
、第4図は第2のコンテキストスイッチャ−の処理手順
を示すフローチャート、第5図は各O8で共用化するシ
ステムタイマー処理を示すフローチャート、第6図はア
イドルタスクの処理を示すフローチャート、第7図は内
部割り込みハンドラの処理を示すフローチャートである
。 11・・・コンテキストレディキューポインター12・
・・コンテキストボックス、13・・・キューポインタ
ー 14・・・コンテキストエリア、15・・・コンテ
キスト待ちキューポインター
FIG. 1 is a schematic block diagram showing the context box and context box ready queue structure of O8 in one embodiment of the present invention, FIG. 2 is a schematic block diagram showing the context box waiting queue structure, and FIG. 70-chart showing the processing procedure of the switcher, FIG. 4 is a flowchart showing the processing procedure of the second context switcher, FIG. 5 is a flowchart showing system timer processing shared by each O8, and FIG. 6 is a flowchart showing the processing procedure of the second context switcher. FIG. 7 is a flowchart showing the processing of a task. FIG. 7 is a flowchart showing the processing of an internal interrupt handler. 11...Context ready queue pointer 12.
...Context box, 13...Cue pointer 14...Context area, 15...Context waiting queue pointer

Claims (1)

【特許請求の範囲】[Claims] 複数のオペレーティングシステムのシステムタイマー処
理を共用化し、各オペレーティングシステムのコンテキ
ストボックスの各オペレーティングシステムの待ちとレ
ディの稼働状態とレディ状態のオペレーティングシステ
ムの実行順序によりオペレーティングシステム稼働状態
をスケジュールし管理できるように接続されたキュー構
造を有し、また各オペレーティングシステム管理下に各
オペレーティングシステム配下の走行可能タスクが存在
しなくなった時、すなわちオペレーティングシステムが
アイドル状態になった時に起動されるアイドルタスクを
定義し、レディ状態のオペレーティングシステムの中で
稼働状態を切り換える第1のコンテキストスイッチャー
と、現稼働オペレーティングシステムを待ち状態にし、
レディ状態の次の実行順序のオペレーティングシステム
に切り換える第2のコンテキストスイッチャーとを有し
、上記第1および第2のコンテキストスイッチャーをそ
れぞれ実行する2種の割り込みハンドラを定義し、上記
共用システムタイマー処理から第1のコンテキストスイ
ッチャーを実行する割り込みハンドラを起動することに
より、各オペレーティングシステムの稼働率を均一化し
、また各オペレーティングシステムのアイドルタスクか
ら第2のコンテキストスイッチャーを実行する割り込み
ハンドラを起動することによりオペレーティングシステ
ムの切り換えを行なうようにした協調動作システム。
System timer processing for multiple operating systems can be shared, and operating system operating states can be scheduled and managed using the wait and ready operating states of each operating system in the context box of each operating system, and the execution order of operating systems in the ready state. It has a connected queue structure, and defines an idle task that is started when there is no runnable task under each operating system under the management of each operating system, that is, when the operating system becomes idle, a first context switcher for switching an operating state in an operating system in a ready state; and placing the currently operating operating system in a waiting state;
and a second context switcher that switches to the next operating system in the execution order in the ready state, defines two types of interrupt handlers that execute the first and second context switchers, respectively, and executes the first and second context switchers, respectively. By activating an interrupt handler that executes the first context switcher, the utilization rate of each operating system is equalized, and by activating an interrupt handler that executes the second context switcher from an idle task of each operating system, the operating system A cooperative operation system that switches systems.
JP1330624A 1989-12-20 1989-12-20 Coordination operation system Pending JPH03189828A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1330624A JPH03189828A (en) 1989-12-20 1989-12-20 Coordination operation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1330624A JPH03189828A (en) 1989-12-20 1989-12-20 Coordination operation system

Publications (1)

Publication Number Publication Date
JPH03189828A true JPH03189828A (en) 1991-08-19

Family

ID=18234745

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1330624A Pending JPH03189828A (en) 1989-12-20 1989-12-20 Coordination operation system

Country Status (1)

Country Link
JP (1) JPH03189828A (en)

Similar Documents

Publication Publication Date Title
US5390329A (en) Responding to service requests using minimal system-side context in a multiprocessor environment
US7493436B2 (en) Interrupt handling using simultaneous multi-threading
JP3776449B2 (en) Multitasking low power controller
JP2561801B2 (en) Method and system for managing process scheduling
CN107506234A (en) A kind of dispatching method of virtual machine and device
US20060146864A1 (en) Flexible use of compute allocation in a multi-threaded compute engines
EP0052713B1 (en) A process management system for scheduling work requests in a data processing system
JP2904483B2 (en) Scheduling a periodic process
JPH03189828A (en) Coordination operation system
JP2000322278A (en) Process execution control method
JPH0644234B2 (en) Task management device
JP3601677B2 (en) Task processing system
JPH01154237A (en) Time-sharing task execution device
CN119829234B (en) Serial intelligent scheduling method under environment of multitasking producer
JPH0324632A (en) Coordination operation method for operating system
JP2822582B2 (en) Input/Output Processing Control Method
JPH0324631A (en) Coordination operation method for operating system
JPS60181934A (en) Task priority degree controlling system
JPS59146387A (en) Stack control system of multiprocessing
JPS6091452A (en) Task scheduling system of data processor
JP2000132409A (en) Stack sharing system for task having no wait state
CN121967225A (en) vHost controller management methods, devices, equipment, and readable storage media
JP2534797B2 (en) Curing control system
WO2026066704A1 (en) Processor scheduling for physical machine
JPH02113363A (en) Time slice controlling system for multiprocessor system