René's URL Explorer Experiment


Title: JavaGuide/docs/java/concurrent/java-concurrent-questions-02.md at main · NeedMo/JavaGuide · GitHub

Open Graph Title: JavaGuide/docs/java/concurrent/java-concurrent-questions-02.md at main · NeedMo/JavaGuide

X Title: JavaGuide/docs/java/concurrent/java-concurrent-questions-02.md at main · NeedMo/JavaGuide

Description: 「Java学习+面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,首选 JavaGuide! - JavaGuide/docs/java/concurrent/java-concurrent-questions-02.md at main · NeedMo/JavaGuide

Open Graph Description: 「Java学习+面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,首选 JavaGuide! - NeedMo/JavaGuide

X Description: 「Java学习+面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,首选 JavaGuide! - NeedMo/JavaGuide

Opengraph URL: https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/blob/*name(/*path)
route-controllerblob
route-actionshow
fetch-noncev2:8a36d7fa-5773-b63b-f2d3-29b9c0095e30
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idBF24:396CF6:25C241:3232C0:6A5BEFC1
html-safe-nonce1d3ca4ab31b75475d8b4c8c3a58aef7532f00891f2d2fc91fb6c8ce984ed003e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjI0OjM5NkNGNjoyNUMyNDE6MzIzMkMwOjZBNUJFRkMxIiwidmlzaXRvcl9pZCI6Ijc4OTQ2NjM4OTIwNDM1NTg4NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4b50d445284768647a8eefdeaeea098ad59507cd575bcac87dfe0dc205a1b09b
hovercard-subject-tagrepository:573295073
github-keyboard-shortcutsrepository,source-code,file-tree,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///blob/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md
twitter:imagehttps://opengraph.githubassets.com/fc53f5501df2a16bb48362a19286e72a133758a65b0e8083d5c3db0da2c8b887/NeedMo/JavaGuide
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fc53f5501df2a16bb48362a19286e72a133758a65b0e8083d5c3db0da2c8b887/NeedMo/JavaGuide
og:image:alt「Java学习+面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,首选 JavaGuide! - NeedMo/JavaGuide
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-cache
go-importgithub.com/NeedMo/JavaGuide git https://github.com/NeedMo/JavaGuide.git
octolytics-dimension-user_id37532122
octolytics-dimension-user_loginNeedMo
octolytics-dimension-repository_id573295073
octolytics-dimension-repository_nwoNeedMo/JavaGuide
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id132464395
octolytics-dimension-repository_parent_nwoSnailclimb/JavaGuide
octolytics-dimension-repository_network_root_id132464395
octolytics-dimension-repository_network_root_nwoSnailclimb/JavaGuide
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNeedMo%2FJavaGuide%2Fblob%2Fmain%2Fdocs%2Fjava%2Fconcurrent%2Fjava-concurrent-questions-02.md
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNeedMo%2FJavaGuide%2Fblob%2Fmain%2Fdocs%2Fjava%2Fconcurrent%2Fjava-concurrent-questions-02.md
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fblob%2Fshow&source=header-repo&source_repo=NeedMo%2FJavaGuide
Reloadhttps://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md
Reloadhttps://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md
Reloadhttps://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md
NeedMo https://github.com/NeedMo
JavaGuidehttps://github.com/NeedMo/JavaGuide
Snailclimb/JavaGuidehttps://github.com/Snailclimb/JavaGuide
Notifications https://github.com/login?return_to=%2FNeedMo%2FJavaGuide
Fork 0 https://github.com/login?return_to=%2FNeedMo%2FJavaGuide
Star 0 https://github.com/login?return_to=%2FNeedMo%2FJavaGuide
Code https://github.com/NeedMo/JavaGuide
Pull requests 0 https://github.com/NeedMo/JavaGuide/pulls
Actions https://github.com/NeedMo/JavaGuide/actions
Projects https://github.com/NeedMo/JavaGuide/projects
Security and quality 0 https://github.com/NeedMo/JavaGuide/security
Insights https://github.com/NeedMo/JavaGuide/pulse
Code https://github.com/NeedMo/JavaGuide
Pull requests https://github.com/NeedMo/JavaGuide/pulls
Actions https://github.com/NeedMo/JavaGuide/actions
Projects https://github.com/NeedMo/JavaGuide/projects
Security and quality https://github.com/NeedMo/JavaGuide/security
Insights https://github.com/NeedMo/JavaGuide/pulse
https://github.com/NeedMo/JavaGuide
JavaGuidehttps://github.com/NeedMo/JavaGuide/tree/main
docshttps://github.com/NeedMo/JavaGuide/tree/main/docs
javahttps://github.com/NeedMo/JavaGuide/tree/main/docs/java
concurrenthttps://github.com/NeedMo/JavaGuide/tree/main/docs/java/concurrent
Historyhttps://github.com/NeedMo/JavaGuide/commits/main/docs/java/concurrent/java-concurrent-questions-02.md
https://github.com/NeedMo/JavaGuide/commits/main/docs/java/concurrent/java-concurrent-questions-02.md
JavaGuidehttps://github.com/NeedMo/JavaGuide/tree/main
docshttps://github.com/NeedMo/JavaGuide/tree/main/docs
javahttps://github.com/NeedMo/JavaGuide/tree/main/docs/java
concurrenthttps://github.com/NeedMo/JavaGuide/tree/main/docs/java/concurrent
Rawhttps://github.com/NeedMo/JavaGuide/raw/refs/heads/main/docs/java/concurrent/java-concurrent-questions-02.md
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#jmmjava-memory-model
JMM(Java 内存模型)详解https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/jmm.md
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#volatile-关键字
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#如何保证变量的可见性
https://camo.githubusercontent.com/3e60eb882568751b3caebb786a43953be793c2d9efd65ef684936f30d9f95139/68747470733a2f2f67756964652d626c6f672d696d616765732e6f73732d636e2d7368656e7a68656e2e616c6979756e63732e636f6d2f6769746875622f6a61766167756964652f6a6176612f636f6e63757272656e742f6a6d6d2e706e67
https://camo.githubusercontent.com/dba2262e49e313e7394083e5be2e55fa6758c612e147b062876cde2043dba481/68747470733a2f2f67756964652d626c6f672d696d616765732e6f73732d636e2d7368656e7a68656e2e616c6979756e63732e636f6d2f6769746875622f6a61766167756964652f6a6176612f636f6e63757272656e742f6a6d6d322e706e67
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#如何禁止指令重排序
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#volatile-可以保证原子性么
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#synchronized-关键字
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#synchronized-是什么有什么用
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#如何使用-synchronized
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#构造方法可以用-synchronized-修饰么
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#synchronized-底层原理了解吗
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#synchronized-同步语句块的情况
https://camo.githubusercontent.com/dedf009ea2f710ef33bb35d0546cc489795a9e48ad1d913e07c5fe5501f865bd/68747470733a2f2f6d792d626c6f672d746f2d7573652e6f73732d636e2d6265696a696e672e616c6979756e63732e636f6d2f323031392d362f73796e6368726f6e697a65642545352538352542332545392539342541452545352541442539372545352538452539462545372539302538362e706e67
ObjectMonitorhttps://github.com/openjdk-mirror/jdk7u-hotspot/blob/50bdefc3afe944ca74c3093e7448d6b889cd20d1/src/share/vm/runtime/objectMonitor.cpp
https://camo.githubusercontent.com/80ee493f37e8f78975cbd10d3fe19261fea6bb548f4891c2bbe22d0e2060e604/68747470733a2f2f67756964652d626c6f672d696d616765732e6f73732d636e2d7368656e7a68656e2e616c6979756e63732e636f6d2f6769746875622f6a61766167756964652f6a6176612f636f6e63757272656e742f73796e6368726f6e697a65642d6765742d6c6f636b2d636f64652d626c6f636b2e706e67
https://camo.githubusercontent.com/ac80c2ff2c06419b4140ea5f224ce916ff409d1c93dd7703daee719c057ee80f/68747470733a2f2f67756964652d626c6f672d696d616765732e6f73732d636e2d7368656e7a68656e2e616c6979756e63732e636f6d2f6769746875622f6a61766167756964652f6a6176612f636f6e63757272656e742f73796e6368726f6e697a65642d72656c656173652d6c6f636b2d626c6f636b2e706e67
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#synchronized-修饰方法的的情况
https://camo.githubusercontent.com/65da3a20aa59fba257a5d02dc42fa8ec851c35eed97230314104581d13f3e0be/68747470733a2f2f6d792d626c6f672d746f2d7573652e6f73732d636e2d6265696a696e672e616c6979756e63732e636f6d2f323031392d362f73796e6368726f6e697a6564254535253835254233254539253934254145254535254144253937254535253845253946254537253930253836322e706e67
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#总结
Java 锁与线程的那些事 - 有赞技术团队https://tech.youzan.com/javasuo-yu-xian-cheng-de-na-xie-shi/
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#jdk16-之后的-synchronized-底层做了哪些优化
Java6 及以上版本对 synchronized 的优化https://www.cnblogs.com/wuqinglong/p/9945618.html
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#synchronized-和-volatile-有什么区别
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#synchronized-和-reentrantlock-有什么区别
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#两者都是可重入锁
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#synchronized-依赖于-jvm-而-reentrantlock-依赖于-api
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#reentrantlock-比-synchronized-增加了一些高级功能
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#threadlocal
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#threadlocal-有什么用
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#如何使用-threadlocal
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#threadlocal-原理了解吗
https://camo.githubusercontent.com/124610c60605056b6f71b56f4255f43356841c6335be424b3ac304aa0543e59e/68747470733a2f2f67756964652d626c6f672d696d616765732e6f73732d636e2d7368656e7a68656e2e616c6979756e63732e636f6d2f6769746875622f6a61766167756964652f6a6176612f636f6e63757272656e742f7468726561646c6f63616c2d646174612d7374727563747572652e706e67
https://camo.githubusercontent.com/f946e6b49e2b3f129d07a27aeb13e80010a7925c98f84dec31c767d6bc95d8f9/68747470733a2f2f67756964652d626c6f672d696d616765732e6f73732d636e2d7368656e7a68656e2e616c6979756e63732e636f6d2f6769746875622f6a61766167756964652f6a6176612f636f6e63757272656e742f7468726561642d6c6f63616c2d696e6e65722d636c6173732e706e67
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#threadlocal-内存泄露问题是怎么导致的
https://github.com/NeedMo/JavaGuide/blob/main/docs/java/concurrent/java-concurrent-questions-02.md#参考
https://www.baeldung.com/java-volatilehttps://www.baeldung.com/java-volatile
https://droidyue.com/blog/2016/03/13/learning-threadlocal-in-java/https://droidyue.com/blog/2016/03/13/learning-threadlocal-in-java/
https://docs.oracle.com/javase/8/docs/api/java/lang/ThreadLocal.htmlhttps://docs.oracle.com/javase/8/docs/api/java/lang/ThreadLocal.html
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.