JPS60179866A - Real time operating system - Google Patents

Real time operating system

Info

Publication number
JPS60179866A
JPS60179866A JP59038100A JP3810084A JPS60179866A JP S60179866 A JPS60179866 A JP S60179866A JP 59038100 A JP59038100 A JP 59038100A JP 3810084 A JP3810084 A JP 3810084A JP S60179866 A JPS60179866 A JP S60179866A
Authority
JP
Japan
Prior art keywords
memory
microprocessor
port
mup21
keyboard
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
JP59038100A
Other languages
Japanese (ja)
Inventor
Tatsuhiro Imada
今田 達裕
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP59038100A priority Critical patent/JPS60179866A/en
Publication of JPS60179866A publication Critical patent/JPS60179866A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain high speed processing by executing a device handler function by the 2nd muP. CONSTITUTION:A command inputted from a keyboard 3 is stored in a two-port memory 27, and at the end of the input, an muP24 sets up a keyboard port of an I/O port 28. A muP21 is interrupted by said setting and arithmetic processing is executed. If information from a flexible disc device 4 is made necessary on the way of the execution, the muP21 monitors a peripheral apparatus starting request in the memory 27, and when the information of a part to be read out from the disc device 4 is set up in the memory 27, drives the disc device 24 and transfers the whole request data to the memory 27. After end of the transfer, the muP21 is interrupted. The muP21 detects the interruption and restarts the arithmetic processing of the original task.

Description

【発明の詳細な説明】 〔発明の技術分野〕 この発明はマイクロプロセッサを使用する計算機システ
ムのオペレーティングシステム(以下O8と略記する)
に関するものである。
[Detailed Description of the Invention] [Technical Field of the Invention] This invention relates to an operating system (hereinafter abbreviated as O8) for a computer system using a microprocessor.
It is related to.

〔従来技術〕[Prior art]

