How will the non-realtime code know that its interrupted and that it might be reading stale data?

0
Posted

How will the non-realtime code know that its interrupted and that it might be reading stale data?

0

I should have clarified: the interrupt routine will not be modifying the data, only reading it. Thus the user-thread can safely assume that the data won’t be changed out from underneath its feet.