1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

97 Commits

Author SHA1 Message Date
guide
a600b8d8ca [docs improve]seo优化&文章标题优化 2022-07-18 09:24:18 +08:00
guide
510273aec8 Update reentrantlock.md 2022-06-30 15:28:01 +08:00
Guide
4fddad66a9
Merge pull request #1760 from samho2008/wrong-pic-content-in-java-thread-pool-best-practices
Add extra explanation for typo in pictures in java-thread-pool-best-p…
2022-06-28 12:53:27 +08:00
sam
d4f5de7a7a Add extra explanation for typo in pictures in java-thread-pool-best-practices.md 2022-06-28 10:27:52 +08:00
Mr.Mi
8e3b9eb705
Update aqs.md
Returns:
a negative value on failure; zero if acquisition in shared mode succeeded but no subsequent shared-mode acquire can succeed; and a positive value if acquisition in shared mode succeeded and subsequent shared-mode acquires might also succeed, in which case a subsequent waiting thread must check availability. (Support for three different return values enables this method to be used in contexts where acquires only sometimes act exclusively.) Upon success, this object has been acquired.
2022-06-27 18:06:56 +08:00
guide
8560469ae0 [docs update]线程的生命周期和状态图片更新 2022-05-31 21:08:12 +08:00
guide
4824248610 Update java-concurrent-questions-02.md 2022-05-12 15:17:35 +08:00
marlonDML
4ffe72afc1 原链接错误,已调整 2022-04-28 12:20:36 +08:00
Vingkin
1b6a58aa3c
Update reentrantlock.md
Lock是一个顶层接口
2022-04-24 10:23:05 +08:00
guide
d73029153f [docs feat]vuepress主题版本升级 2022-03-30 09:46:56 +08:00
Guide
ba1034e2d2
Merge pull request #1650 from DayuZhu/patch-2
Update aqs.md
2022-03-29 20:32:11 +08:00
Dayu
d9f0683677
Update aqs.md
勘误:“ CountDownLatCh” 改为 “ CountDownLatch”
2022-03-29 17:06:28 +08:00
18986293910
bf04a1159e
死锁的四个必要条件
必要条件中有时是进程,有时又是线程,将其都改为线程。
2022-03-28 09:19:27 +08:00
Guide
7d34a6c1a9
Merge pull request #1627 from BaoPiao/patch-1
AtomicMarkableReference 可以解决ABA问题
2022-03-26 18:05:31 +08:00
李建新
da754ac304 勘误 2022-03-25 10:45:27 +08:00
Guide
569e317d06
Merge pull request #1640 from VerneZhong/patch-3
错别字修正
2022-03-24 11:03:27 +08:00
Verne.Chung
e396e84178
错别字修正 2022-03-23 13:48:40 +08:00
Verne.Chung
603992ebfa
错别字修改 2022-03-22 09:57:37 +08:00
guide
26afcc7706 [docs update]完善描述 2022-03-21 15:04:27 +08:00
BaoPiao
ea1b70d703
AtomicMarkableReference 是可以解决ABA问题的
因为AtomicMarkableReference是通过内部类Pair实现数据存储,每次替换都是通过Pair.of方法new一个类出来进行替换原先的值
如果ABA出现,那么最后的A肯定是一个新的Pair实例,即当前的A和之前的A不是同一个实例,当现场使用compareAndSet则会返回false
以下是compareAndSet的实现:
Pair<V> current = pair;
        return
            expectedReference == current.reference &&
            expectedMark == current.mark &&
            ((newReference == current.reference &&
              newMark == current.mark) ||
             casPair(current, Pair.of(newReference, newMark)));
2022-03-19 17:19:59 +08:00
guide
3ab8d73a9f [docs improve] 主题升级&还原搜索功能 2022-03-07 19:20:07 +08:00
guide
e86dcf9ce6 [docs fix] java基础-异常 2022-03-03 16:20:18 +08:00
guide
5a5f8ccb3b [docs feat]vuepress主题更新 2022-03-03 09:14:56 +08:00
Evan He
735a5a1b1a
[docs fix]错别字修改&优化表述 2022-03-01 09:00:29 +08:00
guide
74a376acd3 Update java-thread-pool-summary.md 2022-02-18 20:37:16 +08:00
Sr
5d5f8e3f5c
[docs fix]错别字修改&优化表述 2022-02-13 18:01:55 +08:00
guide
cc4543bc3f [docs improve]图片压缩 2022-02-09 16:01:16 +08:00
guide
677a18c1fc [docs improve]移除无用图片 2022-02-08 16:54:47 +08:00
guide
f4115156a4 [docs improve]Java部分相关图片压缩 2022-02-08 16:51:11 +08:00
guide
274848094e [docs fix]aqs 模板方法模式描述 2022-02-07 19:18:50 +08:00
guide
afee8d8a38 [docs fix]文件名规范&错误链接修复 2022-02-07 14:06:01 +08:00
guide
6aea90d3f4 [docs fix]文件名更正 2022-01-31 16:51:23 +08:00
guide
2aef9ec5a7 Update java线程池学习总结.md 2022-01-26 09:59:40 +08:00
guide
58cf4d48eb [docs update]完善对synchronized关键字的介绍 2022-01-24 09:44:46 +08:00
Guide哥
f24de6c889
Merge pull request #1501 from Curvat/patch-1
Update java并发进阶常见面试题总结.md
2022-01-19 10:50:51 +08:00
guide
d257b1cef1 [docs fix]修复对execute() vs submit() 的描述 2022-01-19 10:03:54 +08:00
Curvature
b47ed0a0d9
Update java并发进阶常见面试题总结.md
应该是笔误,873行所说的AQS的原理相关链接并不在5.2节末尾,应该是在6.2节末尾
2022-01-16 15:09:57 +08:00
guide
24f43169bd 图片压缩 2022-01-13 19:57:13 +08:00
guide
fa0c6cab37 Update java并发进阶常见面试题总结.md 2021-12-30 17:34:57 +08:00
Guide哥
e978761323
Merge pull request #1489 from WangjiaW/main
Update java并发进阶常见面试题总结.md
2021-12-30 17:33:06 +08:00
WangjiaW
a1b5beb8cc
Update java并发进阶常见面试题总结.md
4.7 线程池原理分析  第一块代码注释病句修改
2021-12-26 20:41:43 +08:00
cxhello
2c190320ac
Update java并发进阶常见面试题总结.md 2021-12-24 13:05:58 +08:00
guide
13113a33fa Update java并发进阶常见面试题总结.md 2021-12-17 10:40:12 +08:00
guide
2be829c35a Update reentrantlock.md 2021-12-06 19:52:34 +08:00
guide
7b6661870f [feat]图片压缩 2021-11-16 10:52:26 +08:00
guide
7042acb5db [feat] 图片压缩 2021-11-15 08:55:21 +08:00
guide
dc45389934 [feat]🔥 基于 vuepress 重构整个项目,提升阅读体验 2021-11-09 18:47:58 +08:00