第1図は従来のリアルタイムO8を説明するブロック図
で、図においてfi+はマイクロプロセッサ(以下μP
と略記する)、(2)はμP(1)用のメモリ、(3)
はキーボード、(4)はフレキシブルディスク装置(一
般的には補助記憶装置)、(5)はブラウン管表示装置
(以下CRTと略記する)、(6)はプリンタ、(7)
はμP(1)、メモリ(2)、キーボード(3)、フレ
キシブルディスク装置(4)、CRT +51、プリン
タ(6)を相互に接続する共通のバスである。また(3
1 、 (41、(51。
Figure 1 is a block diagram illustrating a conventional real-time O8. In the figure, fi+ is a microprocessor (hereinafter μP
), (2) is the memory for μP (1), (3)
is a keyboard, (4) is a flexible disk device (generally an auxiliary storage device), (5) is a cathode ray tube display device (hereinafter abbreviated as CRT), (6) is a printer, (7) is
is a common bus that interconnects the μP (1), memory (2), keyboard (3), flexible disk device (4), CRT+51, and printer (6). Also (3
1, (41, (51.

(6)を総称して周辺装置という。(6) are collectively referred to as peripheral devices.

第1図に示す計算機システムの動作及びLIS一般につ
いては従来よく知られているのでその説明を省略するが
、キーボード(3)からのコマンド入力によシμP f
ilがメモ1月2)から所定のプログラムを読出し、こ
の読出したプログラムに従って、たとえば、フレキシブ
ルディスク(4)の所定の領域の内科を読出し、これに
演算処理を施し、結果をCRT +5+に表示すると同
時にこれを再びフレキシブルディスク(4)の所定の領
域に格納するというタスクを実行する。このような場合
、このタスクを完了するまでに、フレキシブルディスク
装置(4)は倒産も割込を発生するため、手順に従って
割込処理を行うデバイスハンドラをO8の管理下で実行
させて、処理を行っていた。
Since the operation of the computer system shown in Fig. 1 and LIS in general are well known, their explanation will be omitted.
il reads out a predetermined program from the memo (January 2), and according to the read program, for example, reads internal medicine from a predetermined area of the flexible disk (4), performs arithmetic processing on it, and displays the result on the CRT +5+. At the same time, the task of storing it again in a predetermined area of the flexible disk (4) is executed. In such a case, the flexible disk device (4) will have gone bankrupt before this task is completed and will still generate an interrupt, so a device handler that handles interrupts according to the procedure will be executed under the control of O8. I was going.

従来の装置は上述のように動作し、1個のμPでキーボ
ード入力、フレキシブルディスクの入出力、演箪処理、
CRT表示、プリンタ出力のすべてを行わねばならず、
演算処理が複雑で、各周辺装置へのアクセス回数が多く
なる場合には、全体の処理時間が長くなるという欠点が
あった。
The conventional device operates as described above, with one μP handling keyboard input, flexible disk input/output, playback processing,
All CRT display and printer output must be performed.
If the arithmetic processing is complex and the number of accesses to each peripheral device is large, the overall processing time becomes long.

〔発明の概要〕[Summary of the invention]

この発明は上記のような従来のものの欠点を除去するた
めになされたもので、この発明ではタスクスケジューラ
機能及び実行処理を行う第1のμPの他に少くとも1個
の第2のμPを設けこの第2のμPによってデバイスハ
ンドラ機能全実行さぜ、全体としてリアルタイムO8の
機能を満足することによシ高速処理を可能ならしめた。
This invention was made to eliminate the drawbacks of the conventional ones as described above, and in this invention, at least one second μP is provided in addition to the first μP that performs the task scheduler function and execution processing. This second μP executes all the device handler functions and satisfies the functions of the real-time O8 as a whole, making high-speed processing possible.

また第1及び第2のμP間の情報転送のためにはいずれ
のμPからもアクセスできる2ボートメモリを設け、ま
だ笥2のμPから第1のμPへ割込をかけることができ
るようにした。
In addition, in order to transfer information between the first and second μPs, a 2-board memory that can be accessed from either μP is provided, so that it is still possible to issue an interrupt from the second μP to the first μP. .

〔発明の更施例〕[Example of modification of invention]

以下この発明の実施例を図面について説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第2図はこの発明の一実施例を示すブロック図で、第1
図と同一符号は同−又は和尚部分を示し、Qυは第1の
μPでタスクスケジューラ機能及び実行処理を行うため
に設けられ、(ハ)はμPQ1)に対応するメモリで、
μP a])によってyt出されて実行されるプログラ
ムを格納し、演算の途中結果を待避するために用いられ
る。翰はμPa1lとメモリ(2)を接続するバスであ
る。(ハ)は第2のμPで、第2のμPは1個に限定さ
れることなく点線のブロック四で示すように第2のμP
を追加して更に機能を分散することもできる。以下の説
明では第2のμP(至)が1個だけの場合に限定して説
明する。四はμP(ハ)に対応するメモリである。第2
のμP(ハ)は周辺機器+31 、 +4j 、 t5
) 、 161の開側1を行い、その制側jプログラム
はメモリ(ハ)に格納される。
FIG. 2 is a block diagram showing one embodiment of the present invention.
The same reference numerals as those in the figure indicate the same or lower part, Qυ is provided for the task scheduler function and execution processing in the first μP, (C) is the memory corresponding to μPQ1),
It is used to store the program that is output and executed by μP a]) and to save intermediate results of calculations. The wire is a bus that connects the μPa1l and the memory (2). (c) is the second μP, and the second μP is not limited to one, but as shown by the dotted block 4, the second μP is
It is also possible to further distribute functionality by adding . The following explanation will be limited to the case where there is only one second μP (to). 4 is a memory corresponding to μP (c). Second
μP (c) is peripheral equipment +31, +4j, t5
), the open side 1 of 161 is executed, and the winning side j program is stored in the memory (c).

鋤は2ボートメモリでμP?υ、(ハ)から共にアクセ
スすることができる。(ホ)は入出力ポート(I10ボ
ートと略記する)でμPρ9からμPC2υへの割込を
発生させるために使用する。
Plow is μP with 2 boat memory? Both can be accessed from υ and (c). (E) is an input/output port (abbreviated as I10 port) used to generate an interrupt from μPρ9 to μPC2υ.

次に第2図に示すシステムの動作について説明する。キ
ーボード(3)の入力により入力コマンドが2ポートメ
モリ(イ)上のキーボード用エリアに格βメ1され、入
力コマンドの終了によfi I10ポート(至)のキー
ボード用ポートをμPfAがセットする。このセットに
よシμPQ0に割込が人9、タスクスケジュールの後、
該当タスクを起動し演算処理を開始する。途中でフレキ
シブルディスク装置(4)の情報が必要な場合、欲しい
情報の項目、あるいはアドレスおよびその他必袂とする
項目を2ポートメモリ(ハ)の該当エリアに書込んでお
いて、そのタスクは中断してμP @1)は別のタスク
を実行する。μP(ハ)は常時、2ボートメモリに)上
の拘辺機器起動要求を監視しておシ、上述のようにフレ
キシブルディスク装置(4)から読出すべき部分の情報
が2ポートメモリ@にセットされたときは、これを検知
してフレキシブルディスク装置(4)を駆動し、要求デ
ータを全部2ポートメモリ(ロ)上の該当エリアに転送
し終えた後、I10ボートのフレキシブルディスク用ポ
ートをセットして、μP2uに割込みをかける。
Next, the operation of the system shown in FIG. 2 will be explained. By inputting from the keyboard (3), the input command is stored in the keyboard area on the two-port memory (A), and upon completion of the input command, μPfA sets the keyboard port of fi I10 port (to). With this set, the interrupt to μPQ0 is 9, after the task schedule,
Start the corresponding task and start calculation processing. If information on the flexible disk device (4) is required during the process, write the desired information item, address, and other necessary items to the corresponding area of the 2-port memory (c), and then interrupt the task. Then μP @1) executes another task. The μP (c) always monitors the restricted device activation request on the 2-port memory (in the 2-port memory), and as mentioned above, the information of the part to be read from the flexible disk device (4) is set in the 2-port memory @. When this occurs, it detects this and drives the flexible disk device (4), and after all requested data has been transferred to the corresponding area on the 2-port memory (b), the flexible disk port of the I10 boat is set. and interrupts μP2u.

μP Qllはこの割込みを検知してタスクスケジュー
ルの後、フレキシブルディスク情報を要求したもとのタ
スクの演算処理を再開する。次回以降の演算処理に必要
なフレキシブルディスク装置(4)の情報は、上記のよ
うな手枕きてあらかじめμpHに要求しておき、μPC
2υにおけるyn処理そのものけ続行する。ただし、そ
のデータを実際に使用する前に同期をとって入力完了を
検査する。
μP Qll detects this interrupt and resumes the calculation process of the original task that requested the flexible disk information after task scheduling. The information on the flexible disk device (4) necessary for the next calculation process is requested from the μpH in advance as described above, and then sent to the μPC.
The yn processing itself at 2υ continues. However, before actually using the data, synchronize and check for input completion.

CRT +5)に表示すべき表示出力、プリンタ(6)
でプリントする出力については、μP(ハ)からの出力
データを2ポートメモリ■の該当エリアにその他必贅な
データと共に書込みμP @1)は引続き処理を続行し
、次に新しく出力する時点で前回要求が完了したか判断
し同期をとる。すなわち、第2図に示す実施例ではO8
の機能のうちタスクスケジュール処理部とシステムコー
ル処理部を第1のμPeυで実行させ周辺装置ハンドラ
部(デバイスハンドラ部)を第2のμP(財)で実行さ
せ、タスクスイッチング等のオーバヘッド時間を短縮し
処理の高速化を実墳している。
Display output to be displayed on CRT +5), printer (6)
For the output to be printed with , the output data from μP (c) is written to the corresponding area of the 2-port memory ■ along with other necessary data. μP @1) continues processing, and the next time a new output is made, the previous Determine whether the request is complete and synchronize. That is, in the embodiment shown in FIG.
Of the functions, the task schedule processing section and system call processing section are executed on the first μPeυ, and the peripheral device handler section (device handler section) is executed on the second μP, reducing overhead time such as task switching. We are currently working on speeding up the processing.

