JP2872027B2 - Process switching control method - Google Patents

Process switching control method

Info

Publication number
JP2872027B2
JP2872027B2 JP32680093A JP32680093A JP2872027B2 JP 2872027 B2 JP2872027 B2 JP 2872027B2 JP 32680093 A JP32680093 A JP 32680093A JP 32680093 A JP32680093 A JP 32680093A JP 2872027 B2 JP2872027 B2 JP 2872027B2
Authority
JP
Japan
Prior art keywords
switching
processor
process switching
rollout
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.)
Expired - Lifetime
Application number
JP32680093A
Other languages
Japanese (ja)
Other versions
JPH07182296A (en
Inventor
康之 那須
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.)
NEC Computertechno Ltd
Original Assignee
NEC Computertechno 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 NEC Computertechno Ltd filed Critical NEC Computertechno Ltd
Priority to JP32680093A priority Critical patent/JP2872027B2/en
Publication of JPH07182296A publication Critical patent/JPH07182296A/en
Application granted granted Critical
Publication of JP2872027B2 publication Critical patent/JP2872027B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明はコンピュータのプロセス
切り替え制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a process switching control method for a computer.

【0002】[0002]

【従来の技術】従来この種のプロセス切り替え制御方法
は、システム内もしくは共通のメモリ空間を有するプロ
セッサグループ内で同時に1つしか実行しない構成にな
っている。
2. Description of the Related Art Conventionally, this type of process switching control method is configured to execute only one process at a time in a system or a processor group having a common memory space.

【0003】図3は従来のプロセス切り替え処理の一例
の処理フロー図である。図3によると、後からロック要
求を行ったプロセッサ1jが成功となるまでロールアウ
ト処理を含むプロセス切り替え処置をいっさい開始しな
い。
FIG. 3 is a processing flowchart of an example of a conventional process switching process. According to FIG. 3, the process switching process including the rollout process is not started at all until the processor 1j that has issued the lock request succeeds later.

【0004】[0004]

【発明が解決しようとする課題】この従来の切り替え制
御方法では、あるプロセッサがプロセッサ切り替え処理
を開始しようとした時、システム内もしくは共通のメモ
リ空間を有するプロセッサグループ内の他のプロセッサ
が既にプロセス切り替え処理を開始していた場合にはそ
の処理が終了するまで、プロセス切り替え処理の開始時
点で待たされるという問題点がある。これを図3の例で
示すと、プロセス切り替え処理ロックビットがセットさ
れている時間が長くなり、プロセッサがロック要求を出
してもロック不成功となる確率が高くなるのがわかる。
In this conventional switching control method, when a certain processor attempts to start processor switching processing, another processor in the system or in a processor group having a common memory space already has the process switching. When the process has been started, there is a problem that the process is waited at the start of the process switching process until the process is completed. If this is shown in the example of FIG. 3, it can be seen that the time during which the process switching process lock bit is set becomes longer, and the probability that the lock is unsuccessful even if the processor issues a lock request increases.

【0005】[0005]

【課題を解決するための手段】本発明の方法は、複数の
プロセッサを備え、同時に単一のプロセッサ上でのみプ
ロセス切り替え処理を行うように制御される情報処理装
置におけるプロセス切り替え方式において、各プロセッ
サに、実行中プロセスのロールアウト処理が終了した時
点でセットされ、プロセス切り替え処理が終了した時点
でリセットされるフラグを設け、任意の1プロセッサが
プロセス切り替え処理を開始しようとした時に、前記任
意の1プロセッサ以外のプロセッサがプロセス切り替え
処理中の場合、前記任意の1プロセッサ上で実行中であ
ったプロセスのロールアウト処理を行い、前記フラグを
セットし、前記任意の1プロセッサ以外のプロセッサが
プロセス切り替え処理を終了すると、前記任意の1プロ
セッサがプロセス切り替え処理を開始し、前記フラグが
セットされていれば、プロセス切り替え処理中に行われ
るロールアウト処理を行わないように制御し、プロセス
切り替え処理が終了すると前記フラグをリセットするこ
とを特徴とするプロセス切り替え制御方法。特徴とす
る。
According to the present invention, there is provided a method for switching a process in an information processing apparatus comprising a plurality of processors and controlled to perform a process switching process only on a single processor at the same time. A flag that is set when the rollout process of the running process is completed and reset when the process switching process is completed, and that when any one processor attempts to start the process switching process, When a processor other than the one processor is in the process of switching the process, the processor performs a rollout process of the process being executed on the arbitrary one processor, sets the flag, and causes the processor other than the arbitrary one of the processors to switch the process. Upon completion of the processing, the arbitrary one processor Switching process is started, and if the flag is set, control is performed so that rollout processing performed during the process switching process is not performed, and the flag is reset when the process switching process ends. Process switching control method. Features.

【0006】[0006]

【作用】プロセス切り替え処理は、次に実行しようとす
るプロセスを選択するプロセス選択処理と、今まで実行
中であったプロセスのプロセス情報をプロセッサ内部か
らメモリに書き戻すロールアウト処理と、次に実行しよ
うとするプロセスのプロセス情報をメモリからプロセッ
サ内部へ読み込むロールイン処理に分けられる。
The process switching process includes a process selection process for selecting a process to be executed next, a roll-out process for writing back process information of a process that has been executed up to now from the processor to the memory, and a next execution process. Roll-in processing for reading process information of a process to be tried from a memory into a processor is included.

【0007】ところで、ロールアウト処理は、他のプロ
セッサがプロセス切り替え処理を実行中であっても、そ
のプロセス切り替え処理対象のプロセスとは無関係であ
り、独立して実行することができ、また一般に、ロール
アウト処理はプロセス切り替え処理時間の30%前後を
示す。したがって、他のプロセッサがプロセス切り替え
処置を実行中に先行してロールアウト処理を完了させて
おけば、プロセス切り替え処理時間はロールアウト処理
時間だけ短縮することができる。
[0007] Even if another processor is executing the process switching process, the rollout process is irrelevant to the process of the process switching process and can be executed independently. The rollout process indicates around 30% of the process switching process time. Therefore, if the rollout processing is completed in advance while another processor is executing the process switching processing, the process switching processing time can be reduced by the rollout processing time.

【0008】本発明は、この点に着目しなされたもので
ある。
The present invention has been made by focusing on this point.

【0009】[0009]

【実施例】本発明の一実施例を示す図2を参照すると、
本実施例は、ロールアウト処理完了フラグ100〜1n
0をそれぞれに設けたプロセッサ10〜1nと、システ
ム制御装置2と、プロセス切り替え処理ロックビット2
0を設けた主記憶処置3から構成される。
FIG. 2 shows an embodiment of the present invention.
In the present embodiment, the rollout processing completion flags 100 to 1n
0, a processor 10-1n, a system control device 2, a process switching process lock bit 2
It is composed of a main memory procedure 3 provided with 0.

【0010】プロセッサ10〜1nの中の1つのプロセ
ッサがプロセス切り替え処理を開始しようとするとき、
プロセス切り替え処理ロックビット20が既にセットさ
れているかを調べてセットされなければセットする。
When one of the processors 10 to 1n starts the process switching process,
It is checked whether the process switching lock bit 20 has already been set, and if not set, it is set.

【0011】プロセス切り替え処理ロックビット20が
既にセットされていたならば、他のプロセッサがプロセ
ス切り替え処置を実行中であることを意味する。この場
合、今まで実行していたプロセスの情報をメモリ上のプ
ロセス情報エリアへ書き戻し(ロールアウト処理)、ロ
ールアウト処理完了フラグをセットする。
If the process switching lock bit 20 has already been set, it means that another processor is executing a process switching action. In this case, the information of the process executed so far is written back to the process information area on the memory (rollout processing), and a rollout processing completion flag is set.

【0012】その後、再度、プロセス切り替え処理ロッ
クビット20を調べる。このとき、まだプロセス切り替
え処理ロックビット20がセットされているならば、プ
ロセス切り替え処理開始待ちとなり、一定時間間隔でプ
ロセス切り替え処理ロックビット20を調べ、リセット
状態になるのを待つ。
Thereafter, the process switching processing lock bit 20 is checked again. At this time, if the process switching process lock bit 20 is still set, the process switching process start waiting is waited, and the process switching process lock bit 20 is checked at a certain time interval, and waits for a reset state.

【0013】プロセス切り替え処理ロックビット20を
調べたとき、リセットされているならば、セットして、
プロセス切り替え処理を開始する。
When the process switching lock bit 20 is checked, if it is reset, it is set.
Start the process switching process.

【0014】プロセス切り替え処理に入ると、プロセス
選択処理を行い、次に実行すべきプロセスを選択する。
When the process switching process starts, a process selection process is performed, and a process to be executed next is selected.

