Top "Atomic" questions

An atomic operation is indivisible.

What's the difference between the atomic and nonatomic attributes?

What do atomic and nonatomic mean in property declarations? @property(nonatomic, retain) UITextField *userName; @property(atomic, retain) UITextField *userName; @property(…

ios objective-c properties atomic nonatomic
Practical uses for AtomicInteger

I sort of understand that AtomicInteger and other Atomic variables allow concurrent accesses. In what cases is this class typically …

java concurrency atomic
What does "atomic" mean in programming?

In the Effective Java book, it states: The language specification guarantees that reading or writing a variable is atomic unless …

java atomic
What is the difference between atomic / volatile / synchronized?

How do atomic / volatile / synchronized work internally? What is the difference between the following code blocks? Code 1 private int counter; …

java multithreading synchronization atomic volatile
What exactly is std::atomic?

I understand that std::atomic<> is an atomic object. But atomic to what extent? To my understanding an …

c++ multithreading c++11 atomic
What is the difference between atomic and critical in OpenMP?

What is the difference between atomic and critical in OpenMP? I can do this #pragma omp atomic g_qCount++; but …

openmp atomic critical-section
How to implement multithread safe singleton in C++11 without using <mutex>

Now that C++11 has multithreading I was wondering what is the correct way to implement lazy initialized singleton without using …

c++ multithreading c++11 singleton atomic
How to use std::atomic<>

I have a class that I want to use in different threads and I think I may be able to …

c++ multithreading c++11 atomic
When to use volatile with multi threading?

If there are two threads accessing a global variable then many tutorials say make the variable volatile to prevent the …

c++ multithreading concurrency atomic volatile
Django: How can I protect against concurrent modification of database entries

If there a way to protect against concurrent modifications of the same data base entry by two or more users? …

django django-models concurrency transactions atomic