Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/java/concurrent/java-concurrent-questions-02.md
Original file line number Diff line number Diff line change
Expand Up @@ -787,16 +787,16 @@ public void execute(Runnable command) {

使用原子的方式更新基本类型

- `AtomicInteger`:整形原子类
- `AtomicInteger`:整型原子类
- `AtomicLong`:长整型原子类
- `AtomicBoolean`:布尔型原子类

**数组类型**

使用原子的方式更新数组里的某个元素

- `AtomicIntegerArray`:整形数组原子类
- `AtomicLongArray`:长整形数组原子类
- `AtomicIntegerArray`:整型数组原子类
- `AtomicLongArray`:长整型数组原子类
- `AtomicReferenceArray`:引用类型数组原子类

**引用类型**
Expand All @@ -807,8 +807,8 @@ public void execute(Runnable command) {

**对象的属性修改类型**

- `AtomicIntegerFieldUpdater`:原子更新整形字段的更新器
- `AtomicLongFieldUpdater`:原子更新长整形字段的更新器
- `AtomicIntegerFieldUpdater`:原子更新整型字段的更新器
- `AtomicLongFieldUpdater`:原子更新长整型字段的更新器
- `AtomicReferenceFieldUpdater`:原子更新引用类型字段的更新器

### 5.3. 讲讲 AtomicInteger 的使用
Expand Down