JPS6344246A - Electronic computer - Google Patents

Electronic computer

Info

Publication number
JPS6344246A
JPS6344246A JP18711686A JP18711686A JPS6344246A JP S6344246 A JPS6344246 A JP S6344246A JP 18711686 A JP18711686 A JP 18711686A JP 18711686 A JP18711686 A JP 18711686A JP S6344246 A JPS6344246 A JP S6344246A
Authority
JP
Japan
Prior art keywords
execution environment
processing unit
central processing
register group
registers
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
JP18711686A
Other languages
Japanese (ja)
Inventor
Yoshihiko Motohashi
良彦 本橋
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 JP18711686A priority Critical patent/JPS6344246A/en
Publication of JPS6344246A publication Critical patent/JPS6344246A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/461Saving or restoring of program or task context
    • G06F9/462Saving or restoring of program or task context with multiple register sets

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

PURPOSE:To realize the fast switching of a process, by performing the saving of an execution environment, the selection of the next process, and the loading of the execution environment on a second register group, before the switching of the process. CONSTITUTION:When the switching of the process is generated, a central processing unit 1, after switching a register group 11 to a register group 12, preserves the execution environment stored in the register group 11, in a main memory device 2. The switching of the process is completed by selecting the process to be executed at a next stage, and issuing an instruction to instruct the read-in of the execution environment to the register group 11, to a process managing device 3. In parallel with the execution of the next process at the central processing unit 1, the process managing device 3 accesses to the register group 11, and the main memory device 2 through a data bus 21, and a system bus 4, then preserves the execution environment, and performs the selection of the process, and the read-in of the execution environment.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は電子計算機に関する。[Detailed description of the invention] Industrial applications The present invention relates to electronic computers.

従来の技術 従来の電子計算機は、中央処理装置が以下の3つのステ
ップを逐次実行することでプロセスの切り換えを行なっ
ていた。第1のステップでは、汎用レジスタ、プログラ
ム・カウンタ、ステータス・レジスタ等から構成される
中央処理装置上のレジスタ群に格納されている実行環境
を主記憶装置に保存する。第2のステップでは、主記憶
装置に保持されているプロセスの優先順位データに従っ
て、実行可能なプロセス中で優先順位の最も高いプロセ
スを選び出す。第3のステップでは、第2のステップで
選び出したプロセスの実行環境を主記憶装置から取り出
しレジスタ群に読み込んでいた。
BACKGROUND OF THE INVENTION Conventional electronic computers switch processes by having a central processing unit sequentially execute the following three steps. In the first step, the execution environment stored in a group of registers on the central processing unit, including general-purpose registers, program counters, status registers, etc., is saved in the main memory. In the second step, the process with the highest priority among the executable processes is selected according to the process priority data held in the main memory. In the third step, the execution environment of the process selected in the second step was retrieved from the main memory and read into the register group.

発明が解決しようとする問題点 しかしながら、従来の電子計算機では上記のようにプロ
セスの切り換え時に3つのステップを逐次実行するため
、プロセスの切り換えを高速に行なうことはできない。
Problems to be Solved by the Invention However, since conventional electronic computers sequentially execute the three steps when switching processes as described above, it is not possible to switch processes at high speed.

特に、大規模なTSSシステムでは、プロセスの切り換
えが頻繁に発生するためプロセスの切り換え時間が大き
なオーバーヘッドとなり、システムの効率を低下させる
という問題点を有していた。本発明はかかる問題点に鑑
みてなされたものであり、プロセスの切り換えを高速に
行なうことのできる電子計算機を提供することを目的と
する。
In particular, in large-scale TSS systems, process switching occurs frequently, resulting in a large overhead in process switching time, which reduces system efficiency. The present invention has been made in view of these problems, and it is an object of the present invention to provide an electronic computer that can perform process switching at high speed.

