René's URL Explorer Experiment


Title: JavaGuide/docs/java/concurrent/java-lock.md at main · tannicjacket/JavaGuide · GitHub

Open Graph Title: JavaGuide/docs/java/concurrent/java-lock.md at main · tannicjacket/JavaGuide

X Title: JavaGuide/docs/java/concurrent/java-lock.md at main · tannicjacket/JavaGuide

Description: Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发 - JavaGuide/docs/java/concurrent/java-lock.md at main · tannicjacket/JavaGuide

Open Graph Description: Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发 - tannicjacket/JavaGuide

X Description: Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发 - tannicjacket/JavaGuide

Opengraph URL: https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/blob/*name(/*path)
route-controllerblob
route-actionshow
fetch-noncev2:47d7c955-41c8-0230-7614-81ae21cf4587
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idBCCA:46829:7B11A:A720E:6A5FA096
html-safe-nonce2903aaedf0b28c90316bb12064e6fa71c8b618afd128aaf23b54575c433c5e3c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0NBOjQ2ODI5OjdCMTFBOkE3MjBFOjZBNUZBMDk2IiwidmlzaXRvcl9pZCI6IjUxMzg1NjczMjM2MTI4NDgyNzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca01fd875d16440e4542892410f9f37550f5f82527c6b9ae31516b8cf7455bb2a
hovercard-subject-tagrepository:1302080849
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/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md
twitter:imagehttps://opengraph.githubassets.com/0ac337b65518df238223753acafdded61d9b75b746ad9e8d17e84ecfb6198a2c/tannicjacket/JavaGuide
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0ac337b65518df238223753acafdded61d9b75b746ad9e8d17e84ecfb6198a2c/tannicjacket/JavaGuide
og:image:altJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发 - tannicjacket/JavaGuide
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9c6adf27e6bcb2e88a468dcb4a1332a66b2467588c9ff5b1e184c0efab40cdd9
turbo-cache-controlno-cache
go-importgithub.com/tannicjacket/JavaGuide git https://github.com/tannicjacket/JavaGuide.git
octolytics-dimension-user_id57124582
octolytics-dimension-user_logintannicjacket
octolytics-dimension-repository_id1302080849
octolytics-dimension-repository_nwotannicjacket/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
release95c4970ea4e0a52e841132721d7f22440b51fca9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftannicjacket%2FJavaGuide%2Fblob%2Fmain%2Fdocs%2Fjava%2Fconcurrent%2Fjava-lock.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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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%2Ftannicjacket%2FJavaGuide%2Fblob%2Fmain%2Fdocs%2Fjava%2Fconcurrent%2Fjava-lock.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=tannicjacket%2FJavaGuide
Reloadhttps://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md
Reloadhttps://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md
Reloadhttps://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md
tannicjacket https://github.com/tannicjacket
JavaGuidehttps://github.com/tannicjacket/JavaGuide
Snailclimb/JavaGuidehttps://github.com/Snailclimb/JavaGuide
Notifications https://github.com/login?return_to=%2Ftannicjacket%2FJavaGuide
Fork 0 https://github.com/login?return_to=%2Ftannicjacket%2FJavaGuide
Star 0 https://github.com/login?return_to=%2Ftannicjacket%2FJavaGuide
Code https://github.com/tannicjacket/JavaGuide
Pull requests 0 https://github.com/tannicjacket/JavaGuide/pulls
Actions https://github.com/tannicjacket/JavaGuide/actions
Projects https://github.com/tannicjacket/JavaGuide/projects
Security and quality 0 https://github.com/tannicjacket/JavaGuide/security
Insights https://github.com/tannicjacket/JavaGuide/pulse
Code https://github.com/tannicjacket/JavaGuide
Pull requests https://github.com/tannicjacket/JavaGuide/pulls
Actions https://github.com/tannicjacket/JavaGuide/actions
Projects https://github.com/tannicjacket/JavaGuide/projects
Security and quality https://github.com/tannicjacket/JavaGuide/security
Insights https://github.com/tannicjacket/JavaGuide/pulse
https://github.com/tannicjacket/JavaGuide
JavaGuidehttps://github.com/tannicjacket/JavaGuide/tree/main
docshttps://github.com/tannicjacket/JavaGuide/tree/main/docs
javahttps://github.com/tannicjacket/JavaGuide/tree/main/docs/java
concurrenthttps://github.com/tannicjacket/JavaGuide/tree/main/docs/java/concurrent
Historyhttps://github.com/tannicjacket/JavaGuide/commits/main/docs/java/concurrent/java-lock.md
https://github.com/tannicjacket/JavaGuide/commits/main/docs/java/concurrent/java-lock.md
JavaGuidehttps://github.com/tannicjacket/JavaGuide/tree/main
docshttps://github.com/tannicjacket/JavaGuide/tree/main/docs
javahttps://github.com/tannicjacket/JavaGuide/tree/main/docs/java
concurrenthttps://github.com/tannicjacket/JavaGuide/tree/main/docs/java/concurrent
Rawhttps://github.com/tannicjacket/JavaGuide/raw/refs/heads/main/docs/java/concurrent/java-lock.md
乐观锁和悲观锁详解https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/optimistic-lock-and-pessimistic-lock.md
CAS 详解https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/cas.md
https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md#一把锁到底保护什么
https://camo.githubusercontent.com/e0ba3fdaec9080bce6f1000c4147c4277b1cc755ccbd3f22d033689d9633115a/68747470733a2f2f6f73732e6a61766167756964652e636e2f6769746875622f6a61766167756964652f63732d6261736963732f6f7065726174696e672d73797374656d2f6f732d6c6f636b2d637269746963616c2d73656374696f6e2e706e67
https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md#互斥锁同一时刻只允许一个线程进入
https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md#读写锁读读共享写操作独占
https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md#自旋锁不阻塞先原地等一会儿
https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md#悲观锁乐观锁和-cas-的位置
乐观锁和悲观锁详解https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/optimistic-lock-and-pessimistic-lock.md
CAS 详解https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/cas.md
Atomic 原子类总结https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/atomic-classes.md
https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md#synchronized-的底层monitor字节码和内存语义
https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md#synchronized-锁优化别把锁升级背成固定口诀
https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md#reentrantlockcondition-和-aqs-怎么接上
AQS 详解https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/aqs.md
从ReentrantLock的实现看AQS的原理及应用https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md
https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md#java-锁该怎么选
https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md#常见坑
死锁详解https://github.com/tannicjacket/JavaGuide/blob/main/docs/cs-basics/operating-system/dead-lock.md
https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md#总结
https://github.com/tannicjacket/JavaGuide/blob/main/docs/java/concurrent/java-lock.md#参考资料
The Java Language Specification, Chapter 17. Threads and Lockshttps://docs.oracle.com/javase/specs/jls/se24/html/jls-17.html
The Java Virtual Machine Specification, monitorenterhttps://docs.oracle.com/javase/specs/jvms/se24/html/jvms-6.html#jvms-6.5.monitorenter
Oracle Java API: Lockhttps://docs.oracle.com/javase/8/docs/api/java/util/concurrent/locks/Lock.html
Oracle Java API: ReentrantLockhttps://docs.oracle.com/javase/8/docs/api/java/util/concurrent/locks/ReentrantLock.html
Oracle Java API: StampedLockhttps://docs.oracle.com/javase/8/docs/api/java/util/concurrent/locks/StampedLock.html
OpenJDK JEP 374: Deprecate and Disable Biased Lockinghttps://openjdk.org/jeps/374
OpenJDK JEP 491: Synchronize Virtual Threads without Pinninghttps://openjdk.org/jeps/491
OSTEP 中文版:Lockshttps://pages.cs.wisc.edu/~remzi/OSTEP/Chinese/28.pdf
MIT 6.005: Locks and Synchronizationhttp://web.mit.edu/6.005/www/fa15/classes/23-locks/
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.