Can atomic subsystem pre-empts with higher priority tasks/interrupts

조회 수: 7 (최근 30일)
Ajith P C
Ajith P C 2016년 12월 28일
답변: Ajith P C 2017년 1월 4일
Hello,
I am working with a multi-tasking system on dSPACE microautobox. I am confused with 'atomic' keyword in Simulink subsystem block. Does the higher priority tasks can pre-empt the lower priority atomic subsystem?
Note: In definition of atomic unit, there is no information about the execution status when an higher priority task/ interrupt occurred.
"Cause Simulink software to treat the subsystem as a unit when determining the execution order of block methods. For example, when it needs to compute the output of the subsystem, Simulink software invokes the output methods of all the blocks in the subsystem before invoking the output methods of other blocks at the same level as the subsystem block."
Regards, Ajith

채택된 답변

Ajith P C
Ajith P C 2017년 1월 4일
I got reply from MATLAB: "Yes, a higher priority atomic subsystem’s task can preempt another lower priority atomic subsystem’s task. A single rate atomic subsystem can be preempted by blocks or other systems running in a higher priority task. So, atomic system doesn’t imply the system execution is atomic in multitasking environment in real-time deployment. It’s execution can be preempted."

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by