問題点を解決するための手段 本発明は、プロセスの実行環境を格納するための2組の
レジスタ群と、中央処理装置外部から前記レジスタ群に
直接アクセスするアクセス手段とを有し、実行中のプロ
セスの実行環境を保持するレジスタ群を前記2組のレジ
スタ群から1組選択して使用する中央処理装置と、各プ
ロセスの実行環境を保存し、各プロセスの優先順位を保
持する記憶装置と、中央処理装置が行なうプロセスの切
り換えに先立って、前記アクセス手段を用いて、中央処
理装置上のプロセスの実行とは独立に中央処理装置が選
択していない方のレジスタ群に直接アクセスして、該レ
ジスタ群に保持されている実行環境を前記記憶装置にセ
ーブした後、前記優先順位に従って、次に中央処理装置
上で実行されるべきプロセスを選択し、該プロセスの実
行環境を前記記憶装置から該レジスタにロードするプロ
セス管理装置とを具備し、中央処理装置は、それまでプ
ロセスの実行のため選択して使用していたレジスタ群か
ら、前記プロセス制御装置によって次に実行されるべき
プロセスの実行環境がロードされているレジスタ群に切
り変えることで、プロセスの切や換えを行ない、該レジ
スタ群を使用して次のプロセスの実行を開始することを
特徴とする電子計算機である。
Means for Solving the Problems The present invention has two sets of registers for storing the execution environment of a process, and an access means for directly accessing the registers from outside the central processing unit. a central processing unit that selects and uses one register group from the two sets of registers that holds the execution environment of the process; a storage device that stores the execution environment of each process and holds the priority of each process; Prior to process switching performed by the processing unit, the access means is used to directly access the register group that is not selected by the central processing unit, independently of the execution of the process on the central processing unit, and select the register group that is not selected by the central processing unit. After saving the execution environment held in the storage device to the storage device, a process to be executed next on the central processing unit is selected according to the priority order, and the execution environment of the process is saved from the storage device to the register. The central processing unit loads the execution environment of the process to be executed next by the process control unit from the register group that has been selected and used for the execution of the process. The electronic computer is characterized in that the process is switched by switching to a register group that is currently being used, and the execution of the next process is started using the register group.

作用 本発明による作用は次のようになる。プロセスの切り換
えが発生するまでは、実行中のプロセスの実行環境は第
1のレジスタ群に存在する。プロセス管理装置は、プロ
セスの切り換えに先立って、第2のレジスタ群に対して
、実行環境のセーブ、次のプロセスの選択、及び、該プ
ロセスの実行環境のロードを行なう。このようにして、
中央処理装置が選択していないレジスタ群に、次に実行
すべきプロセスの実行環境が格納されているため、プロ
セスの切り換えは、選択しているレジスタを切り換える
ことのみで行なえる。従って、高速なプロセス切り換え
が実現される。
Effects The effects of the present invention are as follows. Until a process switch occurs, the execution environment of the currently executing process exists in the first register group. Prior to process switching, the process management device saves the execution environment, selects the next process, and loads the execution environment of the process in the second register group. In this way,
Since the execution environment of the next process to be executed is stored in the registers not selected by the central processing unit, the process can be switched only by switching the selected register. Therefore, high-speed process switching is realized.

実施例 図は本発明の電子計算機の一実施例を示すブロック図で
ある。中央処理装置1は2組のレジスタ群11.12を
有する。2は主記憶装置であり各プロセスの実行環境を
保存し、各プロセスの優先順位を保持する03はプロセ
ス制御装置である。
The embodiment diagram is a block diagram showing an embodiment of the electronic computer of the present invention. Central processing unit 1 has two register groups 11 and 12. 2 is a main storage device that stores the execution environment of each process, and 03 is a process control device that maintains the priority of each process.

21はプロセス制御装置が中央処理装置内のレジスタ群
にアクセスするためのデータバスであり、22は中央処
理装置からプロセス制御装置への制御信号線であり、2
3はプロセス制御装置から中央処理装置への制御信号線
である。中央処理装置1、主記憶装置2、および、プロ
セス制御装置3はシステム・バス4を介して通信を行な
う。
21 is a data bus for the process control device to access a register group in the central processing unit; 22 is a control signal line from the central processing unit to the process control device;
3 is a control signal line from the process control device to the central processing unit. Central processing unit 1 , main memory 2 , and process control unit 3 communicate via system bus 4 .

実行中のプロセスがレジスタ群11を使用しており、次
に実行されるプロセスの実行環境がレジスタ群12にあ
らかじめ格納されているとする。
Assume that a process being executed is using the register group 11, and the execution environment of the next process to be executed is stored in the register group 12 in advance.

