1

After reading AUTOSAR_TPS_SoftwareComponentTemplate, I'm still confused about both types of InterRunnableVariable and concepts of data consistency. There are my question:

  1. What is the difference between ExplicitInterRunnableVariable and ImplicitRunnableVariable?
  2. Can InterRunnableVariable be processed by another RunnableEntity from a different software component?
  3. Can AUTOSAR's software component read or write directly to the RAM with given spesific address?
  4. What is the condition where we have to use ExclusiveArea?
4

1 回答 1

2
  1. 参考:TPS_SWCT_01054 和 TPS_SWCT_01055

  2. 参考:TPS_SWCT_01592

  3. 软件组件是用 C 编写的,而 C(众所周知)为您提供了足够的绳索来吊死自己。问题不是他们是否可以,而是他们是否应该(在正式建模之外)。

  4. 没有条件,专属区域只是代表一种相互排斥的机制。如果您需要实现互斥并且不想使用可运行的变量,请使用独占区域

于 2016-02-11T08:22:17.753 回答