JPS62231339A - Parallel action method for two operating systems - Google Patents
Parallel action method for two operating systemsInfo
- Publication number
- JPS62231339A JPS62231339A JP7303486A JP7303486A JPS62231339A JP S62231339 A JPS62231339 A JP S62231339A JP 7303486 A JP7303486 A JP 7303486A JP 7303486 A JP7303486 A JP 7303486A JP S62231339 A JPS62231339 A JP S62231339A
- Authority
- JP
- Japan
- Prior art keywords
- plant control
- operating system
- control
- processing
- office processing
- 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 title claims description 11
- 239000013598 vector Substances 0.000 description 10
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
Abstract
Description
この発明はマイクロコンピュータ応用システムとしての
中、小規模プラント制御用の計算機制御システムにおい
て、帳票類の処理と実時間のプラント制御とを並行して
処理するための方法に関する。The present invention relates to a method for processing forms and real-time plant control in parallel in a computer control system for small-scale plant control among microcomputer application systems.
従来、マイクロコンピュータ応用システムの多くはプラ
ント制御専用装置としてプラント制御用オペレーティン
グシステムにより実時間のプログラム制御が行われてい
た。しかし近年、パーソナルコンピュータ等の事務処理
用マイクロコンピュータシステムの普及に伴って、マン
マシーンインターフェイス制御及びファイル制御技術が
向上している。この事はプラント制御用計算機制御シス
テム分野にも影響を与え、そのマンマシーンインターフ
ェイス制御機能及びファイル制御機能の向上への要求が
高まっている。
しかしながら小規模なマイクロコンピユークシステムに
おいてはプラント制御と事務処理を同時に処理するオペ
レーティングシステムは大容量の主記憶装置(単に主記
憶とも略す)を必要とするなど負荷が重く、事務処理用
の制御とプラント制御とでは制御の性格が異なるため、
このようなオペレーティングシステムの製作には多大な
労力を必要とするなどの問題点があった。
このためプラント制御用オペレーティングシステムと事
務処理用オペレーティングシステムを必要に応じて入れ
換える方法が行われているが、この場合にはどちらか一
方が動作時には他方の処理が中断してしまうという欠点
があった。Conventionally, many microcomputer-applied systems have been dedicated to plant control and have been subject to real-time program control using a plant control operating system. However, in recent years, with the spread of microcomputer systems for business processing such as personal computers, man-machine interface control and file control techniques have improved. This has also affected the field of computer control systems for plant control, and there is an increasing demand for improved man-machine interface control functions and file control functions. However, in small-scale microcomputer systems, the operating system that processes plant control and office processing at the same time has a heavy load, such as requiring a large-capacity main memory (also simply referred to as main memory). Since the nature of control is different from plant control,
There are problems in that creating such an operating system requires a great deal of effort. For this reason, a method is used to replace the plant control operating system and the office processing operating system as necessary, but this has the disadvantage that when one of them is operating, the processing of the other is interrupted. .
この発明はプラント制御と事務処理を同時に行うことが
でき、かつ不要な場合には事務処理を削除することがで
きる効率の良い2つのオペレーティングシステムの並行
動作方法を提供することを目的としている。It is an object of the present invention to provide an efficient method for operating two operating systems in parallel, which allows plant control and office processing to be performed simultaneously, and which can eliminate office processing when unnecessary.
この発明の要点はオペレーティングシステムをプラント
制御用と事務処理用に分割し、事務処理用オペレーティ
ングシステムをプラント制御用オペレーティングシステ
ムの1つのタスクとして構成することにより、両者の並
行処理動作を可能にしようとする点にある。The main point of this invention is to divide the operating system into one for plant control and one for office processing, and configure the operating system for office processing as one task of the operating system for plant control, thereby enabling parallel processing operations for both. It is in the point of doing.
以下第1図〜第4図を用いて本発明の詳細な説明する。
なお以下オペレーティングシステムをO3とも略記する
。第4図は本発明の適用される1実施例としての計算機
制御システムの構成を示すブロック図である。同図にお
いてマイクロプロセッサ(以下CPUという)1には内
部バス2を介して、主記憶(装置)3、マンマシーンイ
ンターフェイスとしてのキーボード・ディスプレイ (
以下CRT/KEYと記す)4、プリンタ5、フロンビ
ディスクなどの補助記憶装置(単に補助記憶ともいう)
6、及び図外の外部機器との間で授受されるデジタルデ
ーク等の入出力部としての外部入出力インターフェース
7が接続されている。
なおCPUIが実行するプログラムは主記憶3に記憶さ
れている。
第3図(A)は本発明の1実施例としてのプラント制御
用OS核部の、同図(B)は同じく事務処理用O8核部
のそれぞれの構成を示すものである。
プラント制御用O8の核部は主記憶3内のROM(図外
)に常駐しており、電源投入直後及びシステムリセット
直後にCPUIにより必ず実行される。このプラント制
御用O8核部は、アプリケーションタスクに優先順位に
基づいて実行権を与えるスケジューラ、補助記憶6をフ
ァイルとして管理するファイルマネジャ、主記憶3内の
RAM (図外)部分を動的に管理するメモリマネジャ
、補助記憶6からプログラムを主記憶RAM部分にロー
ドしてタスクとしてスケジューラに登録するローダから
構成されている。
アプリケーションタスクは電源投入時ローダにより補助
記憶6より主記憶3上にロードされる常駐アプリケーシ
ョンタスクと、必要に応じて主記憶3上にロードされ、
不要になった場合には削除される非常駐アプリケーショ
ンタスクとからなる。
事務処理用O8は非常駐アプリケーションタスクとして
必要に応じて主記憶3上にロードされる。
一般にO8はハードウェア制御並びにアプリケーション
プログラムとのインターフェース及びマンマシーンイン
ターフェイスを制御するために、ロードされるメモリ配
置は絶対アドレスでなければならない。通常は主記憶3
上の低位アドレスの特定のアドレスからロードされる。
よってローダは常駐アプリケーションタスクを主記憶上
の高位アドレスヘロードし、非常駐アプリケーションタ
スクは低位アドレスヘロードするように構成されている
。
主記憶3のROM部に常駐しているプラント制御用O8
は実時間制御のために必要な優先処理及び並行処理を実
現し、割込みに対する高速応答処理など機器制御に必要
な機能を具備している。ただしマンマシーンインターフ
ェイス処理、バッチ処理及びファイル管理の機能を持た
ず、これらの機能は事務処理用OSが行なう。
事務処理用OSと通常の非常駐タスクとの異なる部分は
マンマシーンインターフェイス処理に必要な入出力機器
(CRT/KEY4.プリンタ5)の制御を事務処理用
O3がロードされると同時に横取りすることである。
制御入出力機器4.5とOSとのデータ交換は割込みに
より行われている。割込みはハードウェア的に発生する
が割込み処理ルーチンの実行開始アドレスは主記憶RA
M部の割込みベクタ領域に書き込まれており、割込み発
生時にはこのベクタ内容により処理ルーチンを実行する
。
プラント制御用O8は電源投入時にこのベクタをプラン
ト制御用O3内の割込み処理ルーチンに初期設定する。
事務処理用OSがロードされた場合には、事務処理用O
8の初期ルーチンによりCRT/KEY4及びプリンタ
5の割込みベクタの内容を主記憶上のベクタ退避領域へ
退避し、事務処理用O8の割込み処理ルーチンヘベクタ
を変更する。よって以後の割込みは全て事務処理用。S
の処理ルーチンが実行することになる。このベクタ退避
領域の内容は事務処理用O8がアンロードされる時に元
のベクタ領域へ転送され、再びプランHdlfII用O
8により処理されるようになる。
ただしプラント制御用osは事務処理用osにCRT等
を横取りされた場合であっても、外部入出力異常メソセ
ージなどを緊急に表示する必要が発生した場合には、ベ
クタ退避領域の内容をベクタに書き込むことによって再
び制御を行なうことができる。
第1図は本発明の1実施例としての補助記憶6内の記憶
領域の構成を示したものである。事務処理用O8領域、
タスク領域、データ領域に分割されており事務処理用o
ssl域には事務処理用OSのプログラムコードが、タ
スク領域にはタスクのコードが格納されており、ローダ
により読み出される。データ領域は事務処理用O3が処
理を行なうデータをファイルとして格納しておく領域で
ある。ただしこの場合には制御用タスクが直接データフ
ァイルをアクセスすることはできず、主記憶内に設けら
れたバッファを介して、事務処理用O8経出で書き込み
、読み出しを行なう。
第2図は本発明の1実施例としての補助記憶6内におけ
る第1図の事務処理用O8,タスク、データの各領域の
実際のロード状態を示す図で、このようにプラント制御
用O8と事務処理用O8がデータファイルを共用するよ
うにしてメモリの有効利用を計っている。
即ちデータファイルの管理用に補助記憶6上に管理情報
テーブルが作成され書き込み情報、ファイルの空き情報
、ファイル名称などが記憶されている。この管理情報テ
ーブルの更新は一元的に行なう必要がある。なぜならば
プラント制御用O8と事務処理用O8が同時に同一ファ
イルを操作した場合には管理情報テーブルが破壊される
可能性があるからである。そこでこれを防ぐために管理
情報テーブルの操作は事務処理用O3がロードされてい
る場合には禁止フラグ(図外)を設け、プラント制御用
O3によるテーブル更新を禁止する。
ただし管理情報テーブルの更新は禁止されても、データ
ファイルの読み出し及びすでに作成されているデータフ
ァイルの書換えは管理情報テーブルの更新を必要としな
いのでプラント制御用O8で行うことができる。
事務処理用O8の下で動作するプログラムには大量のデ
ータを操作するものが多く長時間を必要とするものが多
い。しかし応答速度は比較的遅くても良いものが多い。
このため、事務処理用O8の実行優先順位をプラント制
御用タスクよりも低くすることによりプラント制御用プ
ログラムに対する影響を最小限におさえることができる
。
事務処理用O8をロードするかどうかは外部に設けられ
たスイッチなどの信号により決定する。
あるいはキーボードからの入力によりロードを開始する
ように構成する。The present invention will be explained in detail below using FIGS. 1 to 4. Note that the operating system will also be abbreviated as O3 below. FIG. 4 is a block diagram showing the configuration of a computer control system as an embodiment to which the present invention is applied. In the figure, a microprocessor (hereinafter referred to as CPU) 1 is connected via an internal bus 2 to a main memory (device) 3, a keyboard and display as a man-machine interface (
(Hereinafter referred to as CRT/KEY) 4. Auxiliary storage devices such as printers 5 and flonbi disks (also simply referred to as auxiliary storage)
6, and an external input/output interface 7 as an input/output unit such as a digital data exchanged with an external device (not shown). Note that the program executed by the CPUI is stored in the main memory 3. FIG. 3(A) shows the configuration of an OS core for plant control as one embodiment of the present invention, and FIG. 3(B) shows the configuration of an O8 core for office processing. The core of the plant control O8 resides in the ROM (not shown) in the main memory 3, and is always executed by the CPU immediately after the power is turned on and the system is reset. This plant control O8 core includes a scheduler that gives execution rights to application tasks based on priority, a file manager that manages auxiliary memory 6 as a file, and dynamically manages the RAM (not shown) in main memory 3. A loader loads a program from the auxiliary memory 6 into the main memory RAM portion and registers it as a task in the scheduler. The application tasks include a resident application task that is loaded from the auxiliary memory 6 onto the main memory 3 by the loader when the power is turned on, and a resident application task that is loaded onto the main memory 3 as necessary.
It consists of non-resident application tasks that are deleted when they are no longer needed. The office processing O8 is loaded onto the main memory 3 as a non-resident application task as required. Since the O8 generally controls the hardware and interfaces with application programs and man-machine interfaces, the memory locations loaded must be absolute addresses. Usually main memory 3
Loaded from a specific address of the lower address above. Therefore, the loader is configured to load resident application tasks to high addresses on the main memory, and load non-resident application tasks to low addresses. Plant control O8 resident in the ROM section of main memory 3
It realizes the priority processing and parallel processing necessary for real-time control, and has functions necessary for device control, such as high-speed response processing to interrupts. However, it does not have man-machine interface processing, batch processing, or file management functions, and these functions are performed by the office processing OS. The difference between the office processing OS and a normal non-resident task is that control of the input/output devices (CRT/KEY 4, printer 5) necessary for man-machine interface processing is intercepted at the same time as the office processing O3 is loaded. . Data exchange between the control input/output device 4.5 and the OS is performed by interrupts. Interrupts are generated by hardware, but the execution start address of the interrupt processing routine is in the main memory RA.
It is written in the interrupt vector area of the M section, and when an interrupt occurs, a processing routine is executed based on the contents of this vector. The plant control O8 initializes this vector to the interrupt processing routine in the plant control O3 when the power is turned on. If the office processing OS is loaded, the office processing OS
8 saves the contents of the interrupt vectors of the CRT/KEY 4 and the printer 5 to the vector save area in the main memory, and changes the vectors to the interrupt processing routine of the office processing O8. Therefore, all subsequent interruptions are for administrative purposes. S
The processing routine will be executed. The contents of this vector save area are transferred to the original vector area when the office processing O8 is unloaded, and are again transferred to the plan HdlfII O8.
8. However, even if the CRT etc. is intercepted by the office processing OS, the plant control OS will store the contents of the vector save area as a vector when it is necessary to urgently display an external input/output error message, etc. Control can be regained by writing. FIG. 1 shows the configuration of a storage area in the auxiliary storage 6 as an embodiment of the present invention. O8 area for office processing,
Divided into task area and data area for office processing.
The program code of the office processing OS is stored in the ssl area, and the task code is stored in the task area, which are read by the loader. The data area is an area in which data processed by the office processing O3 is stored as a file. However, in this case, the control task cannot directly access the data file, and writes and reads data through the O8 output for office processing via a buffer provided in the main memory. FIG. 2 is a diagram showing the actual loading state of the office processing O8, task, and data areas of FIG. 1 in the auxiliary memory 6 as an embodiment of the present invention. The office processing O8 shares data files in order to make effective use of memory. That is, a management information table is created on the auxiliary storage 6 for managing data files, and stores write information, file availability information, file names, etc. This management information table needs to be updated centrally. This is because if the plant control O8 and the office processing O8 operate on the same file at the same time, the management information table may be destroyed. Therefore, in order to prevent this, a prohibition flag (not shown) is set for operation of the management information table when the office processing O3 is loaded, thereby prohibiting the table update by the plant control O3. However, even if updating of the management information table is prohibited, reading data files and rewriting already created data files can be performed by the plant control O8 since updating of the management information table is not required. Many of the programs that operate under the office processing O8 operate on large amounts of data and require a long time. However, in many cases, the response speed may be relatively slow. Therefore, by setting the execution priority of the office processing O8 lower than that of the plant control task, the influence on the plant control program can be minimized. Whether or not to load the office processing O8 is determined by a signal from an external switch or the like. Alternatively, configure it so that loading is started by input from the keyboard.
上述のように本発明によれば帳票データの入出力を制御
する事務処理用O3を実時間でプラント機器の制御信号
の入出力を制御するプラント制御用O8の優先順位の低
い1つのタスクとして必要に応じて並行動作するように
構成したことにより、メモリの効率及びOSプログラム
の作成、変更が容易になるという効果が得られた。As described above, according to the present invention, the office processing O3 that controls the input/output of form data is required as one low priority task of the plant control O8 that controls the input/output of control signals of plant equipment in real time. By configuring the system to operate in parallel according to the operating system, the advantages of memory efficiency and ease of creation and modification of OS programs were obtained.
第1図は本発明の一実施例としての補助記憶内の記憶領
域の構成を示す図、第2図は同じく第1図の各領域情報
の実際のロード状態を説明する図、第3図(A)は同じ
くプラント制御用OS核部の、同図(B)は同じく事務
処理用○S核部のそれぞれの構成を示す図、第4図は同
じく計算機制御シス′y!1図
第2図
(A) プラント音l制御毘OSa壱ト(B) 潰ト
勢郊王里用○S#q
第3図
第4図FIG. 1 is a diagram showing the configuration of a storage area in an auxiliary storage as an embodiment of the present invention, FIG. 2 is a diagram illustrating the actual loading status of each area information in FIG. A) shows the configuration of the OS core for plant control, FIG. 4B shows the configuration of the S core for office processing, and FIG. 4 shows the configuration of the computer control system. Figure 1 Figure 2 (A) Plant sound control BiOSa 1 (B) ○S #q Figure 3 Figure 4
Claims (1)
ティングシステムを実時間でプラント機器制御信号の入
出力を制御するプラント制御用オペレーティングシステ
ムの優先順位の低い1つのタスクとして動作させるよう
にしたことを特徴とする2つのオペレーティングシステ
ムの並行動作方法。 2)特許請求の範囲第1項に記載の方法において、プラ
ント制御用オペレーティングシステムは常駐化され、事
務処理用オペレーティングシステムは必要に応じて主記
憶装置上にロードされ得るものであることを特徴とする
2つのオペレーティングシステムの並行動作方法。 3)特許請求の範囲第1項又は第2項に記載の方法にお
いて、プラント制御用オペレーティングシステムが入出
力制御中であって緊急の場合には、事務処理用オペレー
ティングシステムが入出力制御を横取りできるよう構成
されていることを特徴とする2つのオペレーティングシ
ステムの並行動作方法。[Claims] 1) An office processing operating system that controls input/output of form data operates as a low-priority task of a plant control operating system that controls input/output of plant equipment control signals in real time. A method for parallel operation of two operating systems, characterized in that: 2) The method according to claim 1, characterized in that the plant control operating system is made resident, and the office processing operating system can be loaded onto the main storage device as needed. How to run two operating systems in parallel. 3) In the method according to claim 1 or 2, if the plant control operating system is controlling input/output and there is an emergency, the office processing operating system can preempt the input/output control. 1. A method for parallel operation of two operating systems, characterized in that the method is configured as follows.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7303486A JPS62231339A (en) | 1986-03-31 | 1986-03-31 | Parallel action method for two operating systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7303486A JPS62231339A (en) | 1986-03-31 | 1986-03-31 | Parallel action method for two operating systems |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS62231339A true JPS62231339A (en) | 1987-10-09 |
Family
ID=13506659
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP7303486A Pending JPS62231339A (en) | 1986-03-31 | 1986-03-31 | Parallel action method for two operating systems |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62231339A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1031924A3 (en) * | 1999-02-19 | 2003-10-15 | Hitachi, Ltd. | Computer executing multiple operating system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS58181149A (en) * | 1982-04-16 | 1983-10-22 | Hitachi Ltd | Controlling system of computer system |
JPS59136853A (en) * | 1983-01-25 | 1984-08-06 | Hitachi Ltd | Execution control system of plural control programs |
-
1986
- 1986-03-31 JP JP7303486A patent/JPS62231339A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS58181149A (en) * | 1982-04-16 | 1983-10-22 | Hitachi Ltd | Controlling system of computer system |
JPS59136853A (en) * | 1983-01-25 | 1984-08-06 | Hitachi Ltd | Execution control system of plural control programs |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1031924A3 (en) * | 1999-02-19 | 2003-10-15 | Hitachi, Ltd. | Computer executing multiple operating system |
US7810096B2 (en) | 1999-02-19 | 2010-10-05 | Hitachi, Ltd. | Computer executing multiple operating systems |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6209088B1 (en) | Computer hibernation implemented by a computer operating system | |
KR100934533B1 (en) | Computer-readable recording medium recording arithmetic processing system, task control method on computer system, and computer program | |
US5799188A (en) | System and method for managing variable weight thread contexts in a multithreaded computer system | |
JPS60136833A (en) | Switching method of operating system | |
US20190227918A1 (en) | Method for allocating memory resources, chip and non-transitory readable medium | |
US6711625B1 (en) | Kernel file I/O management system and method | |
JPS62231339A (en) | Parallel action method for two operating systems | |
US7047321B1 (en) | Unblocking an operating system thread for managing input/output requests to hardware devices | |
US5784701A (en) | Method and system for dynamically changing the size of a hardware system area | |
JPS61184643A (en) | Starting control system for virtual computer | |
Wichmann | A modular operating system. | |
JP2990609B2 (en) | Computer system | |
WO2022249240A1 (en) | Activation system and activation method | |
JP2906958B2 (en) | User program loading method | |
JPH03111961A (en) | Program loading system for multi-cpu | |
JPH0833838B2 (en) | Computer system | |
JPH0567973B2 (en) | ||
JPS6346861B2 (en) | ||
JPH0376497B2 (en) | ||
JPH10171670A (en) | Task switching device and medium recording task switching program | |
JP2002259209A (en) | Arithmetic processing system | |
JPS6083151A (en) | Control system of data processing level | |
JPH04167152A (en) | Idle memory control system | |
JPH113231A (en) | Software processing method | |
JPH05241861A (en) | Free memory management system for operating system |