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).

Thread Safe Singletons in Java

The wikipedia article on Singletons mentions a few thread safe ways to implement the structure in Java. For my questions, …

java multithreading synchronization thread-safety singleton
How to correctly use sync.Cond?

I'm having trouble figuring out how to correctly use sync.Cond. From what I can tell, a race condition exists …

go synchronization race-condition
How to sync data between different devices

I am planing to implement an app and I have come to a point where I don't know what is …

android synchronization cloud data-synchronization
Waiting for a Timer to finish in Java

I'm using java.util.Timer to schedule a periodic task. At one point, I'd like to shut it down, and …

java synchronization timer monitor
How to make a multiple-read/single-write lock from more basic synchronization primitives?

We have found that we have several spots in our code where concurrent reads of data protected by a mutex …

c++ multithreading synchronization readwritelock
synchronizing audio over a network

I'm in startup of designing a client/server audio system which can stream audio arbitrarily over a network. One central …

algorithm audio synchronization streaming
implement-your-own blocking queue in java

I know this question has been asked and answered many times before, but I just couldn't figure out a trick …

java multithreading synchronization java.util.concurrent blockingqueue
What is the best way to wait on multiple condition variables in C++11?

First a little context: I'm in the process of learning about threading in C++11 and for this purpose, I'm trying …

c++ multithreading c++11 synchronization condition-variable
Threadsafe vs Synchronized

I'm new to java. I'm little bit confused between Threadsafe and synchronized. Thread safe means that a method or class …

java multithreading synchronization thread-safety synchronized
How do I wait for a SwingWorker's doInBackground() method?

Say I have the following code: import java.lang.InterruptedException; import javax.swing.SwingWorker; public class Test { private JDialog window; …

java swing synchronization swingworker