JPH04246711A - Fault restoration system for personal computer - Google Patents

Fault restoration system for personal computer

Info

Publication number
JPH04246711A
JPH04246711A JP3011803A JP1180391A JPH04246711A JP H04246711 A JPH04246711 A JP H04246711A JP 3011803 A JP3011803 A JP 3011803A JP 1180391 A JP1180391 A JP 1180391A JP H04246711 A JPH04246711 A JP H04246711A
Authority
JP
Japan
Prior art keywords
key code
keyboard
history table
personal computer
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
JP3011803A
Other languages
Japanese (ja)
Inventor
Shoji Maeda
前田 昭司
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 Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP3011803A priority Critical patent/JPH04246711A/en
Publication of JPH04246711A publication Critical patent/JPH04246711A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

PURPOSE:To constitute the system so that a system state to the time of suspension can be restored automatically or semiautomatically at the time of restart, even in the case an operation of a personal computer is suspended due to a fault such as power source disconnection and runaway, etc. CONSTITUTION:Keyboard input data stored as a time series in a key code history table 2-1 of a nonvolatile memory for storing the keyboard input data inputted from a keyboard 1 of a personal computer in order of its input is initialized at the time when the operation of an application program is finished normally. Subsequently, when execution of the application program is started, whether the storage contents of the key code history table 2-1 exist or not is checked, and when the storage contents do not exist, the regular actuation is executed, and when the storage contents exist, it is decided that a faul is generated and a store command of the key code history table 2-1 is executed, and thereafter, a restoration processing actuation for executing the next command of a keyboard input is executed.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はパーソナルコンピュータ
の障害復旧方式に関し、特に対話形式で動作するアプリ
ケーション・プログラムの実行中に発生する電源断・暴
走などの障害による動作中断後の復旧作業を自動又は半
自動にて行うことを可能とするパーソナルコンピュータ
の障害復旧方式に関する。
[Field of Industrial Application] The present invention relates to a fault recovery system for personal computers, and in particular, the present invention relates to a fault recovery method for personal computers, and in particular, automatic or This invention relates to a fault recovery method for personal computers that enables semi-automatic recovery.

【0002】0002

【従来の技術】従来、パーソナルコンピュータでは、キ
ー入力データは直接利用し、特に不揮発な形式で時系列
に記憶しておくような構成はとっていなかった。
2. Description of the Related Art Conventionally, personal computers have not been configured to directly utilize key input data and to store it in a non-volatile format in chronological order.

【0003】0003

【発明が解決しようとする課題】従来のパーソナルコン
ピュータでは、キーボード操作による入力データを直接
プログラム動作制御に使用するようになっているので、
プログラム動作中断後、再起動時中断前の状態に復旧す
るために必要なデータが残っていない。このため、障害
時には人間が再度最初からキーボード操作で中断前と同
じ作業を行い復旧を行わなくてはいけないという欠点が
ある。
[Problem to be Solved by the Invention] In conventional personal computers, input data from keyboard operations is used directly to control program operations.
After interrupting program operation, there is no remaining data necessary to restore the state before the interrupt when restarting. Therefore, in the event of a failure, a human must perform the same operation from the beginning again using the keyboard to restore the system.

【0004】0004

【課題を解決するための手段】本発明のパーソナルコン
ピュータの障害復旧方式は、パーソナルコンピュータの
キーボード入力データを入力順に記憶する不揮発性メモ
リを備え、この不揮発性メモリに時系列的に記憶したキ
ーボード入力データをアプリケーション・プログラムが
正常に動作終了時に初期化し、アプリケーション・プロ
グラムの実行開始時に前記不揮発性メモリの記憶内容の
有無をチェックし、記憶内容が無ければ通常起動を行な
い、記憶内容が有れば障害発生と判断して前記不揮発性
メモリの格納コマンドを実行したのちキーボード入力の
次のコマンドを実行する復旧処理起動を行なう構成を有
する。
[Means for Solving the Problems] A failure recovery method for a personal computer according to the present invention includes a non-volatile memory that stores keyboard input data of the personal computer in the order of input. The data is initialized when the application program finishes operating normally, and when the application program starts running, it is checked to see if there is any memory content in the non-volatile memory, and if there is no memory content, it is started normally, and if there is memory content, it is checked. The system is configured to execute a storage command in the nonvolatile memory upon determining that a failure has occurred, and then start a recovery process to execute the next command input from the keyboard.

【0005】[0005]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings.

【0006】図1は本発明の一実施例の構成図である。 図1において、1はキーボード,2はキーボード・デバ
イス・ドライバ,キーボード・デバイス・ドライバ2の
2−1は不揮発性メモリ上に配置されたキーコード履歴
テーブル,2−2はキーデータキュー,3はモニタ・デ
ィスパッチャ,4はアプリケーション・プログラムであ
る。また、a−1はキーボード1で押されたキーの外部
割込を通してキーボード・デバイス・ドライバ2に渡さ
れる入力キーコードで、復旧作業処理時を除きキーコー
ド履歴テーブル2−1に入力順に格納されるとともに、
モニタディスパッチャ3に渡すためにキーデータキュー
2−2にバッファリングされる。復旧作業処理時は、キ
ーボード・デバイス・ドライバ2において入力キーコー
ドa−1はキーコード履歴テーブル2−1に収納するこ
となくキーデータキュー2−2のバッファリングのみが
実行される。a−3は、キーボード・デバイス・ドライ
バ2がキーデータキュー2−2にバッファリングしたデ
ータをモニタディスパッチャ3に渡す出力キーコードで
あり、a−4はモニタ・ディスパッチャ3がアプリケー
ション・プログラム4に渡すべき出力キーコードa−3
を中継したアプリケーション渡しキーコードである。ま
たa−2は復旧処理時にキーコード履歴テーブル2−1
から読み出されるキーコード履歴データである。
FIG. 1 is a block diagram of one embodiment of the present invention. In FIG. 1, 1 is a keyboard, 2 is a keyboard device driver, 2-1 of the keyboard device driver 2 is a key code history table located on nonvolatile memory, 2-2 is a key data queue, and 3 is a keyboard device driver. Monitor dispatcher 4 is an application program. In addition, a-1 is an input key code passed to the keyboard device driver 2 through an external interrupt of a key pressed on the keyboard 1, and is stored in the key code history table 2-1 in the order of input, except during recovery work processing. Along with
The data is buffered in the key data queue 2-2 in order to be passed to the monitor dispatcher 3. During the recovery process, the keyboard device driver 2 only buffers the key data queue 2-2 without storing the input key code a-1 in the key code history table 2-1. a-3 is an output key code that the keyboard device driver 2 passes the data buffered in the key data queue 2-2 to the monitor dispatcher 3, and a-4 is the output key code that the monitor dispatcher 3 passes to the application program 4. Power output key code a-3
This is the application-passed key code that was relayed. Also, a-2 is the key code history table 2-1 during the recovery process.
This is key code history data read from.

【0007】次に、図1の実施例の動作について説明す
る。
Next, the operation of the embodiment shown in FIG. 1 will be explained.

【0008】まず、キーコード履歴テーブル2−1の使
用方法から説明する。このキーコード履歴テーブル2−
1は、正常にアプリケーション・プログラム4の動作が
終了し、モニタ・ディスパッチャ3が次のコマンド待状
態のアイドルステータスに戻った時初期化される。この
ため、システム起動時直前に電源断,暴走等の障害が無
かった場合、キーコード履歴テーブル2−1は記憶デー
タ無しの状態にあり、それ以外の障害が有った場合には
何らかのキーコードが格納されており、これによって復
旧処理が必要か否かの判断が可能となる。
First, the method of using the key code history table 2-1 will be explained. This key code history table 2-
1 is initialized when the operation of the application program 4 normally ends and the monitor dispatcher 3 returns to the idle status of waiting for the next command. Therefore, if there is no failure such as power outage or runaway immediately before system startup, the key code history table 2-1 will be in a state with no stored data, but if there is any other failure, some key code is stored, which makes it possible to judge whether or not recovery processing is necessary.

