java - Non-blocking synchronizers? -


Is there something like "inferior lock" in Java? By doing that, I mean there is a way to maintain the properties of synchronization (nuclear security and memory visibility - the latter can come later, but the first most important thing I am looking for now), but also Do not have more than one thread to wait for the object to monitor?

What I see - just to be clear - is not a CAS operation, but it says that the implementation of synchronize keyword, or that but Real synchronization means science that does not block the thread invitation to get a certain action like getters and setters.

After the

you can see lock stripping techniques (used in concurrenthashmap) that it meets your needs Yes or No. Their basic idea is that if you break your structure in sections and if one section is modified one thread, you can still read it from other areas.

You can also try copyOnWriteArrayList where if you are modfying an array, you make a copy and use it for any read tasks, while the array is being modified. The problem here is that you have both approaches to data synchronized system instead of constructing a concurrent system.

is not guaranteed to get the latest updates

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -