home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 31,571 of 33,346   
   Pete Becker to Alexander Terekhov   
   Re: atomic counter   
   16 Oct 11 06:27:27   
   
   From: pete@versatilecoding.com   
      
   On 2011-10-15 18:34:00 +0000, Alexander Terekhov said:   
      
   > Pete Becker wrote:   
   > [...]   
   >> That's why most programmers should stick to sequentially consistent   
   >> program models. They're easier to analyze and easier to get right.   
   > The real world runs on multiprocessors that are NOT sequentially   
   > consistent and programmers should understand memory models in the most   
   > relaxed form as a basic programming skill, I think.   
      
   Maybe next year.    
      
   More generally, most programmers should not be writing multi-threaded   
   programs. And many of the multi-threaded programs that they will write won't   
   benefit from having multiple threads. Threads themselves are an advanced   
   language feature, and relaxed    
   memory models are an advanced feature of threads. Programmers should be   
   cautious about venturing into these areas. Most simply don't know enough to do   
   it well.   
      
   --   
   Pete   
   Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The Standard   
   C++ Library Extensions: a Tutorial and Reference (www.petebecker.com/tr1book)   
      
      
         [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
         [ comp.lang.c++.moderated.    First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca