JP2005190238A - Real time control system - Google Patents

Real time control system Download PDF

Info

Publication number
JP2005190238A
JP2005190238A JP2003431841A JP2003431841A JP2005190238A JP 2005190238 A JP2005190238 A JP 2005190238A JP 2003431841 A JP2003431841 A JP 2003431841A JP 2003431841 A JP2003431841 A JP 2003431841A JP 2005190238 A JP2005190238 A JP 2005190238A
Authority
JP
Japan
Prior art keywords
real
time
task
time task
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003431841A
Other languages
Japanese (ja)
Inventor
Satoshi Nagamine
永峰  聡
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2003431841A priority Critical patent/JP2005190238A/en
Publication of JP2005190238A publication Critical patent/JP2005190238A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a real time control system capable of preempting a non-real time task without keeping a real time task waiting. <P>SOLUTION: In the system where the real time task requiring real time processing and the non-real time task not requiring the real time processing are mixed, a real time task start interruption is processed when the interruption is inputted during the execution of the non-real time task (step 101), whether the non-real time task is executing processing in a preempt prohibited section or not is determined (step 102), and when determining that the non-real time task is executing processing in the preempt inhibition section, processing executed by the non-real time task in the preempt prohibited section is canceled and the non-real time task is preempted by the real time task (step 104). When the preempted non-real time task obtains execution right again in a step 105, the non-real time task tries the processing again from the head of the preempt prohibited section. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、組込みシステムや機器に内蔵されるオペレーティングシステムのリアルタイム制御方式に関するものである。   The present invention relates to a real-time control method for an operating system built in an embedded system or device.

計算機のOS(オペレーティングシステム)は、パソコンなどのリアルタイム性を重視していないOS(以下汎用OSと呼ぶ)と自動車や家電製品などの組込みシステムに搭載されるリアルタイム性を重視しているリアルタイムOSに大別される。しかし、組込みシステムの分野においてもソフトウェア規模が増大し、Linuxなどの汎用OSがそのソフトウェア資産を利用するために、組込みシステムに使われつつある。このような組込みシステムにおいては、リアルタイム性を必要としない処理とリアルタイム性を必要とする処理が混在する。そのため、リアルタイム性を必要とする処理がリアルタイム性を必要としない処理によって、遅延させられることの影響をなるべく少なくすることが必要である。   The OS (operating system) of the computer is an OS that does not place importance on real-time performance such as a personal computer (hereinafter referred to as a general-purpose OS) and a real-time OS that places importance on real-time performance installed in an embedded system such as an automobile or home appliance. Broadly divided. However, the scale of software has also increased in the field of embedded systems, and general-purpose OSs such as Linux are being used in embedded systems in order to use their software assets. In such an embedded system, processing that does not require real-time property and processing that requires real-time property are mixed. For this reason, it is necessary to reduce the influence of delaying a process requiring real-time property by a process not requiring real-time property as much as possible.

従来の汎用OSでは、長い割込み禁止区間が存在したり、タスクがシステムコール実行中に他のタスクがプリエンプトすることを禁止したりしている。このようなOSでは、リアルタイム処理開始が、割込み禁止区間を終了するまで待たされたり、システムコール処理終了まで待たされたりする。長い割込み禁止区間に対応するには例えば、割込み禁止区間であってもリアルタイム処理の割込みは受け付けるようにする方法がある(例えば、特許文献1参照)。また、タスクのプリエンプト禁止区間を縮小するために、システムコール実行中でも他のタスクがプリエンプトできるようにしたプリエンプトカーネルがある(例えば、非特許文献1参照)。
特開平11−96022号公報 進藤智則、伊藤大貴 ”次世代Linuxは我らの手で” 日経エレクトロニクス2003.6.23 P.118-P.119
In the conventional general-purpose OS, a long interrupt prohibition section exists, or another task is prohibited from being preempted while a system call is being executed. In such an OS, the start of real-time processing is waited until the end of the interrupt-prohibited section, or is waited until the end of system call processing. In order to deal with a long interrupt prohibition section, for example, there is a method of accepting an interrupt of real-time processing even in the interrupt prohibition section (see, for example, Patent Document 1). In addition, there is a preemption kernel that allows other tasks to be preempted even during execution of a system call in order to reduce the preemption prohibition section of the task (see, for example, Non-Patent Document 1).
Japanese Patent Laid-Open No. 11-96022 Tomonori Shindo, Daiki Ito “Next-generation Linux is in our hands” Nikkei Electronics 2003.6.23 P.118-P.119

しかしながら、上述のプリエンプトカーネルでは、システムコール実行中でも他のタスクがプリエンプトできるものの、依然プリエンプトできないプリエンプト禁止区間は存在する。プリエンプト禁止区間が長ければ、リアルタイムタスクがプリエンプトできずに、リアルタイムタスクは要求される時間内に処理を完了できないという問題が生じることがある。   However, in the above-described preemption kernel, there are preemption prohibition sections in which other tasks can be preempted even during execution of the system call but still cannot be preempted. If the preemption prohibition period is long, the real time task cannot be preempted, and the real time task may not be able to complete processing within the required time.

そこで、本発明は、リアルタイムタスクが待たされることなく非リアルタイムタスクをプリエンプトできるリアルタイム制御方式を提供することを目的としたものである。   SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a real-time control method that can preempt a non-real-time task without waiting for the real-time task.

前述した目的を達成するために、本発明のうち請求項1に記載のリアルタイム制御方式は、リアルタイム処理が必要なリアルタイムタスクと、リアルタイム処理が必要でない非リアルタイムタスクが混在するシステムにおけるリアルタイム制御方式において、
非リアルタイムタスクを実行中に、リアルタイムタスク起床要求割込みを処理するステップと、実行中の非リアルタイムタスクがプリエンプト禁止区間を実行中か否かを判定するステップと、プリエンプト禁止区間を実行中と判定すると、プリエンプト禁止区間でリアルタイムタスクによってプリエンプトされたことを記録するフラグをセットするステップと、リアルタイムタスクが、実行をプリエンプトするステップと、前記リアルタイムタスクが終了すると、前記プリエンプトされた非リアルタイムタスクが実行権を再取得するステップと、前記フラグがセットされているか否かを判定するステップと、前記フラグがセットされていると判定すると、前記非リアルタイムタスクの処理を前記プリエンプト禁止区間の先頭から再開するステップと、前記フラグがセットされていない判定すると、前記非リアルタイムタスクの処理をプリエンプトされた箇所から再開するステップとを備えたことを特徴とする。
In order to achieve the above-described object, the real-time control method according to claim 1 of the present invention is a real-time control method in a system in which a real-time task requiring real-time processing and a non-real-time task not requiring real-time processing are mixed. ,
When executing a non-real-time task, processing a real-time task wake-up request interrupt, determining whether the non-real-time task being executed is executing a preemption prohibition interval, and determining that a preemption prohibition interval is being executed , A step for setting a flag for recording that the preemption is performed by the real time task in the preemption prohibition section, a step for the real time task to preempt execution, and the execution of the preempted non-real time task when the real time task ends. Re-acquiring, determining whether or not the flag is set, and determining that the flag is set are steps for resuming the processing of the non-real-time task from the beginning of the preemption prohibition interval. And flop, when the flag is judged not set, characterized in that a resuming from where the preempted processing non-real-time tasks.