【0009】通常の起動の場合、キーコード履歴テーブ
ル2−1はデータ無しの状態にあり、キーボード・デバ
イス・ドライバ2はキーボード1による入力コマンドの
先頭キーコードから順次キーコード履歴テーブルに履歴
として入力コマンド終了までキーコードを格納する。
In the case of normal startup, the keycode history table 2-1 is in a state where there is no data, and the keyboard device driver 2 sequentially inputs the input commands from the keyboard 1 to the keycode history table as history starting from the first keycode. Stores the key code until the command ends.

【0010】次に、本実施例の全体的動作について説明
する。
Next, the overall operation of this embodiment will be explained.

【0011】システム起動時、キーボード・デバイス・
ドライバ2は、イニシャライズ動作時、キーコード履歴
テーブル2−1の内容をチェックし、これが空であれば
先頭から順にキーコードを格納するようにモードを設定
しモニタ・ディスパッチャ3に正常起動通知を送出する
。モニタ・ディスパッチャ3は、提供された正常起動通
知によって通常のコマンド待状態となる。もし、キーコ
ード履歴テーブル2−1が空でない場合には、キーボー
ド・デバイス・ドライバ2はキーコード履歴テーブル2
−1に対するキーコード格納は行なわないモードに設定
し、復旧処理起動をモニタ・ディスパッチャ3に知らせ
る。この復旧処理動作は、キーコード履歴テーブル2−
1に格納されたキーコード履歴データa−2を順次キー
データキュー2−2を介して読み出して実行することに
よって行なわれ、この過程ではアプリケーション・プロ
グラム4を起動するコマンドから順次,以前操作入力し
たとおりの処理を再現することが行なわれる。  復旧
処理終了時点では、必然的にアプリケーション・プログ
ラム4の動作中状態となっているため、キーコード履歴
テーブル2−1に対するキーコード履歴記録再開のメモ
リポインタは、復旧処理で読み出したキーコード格納位
置の次アドレスに設定される。以上の動作後、キーボー
ド・デバイス・ドライバ2は、キーコード履歴テーブル
2−1にキーコード履歴格納モードを設定し、システム
は中断前の状態に復旧し、動作を継続する。
[0011] When the system starts up, the keyboard, device,
During the initialization operation, the driver 2 checks the contents of the key code history table 2-1, and if it is empty, sets the mode to store the key codes in order from the beginning, and sends a normal startup notification to the monitor/dispatcher 3. do. The monitor dispatcher 3 enters a normal command waiting state in response to the provided normal startup notification. If the keycode history table 2-1 is not empty, the keyboard device driver 2
A mode is set in which key code storage for -1 is not performed, and the monitor/dispatcher 3 is notified of the start of recovery processing. This recovery processing operation is performed in the key code history table 2-
This is done by sequentially reading out and executing the key code history data a-2 stored in the key data queue 2-2 stored in the key data queue 2-2. The exact process is reproduced. At the end of the recovery process, the application program 4 is necessarily in an operating state, so the memory pointer for restarting keycode history recording for the keycode history table 2-1 is the keycode storage location read out during the recovery process. is set to the next address. After the above operations, the keyboard device driver 2 sets the keycode history storage mode in the keycode history table 2-1, and the system is restored to the state before interruption and continues operation.

【0012】0012

【発明の効果】以上説明したように本発明は、パーソナ
ルコンピュータのキーボード入力データを不揮発性メモ
リ上に履歴として残し、このデータの有無を起動時にチ
ェックし、データの有無で正常起動,復旧処理起動と判
断することにより、電源断や暴走による動作中断の場合
、再起動した時中断時の状態までシステム状態を自動又
は半自動にて復旧出来る効果がある。
Effects of the Invention As explained above, the present invention records the keyboard input data of a personal computer as a history on a non-volatile memory, checks the presence or absence of this data at startup, and depending on the presence or absence of data, normal startup and recovery processing start. By determining this, if the operation is interrupted due to power outage or runaway, the system state can be automatically or semi-automatically restored to the state at the time of interruption upon restart.

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

