JPH07219785A - Device and method for controlling operating system - Google Patents

Device and method for controlling operating system

Info

Publication number
JPH07219785A
JPH07219785A JP964994A JP964994A JPH07219785A JP H07219785 A JPH07219785 A JP H07219785A JP 964994 A JP964994 A JP 964994A JP 964994 A JP964994 A JP 964994A JP H07219785 A JPH07219785 A JP H07219785A
Authority
JP
Japan
Prior art keywords
operating system
management
area
management table
table information
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.)
Granted
Application number
JP964994A
Other languages
Japanese (ja)
Other versions
JP2885631B2 (en
Inventor
Takashi Yokomizo
隆司 横溝
Hirotaka Nokubi
寛高 野首
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.)
NIPPON DENKI MICOM TECH KK
NIPPON DENKI MICOM TECHNOL KK
NEC Corp
Original Assignee
NIPPON DENKI MICOM TECH KK
NIPPON DENKI MICOM TECHNOL KK
NEC Corp
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 NIPPON DENKI MICOM TECH KK, NIPPON DENKI MICOM TECHNOL KK, NEC Corp filed Critical NIPPON DENKI MICOM TECH KK
Priority to JP6009649A priority Critical patent/JP2885631B2/en
Publication of JPH07219785A publication Critical patent/JPH07219785A/en
Application granted granted Critical
Publication of JP2885631B2 publication Critical patent/JP2885631B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To reduce the program size and the corresponding storage area of plural OSs of hierarchical structure. CONSTITUTION:A memory 4 is provided with a control table area 41 for storing control table information which is common to the OS specifications A2 and B3 of the high and low orders of hierarchical structure, control table areas 43 and 44 for storing control table information respectively peculiar to the OS specifications A2 and B3, and a pointer area 42 holding the storage address of control table information to the control table areas 43 and 44. The OS specification A2 is provided with a common information reference means 21 referring to the control table area 41 and a table information reference means 22 referring to the control table area 43. The OS specification B3 is provided with a table information reference means 31 referring to control table information in the control table area 44.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はオペレーティングシステ
ム(OS)管理装置に関し、特に機器組込用などの階層
構造を成す複数のOS管理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an operating system (OS) management device, and more particularly to a plurality of OS management devices having a hierarchical structure for incorporating devices.

【0002】[0002]

【従来の技術】機器組込用のOSは、様々な規模の機器
に適用されるため、これら組込対象機器の規模に応じた
多様なレベルの機能仕様が要求されるとともに、複数の
異なる機能に対応することもしばしば要求される。一
方、この種の機器ではメモリの容量が限られているの
で、OS対応プログラム格納用のメモリ領域の所要量は
できるだけ少なく抑える必要がある。
2. Description of the Related Art Since an OS for embedding a device is applied to devices of various scales, various levels of functional specifications are required according to the scale of the devices to be embedded, and a plurality of different functions are required. It is often required to deal with. On the other hand, in this type of device, since the capacity of the memory is limited, the required amount of the memory area for storing the OS compatible program needs to be suppressed as small as possible.

【0003】従来、複数の異なる機能対応のOSは、相
互に独立した複数の異なるOSとして設定されており、
それら複数例えば2つの機能を必要とする場合には、上
記2つの機能の各々に対応の2つのOSを準備するか、
あるいは、上記2つの機能を包含する仕様のOSを準備
する必要があった。
Conventionally, a plurality of OSs corresponding to different functions are set as a plurality of different OSs independent of each other.
When a plurality of them, for example, two functions are required, prepare two OSs corresponding to each of the above two functions, or
Alternatively, it is necessary to prepare an OS having a specification including the above two functions.

【0004】この種のOSの一例として、日本電気株式
会社が1990年6月に発行したRX116リアルタイ
ム・オペーレーティングシステム・ユーザズマニュアル
第3版(文献1)記載のリアルタイムOSは、システム
タイマを保有し、優先度によるタスクスケジューリング
機能を持ち、管理対象の優先度が0〜31の32レベル
であるOS仕様Aと、OS仕様Aの下位にありOS仕様
A上で管理対象の優先度が0〜255の256レベルで
あり例外発生時およびタスク以上終了時にの処理プログ
ラムの定義が可能なOS仕様Bとの階層構造の2つのO
Sを実装している。
As an example of this kind of OS, the real-time OS described in RX116 Real-Time Operating System User's Manual Third Edition (Reference 1) issued by NEC Corporation in June 1990 has a system timer. However, the OS specification A has a task scheduling function according to the priority, and the priority of the management target is 32 levels with the priority of 0 to 31, and the priority of the management target on the OS specification A that is lower than the OS specification A is 0. There are 256 levels of 255, and two O's in a hierarchical structure with the OS specification B in which a processing program can be defined when an exception occurs and when a task or more ends
S is implemented.

【0005】文献1記載の従来のOS管理装置をブロッ
クで示す図6を参照すると、この従来のOS管理装置
は、管理対象のタスク1と、上述のOS仕様A5および
OS仕様B6と、OS仕様A5およびOS仕様B6の各
々のシステムの管理テーブル71,72を格納したメモ
リ7とを備える。
Referring to FIG. 6, which shows a block diagram of a conventional OS management device described in Document 1, this conventional OS management device includes task 1 to be managed, the above-mentioned OS specifications A5 and OS specifications B6, and OS specifications. A5 and a memory 7 storing management tables 71 and 72 of respective systems of the OS specification B6.

