JPH0644088A - Operating system - Google Patents
Operating systemInfo
- Publication number
- JPH0644088A JPH0644088A JP4198032A JP19803292A JPH0644088A JP H0644088 A JPH0644088 A JP H0644088A JP 4198032 A JP4198032 A JP 4198032A JP 19803292 A JP19803292 A JP 19803292A JP H0644088 A JPH0644088 A JP H0644088A
- Authority
- JP
- Japan
- Prior art keywords
- task
- diagnosis
- priority
- command
- diagnostic
- 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.)
- Withdrawn
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
(57)【要約】
【目的】 本発明は、優先順位が低い診断対象タスクに
対する診断結果に、誤判断が生じないようにした信頼性
の高いタスク診断処理方法を備えたオペレーティングシ
ステムを提供することを目的としている。
【構成】 本発明において、状態監視タスク2はタスク
Cにタスク診断コマンドciを出すと共に、OS1にタ
スクCの優先順位切替要求を出す。OS1はこの要求を
受けると、タスクCの優先順位を最高位に切り替える。
これにより、タスクCは前記送信されてきたタスク診断
コマンドciを迅速に処理して、これに対するタスク診
断レスポンスcjを状態監視タスク2に返送すると共
に、OS1にタスク診断処理の終了を知らせる。これに
より、OS1はタスクCの優先順位を元の順位に戻す。
以上により、タスクCの優先順位が低いことからタスク
診断レスポンスcjの返送が送れることが避けられる。
(57) [Summary] [Object] The present invention provides an operating system provided with a highly reliable task diagnosis processing method that prevents erroneous judgments from being made in the diagnosis result of a diagnosis target task having a low priority. It is an object. According to the present invention, the state monitoring task 2 issues a task diagnostic command ci to task C and issues a priority switching request for task C to OS1. Upon receiving this request, the OS1 switches the priority of task C to the highest priority.
As a result, the task C promptly processes the transmitted task diagnosis command ci, returns the task diagnosis response cj to the task diagnosis command ci to the status monitoring task 2, and notifies the OS 1 of the end of the task diagnosis processing. As a result, OS1 restores the priority of task C to the original priority.
As described above, it is possible to prevent the task diagnostic response cj from being returned because the priority of the task C is low.
Description
【0001】[0001]
【産業上の利用分野】本発明は各タスクの正常/異常を
診断する状態監視タスクを有するオペレーティングシス
テムに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an operating system having a status monitoring task for diagnosing normality / abnormality of each task.
【0002】[0002]
【従来の技術】従来から、優先順位の高低によってマル
チタスク処理を行なうオペレーティングシステムを備え
た機器として、例えば無線機等の機器がある。図2はこ
の種の機器の一例を示した図である。タスクA、タスク
B及びタスクCをオペレーティングシステム(OS)1
が制御することにより、マルチタスク処理が行なわれ
る。この図2に示した機器が無線機のような場合、前記
タスクAは送信処理、タスクBは受信処理及びタスクC
は管理処理等を行なう。OS1は例えばタスクA、タス
クB、タスクCの順番に優先順位を定めると、タスクA
の処理を最優先で行ない、タスクCの処理を後に回すよ
うな制御を行なう。例えばタスクBの処理が終了し、こ
の時、タスクAとタスクCが処理待ちの状態の時、次に
OS1はタスクAを起動してこのタスクの処理を行な
う。その後、このタスクAの処理が終わった時に、タス
クBとタスクCが処理待ちの状態の時、OS1は次にタ
スクBの処理を行なう。従って、タスクCの処理はタス
クA、タスクBの処理に比べて遅れることになる。2. Description of the Related Art Conventionally, there is a device such as a wireless device as a device provided with an operating system for performing multitask processing depending on the priority. FIG. 2 is a diagram showing an example of this type of device. Operating system (OS) 1 for task A, task B and task C
Is controlled to perform multitask processing. When the device shown in FIG. 2 is a wireless device, the task A is a transmission process, the task B is a reception process, and a task C.
Performs management processing and the like. When the OS 1 determines the priorities in the order of task A, task B, and task C, for example, task A
The process of (1) is performed with the highest priority, and the process of task C is postponed. For example, when the processing of the task B is completed and the tasks A and C are waiting for processing at this time, the OS 1 next activates the task A to perform the processing of this task. After that, when the processing of the task A is completed and the tasks B and C are in the processing waiting state, the OS 1 next processes the task B. Therefore, the processing of task C is delayed as compared with the processing of tasks A and B.
【0003】ここで、状態監視タスク2はタイムスケジ
ューリングによって定期的にタスクA、タスクB及びタ
スクCに順次診断コマンドを送り、この診断コマンドに
対する各タスクからのタスク診断レスポンスによって、
各タスクの正常/異常を診断し、異常と診断した場合は
障害処理を行なう。例えば、状態監視タスク2は定期的
に診断コマンドaiをタスクAに送信し、一定時間以内
に前記タスクAからタスク診断レスポンスajを受信す
ると、このレスポンスajを解析してタスクAの正常/
異常を診断する。状態監視タスク2は前記レスポンスa
jの解析結果が異常であった場合、或いは一定時間以内
に前記タスク診断レスポンスajを受信することができ
なかった場合、タスクAを異常と判断して障害処理を行
なう。この状態監視タスク2の診断処理はタスクB、タ
スクCについても同様である。Here, the state monitoring task 2 periodically sends a diagnostic command to task A, task B and task C by time scheduling, and a task diagnostic response from each task in response to this diagnostic command
The normality / abnormality of each task is diagnosed, and when the abnormality is diagnosed, fault processing is performed. For example, the status monitoring task 2 periodically transmits the diagnostic command ai to the task A, and when the task diagnostic response aj is received from the task A within a certain time, the response aj is analyzed and the task A normal /
Diagnose abnormalities. The status monitoring task 2 uses the response a
If the analysis result of j is abnormal, or if the task diagnosis response aj cannot be received within a fixed time, the task A is determined to be abnormal and fault processing is performed. The diagnosis process of the status monitoring task 2 is the same for the task B and the task C.
【0004】ところで、タスクCの優先順位が他のタス
クに比べて低く設定してあった場合、状態監視タスク2
がこのタスクCにタスク診断コマンドciを送信して
も、OS1によるタスクCの起動がなかなか発生しない
ことがある。このような場合、図3に示すようにタスク
Cの内部キュー21のエントリー内に前記タスク診断コ
マンドciを含めて多数の未処理のコマンドが蓄積され
てしまう。このため、タスクCのタスク診断処理部22
はタスク診断コマンドaiがタスクCの内部で処理され
ないため、一定時間以内に前記タスク診断コマンドci
に対するタスク診断レスポンスcjをタスクCが正常で
あるにも拘らず、状態監視タスク2に返送できなくなっ
てしまう。このため、状態監視タスク2はタスク診断コ
マンドciをタスクCに送信したにも拘らず、一定時間
以内にタスク診断レスポンスcjが返送されて来ないた
め、タスクCを異常であると誤診断してしまうという欠
点があった。By the way, when the priority of the task C is set lower than the other tasks, the status monitoring task 2
However, even if the task diagnostic command ci is transmitted to the task C, the activation of the task C by the OS 1 may not occur easily. In such a case, as shown in FIG. 3, a large number of unprocessed commands including the task diagnosis command ci are accumulated in the entry of the internal queue 21 of the task C. Therefore, the task diagnosis processing unit 22 of the task C
Is not processed inside the task C, the task diagnosis command ci is
Even though the task C is normal, the task diagnosis response cj to the state monitoring task 2 cannot be returned. For this reason, the status monitoring task 2 does not send back the task diagnosis response cj within a fixed time even though it has sent the task diagnosis command ci to the task C, and therefore erroneously diagnoses the task C as abnormal. There was a drawback that it ended up.
【0005】[0005]
【発明が解決しようとする課題】状態監視タスクがOS
によってマルチタスク処理制御されているタスクにタス
ク診断コマンドを送信して、前記タスクの正常/異常診
断を行なう際に、対象タスクの優先順位が低かった場
合、このタスクがOSにより起動されることが少ないこ
とが原因で、前記タスク診断コマンドが内部で処理され
ず、タスク診断レスポンスが一定時間以内に前記状態監
視タスクに返送されないことが生じる。このような場
合、前記状態監視タスクは一定時間内にタスク診断レス
ポンスが返送されてこないことから、前記診断対象タス
クが正常であるにも拘らず、このタスクを異常であると
誤診断してしまう欠点があった。State monitoring task is OS
When a task diagnosis command is transmitted to a task whose multitask processing is controlled by the OS and the task is diagnosed to be normal / abnormal, if the priority of the target task is low, this task may be started by the OS. Due to the small number, the task diagnosis command may not be internally processed, and the task diagnosis response may not be returned to the state monitoring task within a fixed time. In such a case, the status monitoring task does not return the task diagnosis response within a fixed time, so that the task to be diagnosed is erroneously diagnosed as abnormal even though the task to be diagnosed is normal. There was a flaw.
【0006】そこで本発明は上記の欠点を除去し、優先
順位が低い診断対象タスクに対する診断結果に、誤診断
が生じないようにした信頼性の高いタスク診断処理方法
を備えたオペレーティングシステムを提供することを目
的としている。Therefore, the present invention eliminates the above-mentioned drawbacks and provides an operating system equipped with a highly reliable task diagnosis processing method that prevents erroneous diagnosis from occurring in the diagnosis result of a diagnosis target task having a low priority. Is intended.
【0007】[0007]
【課題を解決するための手段】本発明はタスクの状態監
視を行なう状態監視タスクを備え且つ、各タスクの優先
順位に従ってマルチタスク処理制御を行うオペレーティ
ングシステムにおいて、診断対象タスクが前記状態監視
タスクからのタスク診断コマンドを受信した後、これに
対するタスク診断レスポンスを前記状態監視タスクへ返
送するまでの期間、この診断対象タスクの前記優先順位
を最高位に切り替える優先順位切替手段を具備した構成
を有する。According to the present invention, in an operating system having a status monitoring task for monitoring the status of a task and for controlling multitask processing in accordance with the priority of each task, the task to be diagnosed is from the status monitoring task. After the task diagnosis command is received, the task diagnosis response to the task diagnosis command is returned to the status monitoring task, and the priority monitoring unit switches the priority of the task to be diagnosed to the highest priority.
【0008】[0008]
【作用】本発明のオペレーティングシステムにおいて、
優先順位切替手段は、診断対象タスクが状態監視タスク
からのタスク診断コマンドを受信した後、これに対する
タスク診断レスポンスを前記状態監視タスクへ返送する
までの期間、前記診断対象タスクの前記優先順位を最高
位に切り替える。このため、前記診断対象タスクは受信
したタスク診断コマンドを迅速に処理して、このコマン
ドに対するタスク診断レスポンスを所定時間内に前記状
態監視タスクに返送することができる。In the operating system of the present invention,
The priority order switching means sets the highest priority level of the task to be diagnosed during the period from when the task to be diagnosed receives the task diagnostic command from the state monitoring task until the task diagnostic response to the task is returned to the state monitoring task. Switch to rank. Therefore, the task to be diagnosed can quickly process the received task diagnostic command and return a task diagnostic response to this command to the state monitoring task within a predetermined time.
【0009】[0009]
【実施例】以下、本発明の一実施例を図面を参照して説
明する。図1は本発明のオペレーティングシステムを備
えた機器の一実施例を示したブロック図である。1はタ
スクA〜タスクCに対してマルチタスク制御を行なうオ
ペレーティングシステム(OS)、2はタイムスケジュ
ールによってタスクA、B、Cの状態監視を行なう状態
監視タスク、A、B、Cは前記OS1により優先順位を
踏まえて起動/停止されるタスクで、前記OS1を備え
た機器の主要な機能を司っている。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a device equipped with an operating system of the present invention. 1 is an operating system (OS) that performs multitask control on tasks A to C, 2 is a status monitoring task that monitors the status of tasks A, B, and C according to a time schedule, and A, B, and C are based on the OS 1. It is a task that is started / stopped based on the priority order, and controls the main function of the device including the OS 1.
【0010】次に本実施例の動作について説明する。O
S1はタスクA、タスクB、タスクCを各タスクに定め
られた優先順位に従って起動/停止することにより、マ
ルチタスク処理を行なって、このOS1を備えた機器を
動作させる。状態監視タスク2はタイムスケジューリン
グに従って、前記タスクA、B、Cに対する状態監視処
理を行なう。ここで、タスクA、B、Cの優先順位がこ
の順番で、タスクCが最下位であった場合について述べ
る。状態監視タスク2は前記タイムスケジュールに従っ
てタスクCに対してタスク診断コマンドciを送信する
が、この時タスクCの優先順位を最高位に切り替える要
求100をOS1に出す。OS1は前記要求100を受
けると、タスクCの優先順位を最高位にする。これによ
り、タスクCが起動される確率が非常に高まり、内部キ
ューに蓄積されている各種コマンドを迅速に処理できる
ようになる。このため、タスクCは状態監視タスク2か
ら送信されてきたタスク診断コマンドciを迅速に処理
した後、タスク診断レスポンスcjを状態監視タスク2
に返送すると共に、このタスク診断処理の終了200を
OS1に知らせる。OS1はこのタスク診断処理の終了
200を知らされると、タスクCの優先順位を元の優先
順位に切り替える。Next, the operation of this embodiment will be described. O
In S1, the task A, the task B, and the task C are started / stopped in accordance with the priority order defined for each task, thereby performing multitask processing and operating the device provided with this OS1. The state monitoring task 2 performs a state monitoring process for the tasks A, B and C according to time scheduling. Here, a case will be described in which the priorities of the tasks A, B, and C are in this order, and the task C is the lowest. The state monitoring task 2 transmits the task diagnosis command ci to the task C according to the time schedule, and at this time, issues a request 100 for switching the priority of the task C to the highest priority to the OS 1. When the OS 1 receives the request 100, the task C sets the task C to the highest priority. As a result, the probability that the task C will be activated is greatly increased, and various commands stored in the internal queue can be processed quickly. Therefore, the task C promptly processes the task diagnosis command ci transmitted from the status monitoring task 2 and then sends the task diagnosis response cj to the status monitoring task 2
In addition, the OS 1 is notified of the end 200 of this task diagnosis processing. When the OS 1 is notified of the end 200 of the task diagnosis processing, the OS 1 switches the priority of the task C to the original priority.
【0011】一方、状態監視タスク2はタスクCからタ
スク診断レスポンスcjを受信すると、その内容を解析
し、その解析結果からタスクCの正常/異常を診断す
る。その結果、タスクCが正常であれば次のタスクBの
診断処理に移行し、異常であればタスクCの障害処理を
行なう。又、状態監視タスク2はタスクCに上記の如く
タスク診断コマンドcjを送信したにも拘らず、タスク
Cからタスク診断レスポンスcjが返送されてこなかっ
た場合、前記タスクCを異常と診断して、このタスクの
障害処理を行なう。尚、図中ai、biは状態監視タス
ク2からタスクA、タスクBに送信されるタスク診断コ
マンドを示し、aj、bjは前記タスク診断コマンドに
対するタスクA、Bのタスク診断レスポンスを示してい
る。On the other hand, when the status monitoring task 2 receives the task diagnosis response cj from the task C, it analyzes the content and diagnoses the normality / abnormality of the task C from the analysis result. As a result, if the task C is normal, the process shifts to the next task B diagnosis process, and if abnormal, the task C fault process is performed. Further, when the status monitoring task 2 sends the task diagnostic command cj to the task C as described above, but the task diagnostic response cj is not returned from the task C, the task C is diagnosed as abnormal, Performs fault handling for this task. In the figure, ai and bi indicate task diagnosis commands transmitted from the state monitoring task 2 to the task A and task B, and aj and bj indicate task diagnosis responses of the tasks A and B to the task diagnosis command.
【0012】本実施例によれば、状態監視タスク2から
タスク診断コマンドを受信したタスクはその優先順位を
最上位に切り替えられるため、それまで、このタスク内
に各種コマンドが処理されずに蓄積されていても、これ
らコマンドは前記タスク診断コマンドと共に迅速に処理
されることになり、前記タスクはタスク診断コマンドの
受信から所定時間内にタスク診断レスポンスを前記状態
監視タスク2に必ず返送することができる。従って、状
態監視タスク2はタスク診断コマンドを送信しても所定
時間内にタスク診断レスポンスを返送してこないタスク
を、誤判断の恐れなく異常と診断して、タスク診断処理
の信頼性を向上させることができる。尚、上記実施例に
おけるタスク診断レスポンスはタスク診断コマンドを受
け取るとビットを立てて、前記コマンドに応答する方式
のものを想定してあるが、タスクの診断を実際に行なっ
てその診断情報を状態監視タスク2に返送する方式のも
のでもよい。According to the present embodiment, the task receiving the task diagnosis command from the status monitoring task 2 can switch its priority to the highest priority, so that until that time, various commands are accumulated in this task without being processed. However, these commands will be processed promptly together with the task diagnosis command, and the task can always return the task diagnosis response to the state monitoring task 2 within a predetermined time after receiving the task diagnosis command. . Therefore, the state monitoring task 2 improves the reliability of the task diagnosis process by diagnosing a task that does not return the task diagnosis response within the predetermined time even if the task diagnosis command is transmitted, as an abnormality without fear of misjudgment. be able to. It is assumed that the task diagnostic response in the above embodiment sets a bit when a task diagnostic command is received and responds to the command, but the task diagnostic is actually performed and the diagnostic information is monitored for status. The method of returning to the task 2 may be used.
【0013】[0013]
【発明の効果】以上記述した如く本発明のオペレーティ
ングシステムによれば、優先順位が低い診断対象タスク
に対する診断結果に誤診断が生じないようにすることが
でき、信頼性の高いタスク診断処理を行なうことができ
る。As described above, according to the operating system of the present invention, it is possible to prevent an erroneous diagnosis from being made in the diagnosis result for a diagnosis target task having a low priority order, and perform highly reliable task diagnosis processing. be able to.
【図1】本発明のオペレーティングシステムを備えた機
器の一実施例を示したブロック図。FIG. 1 is a block diagram showing an embodiment of a device including an operating system of the present invention.
【図2】従来のオペレーティングシステムを備えた機器
の一例を示したブロック図。FIG. 2 is a block diagram showing an example of a device including a conventional operating system.
【図3】図2に示したタスクCの構成例を示した図。FIG. 3 is a diagram showing a configuration example of task C shown in FIG.
1…オペレーティングシステム 2…状態監視タ
スク 21…内部キュー 22…タスク診
断処理部 A、B、C…タスク1 ... Operating system 2 ... Status monitoring task 21 ... Internal queue 22 ... Task diagnosis processing unit A, B, C ... Task
Claims (1)
クを備え且つ、各タスクの優先順位に従ってマルチタス
ク処理制御を行うオペレーティングシステムにおいて、
診断対象タスクが前記状態監視タスクからのタスク診断
コマンドを受信した後、これに対するタスク診断レスポ
ンスを前記状態監視タスクへ返送するまでの期間、この
診断対象タスクの前記優先順位を最高位に切り替える優
先順位切替手段を具備したことを特徴とするオペレーテ
ィングシステム。1. An operating system comprising a status monitoring task for monitoring the status of tasks, and performing multitask processing control according to the priority of each task,
Priority for switching the priority of the diagnostic target task to the highest level during the period from when the diagnostic target task receives the task diagnostic command from the status monitoring task until the task diagnostic response is returned to the status monitoring task An operating system comprising switching means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4198032A JPH0644088A (en) | 1992-07-24 | 1992-07-24 | Operating system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4198032A JPH0644088A (en) | 1992-07-24 | 1992-07-24 | Operating system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0644088A true JPH0644088A (en) | 1994-02-18 |
Family
ID=16384399
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4198032A Withdrawn JPH0644088A (en) | 1992-07-24 | 1992-07-24 | Operating system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0644088A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1986005116A1 (en) * | 1985-03-05 | 1986-09-12 | Memtec Limited | Concentration of solids in a suspension |
| WO1986005705A1 (en) * | 1985-03-28 | 1986-10-09 | Memtec Limited | Cooling hollow fibre cross-flow separators |
| WO1986005997A1 (en) * | 1985-04-10 | 1986-10-23 | Memtec Limited | Variable volume filter or concentrator |
-
1992
- 1992-07-24 JP JP4198032A patent/JPH0644088A/en not_active Withdrawn
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1986005116A1 (en) * | 1985-03-05 | 1986-09-12 | Memtec Limited | Concentration of solids in a suspension |
| WO1986005705A1 (en) * | 1985-03-28 | 1986-10-09 | Memtec Limited | Cooling hollow fibre cross-flow separators |
| US4816160A (en) * | 1985-03-28 | 1989-03-28 | Memtec Limited | Cooling hollow fibre cross-flow separators |
| WO1986005997A1 (en) * | 1985-04-10 | 1986-10-23 | Memtec Limited | Variable volume filter or concentrator |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5946498A (en) | Delivery of client remote procedure calls to a server via a request queue utilizing priority and time-out | |
| US6173339B1 (en) | System for monitoring execution of commands from a host for shared I/O devices by setting a time-out period based on control parameters sent by the host | |
| US4462075A (en) | Job processing method utilizing a plurality of information processing devices | |
| US7676610B2 (en) | Device and method for optimization of target host device process handling according to the status and the priority of the target host device process | |
| CN113391902B (en) | Task scheduling method and device and storage medium | |
| US20110179307A1 (en) | Failover method and system for a computer system having clustering configuration | |
| KR20200106662A (en) | Machine tool having multi-tasking system and method of multi-tasking for machine tool | |
| EP0013740A1 (en) | Data processing apparatus having a system reset capability | |
| US6526527B1 (en) | Single-processor system | |
| JPH0644088A (en) | Operating system | |
| US11237548B2 (en) | Data delivery control apparatus, method, and program | |
| KR102163762B1 (en) | Method for processing error in autonomous drive controller | |
| CN113535448A (en) | Multiple watchdog control method and control system thereof | |
| JP2007249759A (en) | Monitoring system | |
| JP2006172218A (en) | Computer system and system monitoring program | |
| JPH0756773A (en) | Controller diagnosis method | |
| JPH02216542A (en) | Diagnosis execution control system | |
| CN101130417A (en) | control message delivery system | |
| JPH10231071A (en) | Elevator abnormal condition capture device | |
| JP7486460B2 (en) | Electronic control device and method for erasing malfunction information | |
| CN117234787B (en) | Method and system for monitoring running state of system-level chip | |
| US7216261B2 (en) | Method for controlling a program run of a central data processor | |
| JP2522038B2 (en) | switch | |
| USRE37496E1 (en) | Method of executing a job | |
| JPH11232143A (en) | Multithread monitor method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19991005 |