また請求項2記載のリアルタイム制御方式は、リアルタイム処理が必要なリアルタイムタスクと、リアルタイム処理が必要でない非リアルタイムタスクが混在するシステムにおけるリアルタイム制御方式において、
プリエンプト禁止区間処理として、実行タスクがリアルタイムタスクか非リアルタイムタスクかを判定するステップと、実行タスクが非リアルタイムタスクと判定すると、プリエンプト禁止区間処理において保護しているリソース状態を保存するステップを備え、
非リアルタイムタスクを実行中に、リアルタイムタスク起床要求割込みを処理するステップと、実行中の非リアルタイムタスクがプリエンプト禁止区間を実行中か否かを判定するステップと、プリエンプト禁止区間を実行中と判定すると、プリエンプト禁止区間でリアルタイムタスクによってプリエンプトされたことを記録するフラグをセットし、前記保存しているリソース状態を復元するステップと、リアルタイムタスクが、実行をプリエンプトするステップと、前記リアルタイムタスクが終了すると、前記プリエンプトされた非リアルタイムタスクが実行権を再取得するステップと、前記フラグがセットされているか否かを判定するステップと、前記フラグがセットされていると判定すると、前記非リアルタイムタスクの処理を前記プリエンプト禁止区間の先頭から再開するステップと、前記フラグがセットされていないと判定すると、前記非リアルタイムタスクの処理をプリエンプトされた箇所から再開するステップとを備えたことを特徴とする。
The real-time control method according to claim 2 is a real-time control method in a system in which a real-time task that requires real-time processing and a non-real-time task that does not require real-time processing coexist.
As preemption prohibition section processing, it comprises a step of determining whether an execution task is a real-time task or a non-realtime task, and a step of storing the resource state protected in the preemption prohibition section processing when the execution task is determined to be a non-realtime task,
When executing a non-real-time task, processing a real-time task wake-up request interrupt, determining whether the non-real-time task being executed is executing a preemption prohibition interval, and determining that a preemption prohibition interval is being executed , Setting a flag that records that the preemption is performed by the real-time task in the preemption prohibition section, restoring the saved resource state, pre-executing the real-time task, and when the real-time task ends. The preempted non-real-time task re-acquires execution rights, the step of determining whether the flag is set, and the determination of the flag being set, the processing of the non-real-time task The pre The head resuming from Nputo inhibition interval, when the flag is determined not to be set, characterized by comprising a resuming from where the preempted processing non-real-time tasks.

さらに請求項3記載のリアルタイム制御方式は、請求項1または請求項2記載のリアルタイム制御方式であって、プリエンプト禁止区間の処理として、実行タスクがリアルタイムタスクか非リアルタイムタスクかを判定するステップと、実行タスクが非リアルタイムタスクと判定すると、プリエンプト禁止区間の処理が残り少なくなったか否かを判定するステップと、プリエンプト禁止区間の処理が残り少なくなったと判定すると、リアルタイムタスクのプリエンプトを禁止にするステップを備えたことを特徴とする。   Furthermore, the real-time control method according to claim 3 is the real-time control method according to claim 1 or claim 2, wherein the execution task is determined as a real-time task or a non-real-time task as processing in the preemption prohibition section; When the execution task is determined to be a non-real-time task, it includes a step for determining whether or not the processing for the preemption prohibition section is reduced, and a step for prohibiting the preemption for the realtime task when it is determined that the processing for the preemption prohibition section is low. It is characterized by that.

また請求項4記載のリアルタイム制御方式は、リアルタイム処理が必要なリアルタイムタスクと、リアルタイム処理が必要でない非リアルタイムタスクが混在するシステムにおけるリアルタイム制御方式において、
プリエンプト禁止区間処理として、実行タスクがリアルタイムタスクか非リアルタイムタスクかを判定するステップと、実行タスクがリアルタイムタスクと判定すると、第1のリソースを割り当てるステップと、実行タスクが非リアルタイムタスクと判定すると、第2のリソースを割り当てるステップを備え、
非リアルタイムタスクを実行中に、リアルタイムタスク起床要求割込みを処理するステップと、リアルタイムタスクが、実行をプリエンプトするステップと、前記リアルタイムタスクが終了すると、プリエンプトされた非リアルタイムタスクが実行権を再取得するステップと、前記非リアルタイムタスクがプリエンプトされた箇所から、前記割り当てられた第2のリソースを使用して実行を再開するステップとを備えたことを特徴とする。
The real-time control method according to claim 4 is a real-time control method in a system in which a real-time task that requires real-time processing and a non-real-time task that does not require real-time processing coexist.
As preemption prohibition section processing, determining whether an execution task is a real-time task or a non-real-time task; determining an execution task as a real-time task; allocating a first resource; determining an execution task as a non-real-time task; Allocating a second resource,
While executing a non-real-time task, processing a real-time task wake-up request interrupt, a step in which the real-time task preempts execution, and when the real-time task ends, the pre-empted non-real-time task reacquires execution rights. And resuming execution from the location where the non-real-time task is preempted using the allocated second resource.

さらに請求項5記載のリアルタイム制御方式は、リアルタイム処理が必要なリアルタイムタスクと、リアルタイム処理が必要でない非リアルタイムタスクが混在するシステムにおけるリアルタイム制御方式において、
実行可能なタスクを管理するランキューの処理で、タスクがリアルタイムタスクか非リアルタイムタスクかを判定するステップと、タスクがリアルタイムタスクと判定すると、第1のランキューを使用するステップと、タスクが非リアルタイムタスクと判定すると、第2のランキューを使用するステップと、第2のランキューを使用中に、リアルタイムタスク起床要求割込みを処理するステップと、リアルタイムタスクが、実行をプリエンプトするステップと、前記リアルタイムタスクが終了したら、プリエンプトされた処理を再開するステップとを備えたことを特徴とする。
Furthermore, the real-time control method according to claim 5 is a real-time control method in a system in which a real-time task requiring real-time processing and a non-real-time task not requiring real-time processing are mixed.
In the run queue processing for managing executable tasks, a step of determining whether a task is a real-time task or a non-real-time task, a step of using a first run queue when a task is determined to be a real-time task, and a task being a non-real-time task The second run queue is used, the real-time task wake-up request interrupt is processed while the second run queue is used, the real-time task preempts execution, and the real-time task ends. And a step of restarting the preempted process.

本発明のリアルタイム制御方式は、上記ステップを有し、従来のプリエンプトカーネルにおいてプリエンプトが禁止された区間においてもリアルタイムタスクはプリエンプトできるので、リアルタイムタスクは他の非リアルタイムタスクの処理のために待たされることがなく、要求される時間内に処理を完了させることができる。   The real-time control method of the present invention has the above steps, and since a real-time task can be preempted even in a section where preemption is prohibited in the conventional preemption kernel, the real-time task is waited for processing of other non-real-time tasks. The process can be completed within the required time.

以下、本発明の実施の形態を、図面を参照しながら説明する。
本発明のリアルタイム制御方式は、リアルタイム処理が必要なリアルタイムタスクと、リアルタイム処理が必要でない非リアルタイムタスクが混在するシステム、たとえばデジタルTV,DVDプレーヤーなど映像処理や音声処理などリアルタイム性を必要とするリアルタイムタスクと、ユーザからの指示を受付けるユーザインターフェイス処理などリアルタイム性を必要としない非リアルタイムタスクが混在する家電製品等に使用されるコンピュータの制御方式であり、このようなシステムにおけるリアルタイム制御方式について以下、説明する。
[実施の形態1]
本発明の実施の形態1について、図1と図2を参照しながら説明する。図1は、非リアルタイムタスクを実行中にリアルタイムタスク起床要求割込みが発生した場合の処理手順を示すフローチャートである。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
The real-time control method of the present invention is a system in which a real-time task that requires real-time processing and a non-real-time task that does not require real-time processing, such as digital TV and DVD player, which requires real-time properties such as video processing and audio processing. It is a computer control method used for home appliances etc. in which non-real-time tasks that do not require real-time properties such as user interface processing that accepts instructions from users and tasks, and the real-time control method in such a system is described below. explain.
[Embodiment 1]
Embodiment 1 of the present invention will be described with reference to FIG. 1 and FIG. FIG. 1 is a flowchart showing a processing procedure when a real-time task wake-up request interrupt occurs during execution of a non-real-time task.

非リアルタイムタスクを実行中に、リアルタイムタスク起床要求割込みが発生するとこのリアルタイムタスク起床要求割込みを処理し(ステップ101)、実行中の非リアルタイムタスクがプリエンプト禁止区間を実行中か否かを判定する(ステップ102)。プリエンプト禁止区間は、OSのリソースで排他制御が必要なものを保護するために設定されたもので、この区間を実行中は、従来実行タスクが他のタスクにプリエンプトされない。   When a real-time task wake-up request interrupt occurs during execution of a non-real-time task, this real-time task wake-up request interrupt is processed (step 101), and it is determined whether or not the non-real-time task being executed is executing a preemption prohibition section ( Step 102). The preemption prohibition section is set to protect an OS resource that requires exclusive control. During execution of this section, the conventionally executed task is not preempted by another task.

実行中の非リアルタイムタスクがプリエンプト禁止区間を実行中と判定すると、フラグをセットする(ステップ103)。このフラグはプリエンプト禁止区間でリアルタイムタスクによってプリエンプトされたことを記録しておき、あとで述べるステップ106で参照するためのものである。ステップ102において、プリエンプト禁止区間でないと判定すると、このフラグはセットしない。   If it is determined that the non-real-time task being executed is executing the preemption prohibited section, a flag is set (step 103). This flag records that preemption is performed by the real-time task in the preemption prohibition section, and is used for reference in step 106 described later. If it is determined in step 102 that it is not a preemption prohibition section, this flag is not set.

ステップ103の終了後、または上記ステップ102において実行中の非リアルタイムタスクがプリエンプト禁止区間を実行中ではないと判定するとき、リアルタイムタスクが、実行をプリエンプトする(ステップ104)。リアルタイムタスクの実行中は、プリエンプトされた非リアルタイムタスクの実行は中断される。   After step 103, or when it is determined that the non-real-time task being executed in step 102 is not executing the preemption prohibited section, the real-time task preempts execution (step 104). During execution of the real-time task, execution of the preempted non-real-time task is interrupted.

リアルタイムタスクの実行が終了すると、プリエンプトされた非リアルタイムタスクが実行権を再取得し(ステップ105)。フラグがセットされているかどうか否かを判定する(ステップ106)。   When the execution of the real-time task is finished, the preempted non-real-time task re-acquires the execution right (step 105). It is determined whether or not a flag is set (step 106).

フラグがセットされていると判定すると、プリエンプト禁止区間の中でリアルタイムタスクにプリエンプトされたことになるので、非リアルタイムタスクの処理をプリエンプト禁止区間の先頭から再開する(ステップ107)。   If it is determined that the flag is set, it is preempted by the real-time task in the preemption prohibition section, so the processing of the non-real time task is restarted from the beginning of the preemption prohibition section (step 107).

ステップ106において、フラグがセットされていないと判定すると、非リアルタイムタスクの処理をプリエンプトされた箇所から再開する(ステップ108)。
図2は、本実施の形態1の効果を示すために、リアルタイムタスク起床要求が発生したときの、従来のOSと本実施の形態1におけるそれぞれのタスクスイッチを示した図である。図2(a)は従来のOSのタスクスイッチを、図2(b)は本実施の形態1を示している。
If it is determined in step 106 that the flag is not set, the processing of the non-real time task is resumed from the preempted location (step 108).
FIG. 2 is a diagram showing a conventional OS and each task switch in the first embodiment when a real-time task wake-up request is generated in order to show the effect of the first embodiment. FIG. 2A shows a conventional OS task switch, and FIG. 2B shows the first embodiment.

図2(a)で示すように従来のOSでは、プリエンプト禁止区間でリアルタイムタスク起床要求が発生したときに、リアルタイムタスクの起床は非リアルタイムタスクがプリエンプト禁止区間の処理を終了するまで待たされる。   As shown in FIG. 2A, in the conventional OS, when a real-time task wake-up request is generated in a preemption prohibited section, the wake-up of the real-time task is waited until the non-real-time task finishes the processing of the preemption prohibited section.

本実施の形態1では、図2(b)で示すようにリアルタイムタスク起床要求があれば直ちにリアルタイムタスクが起床される。このように、非リアルタイムタスクを実行中に、リアルタイムタスク起床要求割込みが発生し、このとき非リアルタイムタスクがプリエンプト禁止区間を実行中と判定されると、非リアルタイムタスクがプリエンプト禁止区間で行った処理は破棄され、リアルタイムタスクにプリエンプトさせ、プリエンプトされた非リアルタイムタスクは、ステップ105にて再び実行権を得たときは、ステップ107にてプリエンプト禁止区間の先頭から処理をやり直す。   In the first embodiment, as shown in FIG. 2B, if there is a real-time task wake-up request, the real-time task is woken up immediately. In this way, if a non-real-time task wake-up request interrupt occurs during execution of a non-real-time task, and it is determined that the non-real-time task is executing a preemption-prohibited section at this time, the processing performed by the non-real-time task in the pre-emption prohibited section Is discarded, and the real-time task is preempted. When the preempted non-real-time task obtains the right to execute again in step 105, the processing is restarted from the beginning of the preemption prohibited section in step 107.

以上のように、非リアルタイムタスクがプリエンプト禁止区間を実行中であっても、リアルタイムタスクは、非リアルタイムタスクがプリエンプト禁止区間を終了するまで待たされるということはなく、起床要求があればすぐにプリエンプトすることができ(リアルタイムタスクはいかなる場合でも非リアルタイムタスクの実行をプリエンプトすることができ)、リアルタイム性を確保することができる。   As described above, even if a non-real-time task is executing a preemption prohibition interval, the real-time task is not waited until the non-real-time task finishes the preemption prohibition interval. (Real-time tasks can preempt execution of non-real-time tasks in any case), and real-time properties can be ensured.

また非リアルタイムタスクはフラグを確認すると、プリエンプト禁止区間の先頭から処理を再開することにより、プリエンプト禁止区間開始前のリソース状態で実行されることから、リアルタイムタスクによりリソースが書き換えられている場合でも、動作を保証することができる。
[実施の形態2]
本発明の実施の形態2について、図3を参照しながら説明する。
Also, if the non-real-time task confirms the flag, it resumes from the beginning of the preemption prohibited section, and is executed in the resource state before the start of the preemption prohibited section, so even if the resource is rewritten by the real-time task, Operation can be guaranteed.
[Embodiment 2]
A second embodiment of the present invention will be described with reference to FIG.

図3(a)はタスクがプリエンプト禁止区間で実行する処理を、図3(b)は非リアルタイムタスク実行中にリアルタイムタスク起床要求割込みが発生した場合の処理手順を示す。   FIG. 3A shows a process executed by a task in a preemption prohibited section, and FIG. 3B shows a process procedure when a real-time task wake-up request interrupt occurs during execution of a non-real-time task.

図3(a)に示すようにプリエンプト禁止区間処理として、プリエンプト禁止区間の入り口で、実行タスクが非リアルタイムタスクか否かを判定し(ステップ301)、実行タスクが非リアルタイムタスクと判定すると、プリエンプト禁止区間で保護しているリソースの状態を保存する(ステップ302)。   As shown in FIG. 3A, as preemption prohibition interval processing, it is determined whether or not the execution task is a non-real-time task at the entrance of the preemption prohibition interval (step 301). The state of the resource protected in the prohibited section is saved (step 302).

また図3(b)に示すように、非リアルタイムタスクを実行中にリアルタイムタスク要求割込みが発生するとこのリアルタイムタスク起床要求割込みを処理し(ステップ303)、非リアルタイムタスクがプリエンプト禁止区間を実行中が否かを判定し(ステップ304)、プリエンプト禁止区間を実行中と判定すると、フラグをセットし(ステップ305)、ステップ302で保存しているリソース状態を復元する(ステップ306)。このフラグはプリエンプト禁止区間でリアルタイムタスクによってプリエンプトされたことを記録するフラグである。ステップ304において、プリエンプト禁止区間を実行中ではないと判定すると、何もしない。   Further, as shown in FIG. 3B, when a real-time task request interrupt occurs during execution of a non-real-time task, this real-time task wake-up request interrupt is processed (step 303), and the non-real-time task is executing a preemption prohibited section. If it is determined whether or not the preemption prohibition section is being executed, a flag is set (step 305), and the resource state saved in step 302 is restored (step 306). This flag records that preemption has been performed by the real-time task in the preemption prohibition section. If it is determined in step 304 that the preemption prohibition section is not being executed, nothing is done.

その後、リアルタイムタスクが、実行をプリエンプトする(ステップ307)。リアルタイムタスクの実行中は、プリエンプトされた非リアルタイムタスクの実行は中断される。リアルタイムタスクの実行が終了すると、プリエンプトされた非リアルタイムタスクは実行権を再取得(ステップ308)し、実行を再開する。   Thereafter, the real-time task preempts execution (step 307). During execution of the real-time task, execution of the preempted non-real-time task is interrupted. When the execution of the real-time task ends, the preempted non-real-time task re-acquires the execution right (step 308) and resumes execution.

次にフラグがセットされているかどうかを判定し(ステップ309)、フラグがセットされていると判定すると、プリエンプト禁止区間の中でリアルタイムタスクにプリエンプトされたことになるので、非リアルタイムタスクの処理をプリエンプト禁止区間の先頭から再開する(ステップ310)。フラグがセットされていないと判定すると、非リアルタイムタスクの処理をプリエンプトされた場所から再開する(ステップ311)。   Next, it is determined whether or not the flag is set (step 309). If it is determined that the flag is set, it is preempted by the real-time task in the preemption prohibition section. The process restarts from the beginning of the preemption prohibited section (step 310). If it is determined that the flag is not set, the processing of the non-real time task is resumed from the preempted location (step 311).

この実施の形態2と上記実施の形態1との相違は、ステップ302でプリエンプト禁止区間開始時のリソース状態を保存していることと、ステップ306でリソース状態を復元していることである。リソースをプリエンプト禁止区間中に非リアルタイムタスクによって書き換える場合、書き換え途中でリアルタイムタスクがプリエンプトして同じリソースをアクセスした場合に動作が保証できない。そのために、リアルタイムタスクがアクセスしても動作に問題が生じないようにするために、ステップ306でプリエンプト禁止区間の開始時のリソース状態に復元している。非リアルタイムタスクがプリエンプト禁止区間を終了した後に、リアルタイムタスクの起床要求があった場合は、保存したリソース状態を復元する必要はない。   The difference between the second embodiment and the first embodiment is that the resource state at the start of the preemption prohibition section is saved in step 302 and the resource state is restored in step 306. When a resource is rewritten by a non-real-time task during the preemption prohibition interval, the operation cannot be guaranteed if the real-time task preempts and accesses the same resource during rewriting. Therefore, in order to prevent a problem in operation even when a real-time task is accessed, the resource state at the start of the preemption prohibited section is restored in step 306. If there is a request to wake up a real-time task after the non-real-time task ends the preemption prohibition section, it is not necessary to restore the saved resource state.