【図1】本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

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

1    キーボード 2    キーボード・デバイス・ドライバ2−1  
  キーコード履歴テーブル2−2    キーデータ
・キュー 3    モニタ・ディスパッチャ 4    アプリケーション・プログラムa−1   
 入力キーコード a−2    キーコード履歴データ a−3    出力キーコード
1 Keyboard 2 Keyboard device driver 2-1
Key code history table 2-2 Key data queue 3 Monitor dispatcher 4 Application program a-1
Input key code a-2 Key code history data a-3 Output key code

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  パーソナルコンピュータのキーボード
入力データを入力順に記憶する不揮発性メモリを備え、
この不揮発性メモリに時系列的に記憶したキーボード入
力データをアプリケーション・プログラムが正常に動作
終了時に初期化し、アプリケーション・プログラムの実
行開始時に前記不揮発性メモリの記憶内容の有無をチェ
ックし、記憶内容が無ければ通常起動を行ない、記憶内
容が有れば障害発生と判断して前記不揮発性メモリの格
納コマンドを実行したのちキーボード入力の次のコマン
ドを実行する復旧処理起動を行なうことを特徴とするパ
ーソナルコンピュータの障害復旧方式。
Claim 1: A non-volatile memory for storing keyboard input data of a personal computer in the order of input,
The keyboard input data stored in this non-volatile memory in chronological order is initialized when the application program normally completes its operation, and when the application program starts running, it is checked whether or not there is any content stored in the non-volatile memory. If there is no stored content, the personal computer starts up normally, and if there is memory content, it determines that a failure has occurred, executes the storage command in the nonvolatile memory, and then starts a recovery process that executes the next command input from the keyboard. Computer disaster recovery method.
JP3011803A 1991-02-01 1991-02-01 Fault restoration system for personal computer Pending JPH04246711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3011803A JPH04246711A (en) 1991-02-01 1991-02-01 Fault restoration system for personal computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3011803A JPH04246711A (en) 1991-02-01 1991-02-01 Fault restoration system for personal computer

Publications (1)

Publication Number Publication Date
JPH04246711A true JPH04246711A (en) 1992-09-02

Family

ID=11788014

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3011803A Pending JPH04246711A (en) 1991-02-01 1991-02-01 Fault restoration system for personal computer

Country Status (1)

Country Link
JP (1) JPH04246711A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014003448A1 (en) * 2012-06-27 2014-01-03 Samsung Electronics Co., Ltd. Terminal device and method of controlling the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014003448A1 (en) * 2012-06-27 2014-01-03 Samsung Electronics Co., Ltd. Terminal device and method of controlling the same

Similar Documents

Publication Publication Date Title
JPH07219809A (en) Apparatus and method for data processing
JP2522158B2 (en) Program debugging method for multiprocessor system
JPH04246711A (en) Fault restoration system for personal computer
JP2846760B2 (en) Programmable controller
JPH064364A (en) Cpu operation recording system
JP2849780B2 (en) Computer system
JPS62284440A (en) Software resource maintenance system for terminal equipment
JPH0395634A (en) Restart control system for computer system
JPH0581089A (en) Electronic equipment
JPH117392A (en) Data processor obtained by duplexing auxiliary storage device and method for falling system of data processor
JP3054472B2 (en) Fault handling method in multitask system
JPH0619808A (en) Information processor
JPH1027040A (en) Computer resetting system
JPH012150A (en) Dump execution control method
JPH052499A (en) Job trouble re-processing system of information processor
JPH0793188A (en) Runaway restoring device for process controller
JPH03225434A (en) Job reactuation system
JPH01302440A (en) Operation recording device for external input device
JPH04149644A (en) Fault processor
JPH0721091A (en) Service interruption processing method for electronic computer
JPH06187179A (en) Fault restoration system
JPH08221287A (en) System changeover controlling method
JPH02205906A (en) Automatic power-off control system for off-line processing system
JPH076103A (en) Fault processing system for input/output channel
JPH0218739B2 (en)