【0006】OS仕様A5およびOS仕様B6はそれぞ
れ管理テーブル情報を参照するための管理テーブル参照
手段51,52を備える。
The OS specification A5 and the OS specification B6 respectively include management table reference means 51 and 52 for referring to the management table information.

【0007】管理テーブル71,72の内容をそれぞれ
示す図7(A),(B)を参照すると、管理テーブル7
1はOS仕様Aにおけるシステムタイム領域711と、
OS仕様Aの現在実行中のタスクのIDを示す現走行タ
スク領域712と、OS仕様Aにおける32レベル分の
タスク優先度検索マップ431と、これら32レベル分
のタスクレディキュー432とを含み、管理テーブル7
2はOS仕様Bにおけるシステムタイム領域721と、
OS仕様Bの現走行タスク領域722と、OS仕様Bの
実行時における256レベル分のタスク優先度検索マッ
プ441と、これら256レベル分のタスクレディキュ
ー442と、例外処理および終了処理対応の例外・終了
ハンドラ登録領域443とを含む。
Referring to FIGS. 7A and 7B showing the contents of the management tables 71 and 72, respectively, the management table 7
1 is a system time area 711 in OS specification A,
The current running task area 712 indicating the ID of the currently executing task of the OS specification A, the task priority search map 431 for 32 levels in the OS specification A, and the task ready queue 432 for these 32 levels are managed. Table 7
2 is a system time area 721 in OS specification B,
The current running task area 722 of the OS specification B, the task priority search map 441 for 256 levels at the time of execution of the OS specification B, the task ready queue 442 for these 256 levels, and the exception handling corresponding to exception processing and termination processing A termination handler registration area 443 is included.

【0008】次に、図6,図7を参照して、従来のオペ
レーティングシステム管理装置の動作について説明す
る。まず、OS仕様Aで動作する場合には、管理テーブ
ル参照手段51により管理テーブル71を操作する。シ
ステムタイム711はOSにタイマ割込が入力される毎
に次のようにカウントアップされる。タイマユニット
(図示省略)から、OSに対してタイマ割込が入力され
ると、このタイマ割込に対応した割込ハンドラすなわち
クロックハンドラ(図示省略)が起動される。上記クロ
ックハンドラは、システムタイム711の値をカウント
アップする。現走行中タスク712はこの割込処理対応
の実行中のタスクのIDを表示する。
Next, the operation of the conventional operating system management apparatus will be described with reference to FIGS. First, when operating under the OS specification A, the management table 71 is operated by the management table reference means 51. The system time 711 is incremented as follows each time a timer interrupt is input to the OS. When a timer interrupt is input to the OS from a timer unit (not shown), an interrupt handler corresponding to the timer interrupt, that is, a clock handler (not shown) is started. The clock handler counts up the value of the system time 711. The currently running task 712 displays the ID of the task under execution corresponding to this interrupt process.

【0009】次に、OS仕様Bで動作する場合には、管
理テーブル参照手段52により管理テーブル72を操作
する。上述のOS仕様Aの場合と同様にシステムタイム
領域721はOSにタイマ割込が入力される毎にカウン
トアップされる。現走行中タスク領域722はこの割込
処理対応の実行中のタスクのIDを表示する。
Next, when operating under the OS specification B, the management table reference means 52 operates the management table 72. As in the case of OS specification A described above, the system time area 721 is incremented each time a timer interrupt is input to the OS. The currently running task area 722 displays the ID of the task being executed corresponding to the interrupt process.

【0010】このように、2つの処理OS仕様A,Bに
対応のOSに対応して、動作に必要な管理テーブルも各
々個別に実装されており、これら個別の管理テーブルの
操作用の処理モジュールすわわち管理テーブル参照手段
も個々のOS毎に実装されていた。
As described above, the management tables necessary for the operation are individually mounted corresponding to the OSs corresponding to the two processing OS specifications A and B, and the processing modules for operating the individual management tables are provided. That is, the management table reference means is also implemented for each OS.

【0011】このため、システムタイムや現走行中タス
クのような複数のOS間において共通であるべき情報も
全く別物として扱われ、したがって、管理テーブル内の
同種の情報やそれらに対する処理モジュールがOS毎に
設定されるという効率の悪い構成となっていた。
Therefore, information that should be common to a plurality of OSs, such as system time and currently running task, is treated as completely different objects. Therefore, information of the same type in the management table and processing modules for them are handled for each OS. The configuration was inefficient because it was set to.

【0012】[0012]

【発明が解決しようとする課題】上述した従来のオペレ
ーティングシステム管理装置は、複数の機能を実現する
ためには複数のOSを必要とし、これら複数のOS毎に
対応のOS管理テーブルとそれらOS管理テーブルの操
作用の処理手段とを個別に備えていたので、OS対応プ
ログラム格納用のメモリ領域の所要量が増大するという
欠点があった。また、それら複数のOSの保有および管
理するための手間や費用も大きくなるという欠点があっ
た。
The above-mentioned conventional operating system management device requires a plurality of OSs to realize a plurality of functions, and an OS management table corresponding to each of these OSs and the OS managements thereof. Since the processing means for operating the table is separately provided, there is a drawback that the required amount of the memory area for storing the OS compatible program increases. In addition, there is a drawback that the labor and cost for owning and managing the plurality of OSs increase.

【0013】[0013]

