JPH0364888B2 - - Google Patents
Info
- Publication number
- JPH0364888B2 JPH0364888B2 JP59181222A JP18122284A JPH0364888B2 JP H0364888 B2 JPH0364888 B2 JP H0364888B2 JP 59181222 A JP59181222 A JP 59181222A JP 18122284 A JP18122284 A JP 18122284A JP H0364888 B2 JPH0364888 B2 JP H0364888B2
- Authority
- JP
- Japan
- Prior art keywords
- central processing
- processing unit
- virtual central
- virtual
- real
- 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.)
- Expired - Lifetime
Links
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、1台の実中央処理装置があたかも2
台の中央処理装置があるかのように動作する計算
機システムにおけるデイスパツチング処理方式に
関するものである。[Detailed Description of the Invention] [Industrial Application Field] The present invention enables one real central processing unit to
This invention relates to a dispatching processing method in a computer system that operates as if there were multiple central processing units.
1個のオペレーテイング・システム配下で複数
の中央処理装置を動作させることは知られてい
る。この種の計算機システムはマルチプロセツ
サ・システと呼ばれている。最近、1台の実中央
処理装置をあたかも2台の中央処理装置があるか
のように動作させることが行われている。これら
2台の中央処理装置は仮想中央処理装置と呼ば
れ、また、この種の計算機システムはバーチヤ
ル・ダイアデイク(Virtual Dydic)方式の計算
機システムと呼ばれている。この種の計算機シス
テムは、例えば1台の中央処理装置上でマルチプ
ロセツサ用のオペレーテイング・システムをデバ
クするために用いられる。
It is known to operate multiple central processing units under one operating system. This type of computer system is called a multiprocessor system. Recently, one real central processing unit has been operated as if there were two central processing units. These two central processing units are called virtual central processing units, and this type of computer system is called a virtual dydic computer system. This type of computer system is used, for example, to debug operating systems for multiprocessors on one central processing unit.
第2図はバーチヤル・ダイアデイク方式の計算
機システムにおける従来のデイスパツチング処理
を説明するものである。図示の例では実中央処理
装置CPUは最初のタイムスライスTの間、仮想
中央処理装置VCPU#0として動作している。デ
イスパツチヤは各仮想中央処理装置VCPU#0及
びVCPU#1に対して実中央処理装置を使用でき
る時間を定めるものである。なお、デイスパツチ
ヤはフアームウエアで構成されている。仮想中央
処理装置VCPU#0に実中央処理装置が割当てら
れてからT時間経過すると、デイスパツチヤが実
行される。デイスパツチヤは、仮想中央処理装置
VCPU#0及びVCPU#1の状態を調べ、そのう
ちWAIT(待ち)状態でないものを選択する。そ
して、タイムスライスを定め、Tをタイマにセツ
トし、選択した仮想中央処理装置をデイスパツチ
する。 FIG. 2 explains conventional dispatching processing in a virtual dyadic computer system. In the illustrated example, the real central processing unit CPU operates as the virtual central processing unit VCPU#0 during the first time slice T. The dispatcher determines the time during which the real central processing unit can be used for each virtual central processing unit VCPU#0 and VCPU#1. Note that the dispatcher is made of firmware. When T time has elapsed since the real central processing unit was assigned to the virtual central processing unit VCPU#0, dispatch is executed. Dispatcher is a virtual central processing unit
Check the status of VCPU #0 and VCPU #1 and select the one that is not in WAIT state. Then, a time slice is determined, T is set in the timer, and the selected virtual central processing unit is dispatched.
バーチヤル・デイアデイク方式の計算機システ
ムおいて、例えば仮想中央処理装置VCPU#0が
RUN状態で且つI/O割込み禁止状態であり、仮
想中央処理装置VCPU#1がWAIT状態で且つI/
O割込み可能状態である場合(割込みはWAIT状
態のVCPUが受付ける)、単純にNON−WAIT
状態の仮想中央処理装置のみをデイスパツチする
アルゴリズムを適用していると、I/O割込みのレ
スポンスが悪くなる。極端な場合、例えば2台の
仮想中央処理装置の内の一方をI/O処理専用とし
他方をCPU専用としたような場合、システムは
ループする。 In a computer system based on a virtual day-to-day system, for example, the virtual central processing unit VCPU#0
The virtual central processing unit VCPU#1 is in the RUN state and I/O interrupts are disabled, and the virtual central processing unit VCPU#1 is in the WAIT state and the I/O
O If interrupts are enabled (interrupts are accepted by the VCPU in WAIT state), simply NON-WAIT
If an algorithm is applied that dispatches only the virtual central processing unit in the state, the response to I/O interrupts will deteriorate. In an extreme case, for example, if one of two virtual central processing units is dedicated to I/O processing and the other is dedicated to CPU processing, the system will loop.
本発明は、バーチヤル・ダイアデイク方式の計
算機システムにおいて割込み処理が効率よく行わ
れるようにデイスパツチングをおこなうデイスパ
ツチング処理方式を提供することを目的としてい
る。
SUMMARY OF THE INVENTION An object of the present invention is to provide a dispatching processing method that performs dispatching so that interrupt processing is efficiently performed in a virtual dyadic computer system.
そしてそのため、本発明のデイスパツチング処
理方式は、1台の実中央処理装置上に、同一のオ
ペレーテイング・システム配下で動作する2台の
仮想中央処理装置を実現し、各仮想中央処理装置
に実中央処理装置を使用する時間を分配しながら
処理を遂行させる計算機システムにおいて、一方
の仮想中央処理装置に分配されている時間がなく
なつた時、他方の仮想中央処理装置が待ち状態か
否かをチエツクし、待ち状態でなければタイムス
ライスTを設定して上記一方又は他方の仮想中央
処理装置に上記実中央処理装置を使用させ、他方
の仮想中央処理装置が待ち状態である場合には他
方の仮想中央処理装置の入出力マスク及び外部マ
スクが割込み可を示しているか否かを調べ、上記
他方の仮想中央処理装置の入出力マスク及び外部
マスクが割込み可を示しておればタイムスライス
t(ただしt<T)を設定して上記他方の仮想中
央処理装置に上記実中央処理装置を使用させ、上
記他方の仮想中央処理装置の入出力マスク及び外
部マスクが割込み不可を示しておれば、タイムス
ライスTを設定して上記一方の仮想中央処理装置
に上記実中央処理装置を使用させることを特徴と
するものである。
Therefore, the dispatching processing method of the present invention realizes two virtual central processing units that operate under the same operating system on one real central processing unit, and In a computer system that executes processing while distributing the time to use real central processing units, when the time allocated to one virtual central processing unit runs out, whether the other virtual central processing unit is in a waiting state. If the virtual central processing unit is not in the waiting state, time slice T is set to cause one or the other virtual central processing unit to use the real central processing unit, and if the other virtual central processing unit is in the waiting state, the other virtual central processing unit is It is checked whether the input/output mask and external mask of the other virtual central processing unit indicate that interrupts are enabled, and if the input/output mask and external mask of the other virtual central processing unit indicate that interrupts are enabled, time slice t( However, if you set t<T) to make the other virtual central processing unit use the real central processing unit, and the input/output mask and external mask of the other virtual central processing unit indicate that interrupts are not possible, then The present invention is characterized in that a slice T is set to cause one of the virtual central processing units to use the real central processing unit.
以下、本発明を図面を参照しつつ説明する。 Hereinafter, the present invention will be explained with reference to the drawings.
第1図は本発明のデイスパツチング処理の例を
示すものである。図示の例では、デイスパツチヤ
は、タイムスライスTをタイマにセツトし、メモ
リ上の所定領域にセーブされていた仮想中央処理
装置VCPU#0の内部状態情報を実中央処理装置
の元の場所に書込み、仮想中央処理装置をデイス
パツチングしている。上記のタイムスライス用の
タイマがタイムアウトすると、デイスパツチヤ
は、下記のような処理を行う。 FIG. 1 shows an example of the dispatching process of the present invention. In the illustrated example, the dispatcher sets time slice T in the timer and writes the internal state information of virtual central processing unit VCPU#0, which was saved in a predetermined area on memory, to the original location of the real central processing unit. , dispatching a virtual central processing unit. When the above time slice timer times out, the dispatcher performs the following processing.
他方の仮想中央処理装置VCPU#1が
WAIT状態か否かを調べる。Yesのときはの
処理を行い、Noのときはの処理を行う。 The other virtual central processing unit VCPU#1
Check whether it is in WAIT state. If Yes, perform the process; if No, perform the process.
適当なアルゴリズム(一般的には交互に)で
仮想中央処理装置VCPU#0又はVCPU#1を
選択し、選択した仮想中央処理装置をデイスパ
ツチングする。 The virtual central processing unit VCPU#0 or VCPU#1 is selected by an appropriate algorithm (generally alternately), and the selected virtual central processing unit is dispatched.
他方の仮想中央処理装置VCPU#1のPSW
上のI/O割込み代表マスクがイネーブルか否か
を調べる。Yesの場合は、の処理を行い、
Noの場合は、の処理を行う。 PSW of the other virtual central processing unit VCPU#1
Check whether the above I/O interrupt representative mask is enabled. If Yes, process
If No, perform the following process.
WAIT状態の仮想中央処理装置VCPU#1
を選択する。そして、仮想中央処理装置VCPU
#0の内部状態情報をメモリの所定領域にセー
ブし、タイムスラライスtをタイマにセツト
し、メモリの他の所定領域にセーブされている
仮想中央処理装置VCPU#1の内部状態情報を
実中央処理装置の元の場所に復元し、仮想中央
処理装置VCPU#1をデイスパツチングする。 Virtual central processing unit VCPU#1 in WAIT state
Select. And the virtual central processing unit VCPU
The internal state information of virtual central processing unit VCPU#1 is saved in a predetermined area of memory, the time slicer t is set in the timer, and the internal state information of virtual central processing unit VCPU#1 saved in another predetermined area of memory is saved in the real central processing unit. Restore to the original location of the processing unit and dispatch virtual central processing unit VCPU#1.
タイムスライスTをタイマにセツトし、仮想
中央処理装置VCPU#0をデイスパツチングす
る。 Time slice T is set in the timer and virtual central processing unit VCPU#0 is dispatched.
以上の説明から明らかなように、本発明によれ
ば、バーチヤル・ダイアデイク方式の計算機シス
テムにおける割込み処理を効率よく行うことが出
来、ひいてはバーチヤル・ダイアデツク方式の計
算機システムの用途を拡大することが出来る。
As is clear from the above description, according to the present invention, interrupt processing in a virtual dyadic computer system can be efficiently performed, and the applications of the virtual dyadide computer system can be expanded.
第1図は本発明のデイスパツチング処理の1例
を示す図、第2図はバーチヤル・ダイアデイク方
式の計算機における従来のデイスパツチング処理
を示す図である。
VCPU#0とVCPU#1……仮想中央処理装
置。
FIG. 1 is a diagram showing an example of the dispatching process of the present invention, and FIG. 2 is a diagram showing the conventional dispatching process in a computer using a virtual dyad system. VCPU#0 and VCPU#1...virtual central processing units.
Claims (1)
テイング・システム配下で動作する2台の仮想中
央処理装置を実現し、各仮想中央処理装置に実中
央処理装置を使用する時間を分配しながら処理を
遂行させる計算機システムにおいて、一方の仮想
中央処理装置に分配されている時間がなくなつた
時、他方の仮想中央処理装置が待ち状態か否かを
チエツクし、待ち状態でなければタイムスライス
Tを設定して上記一方又は他方の仮想中央処理装
置に上記実中央処理装置を使用させ、他方の仮想
中央処理装置が待ち状態である場合には他方の仮
想中央処理装置の入出力マスク及び外部マスクが
割込み可を示しているか否かを調べ、上記他方の
仮想中央処理装置の入出力マスク及び外部マスク
が割込み可を示しておればタイムスライスt(た
だしt<T)を設定して上記他方の仮想中央処理
装置に上記実中央処理装置を使用させ、上記他方
の仮想中央処理装置の入出力マスク及び外部マス
クが割込み不可を示しておれば、タイムスライス
Tを設定して上記一方の仮想中央処理装置に上記
実中央処理装置を使用させることを特徴とするデ
イスパツチング処理方式。1 Realize two virtual central processing units that operate under the same operating system on one real central processing unit, and distribute the time when the real central processing unit is used to each virtual central processing unit. In a computer system that executes processing, when the time allocated to one virtual central processing unit runs out, it is checked whether the other virtual central processing unit is in a waiting state, and if it is not in a waiting state, the time slice T is to make one or the other virtual central processing unit use the real central processing unit, and if the other virtual central processing unit is in a waiting state, the input/output mask and external mask of the other virtual central processing unit are set. If the input/output mask and external mask of the other virtual central processing unit indicate that interrupts are enabled, set the time slice t (however, t<T) and execute the other virtual central processing unit. If the virtual central processing unit is made to use the real central processing unit, and the input/output mask and external mask of the other virtual central processing unit indicate that interrupts are not allowed, time slice T is set and the one virtual central processing unit is used. A dispatching processing method characterized in that the device uses the real central processing unit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59181222A JPS6159540A (en) | 1984-08-30 | 1984-08-30 | Dispatching processing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59181222A JPS6159540A (en) | 1984-08-30 | 1984-08-30 | Dispatching processing system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6159540A JPS6159540A (en) | 1986-03-27 |
| JPH0364888B2 true JPH0364888B2 (en) | 1991-10-08 |
Family
ID=16096949
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59181222A Granted JPS6159540A (en) | 1984-08-30 | 1984-08-30 | Dispatching processing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6159540A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105207948B (en) * | 2014-06-30 | 2019-05-31 | 中兴通讯股份有限公司 | Data message distribution method and device |
-
1984
- 1984-08-30 JP JP59181222A patent/JPS6159540A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6159540A (en) | 1986-03-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0430053B2 (en) | ||
| JPH031698B2 (en) | ||
| JPS61272833A (en) | Data processor | |
| JPS62184544A (en) | Virtual computer system | |
| JPH0364888B2 (en) | ||
| JPH11184828A (en) | Test method for multiprocessor system | |
| JP2553526B2 (en) | Multitasking processor | |
| JPS6162939A (en) | Dispatching system | |
| Smith | A directly coupled multiprocessing system | |
| JPS6223895B2 (en) | ||
| JPS6084659A (en) | data processing equipment | |
| JPS6273335A (en) | Stack control system | |
| JPH022449A (en) | Information processor | |
| JPS61283955A (en) | Task control system for close connection type multi-processor | |
| JPS63311442A (en) | Multiple operating system | |
| JPS62293372A (en) | Master and slave processor | |
| JPH03237554A (en) | Multiprocessor control system | |
| SITKIN et al. | A real-time Kernel for a 1750A-based multiprocessor | |
| JPS608939A (en) | Special function set-up controlling system | |
| JPS62217326A (en) | Computer capable of storing and switching plural os | |
| JPH0296833A (en) | Different type job control system | |
| JPH01246636A (en) | Central processing unit management system for virtual computer system | |
| JPH02236656A (en) | Multiprocessor system | |
| JPH01300364A (en) | Multi-processor system | |
| JPH0319036A (en) | Dynamic dispatching system using time slice interval |