AutoSAR Configuration and Practice (Basics) 2.5 RTE’s Management of Data Consistency
RTE's management of data consistency
->Return to general directory<-
1. Introduction of data consistency issues
Data consistency: When multiple operations read and write the same data at the same time, the data may be tampered with due to task preemption, resulting in unexpected data results.
In a preemptive scheduling RTOS system, consistency problems caused by task preemption may occur:
For example: There are two Tasks, low-priority Task A and high-priority Task B. Task preemptible scheduling system.
Task A wants to calculate the value of Var (the expected result should be Var = 1*5