【課題を解決するための手段】本発明のオペレーティン
グシステム管理装置は、上位の第1のオペレーティング
システムとこの第1のオペレーティングシステムの下位
の第2のオペレーティングシステムとから成る階層化構
造のオペレーティングシステムを管理するための情報を
テーブル状に生成した管理テーブル情報を格納する記憶
手段を備えるオペレーティングシステム管理装置におい
て、前記記憶手段が前記第1および第2のオペレーティ
ングシステム対応の第1および第2のタスクに共通の第
1の管理テーブル情報を格納する第1のテーブル領域
と、前記第1および第2のタスクの各々に固有の第2お
よび第3の管理テーブル情報をそれぞれ格納する第2お
よび第3のテーブル領域と、前記第2および第3のテー
ブル領域への前記第2および第3の管理テーブル情報の
格納アドレスを保持するアドレス格納手段とを備え、前
記第1のオペレーティングシステムが前記第1のテーブ
ル領域の前記第1の管理テーブル情報を参照する第1の
テーブル情報参照手段と、前記第2のテーブル領域の前
記第2の管理テーブル情報を参照する第2のテーブル情
報参照手段とを備え、前記第2のオペレーティングシス
テムが前記第3のテーブル領域の前記第3の管理テーブ
ル情報を参照する第3のテーブル情報参照手段を備えて
構成されている。
An operating system management apparatus of the present invention comprises an operating system having a hierarchical structure composed of a first upper operating system and a second operating system lower than the first operating system. In an operating system management device including a storage unit that stores management table information in which management information is generated in the form of a table, the storage unit serves as first and second tasks corresponding to the first and second operating systems. A first table area for storing common first management table information, and second and third storage areas for respectively storing second and third management table information unique to each of the first and second tasks. A table area and the second and third table areas And an address storage unit that holds a storage address of the third management table information, and the first operating system refers to the first management table information in the first table area. Means and a second table information reference means for referring to the second management table information of the second table area, wherein the second operating system controls the third management of the third table area. The third table information reference means for referring to the table information is provided.

【0014】本発明のオペレーティングシステム管理方
法は、上位の第1のオペレーティングシステムとこの第
1のオペレーティングシステムの下位の第2のオペレー
ティングシステムとから成る階層化構造のオペレーティ
ングシステムを管理するための前記第1および第2のオ
ペレーティングシステム対応の第1および第2のタスク
に共通の第1の管理テーブル情報を格納する第1のテー
ブル領域と前記第1および第2のタスクの各々に固有の
第2および第3の管理テーブル情報をそれぞれ格納する
第2および第3のテーブル領域と前記第2および第3の
テーブル領域への前記第2および第3の管理テーブル情
報の格納アドレスを保持するアドレス格納手段とを有す
る記憶手段を備え、前記第1のオペレーティングシステ
ムが前記第1のテーブル領域の前記第1の管理テーブル
情報を参照する第1のテーブル情報参照手段と、前記第
2のテーブル領域の前記第2の管理テーブル情報を参照
する第2のテーブル情報参照手段とを有し、前記第2の
オペレーティングシステムが前記第3のテーブル領域の
前記第3の管理テーブル情報を参照する第3のテーブル
情報参照手段を有するオペレーティングシステム管理装
置のオペレーティングシステム管理方法において、前記
第1および第2のオペレーティングシステムのいずれか
一方の動作に対応して前記アドレス格納手段の指示アド
レスを前記第2および第3の管理テーブルのいずれか一
方に設定するステップと、前記第1のテーブル情報参照
手段が前記アドレス格納手段と前記第1のテーブル領域
とを参照し前記第1および第2のタスクの共通の処理を
実行するステップと、前記第2のテーブル情報参照手段
が前記第2のテーブル領域を参照し前記第1のタスクの
固有の処理を実行するステップと、前記第3のテーブル
情報参照手段が前記第3のテーブル領域を参照し前記第
2のタスクの固有の処理を実行するステップとを含むこ
とを特徴とするものである。
The operating system management method of the present invention is a method for managing an operating system having a hierarchical structure composed of a first upper operating system and a second operating system lower than the first operating system. A first table area for storing first management table information common to the first and second tasks corresponding to the first and second operating systems, and a second table and a second table specific to each of the first and second tasks. Second and third table areas for respectively storing third management table information, and address storage means for holding storage addresses of the second and third management table information in the second and third table areas Storage means having a first operating system, the first operating system And a second table information reference means for referring to the second management table information in the second table area. In the operating system management method of the operating system management device, the second operating system has a third table information reference unit for referring to the third management table information of the third table area, The step of setting the instruction address of the address storage means to either one of the second and third management tables corresponding to the operation of either one of the second operating system, and the first table information reference means. The first and second tables are referred to by referring to the address storage means and the first table area. Common table processing, the second table information reference means refers to the second table area, and executes unique processing of the first task; and the third table information. And a step of referring to the third table area to execute a process unique to the second task.

【0015】[0015]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。本実施例のオペレーティングシステム管理
装置は、従来と同様の、階層構造のOS仕様A,Bの2
つのOSから成るシステムを想定する。
Embodiments of the present invention will now be described with reference to the drawings. The operating system management apparatus of the present embodiment is the same as the conventional one, that is, OS specifications A and B of hierarchical structure 2
Assume a system consisting of two OSs.

