当前位置:网站首页>Atomic atomic operation
Atomic atomic operation
2022-07-03 12:13:00 【zwanying】
Atomic Atomic manipulation
AtomicIntegerArray Basic operation
Same as AtomicInteger similar , Only the parameters are increased int i , Indicates that the index of the array is i Position value or assignment of .
import java.util.concurrent.atomic.AtomicIntegerArray;
import static org.junit.Assert.assertEquals;
class Test {
public static void main(String args[]) throws InterruptedException {
AtomicIntegerArray array = new AtomicIntegerArray(10);
// assignment
array.set(0,4);
array.set(5,7);
// Value
assertEquals(array.get(0),4);
assertEquals(array.get(5),7);
}
}
AtomicIntegerFieldUpdater
AtomicReferenceFieldUpdater<T,V>
Perform atomic operations on class member variables .
AtomicMarkableReference
<Object,boolean> Mark Atomic manipulation
AtomicStampedReference
<Object,int> Counting atomic operations
边栏推荐
- Solution to the second weekly test of ACM intensive training of Hunan Institute of technology in 2022
- shardingSphere分库分表<3>
- Wechat applet development - page Jump transfer parameters
- How to deploy web pages to Alibaba cloud
- OpenGL index cache object EBO and lineweight mode
- Vulnhub's cereal
- Socket TCP for network communication (I)
- Flutter 退出登录二次确认怎么做才更优雅?
- 023 ([template] minimum spanning tree) (minimum spanning tree)
- Deploying WordPress instance tutorial under coreos
猜你喜欢
Vulnhub's Tomato (tomato)
PHP export word method (phpword)
Qt OpenGL 旋转、平移、缩放
[MySQL special] read lock and write lock
Vulnhub's presidential
vulnhub之tomato(西红柿)
PHP export word method (one MHT)
Is BigDecimal safe to calculate the amount? Look at these five pits~~
ArcGIS application (XXI) ArcMap method of deleting layer specified features
Duplicate numbers in the array of sword finger offer 03
随机推荐
Vulnhub's Tomato (tomato)
QT OpenGL texture map
Dart: self study system
Momentum of vulnhub
242. Effective letter heteronyms
Kubernetes three dozen probes and probe mode
php 获取文件夹下面的文件列表和文件夹列表
SystemVerilog -- OOP -- copy of object
Socket TCP for network communication (I)
Basic knowledge of OpenGL (sort it out according to your own understanding)
在网上炒股开户可以吗?资金安全吗?
PHP导出word方法(一phpword)
Shutter widget: centerslice attribute
Quantitative calculation research
Go language to realize static server
Itext7 uses iexternalsignature container for signature and signature verification
安裝electron失敗的解决辦法
How to convert a numeric string to an integer
STL tutorial 8-map
Redis notes 01: Introduction