JP2001092676A - Task management system in integrated program - Google Patents
Task management system in integrated programInfo
- Publication number
- JP2001092676A JP2001092676A JP26799599A JP26799599A JP2001092676A JP 2001092676 A JP2001092676 A JP 2001092676A JP 26799599 A JP26799599 A JP 26799599A JP 26799599 A JP26799599 A JP 26799599A JP 2001092676 A JP2001092676 A JP 2001092676A
- Authority
- JP
- Japan
- Prior art keywords
- task
- interrupt
- processing
- interruption
- flag
- 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
Links
Abstract
Description
【0001】[0001]
【発明の属する技術分野】この発明は割り込みにより処
理される組み込みプログラムのタスク管理システムに関
する。[0001] 1. Field of the Invention [0002] The present invention relates to a task management system for embedded programs processed by interruption.
【0002】[0002]
【従来の技術】従来、割り込み要求のあったタスクを組
み込みプログラムにより処理するタスク管理は図2に示
す割り込み要因A、B、C、Dの割り込み要求信号に対
応する割り込み処理部7a、7b、7c、7dは同時に
は動作せず、いずれか1つのみが動作する。2. Description of the Related Art Conventionally, task management for processing a task having an interrupt request by an embedded program is performed by interrupt processing units 7a, 7b and 7c corresponding to interrupt request signals of interrupt factors A, B, C and D shown in FIG. , 7d do not operate at the same time, only one of them operates.
【0003】そして、割り込み要因A、B、C、Dによ
り実行される各タスクA、B、C、Dの優先順位は予め
設定した割り込みベクタテーブルにより決定される。そ
して、割り込み要因に応じてタスクが起動され、その処
理中にさらに他のタスクの割り込み要因が発生した場合
にはベクタテーブル(割り込みフラグレジスタ)に立て
られたフラグの優先順位により、直ちに処理をするの
か、現在実行中のタスクが終了してから実行するのか決
定される。また図2に示すように、実行待ちのタスクを
明確にするための1次元の割り込みフラグレジスタが存
在する。The priorities of the tasks A, B, C and D executed by the interrupt factors A, B, C and D are determined by a preset interrupt vector table. Then, the task is started in accordance with the interrupt factor, and if an interrupt factor of another task occurs during the processing, the task is immediately processed according to the priority order of the flags set in the vector table (interrupt flag register). , Or whether to execute after the task currently being executed is completed. As shown in FIG. 2, there is a one-dimensional interrupt flag register for clarifying a task waiting to be executed.
【0004】[0004]
【発明が解決しようとする課題】上記した従来のタスク
管理方法では、割り込み要因により直接タスクが起動さ
れると、そのタスクは割り込み要因に応じた優先度を維
持したまま動作することになり、そのタスクの動作中は
それよりも優先度の低い割り込みはすべて処理を後回し
にされる。In the above-described conventional task management method, when a task is directly activated by an interrupt factor, the task operates while maintaining the priority according to the interrupt factor. During the operation of the task, all interrupts with lower priorities are postponed.
【0005】この場合、割り込み要因が発生したタイミ
ングは無視されるので、もし処理を先送りされてしまう
優先度の低い割り込みの中にリアルタイム性を要求する
部分が存在していてもリアルタイム処理が行われない。
このように割り込み要因により直接タスクを起動すると
割り込み要因発生のタイミングに応じて処理する必要の
あるタスクが複数ある場合には対応できないという問題
があった。In this case, since the timing at which the interrupt factor occurs is ignored, the real-time processing is performed even if a low-priority interrupt whose processing is postponed includes a part that requires real-time processing. Absent.
As described above, when a task is directly activated by an interrupt factor, there is a problem that it is not possible to cope with a case where there are a plurality of tasks that need to be processed according to the timing at which the interrupt factor occurs.
【0006】また、上記した従来のタスク管理方法で
は、割り込み要因の発生を記憶するためのレジスタが1
次元であるため、同一要因の割り込みが複数回発生して
も実行されるのは最初の1回分のみであり、2回目以降
の処理が行われないという問題があった。In the above-described conventional task management method, the register for storing the occurrence of the interrupt factor is one.
Due to the dimension, even if an interrupt of the same factor occurs a plurality of times, only the first one is executed, and the second and subsequent processes are not performed.
【0007】この発明は上記した点に鑑みてなされたも
のであって、その目的とするところは、リアルタイム処
理が要求される処理をリアルタイムで処理できる割り込
みにより処理される組み込みプログラムのタスク管理シ
ステムを提供することにある。[0007] The present invention has been made in view of the above points, and an object of the present invention is to provide a task management system for an embedded program which is processed by an interrupt capable of real-time processing of a processing requiring real-time processing. To provide.
【0008】この発明の他の目的は、同一要因の割り込
みが複数回発生してもそれを処理できるタスク管理シス
テムを提供することである。Another object of the present invention is to provide a task management system capable of processing even if an interrupt of the same factor occurs a plurality of times.
【0009】[0009]
【課題を解決するための手段】この発明の組み込みプロ
グラムにおけるタスク管理システムは、各割り込み要因
に対応して設けた夫々の割り込み処理部と、前記割り込
み処理部から出力される割り込み要求信号を受けて割り
込みを管理する割り込み管理部と、前記割り込み管理部
よりの信号により管理され各割り込み要因毎の割り込み
要求フラグを記憶するフラグ保存部と、前記割り込み管
理部よりの信号によりタスク処理を行うタスク処理部と
を備え、リアルタイム処理が要求される処理を前記割り
込み処理部で行い、その他の処理を前記タスク処理部で
行うように構成したものである。A task management system in an embedded program according to the present invention receives respective interrupt processing units provided corresponding to respective interrupt factors, and receives an interrupt request signal output from the interrupt processing unit. An interrupt management unit that manages interrupts; a flag storage unit that is managed by a signal from the interrupt management unit and stores an interrupt request flag for each interrupt factor; and a task processing unit that performs task processing by a signal from the interrupt management unit The interrupt processing unit performs a process that requires real-time processing, and the task processing unit performs other processes.
【0010】また、前記タスク管理システムにおいて、
前記フラグ保存部が2次元のマトリクスレジスタで構成
されるものである。[0010] In the task management system,
The flag storage section is constituted by a two-dimensional matrix register.
【0011】さらに、前記各タスク管理システムにおい
て、現在実行中のタスクを示す動作フラグレジスタを備
え、前記タスク処理部が各割り込み要因に対応したタス
クを実行開始するときに、前記動作フラグレジスタにお
けるそのタスクのフラグを立ち上げ、そのタスクの実行
が終了するとそのタスクのフラグを立ち下げるように構
成したものである。In each of the task management systems, an operation flag register indicating a task currently being executed is provided, and when the task processing unit starts executing a task corresponding to each interrupt factor, the operation flag in the operation flag register is set. In this configuration, a flag of a task is set up, and when the execution of the task is completed, the flag of the task is set down.
【0012】[0012]
【発明の実施の形態】この発明の実施例である組み込み
プログラムにおけるタスク管理システムを図面に基づい
て説明する。図1はこの発明の実施例であるタスク管理
システムの構成を示すブロック図である。DESCRIPTION OF THE PREFERRED EMBODIMENTS A task management system in an embedded program according to an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a task management system according to an embodiment of the present invention.
【0013】図に示すように、実施例のタスク管理シス
テムは、外部からの割り込み要因A、B、C、Dの夫々
に対応した割り込み処理部1a、1b、1c、1d、一
定周期でタイマー割り込みを発生させるためのタイマー
3、割り込み管理部2、タスクを起動するためのフラグ
を保存するマトリクスレジスタ4、タスクA、B、C、
Dの各タスクを実行するタスク処理部5a、5b、5
c、5d、タスクA、B、C、Dの各タスクの動作状況
を示すフラグを保存する動作フラグレジスタ6からな
る。As shown in the figure, the task management system of the embodiment comprises an interrupt processing unit 1a, 1b, 1c, 1d corresponding to each of external interrupt factors A, B, C, D, and a timer interrupt at a fixed period. , A timer register 3 for storing a flag for activating a task, tasks A, B, C,
Task processing units 5a, 5b, 5 for executing the respective tasks of D
c, 5d, and an operation flag register 6 for storing flags indicating the operation states of the tasks A, B, C, and D.
【0014】上記構成において、仮に外部からの割り込
みBが発生したとすると、それに対応した割り込み処理
部1bが起動されて準リアルタイム処理(厳密なリアル
タイム性は要求されないが、ある程度のリアルタイム性
を要求する処理)を行った後、タスクBの実行を要求す
るフラグを立てる。In the above configuration, if an external interrupt B occurs, the corresponding interrupt processing unit 1b is activated to perform near real-time processing (strict real-time processing is not required, but some real-time processing is required). After performing (process), a flag for requesting execution of task B is set.
【0015】割り込み管理部2は、タイマー3により一
定周期で発生するタイマー割り込み処理において、割り
込み処理部1a、1b、1c、1dの実行要求フラグの
チェックを行い、フラグが立っていればそれをマトリク
スレジスタ4に保存する。The interrupt management unit 2 checks the execution request flags of the interrupt processing units 1a, 1b, 1c, and 1d in a timer interrupt process that is generated by the timer 3 at a fixed period. Save in register 4.
【0016】そして、各タスクの動作状況を動作フラグ
レジスタ6を参照して確認し、マトリクスレジスタ4に
保存されているフラグの内容に従って適切なタスク処理
部5a、5b、5c、5dのいずれかを起動させ、その
タスクに該当するマトリクスレジスタ4中のフラグをク
リアする。Then, the operation status of each task is confirmed with reference to the operation flag register 6, and one of the appropriate task processing units 5a, 5b, 5c and 5d is selected according to the contents of the flag stored in the matrix register 4. The task is started, and the flag in the matrix register 4 corresponding to the task is cleared.
【0017】起動されたタスク処理部5a、5b、5
c、5dのいずれかは動作フラグレジスタ6中の自タス
クの動作フラグを立ち上げて、動作中であることを明確
にする。この動作フラグがアクティブである間は割り込
み管理部2が同一タスクを起動することはない。起動さ
れたタスク処理部5a、5b、5c、5dのいずれかは
タスクを終了する際に動作フラグレジスタ6の自タスク
の動作フラグをクリアする。The started task processing units 5a, 5b, 5
Either of c and 5d raises the operation flag of the own task in the operation flag register 6 to make it clear that the task is in operation. While this operation flag is active, the interrupt management unit 2 does not activate the same task. Any of the started task processing units 5a, 5b, 5c, and 5d clears the operation flag of the own task in the operation flag register 6 when ending the task.
【0018】[0018]
【発明の効果】この発明の組み込みプログラムにおける
タスク管理システムによれば、各外部割り込みにより直
ちに行われる処理は準リアルタイムなもののみに限定さ
れ、その他のタスクはフラグを立てることにより別に行
われる。According to the task management system in the embedded program of the present invention, the processing immediately performed by each external interrupt is limited to only the near real-time processing, and other tasks are performed separately by setting flags.
【0019】従って、外部割り込みを要因とする割り込
み処理に要する時間は著しく短くなり、他の外部割り込
みが発生した際の準リアルタイム処理を妨げない。ま
た、起動すべきタスクをフラグにより指定し、それを2
次元のフラグ保存マトリクスレジスタに保存することに
より複数回のタスク動作要求を満たすことができる。Accordingly, the time required for interrupt processing due to an external interrupt is significantly shortened, and does not hinder quasi-real-time processing when another external interrupt occurs. The task to be started is specified by a flag, and
Storing in the dimensional flag storage matrix register can satisfy a plurality of task operation requests.
【図1】この発明の実施例であるタスク管理システムの
構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a task management system according to an embodiment of the present invention.
【図2】従来のタスク管理システムの構成を示すブロッ
ク図である。FIG. 2 is a block diagram showing a configuration of a conventional task management system.
1a、1b、1c、1d 割り込み処理部 2 割り込み管理部 3 タイマー 4 マトリクスレジスタ 5a、5b、5c、5d タスク処理部 6 動作フラグレジスタ 7a、7b、7c、7d 割り込み処理部 1a, 1b, 1c, 1d Interrupt processing unit 2 Interrupt management unit 3 Timer 4 Matrix register 5a, 5b, 5c, 5d Task processing unit 6 Operation flag register 7a, 7b, 7c, 7d Interrupt processing unit
Claims (3)
割り込み処理部と、前記割り込み処理部から出力される
割り込み要求信号を受けて割り込みを管理する割り込み
管理部と、前記割り込み管理部よりの信号により管理さ
れ各割り込み要因毎の割り込み要求フラグを記憶するフ
ラグ保存部と、前記割り込み管理部よりの信号によりタ
スク処理を行うタスク処理部とを備え、リアルタイム処
理が要求される処理を前記割り込み処理部で行い、その
他の処理を前記タスク処理部で行うように構成した組み
込みプログラムにおけるタスク管理システム。An interrupt processing unit provided for each interrupt cause, an interrupt management unit for managing an interrupt in response to an interrupt request signal output from the interrupt processing unit, A flag storage unit that is managed by a signal and stores an interrupt request flag for each interrupt factor; and a task processing unit that performs a task process based on a signal from the interrupt management unit. A task management system in an embedded program configured to perform the other processing by the task processing unit.
レジスタで構成される請求項1の組み込みプログラムに
おけるタスク管理システム。2. The task management system according to claim 1, wherein the flag storage unit includes a two-dimensional matrix register.
ジスタを備え、前記タスク処理部が各割り込み要因に対
応したタスクを実行開始するときに、前記動作フラグレ
ジスタにおけるそのタスクのフラグを立ち上げ、そのタ
スクの実行が終了するとそのタスクのフラグを立ち下げ
るように構成した請求項1または2の組み込みプログラ
ムにおけるタスク管理システム。3. An operation flag register indicating a task currently being executed, wherein when the task processing unit starts executing a task corresponding to each interrupt factor, a flag of the task in the operation flag register is activated. 3. The task management system according to claim 1, wherein when the execution of the task is completed, the flag of the task is set to fall.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP26799599A JP2001092676A (en) | 1999-09-22 | 1999-09-22 | Task management system in integrated program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP26799599A JP2001092676A (en) | 1999-09-22 | 1999-09-22 | Task management system in integrated program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2001092676A true JP2001092676A (en) | 2001-04-06 |
Family
ID=17452459
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP26799599A Pending JP2001092676A (en) | 1999-09-22 | 1999-09-22 | Task management system in integrated program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2001092676A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7472214B2 (en) | 2005-08-05 | 2008-12-30 | Mitsubishi Denki Kabushiki Kaisha | Real-time embedded simple monitor method and computer product |
JP6316522B1 (en) * | 2017-01-25 | 2018-04-25 | 三菱電機株式会社 | Computer apparatus, task activation method, and task activation program |
US10782368B2 (en) | 2017-05-31 | 2020-09-22 | Northrop Grumman Systems Corporation | Pulsed-beam atomic magnetometer system |
US10809342B2 (en) | 2017-10-02 | 2020-10-20 | Northrop Grumman Systems Corporation | Calibration of a magnetometer system |
US10823790B2 (en) | 2017-05-31 | 2020-11-03 | Northrop Grumman Systems Corporation | Pulsed-beam atomic magnetometer system |
US11133117B2 (en) | 2019-05-08 | 2021-09-28 | Northrop Grumman Systems Corporation | Atomic interferometer system |
-
1999
- 1999-09-22 JP JP26799599A patent/JP2001092676A/en active Pending
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7472214B2 (en) | 2005-08-05 | 2008-12-30 | Mitsubishi Denki Kabushiki Kaisha | Real-time embedded simple monitor method and computer product |
JP6316522B1 (en) * | 2017-01-25 | 2018-04-25 | 三菱電機株式会社 | Computer apparatus, task activation method, and task activation program |
WO2018138798A1 (en) * | 2017-01-25 | 2018-08-02 | 三菱電機株式会社 | Computer device, task initiation method, and task initiation program |
CN110192183A (en) * | 2017-01-25 | 2019-08-30 | 三菱电机株式会社 | Computer installation, task start method and task start program |
DE112017006454T5 (en) | 2017-01-25 | 2019-10-02 | Mitsubishi Electric Corporation | Computer device, task initiation procedure and task initiation program |
DE112017006454B4 (en) | 2017-01-25 | 2020-06-10 | Mitsubishi Electric Corporation | Computer device, task initiation process and task initiation program |
US10983823B2 (en) | 2017-01-25 | 2021-04-20 | Mitsubishi Electric Corporation | Computer apparatus, task initiation method, and computer readable medium |
US10782368B2 (en) | 2017-05-31 | 2020-09-22 | Northrop Grumman Systems Corporation | Pulsed-beam atomic magnetometer system |
US10823790B2 (en) | 2017-05-31 | 2020-11-03 | Northrop Grumman Systems Corporation | Pulsed-beam atomic magnetometer system |
US10809342B2 (en) | 2017-10-02 | 2020-10-20 | Northrop Grumman Systems Corporation | Calibration of a magnetometer system |
US11133117B2 (en) | 2019-05-08 | 2021-09-28 | Northrop Grumman Systems Corporation | Atomic interferometer system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR970016979A (en) | Queuing system and method of tasks in a multiprocessing system | |
EP1189137A1 (en) | Interruption managing device and interruption managing method | |
JP4151198B2 (en) | Interrupt controller and microcomputer | |
JP4609113B2 (en) | Processor | |
JP2009163658A (en) | Input/output controller and its firmware update method | |
JP4523910B2 (en) | Parallel processing device, parallel processing method, and parallel processing program | |
JP2001092676A (en) | Task management system in integrated program | |
JP2001256062A (en) | Interruption processing method and operation processor using the same | |
JPS62284437A (en) | Task control system | |
JP2002073354A (en) | Task control device and task contol method | |
JP2636722B2 (en) | Multitask execution management method | |
JPH1165623A (en) | Programmable controller | |
JP2002312302A (en) | Peripheral device | |
JP2000029850A (en) | Task controlling method using inter-processor communication of operating system | |
JP3890877B2 (en) | Vehicle control device | |
JP2500446B2 (en) | Collective message processing system with intermittent operation function | |
JPH05233525A (en) | Input/otuput processor | |
JPH07325800A (en) | Data flow processor | |
JPH0760417B2 (en) | I / O processor | |
JPH0462093B2 (en) | ||
JPH03223955A (en) | Information processing system | |
WO2004072852A1 (en) | Asynchronous communications technique | |
JPH02113363A (en) | Time slice controlling system for multiprocessor system | |
JPH08212085A (en) | Information processor and communication processor | |
JP2001209607A (en) | Driver, method of driving device, operating system, and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050329 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050510 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050624 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20051206 |