JPH01181130A - Task start system for real time os - Google Patents
Task start system for real time osInfo
- Publication number
- JPH01181130A JPH01181130A JP63005792A JP579288A JPH01181130A JP H01181130 A JPH01181130 A JP H01181130A JP 63005792 A JP63005792 A JP 63005792A JP 579288 A JP579288 A JP 579288A JP H01181130 A JPH01181130 A JP H01181130A
- Authority
- JP
- Japan
- Prior art keywords
- task
- interval
- activation
- time
- cycle start
- 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
- 238000000034 method Methods 0.000 claims abstract description 17
- 230000004913 activation Effects 0.000 claims description 32
- 230000003213 activating effect Effects 0.000 claims description 2
- 230000000737 periodic effect Effects 0.000 description 16
- 238000001514 detection method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はリアルタイムOSのタスク起動方式、特に、ユ
ーザタスクを一定時間間隔で周期起動させるリアルタイ
ムOSのタスク起動方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to a task activation method for a real-time OS, and particularly to a task activation method for a real-time OS that periodically activates user tasks at regular time intervals.
従来のリアルタイムOSのタスク起動方式は、周期起動
タスクを起動させるには、ユーザタスク内において周期
起動させる間隔とタスク名をパラメータとしてリアルタ
イムOSにマクロ命令を発行することにより行なってい
た。 (参考文献日経データプロ マイコン MC−
510−75〔発明が解決しようとする問題点〕
上述した従来のリアルタイムOSのタスク起動方式は、
ユーザタスクが周期起動させるタスクをOSに要求する
ことにより周期起動させていたため、ユーザタスク内で
他タスクの起動制御を行う必要がありユーザプログラム
が複雑に−なるという欠点があった。In a conventional real-time OS task activation method, a periodic activation task is activated by issuing a macro command to the real-time OS using the periodic activation interval and task name within a user task as parameters. (References Nikkei Data Pro Microcomputer MC-
510-75 [Problems to be solved by the invention] The task activation method of the conventional real-time OS described above is
Since a user task periodically activates a task by requesting the OS, it is necessary to control the activation of other tasks within the user task, resulting in a complicated user program.
本発明のリアルタイムOSのタスク起動方式は、リアル
タイムOSのシステム管理テーブル上に周期起動させる
時間間隔とタスク名を登録する手段と、前記管理テーブ
ル上に登録されたタスクの起動方法を判定して時間間隔
単位に前記タスクを起動させる手段とを含んで構成され
る。The task activation method of the real-time OS of the present invention includes a means for registering the periodic activation time interval and task name on the system management table of the real-time OS, and means for determining the activation method of the task registered on the management table and determining the activation method for the task registered on the management table. and means for activating the task at intervals.
次に、本発明の実施例について図面を参照して説明する
。Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing one embodiment of the present invention.
テーブル生成部10はリアルタイムOS(以下OSと記
す)システムイニシャライズ時に起動され登録テーブル
11を参照して間隔テーブル12、およびタスク情報テ
ーブル13を生成する。A table generation unit 10 is activated when a real-time OS (hereinafter referred to as OS) system is initialized, and generates an interval table 12 and a task information table 13 by referring to a registration table 11.
インターバルタイマ処理部20はインターバルタイマ割
込毎に走行し、周期起動検出部3oへ処理を渡す。周期
起動検出部30は周期起動タスクを検出すると待合せ登
録部40へ制御を渡してタスクを起動し、起動タスクが
なければ処理をインターバルタイマ処理部20へ移す。The interval timer processing section 20 runs every time an interval timer interrupt occurs, and passes processing to the periodic activation detection section 3o. When the periodic activation detection unit 30 detects a periodic activation task, it passes control to the waiting registration unit 40 to activate the task, and if there is no activation task, the process is transferred to the interval timer processing unit 20.
第2図(a)は登録テーブル11の内容を示し、各周期
起動タスク単位にタスク起動間隔とタスク名より構成さ
れたテーブルになっている。FIG. 2(a) shows the contents of the registration table 11, which is a table composed of task activation intervals and task names for each periodic activation task.
第2図(b)は間隔テーブルの内容を示し、縦方向は各
間隔になっており、横方向は各間隔において起動するタ
スクに対応し起動タスクがあれば該位置のビットがON
になっている。Figure 2 (b) shows the contents of the interval table, where the vertical direction corresponds to each interval, and the horizontal direction corresponds to the task that starts at each interval, and if there is an activated task, the bit at that position is ON.
It has become.
第2図(C)はタスク情報テーブル13の内容を示し、
各間隔毎のテーブルになっており、縦方向は間隔テーブ
ル12の横方向に対応し、横方向はタスクの起動方法お
よびタスク名とで構成される。FIG. 2(C) shows the contents of the task information table 13,
There is a table for each interval, the vertical direction corresponds to the horizontal direction of the interval table 12, and the horizontal direction is composed of the task activation method and task name.
次に第1図および第2図を参照しながら動作について詳
細に説明する。Next, the operation will be explained in detail with reference to FIGS. 1 and 2.
まずシステムイニシャライズ時にテーブル生成部10が
OSにより起動される。First, the table generation unit 10 is activated by the OS at system initialization.
テーブル生成部10は登録テーブル11の間隔データを
参照して、間隔テーブル12の各タスクに対応したビッ
ト位τをONすると共に間隔テーブル12と登録テーブ
ル11を参照して、タスク情報テーブル13の各間隔に
対応したテーブルにタスク起動方法およびタスク名を登
録する。The table generation unit 10 refers to the interval data in the registration table 11 and turns on the bit position τ corresponding to each task in the interval table 12, and also refers to the interval table 12 and the registration table 11 to Register the task startup method and task name in the table corresponding to the interval.
次にテーブル生成部10は処理をOSに渡し、システム
イニシャライズが完了するとインターバルタイマ割込毎
にインターバルタイマ処理部20が走行し周期起動検出
部30を起動する。Next, the table generation section 10 passes the processing to the OS, and when system initialization is completed, the interval timer processing section 20 runs every time an interval timer interrupt occurs and starts the periodic activation detection section 30.
周期起動検出部30はインターバルタイマ間隔単位で時
間をカウントし、各カウント時間毎に周期起動タスクあ
るかどうかを間隔テーブル12をサーチしてONのビッ
トがあればONビットに対応するタスク情報テーブル1
3を得る。The periodic activation detection unit 30 counts time in units of interval timer intervals, searches the interval table 12 to determine whether there is a periodic activation task for each count time, and if there is an ON bit, the task information table 1 corresponding to the ON bit is searched.
Get 3.
次にタスク情報テーブル13により周期起動タスクの起
動方法およびタスク名を獲得し、制御を待合せ登録部4
0へ渡す。さらに周期起動検出部30は間隔テーブル1
2をサーチして、ONビットがなくなるまで上記動作を
繰返し、制御をインターバルタイマ処理部20へ戻す。Next, the activation method and task name of the periodically activated task are acquired from the task information table 13, and the control is executed by the waiting registration unit 4.
Pass to 0. Furthermore, the periodic activation detection unit 30 uses the interval table 1
2 is searched, the above operation is repeated until there are no more ON bits, and control is returned to the interval timer processing section 20.
待合せ登録部4oはタスクの起動方法により起動待合せ
キューへ登録し、処理を周期起動検出部30へ戻す。The appointment registration unit 4o registers the task in the activation waiting queue according to the task activation method, and returns the process to the periodic activation detection unit 30.
以上の動作を各インターバルタイマ割込毎に繰返し、周
期起動タスクを登録テーブル11で指定した間隔毎に起
動する。The above operation is repeated for each interval timer interrupt, and the periodic activation task is activated at every interval specified in the registration table 11.
本発明のリアルタイムOSのタスク起動方式は、登録テ
ーブルに周期起動間隔とタスク名とを登録することによ
り、ユーザタスク内で他タスクの周期起動制御を行う必
要がないため、ユーザタスクの作成が容易になるという
効果がある。The task activation method of the real-time OS of the present invention allows easy creation of user tasks because there is no need to perform periodic activation control of other tasks within the user task by registering the periodic activation interval and task name in the registration table. It has the effect of becoming
第1図は本発明の一実施例を示すブロック図、第211
g(a)〜(c)は第1図に示す各テーブルの内容を示
す模式図である。
10・・・テーブル生成部、11・・・登録テーブル、
12・・・間隔テーブル、13・・・タスク情報テーブ
ル、20・・・インターバルタイマ処理部、3o・・・
周期起動検出部、40・・・待合せ登録部。
代理人 弁理士 内 原 音FIG. 1 is a block diagram showing an embodiment of the present invention, FIG.
g(a) to (c) are schematic diagrams showing the contents of each table shown in FIG. 1; 10...Table generation unit, 11...Registration table,
12... Interval table, 13... Task information table, 20... Interval timer processing section, 3o...
Periodic activation detection unit, 40...meeting registration unit. Agent Patent Attorney Oto Uchihara
Claims (1)
させる時間間隔とタスク名を登録する手段と、前記管理
テーブル上に登録されたタスクの起動方法を判定して時
間間隔単位に前記タスクを起動させる手段とを含むこと
を特徴とするリアルタイムOSのタスク起動方式。means for registering time intervals and task names to be periodically activated on a system management table of a real-time OS; and means for determining an activation method for the tasks registered on the management table and activating the tasks in units of time intervals. A task starting method for a real-time OS characterized by including:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63005792A JPH01181130A (en) | 1988-01-13 | 1988-01-13 | Task start system for real time os |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63005792A JPH01181130A (en) | 1988-01-13 | 1988-01-13 | Task start system for real time os |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01181130A true JPH01181130A (en) | 1989-07-19 |
Family
ID=11620937
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63005792A Pending JPH01181130A (en) | 1988-01-13 | 1988-01-13 | Task start system for real time os |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01181130A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6430594B1 (en) | 1997-02-17 | 2002-08-06 | Nec Corporation | Real-time operating system and a task management system therefor |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6075938A (en) * | 1983-10-03 | 1985-04-30 | Oki Electric Ind Co Ltd | Dispatching system during timer interruption |
JPS60156144A (en) * | 1984-01-24 | 1985-08-16 | Fujitsu Ltd | Optimum distributed controlling system of load of periodic processing |
-
1988
- 1988-01-13 JP JP63005792A patent/JPH01181130A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6075938A (en) * | 1983-10-03 | 1985-04-30 | Oki Electric Ind Co Ltd | Dispatching system during timer interruption |
JPS60156144A (en) * | 1984-01-24 | 1985-08-16 | Fujitsu Ltd | Optimum distributed controlling system of load of periodic processing |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6430594B1 (en) | 1997-02-17 | 2002-08-06 | Nec Corporation | Real-time operating system and a task management system therefor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH01181130A (en) | Task start system for real time os | |
JP2553526B2 (en) | Multitasking processor | |
JP2590872B2 (en) | Task scheduling method | |
JPH0440338U (en) | ||
JPH01120636A (en) | Resource control system | |
JPH03237554A (en) | Multiprocessor control system | |
JPS6310465B2 (en) | ||
JPH02149402U (en) | ||
JPS6320539A (en) | Low load scan device | |
JPH0263115U (en) | ||
JPS63257041A (en) | Diagnosing system for system of real time os | |
JPS6251403U (en) | ||
JPS6335139U (en) | ||
JPH02195439A (en) | Programmable control device | |
JPS63143948U (en) | ||
JPH01106903U (en) | ||
JPH0447338B2 (en) | ||
JPH0255324U (en) | ||
JPH01142057U (en) | ||
JPS63237135A (en) | Task starting system for multi cpu system | |
JPH03296827A (en) | Dynamic link system for multitask structure program | |
JPH02292642A (en) | Memory control system | |
JPH03107748U (en) | ||
JPS61196346U (en) | ||
JPS6397157U (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080210 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090210 Year of fee payment: 9 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090210 Year of fee payment: 9 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090210 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 10 Free format text: PAYMENT UNTIL: 20100210 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 11 Free format text: PAYMENT UNTIL: 20110210 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 12 Free format text: PAYMENT UNTIL: 20120210 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 12 Free format text: PAYMENT UNTIL: 20120210 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130210 Year of fee payment: 13 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 13 Free format text: PAYMENT UNTIL: 20130210 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140210 Year of fee payment: 14 |