プロセスの切り換えが発生すると、中央処理装置1は、
実行中のプロセスの実行環境として使用するレジスタ群
をレジスタ群12に切り換えた後、レジスタ群11に格
納されている実行環境を主記憶装置2に保存することと
、次に実行すべきプロセスを選び出すことと、その実行
環境をレジスタ群11に読み込むことを指示する命令を
、制御信号線22を介してプロセス管理装置3に発する
ことで、中央処理装置1のプロセス切り換え作業は終了
し、次のプロセスの実行を開始する。次のプロセスの中
央処理装置1での実行と並行して、プo モー1#理装
置2 ハ、データバス21とシステム壷バス4を介して
レジスタ群11と主記憶装置2にアクセスして実行環境
を保存し、システム・バス4を介して主記憶装置2にア
クセスしてプロセスを選択し、システム・バス4とデー
タバス21を介してレジスタ群11と主記憶装置2にア
クセスして実行環境の読み込みを行なう。プロセス管理
装置3は、以上の3つのステップを終了すると制御信号
線23を介して中央処理装置1にアクノレツジを送る。
When a process switch occurs, the central processing unit 1
After switching the register group used as the execution environment of the running process to the register group 12, the execution environment stored in the register group 11 is saved in the main storage device 2, and the next process to be executed is selected. By issuing a command to the process management device 3 via the control signal line 22 to read the execution environment into the register group 11, the process switching operation of the central processing unit 1 is completed and the next process is started. Start execution. In parallel with the execution of the next process on the central processing unit 1, the process is executed by accessing the register group 11 and the main memory 2 via the data bus 21 and system bus 4. The environment is saved, the main memory 2 is accessed via the system bus 4 to select a process, and the register group 11 and the main memory 2 are accessed via the system bus 4 and the data bus 21 to save the execution environment. Read. When the process management device 3 completes the above three steps, it sends an acknowledgment to the central processing device 1 via the control signal line 23.

プロセス管理装置2とのアクセス競合を避けるため、こ
のアクノレツジが返されるまで中央処理装置1は主記憶
装置2上のプロセスの実行環境と優先順位に関するデー
タにアクセスすることはできない。
In order to avoid access conflicts with the process management device 2, the central processing unit 1 cannot access data regarding the execution environment and priority of the process in the main storage device 2 until this acknowledgment is returned.

以上のようにプロセス切り換えのオーバーヘッドをプロ
セス管理装置に命令を発する時間とレジスタ群の切り換
え時間のみに短縮することができるため、高速なプロセ
ス切り換えが実現されている0 発明の効果 以上述べてきたように、本発明によれば、プロセスの切
り換えを高速に行なうことができるだめ、実用上きわめ
て有効である。
As described above, since the overhead of process switching can be reduced to only the time for issuing commands to the process management device and the time for switching register groups, high-speed process switching is realized. Furthermore, according to the present invention, process switching can be performed at high speed, which is extremely effective in practice.

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

図は本発明の電子計算機の一実施例のブロック図である
。 1・・・・・・中央処理装置、2・・・・・・主記憶装
置、3・・・・・・プロセス管理装置、4・山・・シス
テムバス、11゜12・・・・・・レジスタ群、21・
・川・データ・バス、22゜23・・・・・・制御信号
線。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第1
121 図7の浄書(内容に変更なし) レジスタ上竿 手続補正書(方式) %式% 1事件の表示 昭和61年特許願第187116号 2発明の名称 電子計算機 3補正をする者 事件との関係      特  許  出  願  人
住 所  大阪府門真市大字門真1006番地名 称 
(582)松下電器産業株式会社代表者      谷
   井   昭   雄4代理人 〒571 住 所  大阪府門真市大字門真1006番地松下電器
