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

Are LinkedBlockingQueue's insert and remove methods thread safe?

I'm using LinkedBlockingQueue between two different threads. One thread adds data via add, while the other thread receives data via …

java multithreading concurrency synchronization
Android: Enable/Disable Auto Sync and Background Data

I want to develop an application that disables the Background Data (new feature in Android 1.5) and Auto Sync and then …

android synchronization gprs
What's the best way to synchronize times to millisecond accuracy AND precision between machines?

From what I understand, the crystals on PC's are notorious for clock skew. If clocks are always skewing, what is …

sockets synchronization gps time-management
How pthread_mutex_lock is implemented

I am just curious to know how functions related to synchronization between threads are implemented inside Unix. For example, what …

linux unix synchronization pthreads mutex
Atomic Operations and multithreading

Recently I was reading a tutorial, in that I came across a statement that says.. "The Java language specification guarantees …

java multithreading variables synchronization atomicity
Are C++ Reads and Writes of an int Atomic?

I have two threads, one updating an int and one reading it. This is a statistic value where the order …

c++ multithreading synchronization
Automatically keep a secondary repo in sync with a primary repo?

We have a two tier setup. We have a primary repository (called 'primary' below). And a secondary repository (called 'secondary' …

git synchronization repository
Synchronization (of clocks) between two remote computers

I'm looking into writing a simple synchronization ability into my app and one of the concerns that has popped up …

time synchronization clock
When do I need to use MPI_Barrier()?

I wonder when do I need to use barrier? Do I need it before/after a scatter/gather for example? …

synchronization mpi openmpi
PHP - sleep() in milliseconds

Does PHP provide a function to sleep in milliseconds? Right now, I'm doing something similar to this, as a workaround. $…

php synchronization sleep