About 13,000,000 results
Open links in new tab
  1. What does "atomic" mean in programming? - Stack Overflow

    May 8, 2015 · In the Effective Java book, it states: The language specification guarantees that reading or writing a variable is atomic unless the variable is of type long or double [JLS, …

  2. atomic operations and atomic transactions - Stack Overflow

    Mar 27, 2013 · 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?

  3. c++ - Are +=, |=, &= etc atomic? - Stack Overflow

    2 ++ might be atomic on your compiler/platform, but in the c++ specs it is not defined to be atomic. If you want to make sure to modify a value in an atomic way, you should use the appropiate …

  4. What are atomic operations for newbies? - Stack Overflow

    Sep 6, 2018 · Everything works. 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 …

  5. Is there a difference between the _Atomic type qualifier and type ...

    Oct 20, 2014 · Atomic type specifiers :-:) Syntax: _Atomic ( type-name ); You can declare an atomic integer like this: _Atomic(int) counter; The _Atomic keyword can be used in the form …

  6. sql - What is atomicity in dbms - Stack Overflow

    Jun 4, 2014 · The definition of atomic is hazy; a value that is atomic in one application could be non-atomic in another. For a general guideline, a value is non-atomic if the application deals …

  7. When should std::atomic_compare_exchange_strong be used?

    Jul 29, 2013 · There are two atomic CAS operations in C++11: atomic_compare_exchange_weak and atomic_compare_exchange_strong. According to cppreference: The weak forms of the …

  8. atomic - Java - using AtomicInteger vs Static int - Stack Overflow

    Nov 28, 2012 · - AtomicInteger is used to perform the atomic operation over an integer, its an alternative when you don't want to use synchronized keyword. - Using a volatile on a Non …

  9. How to declare a vector of atomic in C++ - Stack Overflow

    I am intending to declare a vector of atomic variables to be used as counters in a multithreaded programme. Here is what I tried: #include <atomic> #include <vector> int main (void) { ...

  10. c++ - How to implement an atomic counter - Stack Overflow

    Sep 18, 2023 · The value-initializing constructor of an atomic is constexpr, so that that leads to a constant-initialization as well. Kinda makes sense because that is how it should be, with a …