【0015】プロセス選択処理が終わると、ロールアウ
ト処理に入るが、このときロールアウト処理完了フラグ
がセットされているならロールアウト処理は行わずに次
のロールイン処理に移る。ロールアウト処理完了フラグ
がセットされていなければ、ロールアウト処理を行う。
When the process selection process is completed, the roll-out process starts. If the roll-out process completion flag is set at this time, the process proceeds to the next roll-in process without performing the roll-out process. If the rollout processing completion flag is not set, the rollout processing is performed.

【0016】ロールアウト処理が終了すると、プロセス
切り替え処理ロックビット20とロールアウト処理完了
フラグをリセットした後、ロールイン処理に入る。
When the roll-out processing is completed, the process switching processing lock bit 20 and the roll-out processing completion flag are reset, and then the roll-in processing is started.

【0017】図1は上述の実施例の処理フロー図であ
る。図1を参照すると、プロセッサ1iはプロセス切り
替え処理ロックビットをセットした後(ロック要求を出
しロック成功を受け取ると)、プロセス選択処理とロー
ルアウト処理とロールイン処理からなるプロセス切り替
え処理を行う。ロールアウト処理が終了しロールイン処
理が始まる前にプロセス切り替え処理ロックビットをリ
セットする(ロック解除要求を出す)。
FIG. 1 is a processing flow chart of the above embodiment. Referring to FIG. 1, after setting a process switching process lock bit (when a lock request is issued and a lock success is received), the processor 1i performs a process switching process including a process selection process, a rollout process, and a rollin process. Before the roll-out processing is completed and the roll-in processing is started, the process switching processing lock bit is reset (a lock release request is issued).

【0018】プロセス切り替え処理ロックビットがセッ
トされている間、他のプロセッサ1iがセットしようと
しても不成功となる。他のプロセッサ1iがロック不成
功を受け取るとすぐにロールアウト処理を行い、ロール
アウト処理終了後にロールアウト完了フラグをセットし
再びロック要求を出す。ロック成功を受け取るまでロッ
ク要求を繰り返し、ロック成功を受け取るとプロセス選
択処理を行う。
While the process switching lock bit is set, any attempt by another processor 1i to be set is unsuccessful. As soon as the other processor 1i receives the lock failure, it performs the rollout process, sets the rollout completion flag after the rollout process is completed, and issues the lock request again. The lock request is repeated until a lock success is received, and when a lock success is received, a process selection process is performed.

【0019】プロセス選択処理終了後、ロールアウト完
了フラグがセットされていればロック解除要求を出した
後ロールイン処理を行う。ロールアウト完了フラグがセ
ットされていなければロールアウト処理を行い、ロック
解除要求後ロールイン処理を行う。
After the process selection processing is completed, if the rollout completion flag is set, a lock release request is issued and then the rollin processing is performed. If the rollout completion flag is not set, a rollout process is performed, and after a lock release request, a rollin process is performed.

【0020】[0020]

【発明の効果】以上説明したように、従来は、あるプロ
セッサがプロセス切り替え処理を実行中の場合に、他の
プロセッサがプロセス切り替え処理を開始しようとする
と、プロセス切り替え処理開始待ちになっていたのに対
して、本発明はプロセス切り替え処理開始待ち時間にロ
ールアウト処理を先行して実行することにより、プロセ
ス切り替え処理開始後の処理時間が短縮でき、結果とし
て、システム内のプロセス切り替え処理の競合を減らす
効果を有する。
As described above, conventionally, when a certain processor is executing a process switching process and another processor tries to start the process switching process, the process switching process is awaited. On the other hand, in the present invention, by executing the rollout process in advance of the process switching process start waiting time, the process time after the process switching process is started can be reduced, and as a result, competition of the process switching process in the system can be reduced. Has the effect of reducing.

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

【図1】本発明の一実施例の処理フロー図である。FIG. 1 is a processing flowchart of an embodiment of the present invention.

【図2】本発明の一実施例を示すブロック図である。FIG. 2 is a block diagram showing one embodiment of the present invention.

【図3】従来のプロセス切り替え処理フロー図である。FIG. 3 is a flowchart of a conventional process switching process.

【符号の説明】[Explanation of symbols]

10〜1n プロセッサ 100〜1n0 ロールアウト処理完了フラグ 2 システム制御装置 20 プロセス切り替え処理ロックビット 3 主記憶装置 10 to 1n processor 100 to 1n0 rollout process completion flag 2 system control device 20 process switching process lock bit 3 main storage device

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) G06F 15/16 430 G06F 9/46 360 JICSTファイル(JOIS)──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 6 , DB name) G06F 15/16 430 G06F 9/46 360 JICST file (JOIS)

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数のプロセッサを備え、同時に単一の
プロセッサ上でのみプロセス切り替え処理を行うように
制御される情報処理装置におけるプロセス切り替え方式
において、 各プロセッサに、実行中プロセスのロールアウト処理が
終了した時点でセットされ、プロセス切り替え処理が終
了した時点でリセットされるフラグを設け、任意の1プ
ロセッサがプロセス切り替え処理を開始しようとした時
に、前記任意の1プロセッサ以外のプロセッサがプロセ
ス切り替え処理中の場合、前記任意の1プロセッサ上で
実行中であったプロセスのロールアウト処理を行い、前
記フラグをセットし、 前記任意の1プロセッサ以外のプロセッサがプロセス切
り替え処理を終了すると、前記任意の1プロセッサがプ
ロセス切り替え処理を開始し、 前記フラグがセットされていれば、プロセス切り替え処
理中に行われるロールアウト処理を行わないように制御
し、 プロセス切り替え処理が終了すると前記フラグをリセッ
トすることを特徴とするプロセス切り替え制御方法。
1. A process switching method in an information processing apparatus comprising a plurality of processors and controlled to perform a process switching process only on a single processor at the same time. A flag that is set when the process is completed and is reset when the process switching process is completed is provided. When any one processor attempts to start the process switching process, a processor other than the arbitrary one processor is performing the process switching process. In the case of (1), when the process executed on the arbitrary one processor is rolled out, the flag is set, and when a processor other than the arbitrary one processor finishes the process switching process, the arbitrary one processor is processed. Starts the process switching process, and A process switching control method that controls not to perform a rollout process performed during the process switching process if the flag is set, and resets the flag when the process switching process ends.
【請求項2】 前記複数のプロセッサが単一の主記憶を
共有することを特徴とすることを特徴とする請求項1記
載のプロセス切り替え方法。
2. The process switching method according to claim 1, wherein the plurality of processors share a single main memory.
JP32680093A 1993-12-24 1993-12-24 Process switching control method Expired - Lifetime JP2872027B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32680093A JP2872027B2 (en) 1993-12-24 1993-12-24 Process switching control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32680093A JP2872027B2 (en) 1993-12-24 1993-12-24 Process switching control method

Publications (2)

Publication Number Publication Date
JPH07182296A JPH07182296A (en) 1995-07-21
JP2872027B2 true JP2872027B2 (en) 1999-03-17

Family

ID=18191852

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32680093A Expired - Lifetime JP2872027B2 (en) 1993-12-24 1993-12-24 Process switching control method

Country Status (1)

Country Link
JP (1) JP2872027B2 (en)

Also Published As

Publication number Publication date
JPH07182296A (en) 1995-07-21

Similar Documents

Publication Publication Date Title
JPH03278126A (en) Computer system starting system
JPH06202996A (en) Extended function of subscriber distributed two phase commit protocol
JP2000242484A (en) Change method for control program
JP2872027B2 (en) Process switching control method
JP2821345B2 (en) Asynchronous I / O control method
EP0285634B1 (en) Method to execute two instruction sequences in an order determined in advance
CN110941516A (en) Operating system restoration method, device, equipment and storage medium
JP2762816B2 (en) Transaction execution trace information collection method
EP0287600B1 (en) Method and device to execute two instruction sequences in an order determined in advance
US9542569B2 (en) Information processing system, information processing apparatus, storage medium having stored therein information processing program, and method of storing saved data
JP2000194556A (en) Instruction look-ahead system and hardware
JPS5837586B2 (en) Data file control method
JPH02128249A (en) Storage control system
JPH07271561A (en) Information processor
JP3263987B2 (en) Automatic IPL initial setting processing method
JP2002259145A (en) Method for executing program
JP2878098B2 (en) Memory file backup method for transaction processing system
JPH06202861A (en) Automatic application restarting device
JP2909128B2 (en) Startup processing takeover processor
CN117077115A (en) Cross-language multi-process interaction method, electronic equipment and medium in chip verification stage
JPS6126705B2 (en)
CN117649201A (en) Flow instance execution method and device, lightweight flow engine and storage medium
JPH0816431A (en) Debugging process system for user program
JP2568708B2 (en) How to update the double link queue
CN116669224A (en) Network connection method, intelligent device and storage medium

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19981201