JP3965678B2 - Information processing device - Google Patents

Information processing device Download PDF

Info

Publication number
JP3965678B2
JP3965678B2 JP2002060550A JP2002060550A JP3965678B2 JP 3965678 B2 JP3965678 B2 JP 3965678B2 JP 2002060550 A JP2002060550 A JP 2002060550A JP 2002060550 A JP2002060550 A JP 2002060550A JP 3965678 B2 JP3965678 B2 JP 3965678B2
Authority
JP
Japan
Prior art keywords
information processing
processing apparatus
instruction
program
termination
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 - Fee Related
Application number
JP2002060550A
Other languages
Japanese (ja)
Other versions
JP2003256085A (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 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 JP2002060550A priority Critical patent/JP3965678B2/en
Publication of JP2003256085A publication Critical patent/JP2003256085A/en
Application granted granted Critical
Publication of JP3965678B2 publication Critical patent/JP3965678B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、情報処理装置に関し、特に、パーソナルコンピュータやサーバ等の情報処理装置に関する。
【0002】
【従来の技術】
従来、パソコンやサーバ等の情報処理装置は、本体の起動時、又は終了時には、複数の常駐プロセスやコマンドを含むプログラムを決められた順序で起動、又は終了している。
【0003】
具体的には、終了時の場合には、1つ目のプログラムに対して終了処理を実行して、そのプログラムが実際に終了したら、2つ目のプログラムに対して終了処理を実行する、とのように、前に終了処理を行ったプログラムが実際に終了した後に次のプログラムに対して終了処理を実行している。
【0004】
また、特開2000−194572号公報には、各ジョブについて停電発生時の打切り処理の優先度および打切り時の動作状況情報の認識を可能とし、自動ジョブ運用の効率化を図ることを課題とした自動ジョブ運用方式が記載されている。
【0005】
上記公報に記載されている発明は、システム運用中に、各ジョブに対する終了優先度,ジョブ名,および再実行要否情報をジョブ情報表に登録するジョブ情報登録手段と、停電発生時におけるUPSからの指示によるシステムシャットダウン処理の際に、前記ジョブ情報表を検索して実行ジョブ群の中から終了優先度の高い順序で各実行ジョブを検出するジョブ終了優先度検索手段と、停電発生時に、前記ジョブ終了優先度検索手段によって検出された実行ジョブであって前記ジョブ情報表内の再実行要否情報に「再実行が必要である旨を示す情報」が設定されているジョブの打切り時点における動作状況情報をジョブ動作状況ファイルに登録した上で、各実行ジョブの打切り処理を行うジョブ動作状況参照登録手段と、システム再起動時に、前記ジョブ情報表内の各ジョブに対する再実行要否情報を参照して全ての再実行ジョブを順次検出する再実行ジョブ検索手段と、システム再起動時に、前記再実行ジョブ検索手段によって検出された再実行ジョブに対する動作状況情報を前記ジョブ動作状況ファイルから取得して停電発生時の打切り時点からの当該再実行ジョブの後続処理を起動する再実行ジョブ実行手段とを有するものである。
【0006】
【発明が解決しようとする課題】
しかし、従来の技術は、情報処理装置を緊急に終了させる必要がある場合にまで、通常の終了処理のままで終了処理を行うと、終了処理中に突然電源が落ちて、システムを破壊してしまう可能性がある。
【0007】
例えば、パソコンが無停電電源装置(uninterruptable power supply:UPS)から電源供給を受けている状態において、停電が発生し、UPSがローバッテリ状態になり、突然電源供給が断たれれば、プログラムが強制終了されてしまう可能性がある。
【0008】
そこで、本発明は、起動中の各プログラムに対して通常の終了要求が行われたかどうかによって、プログラムの終了手順を変更できるようにすることを課題とする。
【0009】
【課題を解決するための手段】
上記課題を解決するために、本発明は、オペレーションシステムを含む複数のプログラムが搭載された情報処理装置において、前記複数のプログラムのうち、起動中の前記プログラムに対して、当該プログラムの起動を終了させる終了要求を行う終了要求指示手段と、前記終了要求指示手段によって前記終了要求を受けた前記プログラムに対し、順次、起動を終了処理させる実行手段とを備え、前記終了要求指示手段は、入力される電源の状態によって決定される第1の終了指示と、当該情報処理装置の内部に記憶されている第2の終了指示との優先順位に基づいて、前記第1の終了指示、或いは前記第2の終了指示の何れか一方の終了指示により、前記終了要求を行うことを判別する判別手段と、前記第2の終了指示は、前記電源の状態が入力される度に、入力される直前の前記第1の終了指示が上書きされて当該情報処理装置の内部に記憶され、前記優先順位が更新される更新手段と、を更に備えることを特徴とする
【0010】
【発明の実施の形態】
以下、本発明の実施形態について図面を参照して説明する。
【0011】
(実施形態1)
[構成の説明]
図1は、本発明の実施形態1の情報処理装置の一部の模式的な構成を示すブロック図である。
【0012】
図1には、情報処理装置に搭載されているOSを含む複数のプログラムの起動/終了を制御するための各種情報を記憶しておくメモリ1と、メモリ1に記憶されている情報に基づいてプログラムの起動/終了の順序等を指示する指示部2と、指示部2の指示に従って各プログラムの起動処理又は終了処理を実行する実行部3と、指示部2に対してユーザが情報処理装置本体の電源のオン/オフの指示を入力する入力部4と、図示しないUPSから送られてくる停電又はローバッテリの信号を指示部2へ送るUPSドライバ5とを示している。
【0013】
メモリ1は、以下説明する旧指示メモリ11と、新指示メモリ12と、優先情報等メモリ13と、実行手順メモリ14とを含むファイルのようなものである。
【0014】
新指示メモリ12は、記憶部21に送られてくる「起動」、「通常の終了」、「停電による終了」、「ローバッテリによる終了」、「復電」、「ユーザによるメイン電源の押下」のいずれか新しい指示が記憶されるものである。
【0015】
旧指示メモリ11は、記憶部21によって、新指示メモリ12に記憶されている指示が更新される際に、それまで新指示メモリ12に記憶されていた指示が記憶されるものである。
【0016】
なお、後述するように、一旦、新指示メモリ12に記憶された指示が、旧指示メモリ11に書き直されることもある。
【0017】
優先情報等メモリ13は、優先指示判別部22が旧指示メモリ11,新指示メモリ12のいずれに記憶されている指示を優先して実行するかを判別するための情報と、旧指示メモリ11に記憶されている指示を優先して実行する場合にどのような手順で処理を実行するかを実行処理判別部23が判別するための情報とを記憶しておくものである。
【0018】
実行手順メモリ14は、実行処理判別部23の判別結果に応じて起動/終了手段31へ送る情報を記憶しておくものである。具体的な手順の内容については図2を用いて後述する。
【0019】
指示部2は、以下説明する記憶部21と、優先指示判別部22と、実行処理判別部23と、読出部24とを含むプログラムである。
【0020】
記憶部21は、本体のメインスイッチから押下されたことを示す指示が入力されたときや、UPSからローバッテリ、停電又は復電を示す指示が入力されたときに、新指示メモリ12に記憶してある指示を更新と共に、それまで新指示メモリ12に記憶していた指示を旧指示メモリ11に記憶するものである。
【0021】
優先指示判別部22は、記憶部21から送られる旧指示メモリ11への指示の記憶を完了したことを示す信号をトリガとして旧指示メモリ11,新指示メモリ12に記憶されている各指示を読み出して、それらの指示に基づく優先情報等メモリ13に記憶してある情報を参照し、旧指示メモリ11,新指示メモリ12のいずれに記憶されている指示を優先して実行するかを判別するものである。
【0022】
実行処理判別部23は、優先指示判別部22の判別の結果、新指示メモリ12に記憶されている指示を優先して実行する場合に、具体的にどのような手順で処理を実行するかを判別するものである。
【0023】
読出部24は、実行処理判別部23の判別結果に従って、実行手順メモリ14に記憶してある情報を読み出し、実行部3へ送るものである。
【0024】
実行部3は、以下説明する複数の起動/終了処理手段31を含むプログラムである。
【0025】
起動/終了手段31は、例えば情報処理装置本体に搭載されているプログラム毎に用意されており、読出部24から送られてきた情報に従って駆動されるものである。
【0026】
図2は、図1に示している優先情報等メモリ13に記憶してある情報の概念図である。
【0027】
図2は、旧指示メモリ11,新指示メモリ12に「ローバッテリ」による終了、ユーザによる「メインスイッチOFF」、「停電」による終了、「復電」、「通常の終了」、「起動」という指示が格納されたときに、旧指示メモリ11と新指示メモリ12とに記憶されている各指示のいずれを優先して実行するかということと、実際にどのような処理を実行するかを示すものである。
【0028】
なお、図2に示す「○」は新指示メモリ12に記憶されている指示の方を旧指示メモリ11に記憶されている指示に優先して実行し、「×」は旧指示メモリ11に記憶されている指示の方を新指示メモリ12に記憶されている指示に優先して実行することを示している。また、「△」について実施形態2で説明するように、UPSのバッテリ残量に応じて旧指示メモリ11と新指示メモリ12とに記憶されている各指示のいずれかを優先して実行することを示している。
【0029】
具体的には、例えば旧指示メモリ11に「停電」による終了という指示が格納され、新指示メモリ12に「ローバッテリ」による終了という指示が格納されたときには、新指示メモリ12に記憶されている指示を旧指示メモリ11に記憶されている指示に優先して実行する。そのとき、実際に実行する処理は後述する「P1」という処理である。
【0030】
また、例えば旧指示メモリ11に「ローバッテリ」による終了という指示が格納され、新指示メモリ12に「停電」による終了という指示が格納されたときには、旧指示メモリ11に記憶されている指示を、新指示メモリ12に記憶されている指示に優先して実行する。
【0031】
ここで、「P1」〜「P3」に示す処理は、例えば以下のような内容としている。すなわち、「P1」は「P1」〜「P3」の中で、最も早くプログラムの終了処理を完了させる必要があるもので、起動している全てのプログラムのうち、常駐プログラムと非常駐プログラムを一括終了又はそれに近い態様で終了する(例えばこれらの各プログラムに対して順次5秒程度ごとに終了する)。それからOSを終了する内容としている。
【0032】
「P2」は「P1」に続いてプログラムの終了処理を早く完了させる必要があるもので、例えば常駐プログラムのうち通信系のプログラムのようなプログラムや、複数のプログラム相互で依存性が高いものに対しては、先に終了命令を出したプログラムの終了後に次のプログラムに終了命令を出すことによって終了し、常駐プログラムのうちスケジュールサービスや業務サービスやプリンタなどの周辺装置の監視サービスなどに係るプログラムに対しては一括終了又はそれに近い態様で終了する。それからOSを終了する内容としている。
【0033】
「P3」は「P2」に続いてプログラムの終了処理を早く完了させる必要があるもので、起動しているプログラムの数にもよるが、常駐プログラムについては先に終了命令を出したプログラムの終了後に次のプログラムに終了命令を出すことによって終了し、それ以外のプログラムについては一括終了又はそれに近い態様で終了する。それからOSを終了する内容としている。
【0034】
なお、通常の終了命令が出されたときには、起動しているプログラムの全てに対して、先に終了命令を出したプログラムの終了後に次のプログラムに終了命令を出すことによって終了する。それからOSを終了するようにしている。
【0035】
また、本実施形態ではプログラム相互で依存性が高いものに対してはグルーピングして、それらを所要の手順で終了するようにしている。具体的には、例えばインターネットに接続するための接続用プログラムと、インターネットを通じてメールの送受信を行うための通信用プログラムとは相互に依存性が高いので同じグループに配し、通信用プログラムの終了が完了してから接続用プログラムを終了するようにしている。
【0036】
これは、実際にメールを送信しているときに「停電」等が発生しても、メールがきちんと送信できるするようにするために、メールの送信完了を待って通信用プログラムの終了命令を発し、通信用プログラムの終了処理が完了してから、接続用プログラムに対して終了命令を出せるようにするものである。
【0037】
図3は、プログラム相互で依存性が高いものに対するグルーピングの説明図である。図3に示すように、プログラムを常駐プログラムと、非常駐プログラムと、OSとに分類している。
【0038】
そして、常駐プログラムを、通信系サービスと、スケジュールサービスと、周辺装置の監視サービスとに大別している。
【0039】
[動作の説明]
図4は、図1の動作を示すフローチャートである。まず、指示部2に対して、入力部4から起動又は終了の指示が入力されたり、UPSドライバ5から「停電」等の指示が入力されると、記憶部21では、その指示を新指示メモリ12に記憶すると共に、それまで新指示メモリ12に記憶されていた指示を旧指示メモリ11に移す(ステップS1)。
【0040】
旧指示メモリ11への指示の記憶を完了すると、そのことを示す信号を優先指示判別部22へ出力する(ステップS2)。
【0041】
優先指示判別部22は、記憶部21からの信号をトリガとして旧指示メモリ11,新指示メモリ12に記憶されている各指示を読み出して、それらの指示に基づく優先情報等メモリ13に記憶してある情報を参照し、旧指示メモリ11に記憶されている指示を優先して実行するかどうかを判別する。判別結果は実行処理判別部23に送る(ステップS3)。
【0042】
判別の結果、新指示メモリ12に記憶されている指示を優先して実行する場合には、実行処理判別部23を起動する(ステップS4)。
一方、判別の結果、旧指示メモリ11に記憶されている指示を優先して実行する場合には、記憶部21に対して、旧指示メモリ11に記憶した指示を新指示メモリ12に書き直すように指示して、図2に示す処理を終了する(ステップS5)。
【0043】
実行処理判別部23は、優先情報等メモリ13を参照して、具体的に「P1」〜「P3」のいずれの処理を実行するかどうかを判別し、判別結果を読出部24に送る(ステップS6)。
【0044】
読出部24は、実行処理判別部23の判別結果に従って、実行手順メモリ14に記憶してある情報を読み出し、実行部3へ送る(ステップS7)。
【0045】
実行部3は、読出部24から送られてきた情報に従って所要の起動/終了手段31を駆動することによって、決められた手順で処理を実行する(ステップS8)。
【0046】
つぎに具体例として、情報処理装置の起動中に停電が発生した場合の動作について説明する。
【0047】
まず、UPSドライバ5から指示部2に対して、「停電」の指示が入力され、記憶部21では、その指示を新指示メモリ12に記憶すると共に、それまで新指示メモリ12に記憶されていた「起動」の指示を旧指示メモリ11に移す(ステップS1)。
【0048】
旧指示メモリ11への指示の記憶を完了すると、そのことを示す信号を優先指示判別部22へ出力する(ステップS2)。
【0049】
優先指示判別部22は、記憶部21からの信号をトリガとして旧指示メモリ11,新指示メモリ12に記憶されている「起動」、「停電」という各指示を読み出して、それらの指示に基づく優先情報等メモリ13に記憶してある情報を参照する。
【0050】
ここで、図3に示すように、旧指示メモリ11,新指示メモリ12に「起動」、「停電」という各指示が記憶されている場合には、新指示メモリ12に記憶されている「停電」という指示を優先して実行すると判別し、判別結果を実行処理判別部23に送る(ステップS3)。
【0051】
また、新指示メモリ12に記憶されている指示を優先して実行するので、実行処理判別部23が起動される(ステップS4)。
実行処理判別部23は、優先情報等メモリ13を参照して、具体的に「P3」の処理を実行すると判別し、判別結果を読出部24に送る(ステップS6)。
【0052】
読出部24は、実行処理判別部23の判別結果に従って、実行手順メモリ14に記憶してある情報を読み出して実行部3へ送る(ステップS7)。
【0053】
ここで、実行手順メモリ14に記憶してある「P3」に関する情報は、例えば『常駐プログラムについては、先に終了命令を出したプログラムの終了後に次のプログラムに終了命令を出すことによって終了し、それ以外のプログラムについては一括終了又はそれに近い態様で終了する。それからOSを終了する』という内容であり、実行部3では、常駐プログラムに係る1つ目の起動/終了手段31が起動され、当該プログラムが実際に終了すると、2つ目の起動/終了手段31が起動される。
【0054】
こうして、全ての常駐プログラムに係る起動/終了手段31が起動されることによって、各常駐プログラムが終了すると、OSに係る起動/終了手段31が起動され、最終的に全てのプログラムが終了される。
【0055】
(実施形態2)
[構成の説明]
図5は、本発明の実施形態2の情報処理装置の一部の模式的な構成を示すブロック図である。本実施形態では、「停電」や「ローバッテリ」によって、プログラムを終了しているとき又は終了した後に、ユーザによって「起動」の指示がされた場合に、「停電」等が復旧しているかどうかを確認して、復旧していない場合には、起動処理を中止するようにしている。
【0056】
図5に示す確認部25は、まだ停電が続いているかどうかの確認や、現在のバッテリ残量を確認するものである。なお、図5において、図1に示した部分と同様の部分には、同一符号を付している。
【0057】
[動作の説明]
図6は、ユーザによって「起動」の指示がされた場合の図5の動作を示すフローチャートである。
【0058】
まず、入力部4から「起動」の指示が入力されると、OSが起動され、指示部2では、確認部25によって新指示メモリ12を参照する(ステップS11)。
【0059】
そして、新指示メモリ12に記憶されている指示が「通常の終了」であるかどうかの判別がされる(ステップS12)。
【0060】
判別の結果、新指示メモリ12に記憶されている指示が「通常の終了」である場合には、常駐プログラムを起動する(ステップS14)。
【0061】
一方、判別の結果、新指示メモリ12に記憶されている指示が「通常の終了」でない場合には、確認部25はUPSドライバ5側にバッテリ残量を確認しにいく(ステップS13)。
【0062】
こうして、常駐プログラム等を起動できるくらいのバッテリ残量があるかどうか、すなわち常駐プログラム等の復旧(再起動)が可能であるかどうかを判別する(ステップS15)。
【0063】
判別の結果、常駐プログラム等の復旧が可能である場合には、常駐プログラムを起動する(ステップS14)。
【0064】
一方、判別の結果、常駐プログラム等の復旧が可能でない場合には、常駐プログラム等の起動処理を中止する(ステップS16)。
【0065】
このように、本実施形態では、復電したり、バッテリ残量がプログラムを復旧するのに十分になっていなければ、常駐プログラム等の起動を中止して、常駐プログラムを再度強制的に終了することがないようにしている。
【0066】
【発明の効果】
以上、説明したように、本発明によれば、起動中の各プログラムに対して優先順位に基づいた終了指示によって終了要求を行うことができると共に、電源の状態が入力される度に、終了要求を行う優先順位を更新することができるので、各プログラムを終了させる制御を的確に行うことができ、終了すべきプログラムや情報処理装置に関するデータを確実に保護することができる。
【図面の簡単な説明】
【図1】本発明の実施形態1の情報処理装置の一部の模式的な構成を示すブロック図である。
【図2】図1に示している優先情報等メモリ13に記憶してある情報の概念図である。
【図3】プログラム相互で依存性が高いものに対するグルーピングの説明図である。
【図4】図1の動作を示すフローチャートである。
【図5】本発明の実施形態2の情報処理装置の一部の模式的な構成を示すブロック図である。
【図6】ユーザによって「起動」の指示がされた場合の図5の動作を示すフローチャートである。
【符号の説明】
1 メモリ
2 指示部
3 実行部
4 入力部
5 UPSドライバ
11 旧指示メモリ
12 新指示メモリ
13 優先情報等メモリ
14 実行手順メモリ
21 記憶部
22 優先指示判別部
23 実行処理判別部
24 読出部
25 確認部
31 複数の起動/終了処理手段
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an information processing apparatus, and more particularly to an information processing apparatus such as a personal computer or a server.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, an information processing apparatus such as a personal computer or a server starts or ends a program including a plurality of resident processes and commands in a predetermined order when the main body starts or ends.
[0003]
Specifically, in the case of termination, the termination process is executed for the first program, and when the program is actually terminated, the termination process is performed for the second program. As described above, the end process is executed for the next program after the program that has been subjected to the end process is actually ended.
[0004]
Japanese Patent Laid-Open No. 2000-194572 has an object to improve the efficiency of automatic job operation by making it possible to recognize the priority of abort processing when a power failure occurs and the operation status information at the time of abort for each job. The automatic job operation method is described.
[0005]
The invention described in the above publication includes job information registration means for registering the end priority, job name, and re-execution necessity information for each job in the job information table during system operation, and UPS at the time of a power failure. During the system shutdown process according to the instruction, job end priority search means for searching the job information table and detecting each execution job in the order of high end priority from the execution job group, and when a power failure occurs, Operation at the time of job termination when it is an execution job detected by the job end priority search means and “re-execution necessity information” is set in the re-execution necessity information in the job information table Registers status information in the job status file, and then cancels the execution status of each execution job. Re-execution job search means for sequentially detecting all re-execution jobs with reference to re-execution necessity information for each job in the job information table, and re-execution detected by the re-execution job search means when the system is restarted. Re-execution job execution means for acquiring operation status information for an execution job from the job operation status file and starting subsequent processing of the re-execution job from the time when the power failure occurred.
[0006]
[Problems to be solved by the invention]
However, in the conventional technology, if the information processing apparatus needs to be terminated urgently and the termination process is performed with the normal termination process, the power is suddenly dropped during the termination process, and the system is destroyed. There is a possibility.
[0007]
For example, if a computer receives power from an uninterruptable power supply (UPS), a power failure occurs, the UPS goes into a low battery state, and the power supply is suddenly cut off, the program is forced It may be terminated.
[0008]
Therefore, an object of the present invention is to make it possible to change a program termination procedure depending on whether or not a normal termination request has been made to each activated program.
[0009]
[Means for Solving the Problems]
In order to solve the above problems, the present invention is the information processing apparatus in which a plurality of programs are installed including operating system, among the plurality of programs, for the previous Kipu program being activated, activation of the program An end request instruction means for making an end request for ending the program, and an execution means for sequentially ending the activation of the program that has received the end request by the end request instruction means. Based on the priority order of the first end instruction determined by the state of the input power supply and the second end instruction stored in the information processing apparatus, the first end instruction, or the Determining means for determining that the end request is to be made in accordance with one of the second end instructions; and the second end instruction is based on whether the state of the power source is Each time it is force, which will overwrite the first end instruction immediately before being inputted are stored in the internal of the information processing apparatus, and further comprising a updating means for said priority is updated .
[0010]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
[0011]
(Embodiment 1)
[Description of configuration]
FIG. 1 is a block diagram showing a schematic configuration of a part of the information processing apparatus according to the first embodiment of the present invention.
[0012]
FIG. 1 shows a memory 1 that stores various types of information for controlling activation / termination of a plurality of programs including an OS installed in an information processing apparatus, and information stored in the memory 1. The instruction unit 2 for instructing the order of program start / end, the execution unit 3 for executing the start process or the end process of each program in accordance with the instruction from the instruction unit 2, and the user is directed to the instruction unit 2 An input unit 4 for inputting a power ON / OFF instruction and a UPS driver 5 for transmitting a power failure or low battery signal sent from a UPS (not shown) to the instruction unit 2.
[0013]
The memory 1 is like a file including an old instruction memory 11, a new instruction memory 12, a priority information memory 13 and an execution procedure memory 14 which will be described below.
[0014]
The new instruction memory 12 is sent to the storage unit 21 as “start-up”, “normal end”, “end due to power failure”, “end due to low battery”, “power recovery”, “pressing main power by the user” One of the new instructions is stored.
[0015]
The old instruction memory 11 stores an instruction stored in the new instruction memory 12 until the instruction stored in the new instruction memory 12 is updated by the storage unit 21.
[0016]
As will be described later, the instruction stored in the new instruction memory 12 may be rewritten in the old instruction memory 11 once.
[0017]
The priority information memory 13 includes information for determining whether the priority instruction determination unit 22 preferentially executes an instruction stored in the old instruction memory 11 or the new instruction memory 12, and the old instruction memory 11. Information for the execution process determination unit 23 to determine in what procedure the process is executed when the stored instruction is executed with priority is stored.
[0018]
The execution procedure memory 14 stores information to be sent to the activation / termination means 31 according to the determination result of the execution process determination unit 23. Details of the procedure will be described later with reference to FIG.
[0019]
The instruction unit 2 is a program including a storage unit 21, a priority instruction determination unit 22, an execution process determination unit 23, and a reading unit 24 described below.
[0020]
The storage unit 21 stores in the new instruction memory 12 when an instruction indicating that it has been pressed from the main switch of the main body is input, or when an instruction indicating low battery, power failure, or power recovery is input from the UPS. The instruction stored in the new instruction memory 12 until then is stored in the old instruction memory 11 together with the update.
[0021]
The priority instruction determination unit 22 reads each instruction stored in the old instruction memory 11 and the new instruction memory 12 by using a signal transmitted from the storage unit 21 indicating that the instruction has been stored in the old instruction memory 11 as a trigger. The information stored in the memory 13 such as the priority information based on those instructions is referred to, and it is determined whether the instruction stored in the old instruction memory 11 or the new instruction memory 12 is to be executed with priority. It is.
[0022]
As a result of the determination by the priority instruction determination unit 22, the execution process determination unit 23 specifically determines in what procedure the process is executed when the instruction stored in the new instruction memory 12 is executed with priority. It is to be determined.
[0023]
The reading unit 24 reads information stored in the execution procedure memory 14 according to the determination result of the execution process determination unit 23 and sends the information to the execution unit 3.
[0024]
The execution unit 3 is a program including a plurality of start / end processing means 31 described below.
[0025]
The activation / termination means 31 is prepared for each program installed in the information processing apparatus main body, for example, and is driven according to the information sent from the reading unit 24.
[0026]
FIG. 2 is a conceptual diagram of information stored in the priority information memory 13 shown in FIG.
[0027]
FIG. 2 shows that the old instruction memory 11 and the new instruction memory 12 are terminated by “low battery”, “main switch OFF” by the user, “power failure”, “power recovery”, “normal termination”, and “activation”. When an instruction is stored, it indicates which of the instructions stored in the old instruction memory 11 and the new instruction memory 12 is prioritized and what processing is actually executed. Is.
[0028]
Note that “◯” shown in FIG. 2 executes the instruction stored in the new instruction memory 12 in preference to the instruction stored in the old instruction memory 11, and “×” is stored in the old instruction memory 11. This indicates that the instruction being executed is prioritized over the instruction stored in the new instruction memory 12. Further, as described in the second embodiment with respect to “Δ”, one of the instructions stored in the old instruction memory 11 and the new instruction memory 12 is preferentially executed according to the remaining battery capacity of the UPS. Is shown.
[0029]
Specifically, for example, when an instruction to terminate due to “power failure” is stored in the old instruction memory 11 and an instruction to terminate due to “low battery” is stored in the new instruction memory 12, the instruction is stored in the new instruction memory 12. The instruction is executed in preference to the instruction stored in the old instruction memory 11. At that time, the process actually executed is a process called “P1” described later.
[0030]
For example, when an instruction to end due to “low battery” is stored in the old instruction memory 11 and an instruction to end due to “power failure” is stored in the new instruction memory 12, the instruction stored in the old instruction memory 11 is changed to The instruction is executed with priority over the instruction stored in the new instruction memory 12.
[0031]
Here, the processes shown in “P1” to “P3” have the following contents, for example. In other words, “P1” is the one that needs to complete the program termination process earliest among “P1” to “P3”, and among all the running programs, the resident program and the non-resident program are collectively terminated. Or, it is finished in a manner close to that (for example, it is finished every about 5 seconds for each of these programs sequentially). Then, the OS is terminated.
[0032]
“P2” requires that program termination processing be completed early after “P1”. For example, a resident program such as a communication program or a program having a high dependency among a plurality of programs. On the other hand, a program related to a monitoring service for a peripheral device such as a schedule service, a business service, or a printer among the resident programs is terminated by issuing a termination command to the next program after the program that issued the termination command first. Is finished in a batch or close to it. Then, the OS is terminated.
[0033]
“P3” requires that the program end process be completed early after “P2”. For resident programs, the end of the program that issued the end command first depends on the number of running programs. The program is terminated later by issuing an end command to the next program, and the other programs are terminated in a batch manner or in a manner close thereto. Then, the OS is terminated.
[0034]
When a normal end instruction is issued, the process is terminated by issuing an end instruction to the next program after the end of the program that has issued the end instruction for all the programs that are running. Then, the OS is terminated.
[0035]
Further, in the present embodiment, the programs having high dependency among the programs are grouped, and they are terminated in a required procedure. Specifically, for example, a connection program for connecting to the Internet and a communication program for sending and receiving mail via the Internet are highly dependent on each other, so they are placed in the same group and the communication program is terminated. The connection program is terminated after completion.
[0036]
This means that even if a “power failure” occurs during the actual transmission of an email, it will wait for the completion of the email transmission and issue an instruction to terminate the communication program so that the email can be sent properly. Thus, after the communication program end processing is completed, an end command can be issued to the connection program.
[0037]
FIG. 3 is an explanatory diagram of grouping for programs that are highly dependent on each other. As shown in FIG. 3, the programs are classified into resident programs, non-resident programs, and OSs.
[0038]
The resident programs are broadly divided into communication services, schedule services, and peripheral device monitoring services.
[0039]
[Description of operation]
FIG. 4 is a flowchart showing the operation of FIG. First, when an instruction to start or end is input from the input unit 4 to the instruction unit 2 or an instruction such as “power failure” is input from the UPS driver 5, the storage unit 21 stores the instruction in a new instruction memory. 12 and the instruction previously stored in the new instruction memory 12 is transferred to the old instruction memory 11 (step S1).
[0040]
When the storage of the instruction in the old instruction memory 11 is completed, a signal indicating that is output to the priority instruction determination unit 22 (step S2).
[0041]
The priority instruction determination unit 22 reads each instruction stored in the old instruction memory 11 and the new instruction memory 12 using a signal from the storage unit 21 as a trigger, and stores it in the memory 13 such as priority information based on those instructions. With reference to certain information, it is determined whether or not the instruction stored in the old instruction memory 11 is to be executed with priority. The determination result is sent to the execution process determination unit 23 (step S3).
[0042]
As a result of the determination, when the instruction stored in the new instruction memory 12 is to be executed with priority, the execution process determining unit 23 is activated (step S4).
On the other hand, when the instruction stored in the old instruction memory 11 is preferentially executed as a result of the determination, the instruction stored in the old instruction memory 11 is rewritten in the new instruction memory 12 in the storage unit 21. The process shown in FIG. 2 is terminated (step S5).
[0043]
The execution process determination unit 23 refers to the priority information memory 13 and specifically determines which of the processes “P1” to “P3” is to be executed, and sends the determination result to the reading unit 24 (Step S1). S6).
[0044]
The reading unit 24 reads the information stored in the execution procedure memory 14 according to the determination result of the execution process determination unit 23, and sends the information to the execution unit 3 (step S7).
[0045]
The execution unit 3 executes the process according to the determined procedure by driving the required start / end means 31 in accordance with the information sent from the reading unit 24 (step S8).
[0046]
Next, as a specific example, an operation when a power failure occurs during startup of the information processing apparatus will be described.
[0047]
First, a “power failure” instruction is input from the UPS driver 5 to the instruction unit 2, and the storage unit 21 stores the instruction in the new instruction memory 12 and has been stored in the new instruction memory 12 until then. The “startup” instruction is transferred to the old instruction memory 11 (step S1).
[0048]
When the storage of the instruction in the old instruction memory 11 is completed, a signal indicating that is output to the priority instruction determination unit 22 (step S2).
[0049]
The priority instruction determination unit 22 reads each instruction of “startup” and “power failure” stored in the old instruction memory 11 and the new instruction memory 12 using a signal from the storage unit 21 as a trigger, and performs priority based on these instructions. Information stored in the information memory 13 is referred to.
[0050]
Here, as shown in FIG. 3, when the instructions “startup” and “power failure” are stored in the old instruction memory 11 and the new instruction memory 12, the “power failure” stored in the new instruction memory 12 is stored. "Is preferentially executed, and the determination result is sent to the execution process determination unit 23 (step S3).
[0051]
In addition, since the instruction stored in the new instruction memory 12 is executed with priority, the execution process determination unit 23 is activated (step S4).
The execution process determination unit 23 refers to the priority information memory 13 and determines that the process of “P3” is specifically executed, and sends the determination result to the reading unit 24 (step S6).
[0052]
The reading unit 24 reads the information stored in the execution procedure memory 14 according to the determination result of the execution process determination unit 23 and sends the information to the execution unit 3 (step S7).
[0053]
Here, the information regarding “P3” stored in the execution procedure memory 14 is, for example, “for a resident program, it ends by issuing an end instruction to the next program after the end of the program that previously issued the end instruction, Other programs are terminated in a batch manner or close to it. Then, the execution unit 3 starts the first start / end means 31 related to the resident program, and when the program actually ends, the second start / end means 31 is executed. Is activated.
[0054]
In this way, when the activation / termination means 31 relating to all the resident programs are activated, when each resident program is terminated, the activation / termination means 31 relating to the OS is activated, and finally all the programs are terminated.
[0055]
(Embodiment 2)
[Description of configuration]
FIG. 5 is a block diagram illustrating a schematic configuration of a part of the information processing apparatus according to the second embodiment of the present invention. In this embodiment, whether or not the “power failure” is restored when the user gives an instruction for “startup” when the program is terminated or after it is terminated due to “power failure” or “low battery” If it has not been recovered, the startup process is stopped.
[0056]
The confirmation unit 25 shown in FIG. 5 is for confirming whether or not a power failure still continues and confirming the current remaining battery level. In FIG. 5, the same parts as those shown in FIG.
[0057]
[Description of operation]
FIG. 6 is a flowchart showing the operation of FIG. 5 when a “start” instruction is given by the user.
[0058]
First, when a “startup” instruction is input from the input unit 4, the OS is started, and the instruction unit 2 refers to the new instruction memory 12 by the confirmation unit 25 (step S 11).
[0059]
Then, it is determined whether or not the instruction stored in the new instruction memory 12 is “normal end” (step S12).
[0060]
As a result of the determination, if the instruction stored in the new instruction memory 12 is “normal end”, the resident program is activated (step S14).
[0061]
On the other hand, as a result of the determination, if the instruction stored in the new instruction memory 12 is not “normal end”, the confirmation unit 25 confirms the remaining battery level on the UPS driver 5 side (step S13).
[0062]
In this way, it is determined whether or not the battery level is sufficient to activate the resident program or the like, that is, whether or not the resident program or the like can be restored (restarted) (step S15).
[0063]
If it is determined that the resident program can be restored, the resident program is activated (step S14).
[0064]
On the other hand, if it is determined that the resident program or the like cannot be recovered, the activation process of the resident program or the like is stopped (step S16).
[0065]
As described above, in this embodiment, if the power is restored or the remaining battery level is not sufficient to restore the program, the activation of the resident program is stopped and the resident program is forcibly terminated again. I'm trying not to get it.
[0066]
【The invention's effect】
As described above, according to the present invention, an end request can be issued to each running program by an end instruction based on the priority order, and the end request is issued each time a power state is input. Since the priority order for performing the process can be updated, the control for terminating each program can be performed accurately, and the data related to the program to be terminated and the information processing apparatus can be reliably protected.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a schematic configuration of a part of an information processing apparatus according to a first embodiment of the present invention.
2 is a conceptual diagram of information stored in a priority information memory 13 shown in FIG. 1; FIG.
FIG. 3 is an explanatory diagram of grouping for programs having high dependency among programs;
4 is a flowchart showing the operation of FIG. 1. FIG.
FIG. 5 is a block diagram showing a schematic configuration of a part of the information processing apparatus according to the second embodiment of the present invention.
6 is a flowchart showing the operation of FIG. 5 when a “start” instruction is given by the user.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 Memory 2 Instruction part 3 Execution part 4 Input part 5 UPS driver 11 Old instruction memory 12 New instruction memory 13 Priority information etc. memory 14 Execution procedure memory 21 Storage part 22 Priority instruction determination part 23 Execution process determination part 24 Reading part 25 Confirmation part 31 Multiple start / end processing means