【0016】本発明の実施例をブロックで示す図1を参
照すると、この図に示す本実施例のオペレーティングシ
ステム管理装置は、従来と同様のタスク1と、OS仕様
B3を含むOS仕様A2と、OS仕様A2およびOS仕
様B3の各々のシステムに共通の情報を保有する管理テ
ーブル41と、管理テーブル43,44に対するポイン
タが格納されているポインタ領域42と、OS仕様A2
およびOS仕様B3の各々のシステム固有の情報をそれ
ぞれ保有する管理テーブル43,44とを格納したメモ
リ4とを備える。
Referring to FIG. 1 which is a block diagram showing an embodiment of the present invention, an operating system management apparatus according to the present embodiment shown in this figure has a task 1 similar to the conventional one, an OS specification A2 including an OS specification B3, and an OS specification A2. A management table 41 holding information common to each system of the OS specifications A2 and B3, a pointer area 42 in which pointers to the management tables 43 and 44 are stored, and an OS specification A2
And a memory 4 storing management tables 43 and 44 respectively holding system-specific information of OS specification B3.

【0017】OS仕様A2は管理テーブル41の共通管
理テーブル情報を参照するための共通情報参照手段21
と、OS仕様A2固有の管理テーブル情報を参照するた
めの管理テーブル参照手段22とを備え、OS仕様B3
はOS仕様B3固有の管理テーブル情報を参照するため
の管理テーブル参照手段31を備える。
The OS specification A2 is a common information reference means 21 for referring to the common management table information of the management table 41.
And a management table reference unit 22 for referring to management table information specific to the OS specification A2, and the OS specification B3
Is provided with a management table reference means 31 for referring to management table information specific to the OS specification B3.

【0018】メモリ4の内容を示す図2を参照すると、
管理テーブル41はOS仕様A2,OS仕様B3に共通
のシステムタイム領域411と、OS仕様A2,OS仕
様B3の現在実行中のタスクのIDを示す現走行タスク
領域412と、上述のポインタ領域42とを含み、管理
テーブル43は従来の管理テーブル71と同様の32レ
ベル分のタスク優先度検索マップ431と、タスクレデ
ィキュー432とを含み、管理テーブル44は従来の管
理テーブル72と同様の256レベル分のタスク優先度
検索マップ441と、タスクレディキュー442と、例
外・終了ハンドラ登録領域443とを含む。
Referring to FIG. 2, which shows the contents of the memory 4,
The management table 41 includes a system time area 411 common to the OS specifications A2 and B3, a current running task area 412 indicating the ID of the currently executing task of the OS specifications A2 and B3, and the pointer area 42 described above. The management table 43 includes a task priority search map 431 for 32 levels similar to the conventional management table 71 and a task ready queue 432, and the management table 44 includes 256 levels similar to the conventional management table 72. Task priority search map 441, task ready queue 442, and exception / termination handler registration area 443.

【0019】次に、図1、図2および本実施例の処理の
フローチャートである図3を参照して本実施例の動作に
ついて説明する。まず、OS仕様A2で動作させる場合
(ステップS1)には、共通情報参照手段21を用いて
処理が行われ、ポインタ領域42のポインタの指示を管
理テーブル43とする(ステップS2)。システムタイ
ム領域411はOSにタイマ割込が入力される毎に次の
ようにカウントアップされる(ステップS3)。タイマ
ユニット(図示省略)からOSに対してタイマ割込が入
力されると、このタイマ割込に対応した割込ハンドラす
なわちクロックハンドラ(図示省略)が起動される。上
記クロックハンドラはシステムタイム領域411の値を
カウントアップする。現走行中タスク領域412はこの
割込処理対応の実行中のタスクのIDを表示する。ここ
までの処理はOS仕様A2,OS仕様B3に共通の処理
である。
Next, the operation of this embodiment will be described with reference to FIGS. 1 and 2 and FIG. 3 which is a flowchart of the processing of this embodiment. First, when operating with the OS specification A2 (step S1), processing is performed using the common information reference means 21, and the pointer instruction in the pointer area 42 is set as the management table 43 (step S2). The system time area 411 is incremented as follows each time a timer interrupt is input to the OS (step S3). When a timer interrupt is input from the timer unit (not shown) to the OS, an interrupt handler corresponding to this timer interrupt, that is, a clock handler (not shown) is started. The clock handler counts up the value in the system time area 411. The currently running task area 412 displays the ID of the task being executed corresponding to the interrupt process. The processes up to this point are common to the OS specifications A2 and B3.

【0020】次に、管理テーブル参照手段22を用いて
OS仕様A2固有の処理を行う。一例として、現走行中
タスクが待ち状態に遷移し、タスクディスパッチを生起
する場合の処理について説明する。このタスクディスパ
ッチが必要な状況になると、OS仕様A2はまず現走行
中タスク領域412,ポインタ領域42をそれぞれ参照
する(ステップS4)ことにより、現走行中タスク領域
412に記録されている現走行タスクをタスクレディキ
ュー432から削除する(ステップS5)。次に、タス
ク優先度検索マップ431を参照し、次にどの優先度の
タスクを走行状態としてディスパッチするかの検索を行
う(ステップS6)。最後に、得られた優先度に対応す
るタスクレディキュー432の先頭タスクを走行状態に
変更する(ステップS7)。
Next, the management table reference means 22 is used to perform the processing unique to the OS specification A2. As an example, the processing when the currently running task transits to the waiting state and causes task dispatch will be described. When this task dispatch is required, the OS specification A2 first refers to the currently running task area 412 and the pointer area 42 (step S4), and the current running task recorded in the currently running task area 412. Is deleted from the task ready queue 432 (step S5). Next, with reference to the task priority search map 431, it is searched which task of which priority is to be dispatched as the running state next (step S6). Finally, the head task of the task ready queue 432 corresponding to the obtained priority is changed to the running state (step S7).

