File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
# ReentrantLock 实现原理
2
2
3
+ 使用 ` synchronize ` 来做同步处理时,锁的获取和释放都是隐式的,实现的原理是通过编译后加上不同的机器指令来实现的。
4
+
5
+ 而 ReentrantLock
Original file line number Diff line number Diff line change 9
9
- [ ` Synchronize ` 关键字原理] ( https://github.com/crossoverJie/Java-Interview/blob/master/MD/Synchronize.md )
10
10
- [ 多线程的三大核心] ( https://github.com/crossoverJie/Java-Interview/blob/master/MD/Threadcore.md )
11
11
- [ 对锁的一些认知,有哪些锁] ( https://github.com/crossoverJie/Java-Interview/blob/master/MD/Java-lock.md )
12
- - ReentrantLock 实现原理
12
+ - [ ReentrantLock 实现原理 ] ( https://github.com/crossoverJie/Java-Interview/blob/master/MD/ReentrantLock.md )
13
13
- [ ` ConcurrentHashMap ` 的实现原理] ( https://github.com/crossoverJie/Java-Interview/blob/master/MD/ConcurrentHashMap.md )
14
14
- [ 线程池原理] ( https://github.com/crossoverJie/Java-Interview/blob/master/MD/ThreadPoolExecutor.md )
15
15
- [ 线程间通信] ( https://github.com/crossoverJie/Java-Interview/blob/master/src/main/java/com/crossoverjie/actual/ThreadCommunication.java )
You can’t perform that action at this time.
0 commit comments