JPH0651996A - Information processor - Google Patents

Information processor

Info

Publication number
JPH0651996A
JPH0651996A JP21958892A JP21958892A JPH0651996A JP H0651996 A JPH0651996 A JP H0651996A JP 21958892 A JP21958892 A JP 21958892A JP 21958892 A JP21958892 A JP 21958892A JP H0651996 A JPH0651996 A JP H0651996A
Authority
JP
Japan
Prior art keywords
function
data
data protection
protection function
application program
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
JP21958892A
Other languages
Japanese (ja)
Inventor
Kazuhiko Wada
一彦 和田
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP21958892A priority Critical patent/JPH0651996A/en
Publication of JPH0651996A publication Critical patent/JPH0651996A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide an information processor capable of protecting data in each application program when a fault occurs in the application program being operated on multithread environment. CONSTITUTION:A data protection function which requires the protection of an application program group 1 is registered on a data protection function string storage means 3 by a function registration and deletion means 2. When the fault in the application program is detected by a fault detecting means 4, a function string readout control means 5 executes by reading out the data protection function from the data protection function string storage means 3 sequentially. As a result, each protection data can be transferred to a protection data storage means 6, then, it is preserved. Thereby, it is possible to protect the protection data of each application program.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は情報処理装置に関し、
特にマルチスレッド環境上で複数のアプリケーションプ
ログラムが動作する場合において、何らかの障害が発生
した時に、個々のアプリケーションプログラムのデータ
を保護することができるようにした情報処理装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing device,
In particular, the present invention relates to an information processing apparatus capable of protecting data of individual application programs when some failure occurs when a plurality of application programs operate in a multi-thread environment.

【0002】[0002]

【従来の技術】従来からプログラムに障害が発生した場
合の障害回復に関して、種々の対策が講じられている。
2. Description of the Related Art Conventionally, various measures have been taken with respect to failure recovery when a program fails.

【0003】例えば、特開平2−171833号公報に
開示された発明では、仮想空間内に、業務を遂行する子
タスクとこの子タスクを監視する親タスクとを用意して
おき、プログラム障害によって子タスクが異常となって
終了した時に、親タスクが仮想空間を停止させることな
く子タスクを再生成するようにする対策が提案されてい
る。
For example, in the invention disclosed in Japanese Patent Application Laid-Open No. 2-171833, a child task that performs a task and a parent task that monitors this child task are prepared in a virtual space, and a child task is caused by a program failure. When a task ends abnormally, a measure is proposed in which the parent task regenerates the child task without stopping the virtual space.

【0004】また、特公昭61−61431号公報に
は、プログラム異常が生じた時に、異常の種別を登録し
ておき、異常が起きる度に、その異常が既登録のものか
未登録のものかを調べ、既登録のものであれば記憶内容
を更新し、未登録のものであれば異常の種別を新たに登
録し、登録された種別数が所定数を越えた時に、初めて
プログラム異常として処理を停止するようにした対策が
提案されている。
Further, in Japanese Patent Publication No. 61-61431, when a program abnormality occurs, the type of the abnormality is registered, and each time the abnormality occurs, whether the abnormality is already registered or unregistered. If it is already registered, the stored contents are updated, if it is not registered, the abnormal type is newly registered, and when the number of registered types exceeds a predetermined number, it is treated as a program abnormality for the first time. Measures to stop the operation have been proposed.

【0005】一般に、複数のアプリケーションプログラ
ムが記憶空間を共有せずに、独立に動作するシステムに
おいては、あるアプリケーションプログラムに障害が発
生するかあるいは該アプリケーションプログラムが異常
終了したとしても、他のアプリケーションプログラム
は、そのプロセスと資源を共有していなければ、特に被
害を受けることはない。
Generally, in a system in which a plurality of application programs operate independently without sharing a storage space, even if a certain application program fails or the application program terminates abnormally, other application programs Is not particularly harmed if it does not share resources with its process.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、複数の
スレッドが記憶空間を共有して動作する環境上、すなわ
ちマルチスレッド環境上で、複数のアプリケーションプ
ログラムが動作している時に、あるアプリケーションプ
ログラムで障害が発生するかあるいは該アプリケーショ
ンプログラムが異常終了した場合、他のアプリケーショ
ンプログラムのデータをも破壊される虞れがあるという
問題があった。
However, when a plurality of application programs are operating in an environment in which a plurality of threads operate by sharing a storage space, that is, in a multi-thread environment, a failure occurs in an application program. If this occurs or the application program terminates abnormally, there is a problem that the data of other application programs may be destroyed.