【0021】次に、OS仕様A2上でOS仕様B3を動
作させる場合(ステップS8)には、まず、共通情報参
照手段21を用いて処理が行われ、ポインタ領域42の
ポインタの指示を管理テーブル44とするよう変更する
(ステップS9)。次に、上述のOS仕様A2の場合と
同様にシステムタイム領域411はOSにタイマ割込が
入力される毎にカウントアップされる(ステップS1
0)。現走行中タスク領域412はこの割込処理対応の
実行中のタスクのIDを表示する。
Next, when operating the OS specification B3 on the OS specification A2 (step S8), first, the processing is performed using the common information reference means 21, and the instruction of the pointer in the pointer area 42 is managed in the management table. It is changed to 44 (step S9). Next, as in the case of the OS specification A2 described above, the system time area 411 is incremented each time a timer interrupt is input to the OS (step S1).
0). The currently running task area 412 displays the ID of the task being executed corresponding to the interrupt process.

【0022】まず、OS仕様A2と同様に、現走行中タ
スクが待ち状態に遷移し、タスクディスパッチを生起す
る場合の処理について説明する。このタスクディスパッ
チが必要な状況になると、OS仕様B3はまず現走行中
タスク領域412,ポインタ領域42をそれぞれ参照す
る(ステップS11)ことにより、現走行中タスク領域
412に記録されている現走行タスクをタスクレディキ
ュー442から削除する(ステップS12)。次に、タ
スク優先度検索マップ441を参照し、次にどの優先度
のタスクを走行状態としてディスパッチするかの検索を
行う(ステップS13)。最後に、得られた優先度に対
応するタスクレディキュー442の先頭タスクを走行状
態に変更する(ステップS14)。
First, as in the case of the OS specification A2, the processing when the currently running task transits to the waiting state and causes task dispatch will be described. When the situation in which this task dispatch becomes necessary, the OS specification B3 first refers to the currently running task area 412 and the pointer area 42 respectively (step S11), and thereby the current running task recorded in the currently running task area 412. Is deleted from the task ready queue 442 (step S12). Next, referring to the task priority search map 441, it is searched which task of which priority is to be dispatched next as the running state (step S13). Finally, the head task of the task ready queue 442 corresponding to the obtained priority is changed to the running state (step S14).

【0023】次に、OS仕様B3固有の機能である例外
処理ハンドラを定義する処理について説明すると、プロ
グラムの実行中の一時的中断の生起要因となるイベント
や予期せぬデータ入力などのCPU例外が発生した場
合、OS仕様B3は、まず、ポインタ領域42を参照
し、このポインタ領域42が指示する管理テーブル44
の例外・終了ハンドラ登録領域443を参照して、対応
アドレスに配置されているCPU例外ハンドラ処理を実
行する。
Next, the process of defining an exception handling handler, which is a function peculiar to the OS specification B3, will be explained. A CPU exception such as an event that causes a temporary interruption during the execution of a program or an unexpected data input occurs. When it occurs, the OS specification B3 first refers to the pointer area 42, and the management table 44 designated by the pointer area 42.
With reference to the exception / end handler registration area 443, the CPU exception handler processing arranged at the corresponding address is executed.

【0024】以上述べたように、OS仕様A2上でOS
仕様B3対応の処理を実行する場合には、共通情報対応
の管理テーブルの情報はそのまま利用し、ポインタ領域
のポインタの指示をOS仕様B3固有情報の管理テーブ
ルとするように変更することにより、OS仕様B3固有
情報管理テーブルの内容として上記共通情報以外の固有
情報のみを有することにより実現できる。
As described above, the OS on the OS specification A2
When the processing corresponding to the specification B3 is executed, the information in the management table corresponding to the common information is used as it is, and the instruction of the pointer in the pointer area is changed to the management table of the OS specification B3 unique information. The specification B3 unique information management table can be realized by having only unique information other than the above common information as the content of the unique information management table.

【0025】次に、本発明のオペレーティングシステム
管理装置の第2の実施例をブロックで示す図4を参照す
ると、この図に示す本実施例の前述の第1の実施例に対
する相違点は、メモリ4の代りに、第1の実施例と同様
のOS仕様A2,OS仕様B3共通情報対応の管理テー
ブル41と、管理テーブル43に代ってポインタ領域8
1を含むOS仕様A固有情報対応の管理テーブル43A
と、管理テーブル44に代ってそれぞれOS仕様B3固
有情報対応のポインタ領域82を含む管理テーブル44
Bおよび管理テーブル83とを含むメモリ8を備えるこ
とである。
Next, referring to FIG. 4 which is a block diagram showing a second embodiment of the operating system management apparatus of the present invention, the difference between the first embodiment shown in this figure and the first embodiment is that the memory is different. 4 instead of 4, the management table 41 corresponding to the OS specification A2 and OS specification B3 common information similar to the first embodiment, and the pointer area 8 instead of the management table 43
Management table 43A corresponding to OS specification A unique information including 1
And a management table 44 including, instead of the management table 44, a pointer area 82 corresponding to the OS specification B3 unique information.
That is, the memory 8 including the B and the management table 83 is provided.