以上のように、リアルタイムタスクはいかなる場合でも非リアルタイムタスクの実行をプリエンプトすることができるとともに、非リアルタイムタスクがプリエンプト禁止区間で保護しているリソースを変更したとしても、プリエンプト禁止区間中にプリエンプトしたリアルタイムタスクはシステムに支障をきたすことなく、そのリソースを使用することができ、動作を保証することができる。   As described above, a real-time task can preempt execution of a non-real-time task at any time, and even if the resource protected by the non-real-time task is changed in the pre-emption prohibited section, it is pre-empted during the pre-emption prohibited section. The real-time task can use the resource and guarantee the operation without causing any trouble in the system.

なお、非リアルタイムタスクがプリエンプト禁止区間でリソース状態を変更せずに参照するだけであれば、実施の形態1でよい。
[実施の形態3]
本発明の実施の形態3について、図4を参照しながら説明する。
Note that Embodiment 1 may be used if the non-real-time task only refers to the preemption prohibited section without changing the resource state.
[Embodiment 3]
A third embodiment of the present invention will be described with reference to FIG.

図4(a)は、リアルタイムタスク起床要求がない場合の非リアルタイムタスクの実行を示している。太線はプリエンプト禁止区間を示す。図4(b)は実施の形態1または2において、処理内容の同じ非リアルタイムタスクで、プリエンプト禁止区間でリアルタイムタスク起床要求が発生した場合の実行の様子を示す。プリエンプト禁止区間の処理が残りわずかであっても、リアルタイムタスク起床要求があればただちにリアルタイムタスクがプリエンプトし、非リアルタイムタスクは実行権を再取得後、最初から処理をやり直している。   FIG. 4A shows the execution of a non-real-time task when there is no real-time task wake-up request. A bold line indicates a preemption prohibited section. FIG. 4B shows a state of execution when a real-time task wake-up request is generated in the preemption prohibited section in the non-real-time task having the same processing contents in the first or second embodiment. Even if there is only a small amount of processing in the preemption prohibition section, if there is a real-time task wake-up request, the real-time task is preempted immediately, and the non-real-time task restarts processing from the beginning after re-acquiring execution rights.

図4(c)は実施の形態3において、処理内容の同じ非リアルタイムタスクで、プリエンプト禁止区間でリアルタイムタスク起床要求が発生した場合の実行の様子を示す。プリエンプト禁止区間中で、プリエンプト禁止区間の処理が残り少なくなった箇所に、リアルタイムタスクへのプリエンプトを禁止する手段を設けている。具体的にはプリエンプト禁止のフラグをセットすることで対応する。   FIG. 4C shows a state of execution in the third embodiment when a real-time task wake-up request is generated in a preemption prohibited section with non-real-time tasks having the same processing contents. Means for prohibiting preemption of the real-time task is provided at a portion where the processing of the preemption prohibition interval is reduced in the preemption prohibition interval. Specifically, this is handled by setting a preemption prohibition flag.

このプリエンプト禁止区間の処理途中で、リアルタイムタスクのプリエンプトを禁止にするプリエンプト禁止フラグのセットのステップは、たとえば図5に示すように、上記実施の形態2のステップ302に続いて実行される。   During the processing of the preemption prohibition section, the step of setting the preemption prohibition flag for prohibiting the preemption of the real-time task is executed subsequent to step 302 of the second embodiment, for example, as shown in FIG.

すなわち、プリエンプト禁止区間の処理として、ステップ301において実行タスクを非リアルタイムタスクと判定し、ステップ302においてプリエンプト禁止区間で保護しているリソースの状態を保存すると、プリエンプト禁止区間の処理が残り少なくなったか否かを判定し(ステップ401)、プリエンプト禁止区間の処理が残り少なくはないと判定すると終了し、残り少なくなったと判定すると、リアルタイムタスクのプリエンプトを禁止にするプリエンプト禁止フラグをセットする(ステップ402)。   That is, as the processing of the preemption prohibition section, if the execution task is determined as a non-real-time task in step 301 and the state of the resource protected in the preemption prohibition section is stored in step 302, whether or not the processing of the preemption prohibition section has decreased (Step 401), the process ends when it is determined that the remaining processing of the preemption prohibition section is not small, and when it is determined that the remaining is small, a preemption prohibition flag for prohibiting the preemption of the real-time task is set (step 402).

このプリエンプト禁止フラグがセットされたあとでは、リアルタイムタスク起床要求が発生してもプリエンプト禁止区間の処理が終了するまで、リアルタイムタスクのプリエンプトを待たせる。すなわち、ステップ304において非リアルタイムタスクがプリエンプト禁止区間を実行中か否かを判定し、プリエンプト禁止区間と判定すると、プリエンプト禁止フラグがセットされているか否かを判定し(ステップ403)、プリエンプト禁止フラグがセットされている判定すると、非リアルタイムタスクの処理をそのまま実行し(ステップ404)、終了する。   After this preemption prohibition flag is set, even if a real-time task wake-up request is generated, the preemption of the real-time task is made to wait until the processing of the preemption prohibition section is completed. That is, in step 304, it is determined whether or not the non-real-time task is executing the preemption prohibition section. If it is determined that the preemption prohibition section is determined, it is determined whether or not the preemption prohibition flag is set (step 403). If it is determined that is set, the processing of the non-real time task is executed as it is (step 404), and the process is terminated.

プリエンプト禁止区間が残りわずかな場合は、実施の形態2におけるリソース状態の復元を行う方が時間を要したり、待ち時間がリアルタイムタスクの処理に影響を及ぼさなかったりすることがある。この場合においては、非リアルタイムタスクにプリエンプト禁止区間の最後まで実行させたほうが、プリエンプト禁止区間全体の処理をやり直す必要がなくなり、システム全体の性能を向上させることができる。   If there are only a few preemption prohibition intervals, it may take more time to restore the resource state in the second embodiment, or the waiting time may not affect the processing of the real-time task. In this case, if the non-real-time task is executed until the end of the preemption prohibition section, it is not necessary to redo the processing of the entire preemption prohibition section, and the performance of the entire system can be improved.