なお、上記実施例では、第1のμP(2)に第2のμP
(ハ)から割込を発生するのにI10ポート(財)を使
用したが、これはメモリマツブトI10 (memor
ymapped Ilo )でもよく、またIlo ボ
ートを使用せず2ポートメモリ(イ)にフラグを立てそ
のスキャン(5can ) によって完了を知る方法を
用いてもよい。
Note that in the above embodiment, the first μP (2) is
(c) I used the I10 port to generate an interrupt, but this is a memory Matsubuto I10 (memor
Alternatively, a method may be used in which completion is known by setting a flag in the 2-port memory (a) and scanning it (5can) without using the Ilo port.

〔発明の効果〕〔Effect of the invention〕

以上のようにこの発明によれば、リアルタイムO8のタ
スクスケジューラ機能および興行機能と周辺装置ハンド
ラ機能を別のμPで行わせるよう機能分担したため、処
理速度を向上することができる。
As described above, according to the present invention, the task scheduler function, entertainment function, and peripheral device handler function of the real-time O8 are divided into separate μPs, so that processing speed can be improved.

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

第1図は従来の装置を示すブロック図、第2図はこの発
明の一実施例を示すブロック図である。 +31 、 (41、+51 、 (6)・・・周辺装
置4、(7)・・・共通のバス、+2])・・・第1の
μP1(イ)・・・μPシカのメモリ、(ハ)・・・第
2のμP1v→・・・μP(ハ)のメモリ、(イ)・・
・2ポートメモリ、に)・・・■、んポート。 尚、各図中同一符号は同−又は相当部分を示す。 代理人大岩増雄 第1図 第2図
FIG. 1 is a block diagram showing a conventional device, and FIG. 2 is a block diagram showing an embodiment of the present invention. +31, (41, +51, (6)...Peripheral device 4, (7)...Common bus, +2])...First μP1 (A)...Memory of μP deer, (H )...Second μP1v→...Memory of μP (c), (a)...
・2 port memory, ni)...■, n port. Note that the same reference numerals in each figure indicate the same or corresponding parts. Agent Masuo Oiwa Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] マイクロプロセッサを1史用する計算機システムを制御
するリアルタイムオペレーティングシステムにおいて、
タスクスケジューラ機能及び実行処理を行う第1のマイ
クロプロセッサ、周辺装置ハンドラ機能を行う少くとも
1個の第2のマイクロプロセッサ、この第2のマイクロ
プロセッサ及び上記第1のマイクロプロセッサから同時
にアクセスすることができる2ポートメモリ、上記]’
2のマイクロプロセッサとキーボード、補助記憶装置、
ブラウン管表示装置、プリンタ等の周辺装置とを接続す
る共通のバス、この共通のバスを介し上記第1のマイク
ロプロセッサに割込みをかける手段、上記第1のマイク
ロプロセッサにより読出されて実行され、上記タスクス
ケジューラ機能及び実行処理を上記第1のマイクロプロ
セッサにより実行させ、上記周辺装置ハンドラ機能を上
記第2のマイクロプロセッサによシ実行させるよう制御
するプログラムを備えたリアルタイムオペレーティング
システム。
In a real-time operating system that controls a computer system that uses a microprocessor,
a first microprocessor that performs task scheduler functions and execution processing; at least one second microprocessor that performs peripheral device handler functions; 2-port memory that can be used, above]'
2 microprocessor, keyboard, auxiliary storage device,
a common bus connecting peripheral devices such as a cathode ray tube display device and a printer; means for interrupting the first microprocessor via the common bus; A real-time operating system comprising a program for controlling the scheduler function and execution processing to be executed by the first microprocessor and the peripheral device handler function to be executed by the second microprocessor.
JP59038100A 1984-02-27 1984-02-27 Real time operating system Pending JPS60179866A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59038100A JPS60179866A (en) 1984-02-27 1984-02-27 Real time operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59038100A JPS60179866A (en) 1984-02-27 1984-02-27 Real time operating system

Publications (1)

Publication Number Publication Date
JPS60179866A true JPS60179866A (en) 1985-09-13

Family

ID=12516051

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59038100A Pending JPS60179866A (en) 1984-02-27 1984-02-27 Real time operating system

Country Status (1)

Country Link
JP (1) JPS60179866A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6376039A (en) * 1986-09-19 1988-04-06 Fujitsu Ltd Input/output control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6376039A (en) * 1986-09-19 1988-04-06 Fujitsu Ltd Input/output control system

Similar Documents

Publication Publication Date Title
US5911065A (en) System and method for providing cooperative interrupts in a preemptive task scheduling environment
JPS58195966A (en) Resource switching by user's control for multi-task processing word processor
EP0772119A2 (en) Automatic graphics operation
JPH0827707B2 (en) Control device and control method for FIFO buffer and device for controlling data transfer
JPH0760423B2 (en) Data transfer method
US5471672A (en) Method for implementing a high speed computer graphics bus
JPH0644251B2 (en) Data processing device
JPS60179866A (en) Real time operating system
JPH0798663A (en) Asynchronous i/o control system
JPH06282515A (en) Data processor
JPH05128078A (en) Parallel processor
JPS58103039A (en) Data base system
JPH0312768A (en) I/o controller
JPH06250965A (en) Input/output controller
JPH0385632A (en) Computer and arithmetic operation method for the same computer
JPS62212826A (en) Screen controller in multi-job system
JPS61216069A (en) Channel controlling system
JP2514334B2 (en) Control device
JP2000353152A (en) Graphic processor
JPH1063237A (en) Data transfer system
JP2954006B2 (en) Emulation device and emulation method
JPH01302448A (en) Information processor
JPS62272370A (en) System for saving picture information
JP2003186666A (en) Microcomputer and dma control circuit
JPH02287748A (en) Channel device