JPH07182296A - Method for controlling process switching - Google Patents

Method for controlling process switching

Info

Publication number
JPH07182296A
JPH07182296A JP32680093A JP32680093A JPH07182296A JP H07182296 A JPH07182296 A JP H07182296A JP 32680093 A JP32680093 A JP 32680093A JP 32680093 A JP32680093 A JP 32680093A JP H07182296 A JPH07182296 A JP H07182296A
Authority
JP
Japan
Prior art keywords
processing
switching
processor
roll
process switching
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.)
Granted
Application number
JP32680093A
Other languages
Japanese (ja)
Other versions
JP2872027B2 (en
Inventor
Yasuyuki Nasu
康之 那須
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)

Abstract

PURPOSE:To shorten processing time required after starting process switching processing by executing roll-out processing prior to the switching processing during the waiting time of start of the switching processing. CONSTITUTION:A process switching lock bit 20 is checked, and when the bit 20 is reset, the bit 20 is set up and process switching processing is started. When the switching processing is started, process selecting processing is executed to select a process to be executed next. Roll-out processing is started after the end of the selecting processing, but when a roll-out processing completion flag is set up, succeeding roll-in processing is started without executing the roll-out processing. When the completion flag is not set up, the roll-out processing is executed. At the end of the roll-out processing, the lock bit 20 and the roll-out processing completion flag are set up and then roll-in processing is started.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

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

【0002】[0002]

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

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

【0004】[0004]

【発明が解決しようとする課題】この従来の切り替え制
御方法では、あるプロセッサがプロセッサ切り替え処理
を開始しようとした時、システム内もしくは共通のメモ
リ空間を有するプロセッサグループ内の他のプロセッサ
が既にプロセス切り替え処理を開始していた場合にはそ
の処理が終了するまで、プロセス切り替え処理の開始時
点で待たされるという問題点がある。これを図3の例で
示すと、プロセス切り替え処理ロックビットがセットさ
れている時間が長くなり、プロセッサがロック要求を出
してもロック不成功となる確率が高くなるのがわかる。
According to this conventional switching control method, when a processor attempts to start a processor switching process, another processor in the system or a processor group having a common memory space has already switched the process. If the process has been started, there is a problem that the process is kept waiting until the process switching process starts. 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 long, and even if the processor issues a lock request, the probability of lock failure becomes high.

【0005】[0005]

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

【0006】[0006]

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

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

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

【0009】[0009]

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

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

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

【0012】その後、再度、プロセス切り替え処理ロッ
クビット20を調べる。このとき、まだプロセス切り替
え処理ロックビット20がセットされているならば、プ
ロセス切り替え処理開始待ちとなり、一定時間間隔でプ
ロセス切り替え処理ロックビット20を調べ、リセット
状態になるのを待つ。
Then, the process switching 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 performed, the process switching process lock bit 20 is examined at a constant time interval, and the process is reset.

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

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

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

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

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

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

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

【0020】[0020]

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

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

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

【図2】本発明の一実施例を示すブロック図である。FIG. 2 is a block diagram showing an 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 processing completion flag 2 System control device 20 Process switching processing lock bit 3 Main storage device

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 複数のプロセッサを備え、同時に単一の
プロセッサ上でのみプロセス切り替え処理を行うように
制御される情報処理装置におけるプロセス切り替え方式
において、 各プロセッサに、実行中プロセスのロールアウト処理が
終了した時点でセットされ、プロセス切り替え処理が終
了した時点でリセットされるフラグを設け、任意の1プ
ロセッサがプロセス切り替え処理を開始しようとした時
に、前記任意の1プロセッサ以外のプロセッサがプロセ
ス切り替え処理中の場合、前記任意の1プロセッサ上で
実行中であったプロセスのロールアウト処理を行い、前
記フラグをセットし、 前記任意の1プロセッサ以外のプロセッサがプロセス切
り替え処理を終了すると、前記任意の1プロセッサがプ
ロセス切り替え処理を開始し、 前記フラグがセットされていれば、プロセス切り替え処
理中に行われるロールアウト処理を行わないように制御
し、 プロセス切り替え処理が終了すると前記フラグをリセッ
トすることを特徴とするプロセス切り替え制御方法。
1. In a process switching method in an information processing apparatus comprising a plurality of processors and controlled to perform process switching processing only on a single processor at the same time, each processor is provided with rollout processing of a process being executed A flag that is set at the end of the process and reset at the end of the process switching process is provided, and when any one processor tries to start the process switching process, a processor other than the one processor is performing the process switching process. In the case of, if the process that was being executed on the arbitrary one processor is rolled out, the flag is set, and a processor other than the arbitrary one processor completes the process switching process, the arbitrary one processor Starts the process switching process, If the flag is set, the roll-out process performed during the process switching process is controlled so as not to be performed, and the flag is reset when the process switching process is completed.
【請求項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 true JPH07182296A (en) 1995-07-21
JP2872027B2 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
JP2872027B2 (en) 1999-03-17

Similar Documents

Publication Publication Date Title
JPS6364144A (en) Inter-memory data transfer system
JPH08115290A (en) Data transfer device
JPH07182296A (en) Method for controlling process switching
JP2003507815A (en) Interrupt service with save and return flags
US6629160B1 (en) Direct memory access controller
JPH02128249A (en) Storage control system
JPH0619775A (en) File tranfer method
JPH05257614A (en) Method for controlling disk input/output and device therefor
JPH01185734A (en) Buffer memory managing system
JP3214557B2 (en) I / O control device and DMA transfer control method
JPS6145344A (en) Swapping control system
JP2001195257A (en) Device on which program is loaded
JP2908108B2 (en) Font character management device
JPS6119064B2 (en)
JPH0635831A (en) Data processor
JPH04343123A (en) Synchronous writing system to multiplexling auxiliary storage device
JPH11167519A (en) Memory refresh control circuit, memory, memory module, and digital device
JPH06103495B2 (en) Information processing equipment
JPH05120012A (en) Exception processor
JPS58169236A (en) Control system for character font
JPH0561774A (en) Swapping control system
JPH03240135A (en) Ct device
JPS63208945A (en) Information processor
JPH0378035A (en) Task execution controller
JPH07200453A (en) Data processor

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