【0026】メモリ8の内容を示す図5を参照すると、
管理テーブル43Aは第1の実施例と同様のOS仕様A
2における32レベル分のタスク優先度検索マップ43
1と、これら32レベル分のタスクレディキュー432
とに加えてOS仕様B3固有情報に対応するポインタを
格納するポインタ領域81をさらに含み、管理テーブル
44は第1の実施例と同様のタスク優先度検索マップ4
41と、タスクレディキュー442とに加えて、管理テ
ーブル83に保持されているOS仕様B3固有情報対応
のポインタ領域82を含む。管理テーブル83は、第1
の実施例と同様のCPUおよびシステムコールにそれぞ
れ対応する例外・終了ハンドラ登録領域443を含む。
Referring to FIG. 5, which shows the contents of the memory 8,
The management table 43A has the same OS specification A as that of the first embodiment.
32 levels of task priority search map 43 in 2
1 and task ready queue 432 for these 32 levels
In addition to the above, the management table 44 further includes a pointer area 81 for storing a pointer corresponding to the OS specification B3 unique information, and the management table 44 has the same task priority search map 4 as in the first embodiment.
41 and the task ready queue 442, a pointer area 82 corresponding to the OS specification B3 unique information held in the management table 83 is included. The management table 83 is the first
An exception / termination handler registration area 443 corresponding to the CPU and system call similar to the embodiment of FIG.

【0027】本実施例は、第1の実施例と同様のタスク
優先度の検索マップおよびタスクレディキューのサイズ
がOS仕様B3の方が大きい階層構造のOS仕様A2,
OS仕様B3の2つのOSから成るシステムを想定して
いる。
In this embodiment, the size of the task priority search map and task ready queue similar to those of the first embodiment is larger in the OS specification B3 than in the OS specification A2 having a hierarchical structure.
A system consisting of two OSs of OS specification B3 is assumed.

【0028】第1の実施例と同様に、現走行中タスクが
待ち状態に遷移し、タスクディスパッチを生起する場合
の処理について説明する。OS仕様A2の実行の場合の
動作は前述の第1の実施例と同様であるので省略する。
Similar to the first embodiment, a process when the currently running task transits to the waiting state and causes task dispatch will be described. Since the operation in the case of executing the OS specification A2 is the same as that of the first embodiment described above, the description thereof will be omitted.

【0029】次に、OS仕様A2上でOS仕様B3を動
作させる場合も、ポインタ領域42の指示がポインタ領
域82に、ポインタ領域82の指示が管理テーブル83
にそれぞれなるほかは、第1の実施例と同様であるので
省略する。
Next, when operating the OS specification B3 on the OS specification A2, the pointer area 42 indicates the pointer area 82 and the pointer area 82 indicates the management table 83.
The description is omitted because it is the same as the first embodiment except that

【0030】OS仕様B3実行中にCPU例外が発生し
た場合、OS仕様B3は、まず、ポインタ領域42を参
照し、このポインタ領域42が指示するポインタ領域8
2のOS仕様B固有情報対応の例外ハンドラ登録領域8
31のアドレスを参照し、そのアドレスに配置されてい
るCPU例外ハンドラを実行する。
When a CPU exception occurs during execution of the OS specification B3, the OS specification B3 first refers to the pointer area 42, and the pointer area 8 designated by the pointer area 42.
Exception handler registration area 8 for OS specification B specific information 2
The address 31 is referred to, and the CPU exception handler located at that address is executed.

【0031】ここで、OS仕様A2の実行中にCPU例
外が発生しても、ポインタ領域42が指示するポインタ
領域81にはOS仕様A2対応の固有情報として0のみ
が格納されているため、このOS仕様A2のOSは上記
CPU例外をスキップして動作を進めることにより、O
S仕様A2で処理不要の管理テーブル83対応の処理を
分離することができる。
Even if a CPU exception occurs during execution of the OS specification A2, only 0 is stored as the unique information corresponding to the OS specification A2 in the pointer area 81 designated by the pointer area 42. The OS of OS specification A2 skips the CPU exception to proceed with the operation, and
It is possible to separate the processing corresponding to the management table 83 that does not require processing in the S specification A2.

【0032】本実施例は、OS仕様Bにおける使用頻度
の高いタスクとCPU例外処理のような使用頻度の低い
タスクとを分離することにより、さらに管理テーブル領
域対応のメモリ容量を低減できるので、OS動作用のメ
モリ容量のより一層の削減が可能となる。
In this embodiment, by separating the frequently used tasks in the OS specification B from the less frequently used tasks such as CPU exception processing, the memory capacity corresponding to the management table area can be further reduced. It is possible to further reduce the memory capacity for operation.

【0033】[0033]

【発明の効果】以上説明したように、本発明のオペレー
ティングシステム管理装置は、階層構造の上位および下
位のOSに共通の管理テーブル情報を格納する共通テー
ブル領域と、上記上位および下位のOSの各々に固有の
管理テーブル情報をそれぞれ格納する上位および下位の
固有テーブル領域と、上記上位および下位の固有管理テ
ーブル情報の格納アドレスを保持するアドレス格納手段
とを備え、上記上位のOSが共通テーブル情報参照手段
と、上位のテーブル情報参照手段とを備え、上記下位の
OSが下位のテーブル情報参照手段を備えることによ
り、共通管理テーブル情報と、この共通管理テーブル情
報以外の個々の管理テーブル情報とを分割して格納でき
るので、個々のOS対応の所要メモリ領域を削減できる
という効果がある。
As described above, the operating system management apparatus of the present invention includes a common table area for storing management table information common to upper and lower OSs in a hierarchical structure, and each of the upper and lower OSs. Upper and lower unique table areas for respectively storing unique management table information and address storage means for holding storage addresses of the upper and lower unique management table information, and the upper OS refers to common table information. Means and an upper table information reference means, and the lower OS includes lower table information reference means, thereby dividing the common management table information and individual management table information other than the common management table information. Since it can be stored in the memory, the required memory area corresponding to each OS can be reduced.

