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

ConcurrentHashMap: avoid extra object creation with "putIfAbsent"?

I am aggregating multiple values for keys in a multi-threaded environment. The keys are not known in advance. I thought …

java synchronization thread-safety concurrenthashmap
How can I make my Docker compose "wait-for-it" script invoke the original container ENTRYPOINT or CMD?

According to Controlling startup order in Compose, one can control the order in which Docker Compose starts containers by using …

docker synchronization wait docker-compose
Multiplayer Game Synchronization

I've a server/client architecture implemented, where all state changes are sent to the function, validated and broadcasted to all …

c# networking synchronization
How to synchronize development and production database

Do you know any applications to synchronize two databases - during development sometimes it's required to add one or two …

mysql synchronization
When to flush a file in Go?

When is it necessary to flush a file? I never do it because I call File.Close and I think …

go synchronization flush
Synchronized functions using PHP

How to make functions in PHP synchronized so that same function won't be executed concurrently ? 2nd user must wait till 1…

php synchronization synchronized
How to make Meteor methods synchronous?

I need a way for a meteor call to be synchronous so that when a call is run, the code …

meteor methods synchronization call synchronous
Is it better to synchronize with semaphores or with monitors?

Is it better to synchronize with semaphores or with monitors?

java synchronization monitor
What Cases Require Synchronized Method Access in Java?

In what cases is it necessary to synchronize access to instance members? I understand that access to static members of …

java concurrency synchronization methods non-static
Thread and Queue

I am interested in knowing what would be the best way to implement a thread based queue. For example: I …

ruby multithreading synchronization queue