- 博客(1)
- 收藏
- 关注
原创 手写一个简单的自旋锁
class MyLock { private static final AtomicReference<Thread> atomicReference = new AtomicReference<>(); static void lock() { Thread thread = Thread.currentThread(); do { System.out.println(thread.getName() +
2021-04-29 17:10:39
82
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人