【0007】この発明の目的は、前記した従来技術の問
題点を除去し、マルチスレッド環境上で動作しているア
プリケーションプログラムに障害が発生した時、各アプ
リケーションプログラムのデータを保護することができ
る情報処理装置を提供することにある。
An object of the present invention is to eliminate the above-mentioned problems of the prior art and to protect the data of each application program when a failure occurs in the application program operating in a multi-thread environment. It is to provide a processing device.

【0008】[0008]

【課題を解決するための手段】前記目的を達成するため
に、本発明は、各アプリケーションプログラムに付加さ
れた障害発生時のデータ保護関数を格納するデータ保護
関数列記憶手段と、前記データ保護関数列記憶手段にデ
ータ保護関数を登録する関数登録手段と、障害発生を検
知する検知手段と、障害の発生時に、前記登録手段によ
り登録されたデータ保護関数を読出す関数列読出し手段
と、前記関数列読出し手段により読出されたデータ保護
関数に基づいて保護データを格納する保護データ記憶手
段とを具備した点に特徴がある。
In order to achieve the above object, the present invention provides a data protection function string storage means for storing a data protection function added to each application program when a failure occurs, and the data protection function. Function registration means for registering a data protection function in the column storage means, detection means for detecting a failure occurrence, function string reading means for reading out the data protection function registered by the registration means when a failure occurs, and the function It is characterized in that a protection data storage means for storing protection data based on the data protection function read by the column reading means is provided.

【0009】[0009]

【作用】本発明によれば、前記検知手段が障害を検知す
ると、関数列読出し手段が起動される。該関数列読出し
手段は、前記関数登録手段に登録されているデータ保護
関数を読出してこれを実行し、保護データを保護データ
記憶手段に保存する。
According to the present invention, when the detecting means detects a failure, the function sequence reading means is activated. The function string reading means reads the data protection function registered in the function registration means, executes the data protection function, and stores the protected data in the protected data storage means.

【0010】以上の動作により、障害発生時に、全ての
保護データが保護データ記憶手段に記憶されるので、保
護データが破壊される虞れがなくなり、信頼性の高いデ
ータ保護を実現することができる。
By the above operation, since all the protected data are stored in the protected data storage means when a failure occurs, there is no fear that the protected data will be destroyed, and highly reliable data protection can be realized. .

【0011】[0011]

【実施例】以下に、図面を参照して、本発明を詳細に説
明する。図1は本発明の基本構成を示すブロック図であ
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below with reference to the drawings. FIG. 1 is a block diagram showing the basic configuration of the present invention.

【0012】図において、1はアプリケーションプログ
ラム群を示し、例えば仮想メモリVMに記憶されてい
る。2は各アプリケーションプログラムが有している、
自身の必要なデータ保護を行う関数をデータ保護関数列
記憶装置3に登録したりあるいは該データ保護関数列記
憶装置3から抹消したりする関数登録および抹消手段で
ある。なお、この抹消は、例えばアプリケーションプロ
グラムが仮想メモリVMからアンロードされて、データ
の保護が不要になった場合に行われる。
In the figure, reference numeral 1 denotes an application program group, which is stored in, for example, a virtual memory VM. 2 is owned by each application program,
It is a function registering and erasing means for registering a function for performing its own necessary data protection in the data protection function sequence storage device 3 or deleting it from the data protection function sequence storage device 3. Note that this deletion is performed, for example, when the application program is unloaded from the virtual memory VM and data protection is no longer required.

【0013】また、4はアプリケーションプログラムの
動作時の障害を検知する障害検知手段であり、障害を検
知すると関数列読出し手段5を起動する。関数列読出し
手段5は、前記データ保護関数列記憶装置3からデータ
保護関数列を読出し、これを実行して、保護データを保
護データ記憶装置6に保存する作用をする。
Numeral 4 is a failure detecting means for detecting a failure during the operation of the application program. When the failure is detected, the function string reading means 5 is activated. The function string reading means 5 has the function of reading the data protection function string from the data protection function string storage device 3, executing it, and saving the protected data in the protected data storage device 6.

