Top "Synchronization" questions

Synchronization refers to using controls to maintain a coherent representation, either a group of processes running the same program (process synchronization), or representations of data (data synchronization).

What are atomic operations for newbies?

I am a newbie to operating systems and every answer I've found on Stackoverflow is so complicated that I am …

multithreading concurrency operating-system synchronization atomic
Command-line/API for Schema Compare in SSDT SQL Server Database Project?

In Visual Studio 2012, we have Schema Compare in SSDT's SQL Server Database Project (DbProject) project which helps Compare source versus …

database api command-line synchronization sql-server-data-tools
Is it reasonable to synchronize on a local variable?

From the Java memory model, we know that every thread has its own thread stack, and that local variables are …

java multithreading synchronization local-variables
Difference between getAndSet and compareAndSet in AtomicBoolean

The thread title should be self-explnatory... I'm a bit confused between the specification of below methos from AtomicBoolean class: java.…

java synchronization atomicity atomicboolean
C#'s lock() in Managed C++

Does managed C++ have an equivalent to C#'s lock() and VB's SyncLock? If so, how do I use it?

multithreading synchronization managed-c++
C++ Syncing threads in most elegant way

I am try to solve the following problem, I know there are multiple solutions but I'm looking for the most …

c++ multithreading synchronization mutex readerwriterlock
Java RMI and synchronized methods

I'm studying the book "Distributed Systems" (by Tanenbaum & Van Steen) and they say something that seems to conflict to …

java concurrency synchronization rmi
Synchronising twice on the same object?

I was wondering if in Java I would get any odd behaviour if I synchronise twice on the same object? …

java multithreading synchronization mutex
x86 spinlock using cmpxchg

I'm new to using gcc inline assembly, and was wondering if, on an x86 multi-core machine, a spinlock (without race …

gcc assembly synchronization x86 spinlock
Why is there no generic synchronized queue in .NET?

I noticed that you can call Queue.Synchronize to get a thread-safe queue object, but the same method isn't available …

.net generics synchronization queue