First of all most people believe that RTOS solve the determinism issues caused with shared resources. But, sorry for that, it doesn’t. The issue comes with the chosen scheduler in combination with interrupts. An interrupt stops the current execution and decide on who is next executing the program code. Let us consider two program/ program components, both access a shared variable A. The first program tries to change the current value from 0 to 10 ( A = A + 10) and the other from 0 to 5 (A = A + 5). If the scheduler stops the first program while adding the 10 and executes the send program which already adds 5, the result is 15. Those effects get even worser if modern HW capabilities are used e.g., MMU which maps virtual addresses to physical memory addresses (including temporary caching).
-
Archives
- March 2025
- February 2025
- January 2025
- December 2024
- October 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- January 2024
- December 2023
- November 2023
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- November 2022
- August 2022
- June 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- August 2021
- July 2021
- June 2021
- April 2021
- December 2019
-
Meta