【0014】仮想メモリVMに記憶されたアプリケーシ
ョンプログラムとしては、例えば図2に示されているよ
うな関数a、b、…、Aからなるプログラムを想定する
ことができる。ここで、例えば関数Aがデータ保護を行
うことを必要とする関数、すなわちデータ保護関数であ
るとすると、該関数Aが前記関数登録および抹消手段2
により、データ保護関数列記憶装置3に登録されること
になる。
As the application program stored in the virtual memory VM, for example, a program including functions a, b, ..., A as shown in FIG. 2 can be assumed. Here, for example, if the function A is a function requiring data protection, that is, a data protection function, the function A is the function registration and deletion means 2.
As a result, the data protection function sequence storage device 3 is registered.

【0015】ここで、前記関数登録および抹消手段2
は、図3のフローチャートで示されている動作をする。
Here, the function registration and deletion means 2
Performs the operation shown in the flowchart of FIG.

【0016】すなわち、データ保護関数を登録するかま
たは抹消を要求されているかの判断をし(ステップS
1)、登録の要求であった場合には、関数の登録をする
動作(ステップS2)を行い、抹消の要求であった場合
には、関数の抹消をする動作(ステップS3)をする。
That is, it is judged whether the data protection function is registered or deletion is requested (step S
1) If the request is for registration, the operation of registering the function is performed (step S2), and if the request is for deletion, the operation of deleting the function is performed (step S3).

【0017】登録をする場合、プログラムとしては、例
えば下記のように記述すればよい。
When registering, the program may be described as follows, for example.

【0018】Call Register Func[A] 次に、前記データ保護関数列記憶装置3では、関数は、
図4に示されているように、リストの形で登録される。
図において、10は先頭項参照子(先頭項ポインタ)で
あり、11、12、13は登録関数リストである。ま
た、11a、11bおよび11cは、それぞれ、登録関
数リスト11、12、13の関数参照子によって参照さ
れるデータ保護関数である。
Call Register Func [A] Next, in the data protection function sequence storage device 3, the function is
As shown in FIG. 4, it is registered in the form of a list.
In the figure, 10 is a head item reference (head item pointer), and 11, 12 and 13 are registered function lists. Further, 11a, 11b and 11c are data protection functions referred to by the function reference of the registration function lists 11, 12 and 13, respectively.

【0019】例えば、登録されたデータ保護関数として
A、B、Cの3つがあったとすると、先頭項参照子10
で指された位置に先頭登録関数リスト11があり、該登
録関数リスト11の関数参照子によって、データ保護関
数Aが参照されている。
For example, if there are three registered data protection functions A, B, and C, the head term reference element 10
The head registration function list 11 is located at the position pointed to by, and the data protection function A is referenced by the function reference of the registration function list 11.

【0020】また、登録関数リスト12は前記先頭登録
関数リスト11の次項参照子によって指示される位置に
あり、データ保護関数Bは該登録関数リスト12の関数
参照子によって参照されている。
The registered function list 12 is located at the position indicated by the next item reference of the head registered function list 11, and the data protection function B is referred to by the function reference of the registered function list 12.

【0021】同様に、登録関数リスト13は前記登録関
数リスト12の次項参照子によって指示される位置にあ
り、データ保護関数Cは該登録関数リスト13の関数参
照子によって参照されている。
Similarly, the registered function list 13 is at the position indicated by the next term reference of the registered function list 12, and the data protection function C is referred to by the function reference of the registered function list 13.

【0022】そして、該データ保護関数Cがデータ保護
関数列記憶装置3に登録された最後の関数であるとする
と、該登録関数リスト13の次項参照子によって指示さ
れる位置にある登録関数リスト14は空になっている。
Assuming that the data protection function C is the last function registered in the data protection function string storage device 3, the registered function list 14 located at the position indicated by the reference item in the next item of the registered function list 13. Is empty.

【0023】以上のようなリスト構造のデータ保護関数
列に、新たなデータ保護関数Dを登録する時には、該関
数Dは前記空の登録関数リスト14に登録される。
When a new data protection function D is registered in the data protection function sequence having the above list structure, the function D is registered in the empty registration function list 14.

【0024】一方、該データ保護関数列記憶装置3か
ら、例えば登録関数リスト12を抹消する場合には、登
録関数リスト11の次項参照子が登録関数リスト13を
指すように、該次項参照子を変更すればよい。
On the other hand, when deleting the registered function list 12 from the data protection function string storage device 3, for example, the next term referencer of the registered function list 11 is designated so as to point to the registered function list 13. You can change it.

