Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/21/07 08:53
Read: times


 
Msg Score: +2
 +1 Good Answer/Helpful
 +1 Informative
#137695 - Classic atomic problem
Responding to: ???'s previous message
For some reason people only associate atomic operations with multibyte variables. Andy presents a classic case of atomicity in regards to a semaphore, the other case is testing then writing or reading a variable be it a single byte or multibyte var. Anything shared between ISRs and/or tasks in a pre-emptive system need to be handled carefully.

List of 12 messages in thread
TopicAuthorDate
lesson learned            01/01/70 00:00      
   "atomic"            01/01/70 00:00      
      atomicity            01/01/70 00:00      
      if thatb is so            01/01/70 00:00      
         Indeed            01/01/70 00:00      
   Bit test and clear            01/01/70 00:00      
      JBC            01/01/70 00:00      
         favourite atomic test-and-set instructions            01/01/70 00:00      
      SDCC also            01/01/70 00:00      
         Classic atomic problem            01/01/70 00:00      
            and/or ...            01/01/70 00:00      
   another example            01/01/70 00:00      

Back to Subject List