以上のように、非リアルタイムタスクがプリエンプト禁止区間実行中で、プリエンプト禁止区間の処理が残り少なくなっている状態で、リアルタイムタスク起床要求が発生した場合、プリエンプト禁止とし、非リアルタイムタスクにプリエンプト禁止区間の最後まで実行させることにより、システム全体の性能を向上させることができる。   As described above, if a real-time task wake-up request occurs while a non-real-time task is being executed in a pre-emption prohibited section and the remaining processing of the pre-emption prohibited section is low, pre-emption is disabled and the non-real-time task By executing it to the end, the performance of the entire system can be improved.

なお、実施の形態1では、リソース状態の保存処理を実行しないので、プリエンプト禁止区間の処理として、図5においてステップ302が削除されたフローチャートが実行され、図1のフローチャートでは、ステップ102とステップ103との間で、上記ステップ403とステップ404が実行される。
[実施の形態4]
本発明の実施の形態4について、図6を参照しながら説明する。
In the first embodiment, since the resource state saving process is not executed, the flowchart in which step 302 is deleted in FIG. 5 is executed as the preemption prohibition section process. In the flowchart of FIG. The above step 403 and step 404 are executed in between.
[Embodiment 4]
A fourth embodiment of the present invention will be described with reference to FIG.

図6(a)はタスクがプリエンプト禁止区間で実行する処理を、図6(b)は非リアルタイムタスク実行中にリアルタイムタスク起床要求割込みが発生した場合の処理手順を示す。   FIG. 6A shows a process executed by a task in a preemption prohibition section, and FIG. 6B shows a process procedure when a real-time task wakeup request interrupt occurs during execution of a non-real-time task.

図6(a)に示すようにプリエンプト禁止区間の処理として、プリエンプト禁止区間の入り口では、実行タスクがリアルタイムタスクか非リアルタイムタスクかを判定し(ステップ501)、実行タスクがリアルタイムタスクと判定すると、第1のリソースを割当て(ステップ502)、実行タスクが非リアルタイムタスクと判定すると、第2のリソースを割り当てる(ステップ503)。   As shown in FIG. 6A, as the processing of the preemption prohibition section, at the entrance of the preemption prohibition section, it is determined whether the execution task is a real-time task or a non-real-time task (step 501). When the first resource is allocated (step 502) and the execution task is determined to be a non-real-time task, the second resource is allocated (step 503).

また図6(b)に示すように、非リアルタイムタスクを実行中にリアルタイムタスクの起床要求割込みが発生するとこのリアルタイムタスク起床要求割込みを処理し(ステップ504)、リアルタイムタスクが、実行をプリエンプトする(ステップ505)。リアルタイムタスクの実行中は、プリエンプトされた非リアルタイムタスクの実行は中断される。   As shown in FIG. 6B, when a wake-up request interrupt for a real-time task occurs during execution of a non-real-time task, the real-time task wake-up request interrupt is processed (step 504), and the real-time task preempts execution ( Step 505). During execution of the real-time task, execution of the preempted non-real-time task is interrupted.

リアルタイムタスクの実行が終了すると、非リアルタイムタスクは実行権を再取得し(ステップ506)、プリエンプトされた箇所から、割り当てられた第2のリソースを使用して処理を再開する(ステップ507)。   When the execution of the real-time task is completed, the non-real-time task re-acquires the execution right (step 506), and the process is resumed from the preempted location using the allocated second resource (step 507).

このように、リアルタイムタスクはいかなる場合でも非リアルタイムタスクの実行をプリエンプトすることができるとともに、プリエンプト禁止区間で保護するリソースを二重化してリアルタイムタスク用と非リアルタイムタスク用に分けて割り当てることにより、非リアルタイムタスクがプリエンプト禁止区間を実行中にリアルタイムタスクが実行をプリエンプトしてもリソースの競合を避けることができ、リアルタイムタスクおよび非リアルタイムタスクの動作を保証することができる。
[実施の形態5]
本発明の実施の形態5について、図7を参照しながら説明する。
In this way, real-time tasks can preempt execution of non-real-time tasks at any time, and by allocating resources to be protected in the pre-emption prohibited section and allocating them separately for real-time tasks and non-real-time tasks, Even if the real-time task preempts execution while the real-time task is executing the preemption prohibition interval, resource contention can be avoided and the operations of the real-time task and the non-real-time task can be guaranteed.
[Embodiment 5]
A fifth embodiment of the present invention will be described with reference to FIG.

図7(a)は実行可能なタスクを管理するランキューの処理を、図7(b)は第2のランキュー処理中にリアルタイムタスク起床要求割込みが発生した場合の処理手順を示す。
図7(a)に示すように、ランキュー処理で、タスクがリアルタイムタスクか非リアルタイムタスクかを判定し(ステップ601)、タスクがリアルタイムタスクと判定すると、第1のランキューを使用し(ステップ602)、タスクが非リアルタイムタスクと判定すると、第2のランキューを使用する(ステップ603)。
FIG. 7A shows a run queue process for managing executable tasks, and FIG. 7B shows a process procedure when a real-time task wakeup request interrupt occurs during the second run queue process.
As shown in FIG. 7A, in the run queue process, it is determined whether the task is a real-time task or a non-real-time task (step 601). If the task is determined to be a real-time task, the first run queue is used (step 602). If the task is determined to be a non-real-time task, the second run queue is used (step 603).

図7(b)に示すように、第2のランキュー処理中に、リアルタイムタスクの起床要求割込みが発生するとこのリアルタイムタスク起床要求割込みを処理し(ステップ604)、リアルタイムタスクが、実行をプリエンプトする(ステップ605)。リアルタイムタスクの実行中は、第2のランキューの実行は中断される。リアルタイムタスクの実行が終了すると、プリエンプトされた箇所から第2のランキュー処理を再開する(ステップ606)。   As shown in FIG. 7B, when a wake-up request interrupt for a real-time task occurs during the second run queue process, this real-time task wake-up request interrupt is processed (step 604), and the real-time task preempts execution ( Step 605). While the real-time task is being executed, the execution of the second run queue is interrupted. When the execution of the real-time task is completed, the second run queue process is resumed from the preempted location (step 606).

このように、ランキューをリアルタイムタスク用と非リアルタイムタスク用に分けることで、非リアルタイムタスクが第2のランキューを実行中にリアルタイムタスクが実行をプリエンプトしてもシステムに支障が生じることを避けることができる。   In this way, by dividing the run queue into a real-time task and a non-real-time task, it is possible to avoid a problem in the system even if the real-time task preempts execution while the non-real-time task is executing the second run queue. it can.