【0025】次に、前記障害検知手段4の処理を、図5
のフローチャートを参照して説明する。いま、障害検知
手段4が障害を検知したとすると(ステップS4が肯
定)、関数列読出し制御手段5を起動する。(ステップ
S5)次に、該関数列読出し制御手段5の動作を、図6
のフローチャートを参照して説明する。
Next, the processing of the fault detecting means 4 will be described with reference to FIG.
This will be described with reference to the flowchart in FIG. Now, assuming that the failure detection means 4 has detected a failure (Yes in step S4), the function string read control means 5 is activated. (Step S5) Next, the operation of the function string read control means 5 will be described with reference to FIG.
This will be described with reference to the flowchart in FIG.

【0026】いま、先頭登録関数リストをPと置くと
(ステップS11)、ステップS12では、該Pが空で
あるか否かを判定する。空でない場合にはステップS1
3に進んで、該先頭登録関数リストの関数参照子によっ
て参照される関数を実行する。この実行により、保護デ
ータAはデータ保護関数列記憶装置3から保護データ記
憶装置6に転送され、保存される。
Now, assuming that the head registration function list is P (step S11), it is determined in step S12 whether or not the P is empty. If not empty, step S1
In step 3, the function referred to by the function reference in the head registration function list is executed. By this execution, the protected data A is transferred from the data protection function sequence storage device 3 to the protected data storage device 6 and saved.

【0027】ステップS13の処理が終わると、ステッ
プS14に進んで、次項登録関数リストが選択される。
次いで、ステップS12に進んで、該登録関数リストが
空かどうかの判断がなされ、空でない場合にはステップ
S13に進み、前記と同様の処理が続けられる。一方、
空である場合には、全部の保護データが保護データ記憶
装置6に転送され、保護されたことになるので、処理を
終了する。
When the processing of step S13 is completed, the process proceeds to step S14, and the next term registration function list is selected.
Next, in step S12, it is determined whether or not the registered function list is empty. If it is not empty, the process proceeds to step S13, and the same processing as described above is continued. on the other hand,
If it is empty, it means that all the protected data has been transferred to the protected data storage device 6 and has been protected, so the processing ends.

【0028】以上のように、本実施例によれば、マルチ
スレッド上で動作しているアプリケーションプログラム
に障害が発生するかあるいは該アプリケーションプログ
ラムが異常終了した場合、この障害または異常を前記障
害検知手段が検知し、前記関数列読出し制御手段が各ア
プリケーションプログラムの保護データを保護データ記
憶装置に退避させるようにするので、保護データが破壊
されるのを防止することができる。
As described above, according to this embodiment, when a failure occurs in the application program operating on the multi-thread or the application program terminates abnormally, this failure or abnormality is detected by the failure detection means. Is detected and the function string read control means saves the protected data of each application program in the protected data storage device, so that the protected data can be prevented from being destroyed.

【0029】[0029]

【発明の効果】本発明によれば、マルチスレッド環境に
おいて、複数のアプリケーションプログラムが動作する
場合に、個々のアプリケーションプログラムが必要とす
る保護データを柔軟かつきめ細かに保護することがで
き、信頼度の高いデータ保護を実現できるという効果が
ある。
According to the present invention, when a plurality of application programs operate in a multi-thread environment, the protection data required by each application program can be protected flexibly and finely, and the reliability can be improved. This has the effect of achieving high data protection.

【0030】また、動的にデータ保護関数の追加又は抹
消ができるので、アプリケーションプログラムの追加お
よび削除に柔軟に対応するすることができるという効果
がある。
Further, since the data protection function can be dynamically added or deleted, it is possible to flexibly deal with the addition and deletion of the application program.

【0031】さらに、各アプリケーションプログラムが
必要なデータのみを保護することができるので、データ
保護関数列記憶装置および保護データ記憶装置の容量を
最小限にできるという効果がある。
Furthermore, since each application program can protect only the necessary data, the capacity of the data protection function sequence storage device and the protection data storage device can be minimized.

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

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

【図2】 アプリケーションプログラムの構造の一例を
示す図である。
FIG. 2 is a diagram showing an example of a structure of an application program.

【図3】 関数登録および抹消手段の動作を説明するフ
ローチャートである。
FIG. 3 is a flowchart illustrating the operation of function registration and deletion means.

【図4】 データ保護関数列記憶手段に記憶されている
データ保護関数列のデータ構造を説明する図である。
FIG. 4 is a diagram illustrating a data structure of a data protection function sequence stored in a data protection function sequence storage unit.

【図5】 障害検知手段の動作を説明するフローチャー
トである。
FIG. 5 is a flowchart for explaining the operation of the failure detection means.