産業株式会社内 6補正命令の日付 6、補正の内容 (1)明細書第8ページ第5行の「図は」を「第1図は
」に補正します。 (′4 図面を別紙の通り、「第1図」と図番号を付し
た形に補正します。
The figure is a block diagram of an embodiment of the electronic computer of the present invention. 1... Central processing unit, 2... Main storage device, 3... Process management device, 4... System bus, 11゜12... Register group, 21・
・River・Data bus, 22゜23・・・・Control signal line. Name of agent: Patent attorney Toshio Nakao and 1 other person No. 1
121 Engraving of Figure 7 (no change in content) Written amendment to register procedure (method) % formula % 1 Display of the case 1985 Patent Application No. 187116 2 Name of the invention Computer 3 Relationship with the person making the amendment Patent Application Address 1006 Kadoma, Kadoma City, Osaka Prefecture Name
(582) Matsushita Electric Industrial Co., Ltd. Representative Akio Tanii 4 Agent 571 Address 1006 Oaza Kadoma, Kadoma City, Osaka Prefecture Matsushita Electric Industrial Co., Ltd. Date 6 of the amendment order, contents of the amendment (1) Specification Correct "Figure wa" in the 5th line of page 8 to "Figure 1 wa". ('4 The drawing has been corrected to "Figure 1" and the figure number has been added as shown in the attached sheet.

Claims (1)

【特許請求の範囲】[Claims] プロセスの実行環境を格納するための2組のレジスタ群
と、中央処理装置外部から前記レジスタ群に直接アクセ
スするアクセス手段とを有し、実行中のプロセスの実行
環境を保持するレジスタ群を前記2組のレジスタ群から
1組選択して使用する中央処理装置と、各プロセスの実
行環境を保存し、各プロセスの優先順位を保持する記憶
装置と、中央処理装置が行なうプロセスの切り換えに先
立って、前記アクセス手段を用いて、中央処理装置上の
プロセスの実行とは独立に中央処理装置が選択していな
い方のレジスタ群に直接アクセスして、該レジスタ群に
保持されている実行環境を前記記憶装置にセーブした後
、前記優先順位に従って、次に中央処理装置上で実行さ
れるべきプロセスを選択し、該プロセスの実行環境を前
記記憶装置から該レジスタにロードするプロセス管理装
置とを具備し、中央処理装置は、それまでプロセスの実
行のため選択して使用していたレジスタ群から、前記プ
ロセス制御装置によって次に実行されるべきプロセスの
実行環境がロードされているレジスタ群に切り変えるこ
とで、プロセスの切り換えを行ない、該レジスタ群を使
用して次のプロセスの実行を開始することを特徴とする
電子計算機。
It has two sets of registers for storing the execution environment of a process, and an access means for directly accessing the registers from outside the central processing unit, and the two sets of registers for holding the execution environment of the process being executed are provided. a central processing unit that selects and uses one set of registers from a group of registers; a storage device that stores the execution environment of each process and maintains the priority of each process; Using the access means, the register group not selected by the central processing unit is directly accessed independently of the execution of the process on the central processing unit, and the execution environment held in the register group is transferred to the storage device. a process management device that selects a process to be executed next on the central processing unit according to the priority order after saving, and loads the execution environment of the process from the storage device into the register; The device switches from the registers that have been selected and used for process execution to the registers loaded with the execution environment of the process to be executed next by the process control device. 1. An electronic computer characterized in that the register group is used to start execution of the next process.
JP18711686A 1986-08-08 1986-08-08 Electronic computer Pending JPS6344246A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18711686A JPS6344246A (en) 1986-08-08 1986-08-08 Electronic computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18711686A JPS6344246A (en) 1986-08-08 1986-08-08 Electronic computer

Publications (1)

Publication Number Publication Date
JPS6344246A true JPS6344246A (en) 1988-02-25

Family

ID=16200386

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18711686A Pending JPS6344246A (en) 1986-08-08 1986-08-08 Electronic computer

Country Status (1)

Country Link
JP (1) JPS6344246A (en)

Similar Documents

Publication Publication Date Title
KR0137096B1 (en) Microprocessor
JP2523653B2 (en) Virtual computer system
JPH0298707A (en) Programmable controller
JPS6344246A (en) Electronic computer
JPS58225443A (en) High-speed data processor
JPH03182945A (en) Transfer system for data in main storage
JP2624519B2 (en) Startup processing method of input / output device in computer system
JP3085308B2 (en) Processing information management system
JPH0756633B2 (en) Task switching method
JP2785855B2 (en) Information processing device
JPS62297954A (en) Memory control system
JPS6049464A (en) Inter-processor communication system of multi-processor computer
JPH04107634A (en) Memory data bypass control system
JPH02173828A (en) Interruption process system
JPH05113888A (en) Microprocessor unit
JPS5968067A (en) Specifying system for number of run steps
JPH02178748A (en) Virtual storage control method for virtual storage computer system
JPS62281040A (en) Page managing system
JPS6394339A (en) Virtual calculation system
JPS61288232A (en) Output instruction control system
JPS6252667A (en) Vector processor
JPH01189732A (en) Task start-up control method
JPS6155741A (en) Arithmetic processor
JPS63305429A (en) Microprocessor interruption system
JPS629436A (en) Microprogram controller