【0034】また、それら個々のOSの保有および管理
するための手間や費用も節減できるという効果がある。
Further, there is an effect that the labor and cost for possessing and managing each of these OSs can be saved.

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

【図1】本発明のオペレーティングシステム管理装置の
第1の実施例を示すブロック図である。
FIG. 1 is a block diagram showing a first embodiment of an operating system management device of the present invention.

【図2】図1のメモリの内容を示す図である。2 is a diagram showing the contents of the memory of FIG. 1. FIG.

【図3】本実施例の処理の一例を示すフローチャートで
ある。
FIG. 3 is a flowchart showing an example of processing of this embodiment.

【図4】本発明のオペレーティングシステム管理装置の
第2の実施例を示すブロック図である。
FIG. 4 is a block diagram showing a second embodiment of the operating system management device of the present invention.

【図5】図4のメモリの内容を示す図である。5 is a diagram showing the contents of the memory of FIG. 4. FIG.

【図6】従来のオペレーティングシステム管理装置の一
例を示すブロック図である。
FIG. 6 is a block diagram showing an example of a conventional operating system management device.

【図7】図6のメモリの内容を示す図である。FIG. 7 is a diagram showing the contents of the memory of FIG.

【符号の説明】 1 タスク 2,5 OS仕様A 3,6 OS仕様B 4,7,8 メモリ 21 共通情報参照手段 22,31,51,61 管理テーブル参照手段 41,43,44,83,43A,44A 管理テー
ブル 42,81,82 ポインタ領域 411,711,721 システムタイム領域 412,712,722 現走行タスク領域 431,441 タスク優先度検索マップ 432,442 タスクレディキュー 443 例外・終了ハンドラ登録領域
[Explanation of Codes] 1 task 2,5 OS specification A 3,6 OS specification B 4,7,8 memory 21 common information reference means 22, 31, 51, 61 management table reference means 41, 43, 44, 83, 43A , 44A management table 42, 81, 82 pointer area 411, 711, 721 system time area 412, 712, 722 current running task area 431, 441 task priority search map 432, 442 task ready queue 443 exception / end handler registration area

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 上位の第1のオペレーティングシステム
とこの第1のオペレーティングシステムの下位の第2の
オペレーティングシステムとから成る階層化構造のオペ
レーティングシステムを管理するための情報をテーブル
状に生成した管理テーブル情報を格納する記憶手段を備
えるオペレーティングシステム管理装置において、 前記記憶手段が前記第1および第2のオペレーティング
システム対応の第1および第2のタスクに共通の第1の
管理テーブル情報を格納する第1のテーブル領域と、前
記第1および第2のタスクの各々に固有の第2および第
3の管理テーブル情報をそれぞれ格納する第2および第
3のテーブル領域と、前記第2および第3のテーブル領
域への前記第2および第3の管理テーブル情報の格納ア
ドレスを保持するアドレス格納手段とを備え、 前記第1のオペレーティングシステムが前記第1のテー
ブル領域の前記第1の管理テーブル情報を参照する第1
のテーブル情報参照手段と、前記第2のテーブル領域の
前記第2の管理テーブル情報を参照する第2のテーブル
情報参照手段とを備え、 前記第2のオペレーティングシステムが前記第3のテー
ブル領域の前記第3の管理テーブル情報を参照する第3
のテーブル情報参照手段を備えることを特徴とするオペ
レーティングシステム管理装置。
1. A management table in which information for managing an operating system having a hierarchical structure composed of a first upper operating system and a second lower operating system of the first operating system is generated in a table form. In an operating system management device provided with a storage means for storing information, the storage means stores first management table information common to the first and second tasks corresponding to the first and second operating systems. Table areas, second and third table areas storing second and third management table information unique to each of the first and second tasks, and the second and third table areas. To the address holding the storage addresses of the second and third management table information A scan storage unit, the first operating system references the first management table information of the first table area first
Table information referencing means and second table information referencing means for referencing the second management table information in the second table area, wherein the second operating system is in the third table area. Third referring to third management table information
An operating system management device, comprising:
【請求項2】 前記記憶手段が前記第2のオペレーティ
ングシステム対応の第3のタスクに固有の第4の管理テ
ーブル情報を格納する第4の管理テーブル領域をさらに
備え、 前記第2および第3の管理テーブル領域が前記第4の管
理テーブル領域への前記第4の管理テーブル情報の格納
アドレスを保持するアドレス格納手段をそれぞれ備える
ことを特徴とする請求項1記載のオペレーティングシス
テム管理装置。
2. The storage means further comprises a fourth management table area for storing fourth management table information unique to the third task corresponding to the second operating system, and the second and third management table areas. 2. The operating system management device according to claim 1, wherein the management table area is provided with an address storage unit that holds a storage address of the fourth management table information in the fourth management table area.
【請求項3】 上位の第1のオペレーティングシステム
とこの第1のオペレーティングシステムの下位の第2の
オペレーティングシステムとから成る階層化構造のオペ
レーティングシステムを管理するための前記第1および
第2のオペレーティングシステム対応の第1および第2
のタスクに共通の第1の管理テーブル情報を格納する第
1のテーブル領域と前記第1および第2のタスクの各々
に固有の第2および第3の管理テーブル情報をそれぞれ
格納する第2および第3のテーブル領域と前記第2およ
び第3のテーブル領域への前記第2および第3の管理テ
ーブル情報の格納アドレスを保持するアドレス格納手段
とを有する記憶手段を備え、前記第1のオペレーティン
グシステムが前記第1のテーブル領域の前記第1の管理
テーブル情報を参照する第1のテーブル情報参照手段
と、前記第2のテーブル領域の前記第2の管理テーブル
情報を参照する第2のテーブル情報参照手段とを有し、
前記第2のオペレーティングシステムが前記第3のテー
ブル領域の前記第3の管理テーブル情報を参照する第3
のテーブル情報参照手段を有するオペレーティングシス
テム管理装置のオペレーティングシステム管理方法にお
いて、 前記第1および第2のオペレーティングシステムのいず
れか一方の動作に対応して前記アドレス格納手段の指示
アドレスを前記第2および第3の管理テーブルのいずれ
か一方に設定するステップと、 前記第1のテーブル情報参照手段が前記アドレス格納手
段と前記第1のテーブル領域とを参照し前記第1および
第2のタスクの共通の処理を実行するステップと、 前記第2のテーブル情報参照手段が前記第2のテーブル
領域を参照し前記第1のタスクの固有の処理を実行する
ステップと、 前記第3のテーブル情報参照手段が前記第3のテーブル
領域を参照し前記第2のタスクの固有の処理を実行する
ステップとを含むことを特徴とするオペレーティングシ
ステム管理方法。
3. A first operating system and a second operating system for managing an operating system having a hierarchical structure composed of a first upper operating system and a lower second operating system of the first operating system. Corresponding first and second
A first table area for storing first management table information common to each task, and second and third storage areas for respectively storing second and third management table information unique to each of the first and second tasks. Storage means having three table areas and address storage means for storing the storage addresses of the second and third management table information in the second and third table areas, and the first operating system First table information reference means for referring to the first management table information in the first table area, and second table information reference means for referring to the second management table information in the second table area. Has and
A third operation system in which the second operating system refers to the third management table information in the third table area.
In the operating system management method of the operating system management apparatus having the table information reference means, the instruction address of the address storage means corresponding to the operation of one of the first and second operating systems Setting in any one of the management tables No. 3 and No. 3, and the first table information reference unit refers to the address storage unit and the first table area to perform common processing of the first and second tasks. And a step in which the second table information reference unit refers to the second table area to perform a process unique to the first task, and the third table information reference unit includes the third table information reference unit. 3 table area to execute the processing unique to the second task. Characteristic operating system management method.
JP6009649A 1994-01-31 1994-01-31 Operating system management device and operating system management method Expired - Fee Related JP2885631B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6009649A JP2885631B2 (en) 1994-01-31 1994-01-31 Operating system management device and operating system management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6009649A JP2885631B2 (en) 1994-01-31 1994-01-31 Operating system management device and operating system management method