【図6】 関数列読出し制御手段の動作を説明するフロ
ーチャートである。
FIG. 6 is a flowchart illustrating an operation of a function string read control unit.

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

1…アプリケーションプログラム群、2…関数登録およ
び抹消手段、3…データ保護関数列記憶手段、4…障害
検知手段、5…関数列読出し制御手段、6…保護データ
記憶手段
DESCRIPTION OF SYMBOLS 1 ... Application program group, 2 ... Function registration and deletion means, 3 ... Data protection function sequence storage means, 4 ... Fault detection means, 5 ... Function sequence read control means, 6 ... Protected data storage means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 複数のスレッドが記憶空間を共有して動
作する環境上で、複数のアプリケーションプログラムが
動作する情報処理装置において、 各アプリケーションプログラムに付加された障害発生時
のデータ保護関数を格納するデータ保護関数列記憶手段
と、 前記データ保護関数列記憶手段にデータ保護関数を登録
する関数登録手段と、 障害発生を検知する検知手段と、 障害の発生時に、前記登録手段により登録されたデータ
保護関数を読出す関数列読出し手段と、 前記関数列読出し手段により読出されたデータ保護関数
に基づいて保護データを格納する保護データ記憶手段と
を具備したことを特徴とする情報処理装置。
1. In an information processing apparatus in which a plurality of application programs operate in an environment in which a plurality of threads share a storage space and operate, a data protection function at the time of failure added to each application program is stored. Data protection function string storage means, function registration means for registering a data protection function in the data protection function string storage means, detection means for detecting the occurrence of a failure, and data protection registered by the registration means when a failure occurs An information processing apparatus comprising: a function string reading unit for reading a function; and a protected data storage unit for storing protected data based on the data protection function read by the function string reading unit.
【請求項2】 前記データ保護関数列記憶手段のデータ
保護関数を登録抹消する登録抹消手段を具備したことを
特徴とする請求項1記載の情報処理装置。
2. The information processing apparatus according to claim 1, further comprising a deregistration unit that deregisters the data protection function of the data protection function string storage unit.
JP21958892A 1992-07-28 1992-07-28 Information processor Pending JPH0651996A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21958892A JPH0651996A (en) 1992-07-28 1992-07-28 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21958892A JPH0651996A (en) 1992-07-28 1992-07-28 Information processor

Publications (1)

Publication Number Publication Date
JPH0651996A true JPH0651996A (en) 1994-02-25

Family

ID=16737891

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21958892A Pending JPH0651996A (en) 1992-07-28 1992-07-28 Information processor

Country Status (1)

Country Link
JP (1) JPH0651996A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63156144A (en) * 1986-12-19 1988-06-29 積水化学工業株式会社 Refractory structure of building

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63156144A (en) * 1986-12-19 1988-06-29 積水化学工業株式会社 Refractory structure of building
JPH0621477B2 (en) * 1986-12-19 1994-03-23 積水化学工業株式会社 Fireproof structure of building

Similar Documents

Publication Publication Date Title
KR102069522B1 (en) Maintaining secure data isolated from non-secure access when switching between domains
JP5680679B2 (en) Apparatus and method for handling exception events
US5701493A (en) Exception handling method and apparatus in data processing systems
KR102075369B1 (en) A data processing apparatus and method for protecting secure data and program code from non-secure access when switching between secure and less secure domains
JPH02135536A (en) Check point retrial mechanism
JP3970609B2 (en) Processor system
JP4275451B2 (en) Illegal memory access detection method and program thereof
CN107818034B (en) Method and device for monitoring running space of process in computer equipment
JPS6362039A (en) Computer
JPH0651996A (en) Information processor
US20030126520A1 (en) System and method for separating exception vectors in a multiprocessor data processing system
WO1990005951A1 (en) Method of handling unintended software interrupt exceptions
JP2562838B2 (en) Processor and store buffer control method
US5778207A (en) Assisting operating-system interrupts using application-based processing
JPH02244345A (en) Information processor
JPH01180656A (en) Memory protecting device
JPH0251742A (en) Preventing system for program runaway
JPH07210421A (en) Debugging method in thread environment
JP2635777B2 (en) Programmable controller
JPH0484224A (en) Stack area protection circuit
JP2004013240A (en) Computer system
JPH05127895A (en) Write protection system for general-purpose register
JPH07244536A (en) Resume supporting mechanism
JPH0553879A (en) Program fault information collecting system
JPH02245937A (en) Information processor