Claims (8)

オペレーションシステムを含む複数のプログラムが搭載された情報処理装置において、
前記複数のプログラムのうち、起動中の前記プログラムに対して、当該プログラムの起動を終了させる終了要求を行う終了要求指示手段と、
前記終了要求指示手段によって前記終了要求を受けた前記プログラムに対し、順次、起動を終了処理させる実行手段とを備え、
前記終了要求指示手段は、
入力される電源の状態によって決定される第1の終了指示と、当該情報処理装置の内部に記憶されている第2の終了指示との優先順位に基づいて、前記第1の終了指示、或いは前記第2の終了指示の何れか一方の終了指示により、前記終了要求を行うことを判別する判別手段と、
前記第2の終了指示は、前記電源の状態が入力される度に、入力される直前の前記第1の終了指示が上書きされて当該情報処理装置の内部に記憶され、前記優先順位が更新される更新手段と、
を更に備えることを特徴とする情報処理装置。
In an information processing apparatus equipped with a plurality of programs including an operation system,
Among the plurality of programs, for the previous Kipu program during startup, and termination request instruction means for performing a termination request to terminate the activation of the program,
To said program receiving the termination request by the termination request instruction means, sequentially, and a execution means causes termination process startup,
The termination request instruction means includes
Based on the priority order of the first end instruction determined by the state of the input power supply and the second end instruction stored in the information processing apparatus, the first end instruction, or the A discriminating means for discriminating that the end request is to be made in accordance with either one of the second end instructions;
The second end instruction is stored in the information processing apparatus by overwriting the first end instruction immediately before being input every time the power supply state is input, and the priority order is updated. Updating means,
An information processing apparatus further comprising:
前記実行手段は、
前記判別手段の判別結果に応じて前記各プログラムに該当する相互依存性が関係付けられており、当該相互依存性に基づいて前記各プログラムに対して前記終了処理を実施する
ことを特徴とする請求項1記載の情報処理装置。
The execution means includes
And associated interdependencies corresponding to each program in accordance with the discrimination result of said discriminating means, claims which comprises carrying out the termination process to the each program on the basis of the interdependence Item 6. The information processing apparatus according to Item 1.
前記終了要求は、
前記相互依存性に基づいて、前記ローバッテリのために行われたとき、前記メインスイッチが押下されたために行われたとき、前記停電のために行われたときの順に前記終了処理を完了するまでの時間を長くする
ことを特徴とする請求項2記載の情報処理装置。
The termination request is
Based on the interdependence , the termination processing is completed in the order of when it was performed for the low battery, when it was performed because the main switch was pressed, and when it was performed because of the power failure. The information processing apparatus according to claim 2, wherein the time until the time is increased.
前記相互依存性は、  The interdependency is
依存性の高い前記プログラムに対してグルーピングを行い、前記終了処理を行うことを特徴とする請求項2記載の情報処理装置。  The information processing apparatus according to claim 2, wherein grouping is performed on the highly dependent program and the termination process is performed.
前記判別手段は、
前記第1の終了指示及び前記第2の終了指示が、当該情報処理装置本体への電力供給源がローバッテリにより行われたのか、又は、当該情報処理装置本体のメインスイッチが押下されたことにより行われたか、又は、停電のために行われたのか、又は、復電のために行われたのか、或いは、通常の終了であるかにより判別する
ことを特徴とする請求項1乃至4の何れか1項に記載の情報処理装置。
The discrimination means includes
It said first end instruction and the second end instruction, whether the power supply to the information processing apparatus main body is performed by a low-battery, or by the main switch of the information processing apparatus main body is pressed or it was made, or how was done due to a power outage, or, what was done for power recovery, or any claim 1 to 4, characterized in that to determine the whether a normal termination The information processing apparatus according to claim 1 .
前記実行手段によって前記各プログラムの前記終了処理を開始してから当該情報処理装置本体のメインスイッチがオフする前に復電したときに、実行している前記プログラムの前記終了処理を停止する停止手段を更に備え、
前記プログラムに対する前記終了要求が停電或いは当該情報処理装置本体への電力供給源がローバッテリのために行われた場合に、前記停止手段によって前記プログラムの当該終了処理を停止することを特徴とする請求項1乃至5の何れか1項に記載の情報処理装置。
When the main switch of the information processing apparatus main body from the start of the termination processing of each program is Fukuden before turning off by the execution means, stop means for stopping the termination processing of the programs that are running Further comprising
If the termination request for the program is a power failure, or the power supply to the information processing apparatus main body is done for a low battery, characterized by stopping the termination processing of the program by said stop means The information processing apparatus according to any one of claims 1 to 5 .
前記停止手段は、既に終了したプログラムを再起動する手段を含むことを特徴とする請求項記載の情報処理装置。The information processing apparatus according to claim 6 , wherein the stopping unit includes a unit that restarts a program that has already ended. 電力の供給状況を確認する確認手段を更に備え、  It further comprises a confirmation means for confirming the power supply status,
前記情報処理装置に電源が投入された際、前記確認手段は当該情報処理装置を駆動する前記電力の供給状況を確認し、  When the information processing apparatus is powered on, the confirmation unit confirms the supply status of the power for driving the information processing apparatus,
当該情報処理装置が搭載する前記複数のプログラムを起動する前記電力を有している場合には、前記複数のプログラムを起動し、  If the information processing apparatus has the power to start the plurality of programs installed, start the plurality of programs,
当該情報処理装置が搭載する前記複数のプログラムを起動する前記電力を有していない場合には、前記供給状況に基づいて所定のプログラムの起動処理を中止する  If the power for starting the plurality of programs installed in the information processing apparatus is not available, the start processing of the predetermined program is stopped based on the supply status
ことを特徴とする請求項1乃至7の何れか1項に記載の情報処理装置。  The information processing apparatus according to claim 1, wherein the information processing apparatus is an information processing apparatus.
JP2002060550A 2002-03-06 2002-03-06 Information processing device Expired - Fee Related JP3965678B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002060550A JP3965678B2 (en) 2002-03-06 2002-03-06 Information processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002060550A JP3965678B2 (en) 2002-03-06 2002-03-06 Information processing device