Publications (2)

Publication Number Publication Date
JPH07219785A true JPH07219785A (en) 1995-08-18
JP2885631B2 JP2885631B2 (en) 1999-04-26

Family

ID=11726072

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6009649A Expired - Fee Related JP2885631B2 (en) 1994-01-31 1994-01-31 Operating system management device and operating system management method

Country Status (1)

Country Link
JP (1) JP2885631B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0000162A1 (en) * 1977-06-28 1979-01-10 BASF Aktiengesellschaft Method for preparing aralkyl and alkyl phenol ethers

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0000162A1 (en) * 1977-06-28 1979-01-10 BASF Aktiengesellschaft Method for preparing aralkyl and alkyl phenol ethers

Also Published As

Publication number Publication date
JP2885631B2 (en) 1999-04-26

Similar Documents

Publication Publication Date Title
EP1031924B1 (en) Computer executing multiple operating system
US5161226A (en) Microprocessor inverse processor state usage
US5257375A (en) Method and apparatus for dispatching tasks requiring short-duration processor affinity
CN100419688C (en) Apparatus and method for interrupt control
US20040098722A1 (en) System, method, and computer program product for operating-system task management
JPH07219785A (en) Device and method for controlling operating system
JPH05108380A (en) Data processing system
JPS63257830A (en) Loosely coupled compound system
JPH05282164A (en) Device for automating operation of computer
JPH03154130A (en) Task switching system
JPS6150356B2 (en)
JPH06119190A (en) Task switching processing system
Bergin Method of control for re-entrant programs
JPH03188531A (en) Time-division multitask executing device
JP2004021610A (en) Task managing device
JPS6385938A (en) Controller for multiplex parallel operation of program
JPH0262633A (en) Inter-program communication system
JPH02110750A (en) File control system
JPH0460842A (en) Computer system
JPH08292956A (en) Device and method for data base management
JPH05173810A (en) Task management method
JPH10171666A (en) Task control block management mechanism and its managing method
JPH02172397A (en) Exchange
JPH04195432A (en) Task management device
JPH05113891A (en) Pseudo semaphore system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees