Atomic Types

suggest change

Introduction

Java Atomic Types are simple mutable types that provide basic operations that are thread-safe and atomic without resorting to locking. They are intended for use in cases where locking would be a concurrency bottleneck, or where there is risk of deadlock or livelock.

Parameters

Parameter | Description | — | — | set | Volatile set of the field | get | Volatile read of the field | lazySet | This is a store ordered operation of the field | compareAndSet | If the value is the expeed value then sent it to the new value | getAndSet | get the current value and update |

Remarks

Many on essentially combinations of volatile reads or writes and CAS operations. Best way to understand this is to look at the source code directly. E.g. AtomicInteger, Unsafe.getAndSet

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Atomic types:
* Atomic Types

Table Of Contents
8 Arrays
10 Maps
11 Strings
25 JAXB
29 Enums
32 Audio
41 Scanner
63 Logging
75 Lists
78 Sets
89 JAX-WS
96 XJC
98 Process
106 Modules
114 Applets
122 JNDI
126 Atomic types
139 JavaBean
141 Literals
144 Packages
150 JMX
153 JShell
159 Sockets
167 Enum Map
175 Hashtable
177 SortedMap