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

    May 8, 2015 · 22 Atomic vs. Non-Atomic Operations "An operation acting on shared memory is atomic if it completes in a single step relative to other threads. When an atomic store is performed on a …

  2. c++ - What exactly is std::atomic? - Stack Overflow

    Aug 13, 2015 · Objects of atomic types are the only C++ objects that are free from data races; that is, if one thread writes to an atomic object while another thread reads from it, the behavior is well-defined. …

  3. 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 with only a …

  4. How to guarantee 64-bit writes are atomic? - Stack Overflow

    Apr 6, 2015 · When can 64-bit writes be guaranteed to be atomic, when programming in C on an Intel x86-based platform (in particular, an Intel-based Mac running MacOSX 10.4 using the Intel …

  5. Atomic actions - what is meant by reads and writes?

    Mar 24, 2014 · Its one thing I don't get about concurrency - threads and atomic-actions. According to docs.oracle these actions are specified as atomic: Reads and writes are atomic for reference …

  6. Which types on a 64-bit computer are naturally atomic in gnu C and …

    Apr 14, 2022 · I had a 25-hr debugging marathon in < 2 days and then wrote this answer here. See also the bottom of this question for more info. and documentation on 8-bit variables having naturally …

  7. Are primitive data types in c# atomic (thread safe)?

    Mar 12, 2010 · Yes an operation can be atomic or not, but there are specific data types that are referred to as being atomic types because they allow atomic operations due to their memory size …

  8. linux - Is rename () atomic? - Stack Overflow

    Yes and no. rename () is atomic assuming the OS does not crash. It cannot be split by any other filesystem op. If the system crashes you might see a ln () operation instead. (But see discussion on …

  9. java - How to explain atomic actions? - Stack Overflow

    What are atomic actions and why they are neccessary? Also, How are atomic actions implemented in Java? My understanding is that in programming an atomic action is one that effectively happens all ...

  10. std::atomic | compare_exchange_weak vs. compare_exchange_strong

    Remark: The weak compare-and-exchange operations may fail spuriously, that is, return false while leaving the contents of memory pointed to by expected before the operation is the same that same …