本発明にかかるリアルタイム制御方式は、リアルタイムタスクはいかなる場合でも非リアルタイムタスクの実行をプリエンプトすることができ、リアルタイム処理が必要な家電製品の制御と、ユーザインタフェース処理などを行う非リアルタイム処理が混在するネットワーク家電向けのシステムとして有用である。   The real-time control method according to the present invention can preempt execution of a non-real-time task in any case of a real-time task, and includes a mixture of non-real-time processing that performs control of home appliances that require real-time processing and user interface processing. It is useful as a system for network home appliances.

本発明の実施の形態1におけるリアルタイム制御方式を説明するフローチャートである。It is a flowchart explaining the real-time control system in Embodiment 1 of this invention. 同リアルタイム制御方式の効果を説明するための図である。It is a figure for demonstrating the effect of the real-time control system. 本発明の実施の形態2におけるリアルタイム制御方式を説明するフローチャートである。It is a flowchart explaining the real-time control system in Embodiment 2 of this invention. 本発明の実施の形態3を説明するための図である。It is a figure for demonstrating Embodiment 3 of this invention. 本発明の実施の形態3におけるリアルタイム制御方式を説明するフローチャートである。It is a flowchart explaining the real-time control system in Embodiment 3 of this invention. 本発明の実施の形態4におけるリアルタイム制御方式を説明するフローチャートである。It is a flowchart explaining the real-time control system in Embodiment 4 of this invention. 本発明の実施の形態5におけるリアルタイム制御方式を説明するフローチャートである。It is a flowchart explaining the real-time control system in Embodiment 5 of this invention.

Claims (5)

リアルタイム処理が必要なリアルタイムタスクと、リアルタイム処理が必要でない非リアルタイムタスクが混在するシステムにおけるリアルタイム制御方式において、
非リアルタイムタスクを実行中に、リアルタイムタスク起床要求割込みを処理するステップと、
実行中の非リアルタイムタスクがプリエンプト禁止区間を実行中か否かを判定するステップと、
プリエンプト禁止区間を実行中と判定すると、プリエンプト禁止区間でリアルタイムタスクによってプリエンプトされたことを記録するフラグをセットするステップと、
リアルタイムタスクが、実行をプリエンプトするステップと、
前記リアルタイムタスクが終了すると、前記プリエンプトされた非リアルタイムタスクが実行権を再取得するステップと、
前記フラグがセットされているか否かを判定するステップと、
前記フラグがセットされていると判定すると、前記非リアルタイムタスクの処理を前記プリエンプト禁止区間の先頭から再開するステップと、
前記フラグがセットされていない判定すると、前記非リアルタイムタスクの処理をプリエンプトされた箇所から再開するステップと
を備えたことを特徴とするリアルタイム制御方式。
In a real-time control method in a system where real-time tasks that require real-time processing and non-real-time tasks that do not require real-time processing coexist,
Processing a real-time task wake-up request interrupt while executing a non-real-time task;
Determining whether a non-real-time task being executed is executing a preemption prohibited section; and
When determining that the preemption prohibition section is being executed, a step of setting a flag for recording that the preemption is prohibited by the real-time task in the preemption prohibition section;
A real-time task that preempts execution;
When the real-time task ends, the preempted non-real-time task reacquires execution rights;
Determining whether the flag is set;
Resuming that the flag is set, resuming processing of the non-real-time task from the beginning of the preemption prohibition section;
And a step of resuming processing of the non-real time task from a preempted location when it is determined that the flag is not set.
リアルタイム処理が必要なリアルタイムタスクと、リアルタイム処理が必要でない非リアルタイムタスクが混在するシステムにおけるリアルタイム制御方式において、
プリエンプト禁止区間処理として、
実行タスクがリアルタイムタスクか非リアルタイムタスクかを判定するステップと、
実行タスクが非リアルタイムタスクと判定すると、プリエンプト禁止区間処理において保護しているリソース状態を保存するステップ
を備え、
非リアルタイムタスクを実行中に、リアルタイムタスク起床要求割込みを処理するステップと、
実行中の非リアルタイムタスクがプリエンプト禁止区間を実行中か否かを判定するステップと、
プリエンプト禁止区間を実行中と判定すると、プリエンプト禁止区間でリアルタイムタスクによってプリエンプトされたことを記録するフラグをセットし、前記保存しているリソース状態を復元するステップと、
リアルタイムタスクが、実行をプリエンプトするステップと、
前記リアルタイムタスクが終了すると、前記プリエンプトされた非リアルタイムタスクが実行権を再取得するステップと、
前記フラグがセットされているか否かを判定するステップと、
前記フラグがセットされていると判定すると、前記非リアルタイムタスクの処理を前記プリエンプト禁止区間の先頭から再開するステップと、
前記フラグがセットされていないと判定すると、前記非リアルタイムタスクの処理をプリエンプトされた箇所から再開するステップと
を備えたことを特徴とするリアルタイム制御方式。
In a real-time control method in a system where real-time tasks that require real-time processing and non-real-time tasks that do not require real-time processing coexist,
As preemption prohibition section processing,
Determining whether the execution task is a real-time task or a non-real-time task;
When the execution task is determined to be a non-real-time task, it includes a step of saving the resource state protected in the preemption prohibition section process,
Processing a real-time task wake-up request interrupt while executing a non-real-time task;
Determining whether a non-real-time task being executed is executing a preemption prohibited section; and
When it is determined that the preemption prohibition section is being executed, a flag for recording that the preemption is performed by the real-time task in the preemption prohibition section is set, and the saved resource state is restored.
A real-time task that preempts execution;
When the real-time task ends, the preempted non-real-time task reacquires execution rights;
Determining whether the flag is set;
Resuming that the flag is set, resuming processing of the non-real-time task from the beginning of the preemption prohibition section;
And a step of resuming processing of the non-real time task from a preempted location when it is determined that the flag is not set.
プリエンプト禁止区間の処理として、
実行タスクがリアルタイムタスクか非リアルタイムタスクかを判定するステップと、
実行タスクが非リアルタイムタスクと判定すると、プリエンプト禁止区間の処理が残り少なくなったか否かを判定するステップと、
プリエンプト禁止区間の処理が残り少なくなったと判定すると、リアルタイムタスクのプリエンプトを禁止にするステップ
を備えたことを特徴とする請求項1または請求項2に記載のリアルタイム制御方式。
As processing of preemption prohibition section,
Determining whether the execution task is a real-time task or a non-real-time task;
When the execution task is determined to be a non-real-time task, a step of determining whether or not the processing of the preemption prohibition section has decreased,
3. The real-time control system according to claim 1, further comprising a step of prohibiting pre-emption of a real-time task when it is determined that the remaining processing of the pre-emption prohibition section has been reduced.
リアルタイム処理が必要なリアルタイムタスクと、リアルタイム処理が必要でない非リアルタイムタスクが混在するシステムにおけるリアルタイム制御方式において、
プリエンプト禁止区間処理として、
実行タスクがリアルタイムタスクか非リアルタイムタスクかを判定するステップと、
実行タスクがリアルタイムタスクと判定すると、第1のリソースを割り当てるステップと、
実行タスクが非リアルタイムタスクと判定すると、第2のリソースを割り当てるステップ
を備え、
非リアルタイムタスクを実行中に、リアルタイムタスク起床要求割込みを処理するステップと、
リアルタイムタスクが、実行をプリエンプトするステップと、
前記リアルタイムタスクが終了すると、プリエンプトされた非リアルタイムタスクが実行権を再取得するステップと、
前記非リアルタイムタスクがプリエンプトされた箇所から、前記割り当てられた第2のリソースを使用して実行を再開するステップと
を備えたことを特徴とするリアルタイム制御方式。
In a real-time control method in a system where real-time tasks that require real-time processing and non-real-time tasks that do not require real-time processing coexist,
As preemption prohibition section processing,
Determining whether the execution task is a real-time task or a non-real-time task;
Allocating a first resource if the execution task is determined to be a real-time task;
Allocating a second resource when the execution task is determined to be a non-real-time task,
Processing a real-time task wake-up request interrupt while executing a non-real-time task;
A real-time task that preempts execution;
When the real-time task ends, the preempted non-real-time task re-acquires execution rights;
Resuming execution from the location where the non-real-time task is preempted using the allocated second resource.
リアルタイム処理が必要なリアルタイムタスクと、リアルタイム処理が必要でない非リアルタイムタスクが混在するシステムにおけるリアルタイム制御方式において、
実行可能なタスクを管理するランキューの処理で、タスクがリアルタイムタスクか非リアルタイムタスクかを判定するステップと、
タスクがリアルタイムタスクと判定すると、第1のランキューを使用するステップと、
タスクが非リアルタイムタスクと判定すると、第2のランキューを使用するステップと、
第2のランキューを使用中に、リアルタイムタスク起床要求割込みを処理するステップと、
リアルタイムタスクが、実行をプリエンプトするステップと、
前記リアルタイムタスクが終了したら、プリエンプトされた処理を再開するステップと
を備えたことを特徴とするリアルタイム制御方式。
In a real-time control method in a system where real-time tasks that require real-time processing and non-real-time tasks that do not require real-time processing coexist,
Determining whether a task is a real-time task or a non-real-time task in the run queue process for managing executable tasks;
Determining that the task is a real-time task, using the first run queue;
Determining that the task is a non-real time task, using a second run queue;
Processing a real-time task wake-up request interrupt while using the second run queue;
A real-time task that preempts execution;
And a step of resuming the preempted process when the real-time task is completed.
JP2003431841A 2003-12-26 2003-12-26 Real time control system Pending JP2005190238A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003431841A JP2005190238A (en) 2003-12-26 2003-12-26 Real time control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003431841A JP2005190238A (en) 2003-12-26 2003-12-26 Real time control system

Publications (1)

Publication Number Publication Date
JP2005190238A true JP2005190238A (en) 2005-07-14

Family

ID=34789725

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003431841A Pending JP2005190238A (en) 2003-12-26 2003-12-26 Real time control system

Country Status (1)

Country Link
JP (1) JP2005190238A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008123503A (en) * 2006-11-14 2008-05-29 Samsung Electronics Co Ltd Apparatus and method for controlling operation processing in nonvolatile memory
US20100088706A1 (en) * 2008-10-07 2010-04-08 Futurewei Technologies, Inc. User Tolerance Based Scheduling Method for Aperiodic Real-Time Tasks
JP2017033208A (en) * 2015-07-31 2017-02-09 株式会社日立超エル・エス・アイ・システムズ Api for preventing propagation of failure on normal operation unit to safety unit and processing unit thereof
WO2019187719A1 (en) * 2018-03-28 2019-10-03 ソニー株式会社 Information processing device, information processing method, and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008123503A (en) * 2006-11-14 2008-05-29 Samsung Electronics Co Ltd Apparatus and method for controlling operation processing in nonvolatile memory
US20100088706A1 (en) * 2008-10-07 2010-04-08 Futurewei Technologies, Inc. User Tolerance Based Scheduling Method for Aperiodic Real-Time Tasks
JP2017033208A (en) * 2015-07-31 2017-02-09 株式会社日立超エル・エス・アイ・システムズ Api for preventing propagation of failure on normal operation unit to safety unit and processing unit thereof
WO2019187719A1 (en) * 2018-03-28 2019-10-03 ソニー株式会社 Information processing device, information processing method, and program

Similar Documents

Publication Publication Date Title
JP4170227B2 (en) Executing processing in a multiprocessing environment
TWI512619B (en) Method and system for thread scheduling
JP4580845B2 (en) Task execution device
JP2009294712A (en) Priority controller and priority control method
Lakshmanan et al. Scheduling self-suspending real-time tasks with rate-monotonic priorities
JP2008047112A (en) Method and system for arbitrating error handling and firmware updates
JP2004362100A (en) Information processor, method for controlling process, and computer program
KR100959548B1 (en) A method of interrupt scheduling
US20080295104A1 (en) Realtime Processing Software Control Device and Method
JP2008108075A (en) Task switch control method, and computer system
US6148325A (en) Method and system for protecting shared code and data in a multitasking operating system
JP2005190238A (en) Real time control system
US20020124043A1 (en) Method of and system for withdrawing budget from a blocking task
US8555285B2 (en) Executing a general-purpose operating system as a task under the control of a real-time operating system
JP6861275B2 (en) Vehicle control unit
WO2015184902A1 (en) Concurrent processing method for intelligent split-screen and corresponding intelligent terminal
JP2005149312A (en) Task management system
KR101513505B1 (en) Processor and Interrupt Handling Method
JP2001236236A (en) Task controller and its task scheduling method
CN110825501A (en) Processor core optimization method and device and storage medium
JP2597283B2 (en) Scheduling method for interrupt
JP2008225641A (en) Computer system, interrupt control method and program
KR100558769B1 (en) Method of delaying entering a critical section for improving real-time performance of operating system
JP4984153B2 (en) Block avoidance method in real-time task
JP3043748B1 (en) Task scheduling method and device