JPH01232432A - Program modification system - Google Patents

Program modification system

Info

Publication number
JPH01232432A
JPH01232432A JP63057384A JP5738488A JPH01232432A JP H01232432 A JPH01232432 A JP H01232432A JP 63057384 A JP63057384 A JP 63057384A JP 5738488 A JP5738488 A JP 5738488A JP H01232432 A JPH01232432 A JP H01232432A
Authority
JP
Japan
Prior art keywords
program
old
new
startup
issuing
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
JP63057384A
Other languages
Japanese (ja)
Inventor
Shinichi Nakajima
信一 中嶋
Hiroko Kobayashi
裕子 小林
Koichi Suda
須田 宏一
Fumio Kondo
文夫 近藤
Takeshi Itoga
健 糸賀
Akira Echizenya
越前谷 昭
Yuichiro Ito
雄一郎 伊藤
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.)
Fujitsu Ltd
NEC Corp
Nippon Telegraph and Telephone Corp
Original Assignee
Fujitsu Ltd
NEC Corp
Nippon Telegraph and Telephone 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 Fujitsu Ltd, NEC Corp, Nippon Telegraph and Telephone Corp filed Critical Fujitsu Ltd
Priority to JP63057384A priority Critical patent/JPH01232432A/en
Publication of JPH01232432A publication Critical patent/JPH01232432A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running

Abstract

PURPOSE:To improve the quality of online service by running programs in an old program and a new program in a program file in parallel and performing switching from the old program to the new program successively. CONSTITUTION:This system is constituted including a process control block 11, an executable program decision function 12, an old program control table 13, a new-old entry address contrast table 14, and the program file 15. Then programs in the old program 16 and new program 17 which are arranged double in the program file 15 are run in parallel and the switching from the old program to the new program is carried out by an online system successively. Consequently, the online system need not be stopped at the time of the modification of the program and processes being performed are not reduced, thereby improving the quality of the online system.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプログラム変更方式に関し、特に停止させるべ
きでないオンラインシステム(オンライン電子計算機シ
ステム)、例えば電子交換機のオンラインシステムにお
けるプログラム変更方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a program change method, and particularly to a program change method in an online system (online computer system) that should not be stopped, such as an online system of an electronic exchange.

〔従来の技術〕[Conventional technology]

従来、この種のプログラム変更方式(プログラムの並列
処理の単位であるプロセスが同時に複数存在することが
可能なオンラインシステムの運用中にそのオンラインシ
ステム上で実行されるプログラムの一部を入れ替えるプ
ログラム変更方式の中でも電子交換機のオンラインシス
テム等を対象とするプログラム変更方式)では、オンラ
インシスう一部が一時的に停止されて(本来は停止すべ
きではない)旧プログラムから新プログラムへのプログ
ラムの変更が行われ、プログラムの変更後の再開処理に
よりそのオンラインシステムの初期設定が行われ、その
後に新プログラムに基づくオンラインシステムの運用が
再開されていた。
Conventionally, this type of program change method (a program change method in which part of the program executed on an online system is replaced during operation of an online system in which multiple processes, which are units of parallel program processing, can exist at the same time) Among them, the program change method that targets the online system of electronic exchanges, etc.) involves temporarily stopping a part of the online system (which should not be stopped) and changing the program from the old program to the new program. The initial settings of the online system were performed by restart processing after the program was changed, and then the operation of the online system based on the new program was resumed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のプログラム変更方式では、オンラインシ
ステムが一時的に停止された後にプログラムの変更が行
われているので、そのオンラインシステムにおいて運用
中のオンラインサービス(例えば、通話サービス)がプ
ログラムの変更のために一時的に停止され、オンライン
サービスの品質が低下するという欠点がある。
In the conventional program change method described above, the program is changed after the online system is temporarily stopped. The disadvantage is that the service will be temporarily suspended and the quality of online services will deteriorate.

また、プログラムの変更後の再開処理によりそのオンラ
インシステムの初期設定が行われているので、プログラ
ムの変更前に走行中であったプロセスが消滅してしまい
プログラムの変更前に運用中のオンラインサービスが無
効になることがあり、オンラインサービスの品質が低下
するという欠点がある。
In addition, since the initial settings of the online system are performed by the restart processing after the program change, the processes that were running before the program change will disappear, and the online service that was in operation before the program change will disappear. The disadvantage is that it may be invalidated and the quality of online services will be reduced.