Publications (2)

Publication Number Publication Date
JP2003256085A JP2003256085A (en) 2003-09-10
JP3965678B2 true JP3965678B2 (en) 2007-08-29

Family

ID=28669867

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002060550A Expired - Fee Related JP3965678B2 (en) 2002-03-06 2002-03-06 Information processing device

Country Status (1)

Country Link
JP (1) JP3965678B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4811009B2 (en) * 2005-12-12 2011-11-09 セイコーエプソン株式会社 Liquid crystal display control apparatus, liquid crystal display control method, liquid crystal display apparatus, and printing apparatus

Also Published As

Publication number Publication date
JP2003256085A (en) 2003-09-10

Similar Documents

Publication Publication Date Title
JP7184855B2 (en) SOFTWARE UPDATE DEVICE, SOFTWARE UPDATE METHOD
JP3965678B2 (en) Information processing device
EP0738971A2 (en) Automatic application restarting system and method
JP2809271B2 (en) Job re-execution method
CN115934390A (en) Method and system for processing application program crash and device for running application program
US20060059305A1 (en) Efficient firmware update for hierarchical data storage systems
JPH117382A (en) Version-up method for firmware
JP3551079B2 (en) Recovery method and device after replacement of modified load module
JPH05165539A (en) Automatic restart control system for batch program
US20030225898A1 (en) Method of controlling storage control apparatus, storage control apparatus, and computer readable program for controlling the same
JP2006331256A (en) Information processing device, installation processing method, memory medium, and program
JP3589830B2 (en) Electronic computer system
JP4717500B2 (en) Service restart device and service restart program
JP3159193B2 (en) Batch job recovery system in case of system failure
JPH08329006A (en) Fault information system
JP2001209551A (en) Operating system control unit, operating system control method and recording medium
JP2004355389A (en) Remote update system
JPH052499A (en) Job trouble re-processing system of information processor
JP2010140106A (en) Job execution system, method of taking over job flow used therein, and job flow takeover control program
JP2705522B2 (en) Business execution management method
JP2830772B2 (en) System boot device
JPH03225434A (en) Job reactuation system
JPH07168641A (en) Job automatic operation system
CN116541049A (en) Firmware upgrading method and device and electronic equipment
JP3350716B2 (en) Positioning device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040426

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20040513

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060707

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060802

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061002

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070507

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070520

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3965678

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100608

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110608

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110608

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120608

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120608

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130608

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees