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 11# ReentrantLock 实现原理
22
3+ 使用 ` synchronize ` 来做同步处理时,锁的获取和释放都是隐式的,实现的原理是通过编译后加上不同的机器指令来实现的。
4+
5+ 而 ReentrantLock
Original file line number Diff line number Diff line change 99- [ ` Synchronize ` 关键字原理] ( https://github.com/crossoverJie/Java-Interview/blob/master/MD/Synchronize.md )
1010- [ 多线程的三大核心] ( https://github.com/crossoverJie/Java-Interview/blob/master/MD/Threadcore.md )
1111- [ 对锁的一些认知,有哪些锁] ( 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 )
1313- [ ` ConcurrentHashMap ` 的实现原理] ( https://github.com/crossoverJie/Java-Interview/blob/master/MD/ConcurrentHashMap.md )
1414- [ 线程池原理] ( https://github.com/crossoverJie/Java-Interview/blob/master/MD/ThreadPoolExecutor.md )
1515- [ 线程间通信] ( 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