What's Java's equivalent of .Net's Interlocked class?

ripper234 picture ripper234 · Jul 20, 2009 · Viewed 8.3k times · Source

How do I modify an int atomically and thread-safely in Java?

Atomically increment, test & set, etc...?

Answer

Bombe picture Bombe · Jul 20, 2009