本発明の目的は、上述の点に鑑み、プログラムの変更時
にオンラインシステムを停止させる必要がなくなって走
行中のプロセスを消滅させることがなくなり、オンライ
ンシステムにおけるオンラインサービスの品質を向上す
ることができるプログラム変更方式を提供することにあ
る。
In view of the above-mentioned points, an object of the present invention is to provide a program that can improve the quality of online services in an online system by eliminating the need to stop the online system and eliminating running processes when changing programs. The purpose is to provide a change method.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のプログラム変更方式は、すでにオンラインシス
テムに組み込まれて動作中のプログラム変更対象である
旧プログラムと旧プログラムの代わりに新たにオンライ
ンシステムに組み込まれる新プログラムとが同時に二重
に配置されるプログラムファイルと、発行プログラムお
よび起動プログラムが前記プログラムファイル内のプロ
グラム変更対象に含まれるか否かを識別する情報を有す
る旧プログラム管理表と、プログラム変更対象に含まれ
る起動プログラムを使用する起動先プロセスが前記プロ
グラムファイル内の旧プログラム中の起動プログラムの
代わりに新プログラム中の起動プログラムを使用するこ
とができるか否かを示す新プログラム使用可能フラグと
旧プログラム中の各プログラムのエントリアドレスと新
プログラム中の対応する各プログラムのエントリアドレ
スとの対照情報とを有する新旧エントリアドレス対照表
と、各プロセスが前記プログラムファイル内の旧プログ
ラム中のプログラムを使用しているプロセスであるか否
かを示す新旧表示フラグを有するプロセス制御ブロック
と、前記プログラムファイル内に旧プログラムと新プロ
グラムとが二重に配置された後に発行元プロセスにより
起動先プロセスが生成された場合に発行プログラムがプ
ログラム変更対象に含まれており発行元プロセスが旧プ
ログラム中の発行プログラムを使用しているか否かを前
記旧プログラム管理表および発行元プロセスの前記プロ
セス制御ブロック内の新旧表示フラグに基づき判定しこ
の判定で発行プログラムがプログラム変更対象に含まれ
ており発行元プロセスが旧プログラム中の発行プログラ
ムを使用しているときには起動先プロセスを新プログラ
ム中の起動プログラムを使用して走行させることができ
るか否かを前記新旧エントリアドレス対照表内の新プロ
グラム使用可能フラグに基づき判定しこの判定で起動先
プロセスを新プログラム中の起動プログラムを使用して
走行させることができないときには旧プログラム中の起
動プログラムを起動先プロセスのために使用させて起動
先プロセスの前記プロセス制御ブロック内の新旧表示フ
ラグに旧プログラム中のプログラムを使用していること
を示す情報を設定しそれ以外のときには前記新旧エント
リアドレス対照表の参照による旧エントリアドレスから
新エントリアドレスへの変換に基づく新プログラム中の
起動プログラムならびに旧プログラムおよび新プログラ
ム以外の前記プログラムファイル内のtiI域中の起動
プログラムのいずれかを起動先プロセスのために使用さ
せて起動先プロセスの前記プロセス制御ブロック内の新
旧表示フラグに旧プログラム中のプログラムを使用して
いないことを示す情報を設定する走行可能プログラム判
定機能とを有する。
The program change method of the present invention is a program in which an old program that has already been incorporated into an online system and is in operation is the target of the change, and a new program that is newly incorporated into the online system in place of the old program. A file, an old program management table that has information that identifies whether or not the issued program and startup program are included in the program change target in the program file, and a startup process that uses the startup program included in the program change target. A new program usable flag indicating whether the startup program in the new program can be used in place of the startup program in the old program in the program file, the entry address of each program in the old program, and the new program. A new and old entry address comparison table having comparison information with the entry address of each corresponding program, and a new and old entry address comparison table showing whether each process is a process using a program in the old program in the program file. If a process control block having a display flag and an old program and a new program are placed twice in the program file, and then the issuing process generates the startup process, the issuing program is included in the program change target. It is determined whether the issuing process is using the issuing program in the old program based on the old program management table and the old/new display flag in the process control block of the issuing process, and based on this determination, the issuing program is used. If the issuing process is included in the program change target and the issuing process is using the issuing program in the old program, check whether the startup process can be run using the startup program in the new program or not in the old and new entry. Judgment is made based on the new program usable flag in the address comparison table. If it is determined that the startup process cannot be run using the startup program in the new program, the startup program in the old program is used as the startup process. information indicating that the program in the old program is being used is set in the new/old display flag in the process control block of the startup destination process; otherwise, the old entry address is determined by referring to the old/new entry address comparison table. The startup program in the new program based on the conversion from to the new entry address and any startup program in the tiI area in the program file other than the old program and the new program are used for the startup destination process. The program has a runnable program determination function that sets information indicating that the old program is not used in the new/old display flag in the process control block of the process.

〔作用〕[Effect]

本発明のプログラム変更方式では、すでにオンラインシ
ステムに組み込まれて動作中のプログラム変更対象であ
る旧プログラムと旧プログラムの代わりに新たにオンラ
インシステムに組み込まれる新プログラムとがプログラ
ムファイルに同時に二重に配置され、旧プログラム管理
表が発行プログラムおよび起動プログラムがプログラム
ファイル内のプログラム変更対象に含まれるか否かを識
別する情報を有し、新旧エントリアドレス対照表がプロ
グラム変更対象に含まれる起動プログラムを使用する起
動先プロセスがプログラムファイル内の旧プログラム中
の起動プログラムの代わりに新プログラム中の起動プロ
グラムを使用することができるか否かを示す新プログラ
ム使用可能フラグと旧プログラム中の各プログラムのエ
ントリアドレスと新プログラム中の対応する各プログラ
ムのエントリアドレスとの対照情報とを有し、プロセス
制御ブロックが各プロセスがプログラムファイル内の旧
プログラム中のプログラムを使用しているプロセスであ
るか否かを示す新旧表示フラグを有し、走行可能プログ
ラム判定機能がプログラムファイル内に旧プログラムと
新プログラムとが二重に配置された後に発行元プロセス
により起動先プロセスが生成された場合に発行プログラ
ムがプログラム変更対象に含まれており発行元プロセス
が旧プログラム中の発行プログラムを使用しているか否
かを旧プログラム管理表および発行元プロセスのプロセ
ス制御ブロック内の新旧表示フラグに基づき判定しこの
判定で発行プログラムがプログラム変更対象に含まれて
おり発行元プロセスが旧プログラム中の発行プログラム
を使用しているときには起動先プロセスを新プログラム
中の起動プログラムを使用して走行させることができる
か否かを新旧エントリアドレス対照表内の新プログラム
使用可能フラグに基づき判定しこの判定で起動先プロセ
スを新プログラム中の起動プログラムを使用して走行さ
せることができないときには旧プログラム中の起動プロ
グラムを起動先プロセスのために使用させて起動先プロ
セスのプロセス制御ブロック内の新旧表示フラグに旧プ
ログラム中のプログラムを使用していることを示す情報
を設定しそれ以外のときには新旧エントリアドレス対照
表の参照による旧エントリアドレスから新エントリアド
レスへの変換に基づく新プログラム中の起動プログラム
ならびに旧プログラムおよび新プログラム以外のプログ
ラムファイル内の領域中の起動プログラムのいずれかを
起動先プロセスのために使用させて起動先プロセスのプ
ロセス制御ブロック内の新旧表示フラグに旧プログラム
中のプログラムを使用していないことを示す情報を設定
する。
In the program change method of the present invention, an old program that is already installed and operating in an online system and is the target of the change, and a new program that is newly installed in the online system in place of the old program are placed in the program file at the same time. The old program management table has information that identifies whether or not the issued program and startup program are included in the program change target in the program file, and the old and new entry address comparison table uses the startup program included in the program change target. A new program usable flag indicating whether the target process to be launched can use the startup program in the new program instead of the startup program in the old program in the program file and the entry address of each program in the old program. and comparison information with the entry address of each corresponding program in the new program, and the process control block determines whether each process is a process using the program in the old program in the program file. The runnable program determination function detects whether the issuing program is changed when the issuing process creates the startup process after the old program and new program are placed twice in the program file. Based on the old program management table and the old/new display flag in the process control block of the issuing process, it is determined whether or not the issuing process is using the issuing program in the old program. is included in the program change target and the issuing process is using the issuing program in the old program, the new and old entries indicate whether the startup process can be run using the startup program in the new program. Judgment is made based on the new program usable flag in the address comparison table. If it is determined that the startup process cannot be run using the startup program in the new program, the startup program in the old program is used as the startup process. information indicating that the program in the old program is being used is set in the new/old display flag in the process control block of the startup destination process.Otherwise, the old entry address is used by referring to the new/old entry address comparison table. The process of the destination process uses either the startup program in the new program based on the conversion to the new entry address or the startup program in the area of the program file other than the old program and the new program for the startup destination process. Information indicating that the program in the old program is not used is set in the old/new display flag in the control block.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は、本発明のプログラム変更方式の一実施例の構
成を示すブロック図である0本実施例のプログラム変更
方式は、プロセス制御ブロック11と、走行可能プログ
ラム判定機能12と、旧プログラム管理表13と、新旧
エントリアドレス対照表14と、プログラムファイル1
5とを含んで構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the program change method of the present invention. Table 13, old and new entry address comparison table 14, and program file 1
5.

プロセス制御ブロック11は、プロセス毎に作成されて
おり、新旧表示フラグを有して構成されている。
The process control block 11 is created for each process, and includes old and new display flags.

旧プログラム管理表13は、プログラムファイル15内
の連続した領域に存在する単数または複数の変更される
プログラム(プログラム変更対象)毎に存在し・プログ
ラムファイル15内の旧プログラム(変更前のプログラ
ムの集合)16の先頭のアドレスを示すヘッドアドレス
と、旧プログラム16の末尾のアドレスを示すテールア
ドレスとを有している。
The old program management table 13 exists for each one or more programs to be changed (program change targets) existing in a continuous area in the program file 15. ) 16, and a tail address that indicates the end address of the old program 16.

新旧エントリアドレス対照表14は、変更されるプログ
ラム毎に存在し、プログラムファイル15内の旧プログ
ラム16中の当該プログラムの入口点のアドレスを示す
旧エントリアドレスと、プログラムファイル15内の新
プログラム(プログラム変更対象に対応してプログラム
ファイルI5内の連続した領域に追加される単数または
複数の変更後のプログラム)17中の当該プログラムに
対する変更後のプログラムの入口点のアドレスを示す新
エントリアドレスと、新プログラム17中の当該プログ
ラムに対する変更後のプログラムの使用が可能であるか
否かを示す新プログラム使用可能フラグとを有している
The old and new entry address comparison table 14 exists for each program to be changed, and includes the old entry address indicating the entry point address of the program in the old program 16 in the program file 15, and the new program (program) in the program file 15. A new entry address indicating the address of the entry point of the changed program for the program in (one or more changed programs) 17 added to a continuous area in the program file I5 corresponding to the change target, and It has a new program usable flag indicating whether or not a program after modification of the program in the program 17 can be used.

プログラムファイル15は、旧プログラム16と新プロ
グラム17とが同時に二重に配置されて構成されている
The program file 15 is composed of an old program 16 and a new program 17 arranged in duplicate at the same time.

第2図を参照すると、走行可能プログラム判定機能12
の処理は、発行元プロセス判定ステップ21と、発行プ
ログラム判定ステップ22と、起動プログラム判定ステ
ップ23と、新旧エントリアドレス変換ステップ24と
、新旧表示フラグ新”設定ステップ25と、新旧表示フ
ラグ旧°設定ステップ26とからなる。
Referring to FIG. 2, the runnable program determination function 12
The processing includes an issuing process determination step 21, an issuing program determination step 22, a starting program determination step 23, an old/new entry address conversion step 24, a new/old display flag setting step 25, and a new/old display flag old setting step 25. It consists of step 26.

次に、このように構成された本実施例のプログラム変更
方式の動作について説明する。
Next, the operation of the program change method of this embodiment configured as described above will be explained.

24時間(フルタイム)稼働が前提の電子交換機のオン
ラインシステム等のオンラインシステムにおいてプログ
ラムの変更が行われる場合には、まずプログラム変更開
始時に新プログラム17がプログラムファイル15に追
加され、プログラム変更対照毎に旧プログラム管理表1
3が作成され、プログラム変更対象である旧プログラム
16中のプログラム毎に新旧エントリアドレス対照表1
4が作成され、その時点で走行中のプロセスに対するプ
ロセス制御ブロック11内の新旧表示フラグが“旧”に
設定される(第1図にはプロセス制御ブロック11およ
び新旧エントリアドレス対照表14は1つしか示されて
いないが、実際にはそれぞれプロセスの数および旧プロ
グラム16中のプログラムの数だけ存在している。複数
のプログラム変更対象が存在するときには複数の旧プロ
グラム管理表13が存在する)。
When a program is changed in an online system such as an online system of an electronic exchange that is assumed to operate 24 hours a day (full-time), a new program 17 is first added to the program file 15 at the beginning of the program change, and the new program 17 is added to the program file 15 every time the program is changed. old program management table 1
3 is created, and a new and old entry address comparison table 1 is created for each program in the old program 16 that is the target of program change.
4 is created, and the old/new display flag in the process control block 11 for the process running at that time is set to "old" (in FIG. 1, there is only one process control block 11 and one old/new entry address comparison table 14). Although only the old program management tables 13 are shown, in reality, there are as many processes as there are programs and as many programs as the old programs 16. When there are multiple program change targets, multiple old program management tables 13 exist.

上述のような一連の処理の後に、走行可能プログラム判
定機能12による判定に基づいてプログラムファイル1
5内の旧プログラム16および新プログラム17中のプ
ログラムが並列的に走行され、逐次的に旧プログラム1
6から新プログラム17への切替えが次のようにして実
施される。
After a series of processes as described above, the program file 1 is determined based on the determination by the runnable program determination function 12.
The programs in the old program 16 and the new program 17 in 5 are run in parallel, and the old program 1
Switching from program 6 to new program 17 is performed as follows.

すなわち、プログラムファイル15に新プログラム17
が追加された後に発行元プロセスによる起動先プロセス
の生成(プログラムファイル15内のプログラムの並列
処理の単位であるプロセスはすでに走行しているプロセ
スによって生成される。ここで、プロセスを生成するす
でに走行中のプロセスを「発行元プロセス」といい、発
行元プロセスにより生成されるプロセスを「起動元プロ
セス」という)が行われた場合(起動元プロセスにより
使用されるプログラム(起動プログラム)の起動要求が
行われた場合)には、発行元プロセスのプロセス制御ブ
ロックll内の新旧表示フラグに基づいて発行元プロセ
ス判定(発行元プロセスのプロセス制御ブロック11内
の新旧表示フラグが“新”であるか“旧”であるかの判
定)が行われる(ステップ21)。
In other words, the new program 17 is added to the program file 15.
Creation of the startup process by the issuing process after the issuance process is added (the process that is the unit of parallel processing of the program in the program file 15 is created by the already running process. The process inside is called the "publisher process," and the process generated by the issuer process is called the "starter process." If this is done), the issuing process is determined based on the new/old display flag in the process control block 11 of the issuing process (whether the new/old display flag in the process control block 11 of the issuing process is "new" or not). "old") is performed (step 21).

この発行元プロセス判定で発行元プロセスのプロセス制
御ブロック11内の新旧表示フラグが1旧”である場合
には、旧プログラム管理表13に基づいて発行プログラ
ム(発行元プロセスにより使用されているプログラム)
がプログラム変更対象に含まれるか否かの判定(発行プ
ログラム判定。発行元プロセスの生成時に発行元プロセ
スに対して与えられている発行プログラムの先頭のアド
レスが旧プログラム管理表13内のヘッドアドレスとテ
ールアドレスとの間にあるか否かの判定)が行われる(
ステップ22)。
If the new/old display flag in the process control block 11 of the issuing process is "1 old" in this issuing process determination, the issuing program (program used by the issuing process) is determined based on the old program management table 13.
is included in the program change target (Issuing program judgment. If the start address of the issuing program given to the issuing process when the issuing process was created is the head address in the old program management table 13. and the tail address) is performed (
Step 22).

この発行プログラム判定で発行プログラムがプログラム
変更対象に含まれる場合には、発行プログラムが変更さ
れるプログラムでありしがも発行光プロセスは新プログ
ラム17中のプログラムではなく旧プログラム16中の
プログラムを使用していることが判明するので、起動プ
ログラムに対応する新旧エントリアドレス対照表14内
の新プログラム使用可能フラグ(旧プログラム16中の
発行プログラムから旧プログラム16中の起動プログラ
ムへの引継ぎ情報(パラメータ)と旧プログラム16中
の発行プログラムから新プログラム17中の起動プログ
ラムへの引継ぎ情報との間で変更がないかどうかという
ことに基づき起動プログラムとして新プログラム17中
のプログラムを使用できるが否がを示す情報)に基づい
て起動プログラムを旧プログラム16中のプログラムに
するか新プログラム17中のプログラムにするかの判定
(起動プログラム判定)が行われる(ステップ23)。
If the issuing program is included in the program change target in this issuing program judgment, the issuing program is the program to be changed, but the issuing optical process uses the program in the old program 16 instead of the program in the new program 17. Therefore, the new program usable flag (handover information (parameter) from the issuing program in the old program 16 to the starting program in the old program 16) in the new and old entry address comparison table 14 corresponding to the startup program It indicates whether or not the program in the new program 17 can be used as a startup program based on whether there is any change between the issuing program in the old program 16 and the handover information to the startup program in the new program 17. Based on the information), it is determined whether the startup program should be one of the old programs 16 or the new programs 17 (startup program determination) (step 23).

なお、起動プログラムがプログラム変更対象に含まれて
おらず起動プログラムに対応する新旧エントリアドレス
対照表14が存在しないときには、この起動プログラム
判定は行われない、このときには、起動元プロセスのプ
ロセス制御ブロック11内の新旧表示フラグが“新”に
設定されてプログラムファイル15内の旧プログラム1
6および新プログラム17以外の領域中の起動プログラ
ムが起動される。
Note that if the startup program is not included in the program change target and the new/old entry address comparison table 14 corresponding to the startup program does not exist, this startup program determination is not performed.In this case, the process control block 11 of the startup process The new/old display flag in the program file 15 is set to "new" and the old program 1 in the program file 15 is displayed.
6 and the new program 17 are activated.

この起動プログラム判定で新プログラム17中のプログ
ラムを起動プログラムとして起動することが可能な場合
には、起動プログラムに対応する新旧エントリアドレス
対照表14に基づいて旧エントリアドレスから新エント
リアドレスが求められ(旧エントリアドレスが新エント
リアドレスに切り替えられる)(ステップ24)、起動
元プロセスのプロセス制御ブロックll内の新旧表示フ
ラグが“新”に設定され(ステップ25)、新プログラ
ム17中の起動プログラムが起動される。
If the program in the new program 17 can be started as a startup program in this startup program determination, the new entry address is calculated from the old entry address based on the old and new entry address comparison table 14 corresponding to the startup program ( The old entry address is switched to the new entry address) (step 24), the old and new display flag in the process control block ll of the startup source process is set to "new" (step 25), and the startup program in the new program 17 is started. be done.

ステップ23の起動プログラム判定で新プログラム17
中のプログラムを起動プログラムとして起動することが
不可能な場合には、起動元プロセスのプロセス制御ブロ
ック11内の新旧表示フラグが“旧”に設定され(ステ
ップ26)、旧プログラム16中の起動プログラムが起
動される。
New program 17 in step 23 startup program judgment
If the program in the old program 16 cannot be started as the startup program, the old/new display flag in the process control block 11 of the startup source process is set to "old" (step 26), and the startup program in the old program 16 is set to "old" (step 26). is started.

ステップ22の発行プログラム判定で発行プログラムが
プログラム変更対象に含まれない場合には、起動プログ
ラムに対応する新旧エントリアドレス対照表14に基づ
いて旧エントリアドレスから新エントリアドレスが求め
られ(ステップ24)、起動元プロセスのプロセス制御
ブロック11内の新旧表示フラグが“新“に設定され(
ステップ25)、新プログラム17中の起動プログラム
が起動される(起動プログラムがプログラム変更対象に
含まれておらず起動プログラムに対応する新旧エントリ
アドレス対照表14が存在しないときには、起動元プロ
セスのプロセス制御ブロックll内の新旧表示フラグが
“新”に設定されてプログラムファイル15内の旧プロ
グラム16および新プログラム17以外の領域中の起動
プログラムが起動される)。
If the issuing program is not included in the program change target in step 22, the new entry address is calculated from the old entry address based on the old and new entry address comparison table 14 corresponding to the startup program (step 24); The new/old display flag in the process control block 11 of the startup source process is set to "new" (
Step 25), the startup program in the new program 17 is started (if the startup program is not included in the program change target and the old and new entry address comparison table 14 corresponding to the startup program does not exist, the process control of the startup source process The new/old display flag in block 11 is set to "new", and the activation programs in the area other than the old program 16 and new program 17 in the program file 15 are activated).

ステップ21の発行元プロセス判定で発行元プロセスの
プロセス制御ブロック11内の新旧表示フラりが“新”
である場合には、起動先プロセスのプロセス制御ブロッ
クll内の新旧表示フラグが“新”に設定され(ステッ
プ25)、新プログラム17中の起動プログラムが起動
される(起動プログラムがプログラム変更対象に含まれ
ないときにはプログラムファイル15内の旧プログラム
16および新プログラム17以外の領域中の起動プログ
ラムが起動される)。
In the issuer process determination in step 21, the new/old display flag in the process control block 11 of the issuer process is “new”
If so, the new/old display flag in the process control block ll of the startup destination process is set to "new" (step 25), and the startup program in the new program 17 is started (the startup program is subject to program change). If not included, a startup program in an area other than the old program 16 and new program 17 in the program file 15 is activated).

上述のような処理および判定によりプロセスファイル1
5内の旧プログラム16および新プログラム17中のプ
ログラムが並列的に走行され、逐次的に旧プログラム1
6から新プログラム17への切替えが実施され、全ての
プロセスに対するプロセス制御ブロックll内の新旧表
示フラグが“新”に設定された時点で旧プログラム16
中のプログラムを使用するプロセスが存在しなくなり、
本実施例のプログラム変更方式によるプログラムの変更
が完了する。
Process file 1 is created by the processing and determination described above.
The programs in the old program 16 and the new program 17 in 5 are run in parallel, and the old program 1
6 to the new program 17, and when the old and new display flags in the process control block ll for all processes are set to "new", the old program 16 is switched to the new program 17.
The process using the program inside no longer exists,
The program change using the program change method of this embodiment is completed.

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

以上説明したように本発明は、プログラムファイル内に
二重に配置される旧プログラムおよび新プログラム中の
プログラムが並列的に走行され逐次的にオンラインシス
テムにおける旧プログラムから新プログラムへの切替え
が行われることにより、プログラムの変更時にオンライ
ンシステムを停止させる必要がなくなって走行中のプロ
セスを消滅させることがなくなり、オンラインシステム
におけるオンラインサービスの品質を向上することがで
きるという効果がある。
As explained above, according to the present invention, the old program and the new program that are placed twice in the program file run in parallel, and the online system sequentially switches from the old program to the new program. This eliminates the need to stop the online system when changing programs and eliminates running processes, thereby improving the quality of online services in the online system.

また、起動プログラムとして走行可能なプログラムが新
プログラムおよび旧プログラムのいずれに存在するかが
判定されてこの判定で起動プログラムが旧プログラムに
存在する場合にも新旧エントリアドレス対照表内の新プ
ログラム使用可能フラグ等に基づき旧プログラム中のプ
ログラムを使用して走行するプロセスの生成を最小限に
とどめることが可能になることにより、早期に旧プログ
ラム中のプログラムを使用するプロセスをなくすことが
でき、プログラムの変更のための時間を短縮することが
できるという効果がある。
In addition, it is determined whether a program that can run as a startup program exists in the new program or the old program, and even if the startup program exists in the old program, the new program in the new and old entry address comparison table can be used. By making it possible to minimize the generation of processes that run using programs in old programs based on flags, etc., it is possible to eliminate processes that use programs in old programs at an early stage, and to improve program performance. This has the effect of shortening the time required for changes.

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

第1図は本発明の一実施例の構成を示すブロック図、 第2図は第1図中の走行可能プログラム判定機能の処理
を示す流れ図である。 図において、 11・・・プロセス制御ブロック、 12・・・走行可能プログラム判定機能、13・・・旧
プログラム管理表、 14・・・新旧エントリアドレス対照表、15・・・プ
ログラムファイル、 16・・・旧プログラム、 17・・・新プログラムである。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and FIG. 2 is a flow chart showing the processing of the runnable program determination function in FIG. In the figure, 11... Process control block, 12... Runnable program determination function, 13... Old program management table, 14... Old and new entry address comparison table, 15... Program file, 16... - Old program, 17... New program.

Claims (1)

【特許請求の範囲】 すでにオンラインシステムに組み込まれて動作中のプロ
グラム変更対象である旧プログラムと旧プログラムの代
わりに新たにオンラインシステムに組み込まれる新プロ
グラムとが同時に二重に配置されるプログラムファイル
と、 発行プログラムおよび起動プログラムが前記プログラム
ファイル内のプログラム変更対象に含まれるか否かを識
別する情報を有する旧プログラム管理表と、 プログラム変更対象に含まれる起動プログラムを使用す
る起動先プロセスが前記プログラムファイル内の旧プロ
グラム中の起動プログラムの代わりに新プログラム中の
起動プログラムを使用することができるか否かを示す新
プログラム使用可能フラグと旧プログラム中の各プログ
ラムのエントリアドレスと新プログラム中の対応する各
プログラムのエントリアドレスとの対照情報とを有する
新旧エントリアドレス対照表と、 各プロセスが前記プログラムファイル内の旧プログラム
中のプログラムを使用しているプロセスであるか否かを
示す新旧表示フラグを有するプロセス制御ブロックと、 前記プログラムファイル内に旧プログラムと新プログラ
ムとが二重に配置された後に発行元プロセスにより起動
先プロセスが生成された場合に発行プログラムがプログ
ラム変更対象に含まれており発行元プロセスが旧プログ
ラム中の発行プログラムを使用しているか否かを前記旧
プログラム管理表および発行元プロセスの前記プロセス
制御ブロック内の新旧表示フラグに基づき判定しこの判
定で発行プログラムがプログラム変更対象に含まれてお
り発行元プロセスが旧プログラム中の発行プログラムを
使用しているときには起動先プロセスを新プログラム中
の起動プログラムを使用して走行させることができるか
否かを前記新旧エントリアドレス対照表内の新プログラ
ム使用可能フラグに基づき判定しこの判定で起動先プロ
セスを新プログラム中の起動プログラムを使用して走行
させることができないときには旧プログラム中の起動プ
ログラムを起動先プロセスのために使用させて起動先プ
ロセスの前記プロセス制御ブロック内の新旧表示フラグ
に旧プログラム中のプログラムを使用していることを示
す情報を設定しそれ以外のときには前記新旧エントリア
ドレス対照表の参照による旧エントリアドレスから新エ
ントリアドレスへの変換に基づく新プログラム中の起動
プログラムならびに旧プログラムおよび新プログラム以
外の前記プログラムファイル内の領域中の起動プログラ
ムのいずれかを起動先プロセスのために使用させて起動
先プロセスの前記プロセス制御ブロック内の新旧表示フ
ラグに旧プログラム中のプログラムを使用していないこ
とを示す情報を設定する走行可能プログラム判定機能と
、 を有することを特徴とするプログラム変更方式。
[Claims] A program file in which an old program that has already been incorporated into an online system and is currently in operation is subject to change, and a new program that is to be newly incorporated into the online system in place of the old program are simultaneously and doubly arranged. , an old program management table having information for identifying whether or not the issued program and the startup program are included in the program change target in the program file; and a startup process that uses the startup program included in the program change target is the program. A new program usable flag indicating whether the startup program in the new program can be used instead of the startup program in the old program in the file, the entry address of each program in the old program, and the correspondence in the new program a new/old entry address comparison table having comparison information with the entry address of each program, and a new/old entry display flag indicating whether each process is a process using a program in the old program in the program file. and a process control block that has a process control block, and when a startup process is generated by an issuing process after the old program and new program are placed twice in the program file, the issuing program is included in the program change target. It is determined whether the issuing process is using the issuing program in the old program based on the old program management table and the old/new display flag in the process control block of the issuing process, and based on this determination, the issuing program changes the program. When the issuing process is included in the target and the issuing process is using the issuing program in the old program, the new and old entry addresses are compared to see whether the startup process can be run using the startup program in the new program. Judgment is made based on the new program usable flag in the table, and if it is determined that the startup process cannot be run using the startup program in the new program, the startup program in the old program is used for the startup process. information indicating that the program in the old program is being used is set in the new/old display flag in the process control block of the startup destination process. Otherwise, the new entry address is set by referring to the new/old entry address comparison table. The startup program in the new program based on the conversion to the entry address and the startup program in the area in the program file other than the old program and the new program are used for the startup destination process. A program change method comprising: a runnable program determination function that sets information indicating that a program in an old program is not used in a new/old display flag in a process control block;
JP63057384A 1988-03-12 1988-03-12 Program modification system Pending JPH01232432A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63057384A JPH01232432A (en) 1988-03-12 1988-03-12 Program modification system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63057384A JPH01232432A (en) 1988-03-12 1988-03-12 Program modification system

Publications (1)

Publication Number Publication Date
JPH01232432A true JPH01232432A (en) 1989-09-18

Family

ID=13054112

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63057384A Pending JPH01232432A (en) 1988-03-12 1988-03-12 Program modification system

Country Status (1)

Country Link
JP (1) JPH01232432A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0546418A (en) * 1991-08-20 1993-02-26 Fujitsu Ltd Table loading system for monitor and control device
US5274808A (en) * 1990-09-19 1993-12-28 Hitachi, Ltd. Method and system for replacing program in uninterruptible computer system
JPH0713746A (en) * 1993-06-24 1995-01-17 Nec Corp System generating method
JPH0713749A (en) * 1993-06-21 1995-01-17 Nec Corp Load module permuting method
US5511194A (en) * 1992-08-28 1996-04-23 Fujitsu Limited Processing system and processing method capable of dynamically replacing job environment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5274808A (en) * 1990-09-19 1993-12-28 Hitachi, Ltd. Method and system for replacing program in uninterruptible computer system
JPH0546418A (en) * 1991-08-20 1993-02-26 Fujitsu Ltd Table loading system for monitor and control device
US5511194A (en) * 1992-08-28 1996-04-23 Fujitsu Limited Processing system and processing method capable of dynamically replacing job environment
JPH0713749A (en) * 1993-06-21 1995-01-17 Nec Corp Load module permuting method
JPH0713746A (en) * 1993-06-24 1995-01-17 Nec Corp System generating method

Similar Documents

Publication Publication Date Title
JPH01232432A (en) Program modification system
US6532532B1 (en) Instruction execution mechanism
US5896527A (en) Accessing data during the transition between program releases
JPH08190491A (en) Task switching method
KR930015558A (en) Online Standby Loading Method for Software Changes
JP3451499B2 (en) I / O device control system configuration change processing method
JPH03196222A (en) Program replacing system
JPS6162918A (en) Restoration system for duplex file
JPH03127252A (en) Memory patch method for multiprocessor system
JPH04305733A (en) System forming method
JP2006139329A (en) Method for changing and controlling i/o target
JPH0330033A (en) File copying processor
JPH09331640A (en) Display of system status in history control
JPH064477A (en) Subload-module replacing system
JPH0713862A (en) Starting method for application program
JPH03252753A (en) Processing start-up device
JPH0713816A (en) File reconstitution system
JPH0391054A (en) Online batch message processing system
JP2020071762A (en) Building management device and building management method
JPH0378843A (en) Program control system using extension memory
JPH02309433A (en) Logging file processing system
JPH0425941A (en) Ipl resuming system
JPH0235536A (en) Update processing system for on-line file index part
JPH02181852A (en) Control table rearrangement processing system
JPH0764772A (en) System configuratuion changing and os operation environment set changing system for computer system