Top "Synchronized" questions

A block or method is said to be 'synchronized' if entry to it is controlled by the Java `synchronized` keyword.

Log4j: is it synchronized for multithreaded calls?

We are running into an interesting issue that we noticed while doing stress testing of our system. We are using …

java multithreading jboss log4j synchronized
Synchronized Vs Semaphore

While reading concurrency in Java, I have following doubts: Does Java provides lower level construct then synchronized for synchronization? In …

java semaphore monitor synchronized
Side effects of throwing an exception inside a synchronized clause?

Are there any unclear side effects to throwing an exception from within a synchronized clause? What happens to the lock? …

java exception synchronized
why using volatile with synchronized block?

I saw some examples in java where they do synchronization on a block of code to change some variable while …

java multithreading volatile synchronized double-checked-locking
Volatile or synchronized for primitive type?

In Java, assignment is atomic if the size of the variable is less than or equal to 32 bits but is …

java multithreading atomic volatile synchronized
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
Synchronization, When to or not to use?

I have started learning concurrency and threads in Java. I know the basics of synchronized (i.e. what it does). …

java synchronized
Java synchronizing based on a parameter (named mutex/lock)

I'm looking for a way to synchronize a method based on the parameter it receives, something like this: public synchronized …

java multithreading synchronized
How to synchronize access to private members of a javascript object

I have a Javascript object created as follows: var ccStatTracker = (function (){ ccmap:{ "1":["1","2","3","4"], "2":["4","5"]; } return { modifyCCMap: function (){ // Code which takes following actions: // …

javascript synchronized members
Java synchronized list for loop

Documentation on synchronizedList states that, It is imperative that the user manually synchronize on the returned list when iterating over …

java list collections for-loop synchronized