The language specification guarantees that reading or writing a variable is atomic unless the variable is of type long or double [jls, 17.4.7] The definition of atomic is hazy The current wikipedia article on first nf (normal form) section atomicity actually quotes from the introductory parts above. But atomic to what extent To my understanding an operation can be atomic What exactly is meant by making an object atomic
Can someone explain to me, whats the difference between atomic operations and atomic transactions Its seems to me that these two are the same thing.is that correct? There are two atomic cas operations in c++11 The weak forms of the functions are allowed to fail spurio. I remember i came across certain types in the c language called atomic types, but we have never studied them So, how do they differ from regular types like int,float,double,long etc., and what are.
I need to use an atomic variable in c as this variable is accessed across different threads Don't want a race condition My code is running on centos Note that atomic is contextual In this case, the upsert operation only needs to be atomic with respect to operations on the answers table in the database The computer can be free to do other things as long as they don't affect (or are affected by) the result of what upsert is trying to do.
@cygnusx1 yes, that is covered in the c++ standard by the rest of the note, which op left out of the quote
OPEN