René's URL Explorer Experiment


Title: bestJavaer/java-concurrent/java-lock.md at master · alijunjun/bestJavaer · GitHub

Open Graph Title: bestJavaer/java-concurrent/java-lock.md at master · alijunjun/bestJavaer

X Title: bestJavaer/java-concurrent/java-lock.md at master · alijunjun/bestJavaer

Description: 这是一个成为更好的Java程序员的系列教程. Contribute to alijunjun/bestJavaer development by creating an account on GitHub.

Open Graph Description: 这是一个成为更好的Java程序员的系列教程. Contribute to alijunjun/bestJavaer development by creating an account on GitHub.

X Description: 这是一个成为更好的Java程序员的系列教程. Contribute to alijunjun/bestJavaer development by creating an account on GitHub.

Opengraph URL: https://github.com/alijunjun/bestJavaer/blob/master/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:8da67b09-7819-d5a7-e1f2-f74afb8d2df0
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-id88B4:156C6B:32B981:46B2B6:6A57B838
html-safe-nonce184efb913e882853ece9031d6307b92f042f9cce7704db475db61f4d834ae16f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEI0OjE1NkM2QjozMkI5ODE6NDZCMkI2OjZBNTdCODM4IiwidmlzaXRvcl9pZCI6IjEzNjUyMDU4Nzg1MTgwMzY1MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac278d78fbb385036adcee4abd474ab69777112c8151af3e6ead99b37932eec79a
hovercard-subject-tagrepository:451164753
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/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md
twitter:imagehttps://opengraph.githubassets.com/73edeff873a9b6a850e8119ab89feed01c4c479b35cd7a49a387371ca301798e/alijunjun/bestJavaer
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/73edeff873a9b6a850e8119ab89feed01c4c479b35cd7a49a387371ca301798e/alijunjun/bestJavaer
og:image:alt这是一个成为更好的Java程序员的系列教程. Contribute to alijunjun/bestJavaer development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None899c314dfde9abcf8fc1fe8c04f09866b347ea06f43166d653afc482795c9fca
turbo-cache-controlno-cache
go-importgithub.com/alijunjun/bestJavaer git https://github.com/alijunjun/bestJavaer.git
octolytics-dimension-user_id57622580
octolytics-dimension-user_loginalijunjun
octolytics-dimension-repository_id451164753
octolytics-dimension-repository_nwoalijunjun/bestJavaer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id269198820
octolytics-dimension-repository_parent_nwocrisxuan/bestJavaer
octolytics-dimension-repository_network_root_id269198820
octolytics-dimension-repository_network_root_nwocrisxuan/bestJavaer
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
release67aa73f3bba9e68b2de0ebe01c65fcd120461cba
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Falijunjun%2FbestJavaer%2Fblob%2Fmaster%2Fjava-concurrent%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
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%2Falijunjun%2FbestJavaer%2Fblob%2Fmaster%2Fjava-concurrent%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=alijunjun%2FbestJavaer
Reloadhttps://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md
Reloadhttps://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md
Reloadhttps://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md
alijunjun https://github.com/alijunjun
bestJavaerhttps://github.com/alijunjun/bestJavaer
crisxuan/bestJavaerhttps://github.com/crisxuan/bestJavaer
Notifications https://github.com/login?return_to=%2Falijunjun%2FbestJavaer
Fork 0 https://github.com/login?return_to=%2Falijunjun%2FbestJavaer
Star 0 https://github.com/login?return_to=%2Falijunjun%2FbestJavaer
Code https://github.com/alijunjun/bestJavaer
Pull requests 0 https://github.com/alijunjun/bestJavaer/pulls
Actions https://github.com/alijunjun/bestJavaer/actions
Projects https://github.com/alijunjun/bestJavaer/projects
Security and quality 0 https://github.com/alijunjun/bestJavaer/security
Insights https://github.com/alijunjun/bestJavaer/pulse
Code https://github.com/alijunjun/bestJavaer
Pull requests https://github.com/alijunjun/bestJavaer/pulls
Actions https://github.com/alijunjun/bestJavaer/actions
Projects https://github.com/alijunjun/bestJavaer/projects
Security and quality https://github.com/alijunjun/bestJavaer/security
Insights https://github.com/alijunjun/bestJavaer/pulse
https://github.com/alijunjun/bestJavaer
bestJavaerhttps://github.com/alijunjun/bestJavaer/tree/master
java-concurrenthttps://github.com/alijunjun/bestJavaer/tree/master/java-concurrent
Historyhttps://github.com/alijunjun/bestJavaer/commits/master/java-concurrent/java-lock.md
https://github.com/alijunjun/bestJavaer/commits/master/java-concurrent/java-lock.md
bestJavaerhttps://github.com/alijunjun/bestJavaer/tree/master
java-concurrenthttps://github.com/alijunjun/bestJavaer/tree/master/java-concurrent
Rawhttps://github.com/alijunjun/bestJavaer/raw/refs/heads/master/java-concurrent/java-lock.md
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#java-锁事
Java 锁事https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#java-%E9%94%81%E4%BA%8B
Java 锁分类https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#java-%E9%94%81%E5%88%86%E7%B1%BB
线程是否需要对资源加锁https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E7%BA%BF%E7%A8%8B%E6%98%AF%E5%90%A6%E9%9C%80%E8%A6%81%E5%AF%B9%E8%B5%84%E6%BA%90%E5%8A%A0%E9%94%81
悲观锁https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E6%82%B2%E8%A7%82%E9%94%81
乐观锁https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E4%B9%90%E8%A7%82%E9%94%81
两种锁的使用场景https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E4%B8%A4%E7%A7%8D%E9%94%81%E7%9A%84%E4%BD%BF%E7%94%A8%E5%9C%BA%E6%99%AF
乐观锁的实现方式https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E4%B9%90%E8%A7%82%E9%94%81%E7%9A%84%E5%AE%9E%E7%8E%B0%E6%96%B9%E5%BC%8F
版本号机制https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E7%89%88%E6%9C%AC%E5%8F%B7%E6%9C%BA%E5%88%B6
CAS 算法https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#cas-%E7%AE%97%E6%B3%95
乐观锁的缺点https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E4%B9%90%E8%A7%82%E9%94%81%E7%9A%84%E7%BC%BA%E7%82%B9
ABA 问题https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#aba-%E9%97%AE%E9%A2%98
循环开销大https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E5%BE%AA%E7%8E%AF%E5%BC%80%E9%94%80%E5%A4%A7
CAS与synchronized的使用情景https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#cas%E4%B8%8Esynchronized%E7%9A%84%E4%BD%BF%E7%94%A8%E6%83%85%E6%99%AF
资源已被锁定,线程是否阻塞https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E8%B5%84%E6%BA%90%E5%B7%B2%E8%A2%AB%E9%94%81%E5%AE%9A%E7%BA%BF%E7%A8%8B%E6%98%AF%E5%90%A6%E9%98%BB%E5%A1%9E
自旋锁的提出背景https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E8%87%AA%E6%97%8B%E9%94%81%E7%9A%84%E6%8F%90%E5%87%BA%E8%83%8C%E6%99%AF
什么是自旋锁https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E4%BB%80%E4%B9%88%E6%98%AF%E8%87%AA%E6%97%8B%E9%94%81
自旋锁的原理https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E8%87%AA%E6%97%8B%E9%94%81%E7%9A%84%E5%8E%9F%E7%90%86
自旋锁的优缺点https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E8%87%AA%E6%97%8B%E9%94%81%E7%9A%84%E4%BC%98%E7%BC%BA%E7%82%B9
自旋锁的实现https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E8%87%AA%E6%97%8B%E9%94%81%E7%9A%84%E5%AE%9E%E7%8E%B0
TicketLockhttps://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#ticketlock
CLHLockhttps://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#clhlock
MCSLockhttps://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#mcslock
CLHLock 和 MCSLockhttps://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#clhlock-%E5%92%8C-mcslock
多个线程并发访问资源https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E5%A4%9A%E4%B8%AA%E7%BA%BF%E7%A8%8B%E5%B9%B6%E5%8F%91%E8%AE%BF%E9%97%AE%E8%B5%84%E6%BA%90
锁状态的分类https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E9%94%81%E7%8A%B6%E6%80%81%E7%9A%84%E5%88%86%E7%B1%BB
Java 对象头https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#java-%E5%AF%B9%E8%B1%A1%E5%A4%B4
Synchronized锁https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#synchronized%E9%94%81
Monitorhttps://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#monitor
锁的分类及其解释https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E9%94%81%E7%9A%84%E5%88%86%E7%B1%BB%E5%8F%8A%E5%85%B6%E8%A7%A3%E9%87%8A
无锁https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E6%97%A0%E9%94%81
偏向锁https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E5%81%8F%E5%90%91%E9%94%81
轻量级锁https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E8%BD%BB%E9%87%8F%E7%BA%A7%E9%94%81
重量级锁https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E9%87%8D%E9%87%8F%E7%BA%A7%E9%94%81
锁的公平性与非公平性https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E9%94%81%E7%9A%84%E5%85%AC%E5%B9%B3%E6%80%A7%E4%B8%8E%E9%9D%9E%E5%85%AC%E5%B9%B3%E6%80%A7
锁公平性的实现https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E9%94%81%E5%85%AC%E5%B9%B3%E6%80%A7%E7%9A%84%E5%AE%9E%E7%8E%B0
ReentrantLock 基本概述https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#reentrantlock-%E5%9F%BA%E6%9C%AC%E6%A6%82%E8%BF%B0
ReentrantLock 如何实现锁公平性https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#reentrantlock-%E5%A6%82%E4%BD%95%E5%AE%9E%E7%8E%B0%E9%94%81%E5%85%AC%E5%B9%B3%E6%80%A7
根据锁是否可重入进行区分https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E6%A0%B9%E6%8D%AE%E9%94%81%E6%98%AF%E5%90%A6%E5%8F%AF%E9%87%8D%E5%85%A5%E8%BF%9B%E8%A1%8C%E5%8C%BA%E5%88%86
可重入锁https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E5%8F%AF%E9%87%8D%E5%85%A5%E9%94%81
不可重入锁https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E4%B8%8D%E5%8F%AF%E9%87%8D%E5%85%A5%E9%94%81
多个线程能够共享同一把锁https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E5%A4%9A%E4%B8%AA%E7%BA%BF%E7%A8%8B%E8%83%BD%E5%A4%9F%E5%85%B1%E4%BA%AB%E5%90%8C%E4%B8%80%E6%8A%8A%E9%94%81
独占锁和共享锁https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#%E7%8B%AC%E5%8D%A0%E9%94%81%E5%92%8C%E5%85%B1%E4%BA%AB%E9%94%81
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#java-锁分类
https://camo.githubusercontent.com/3ffd4c76928cb905a9a10e1ee2d1ed321017f13fb27a3ff3cab9d898e35eeac7/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039333632343638382d313032343033353232362e706e67
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#线程是否需要对资源加锁
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#悲观锁
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#乐观锁
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#两种锁的使用场景
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#乐观锁的实现方式
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#版本号机制
https://camo.githubusercontent.com/69d37177873d60d9cfec1251e28109d7d6d736fcc4936cdd5c8bffdb3703b672/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039333634323031372d3831393839313537392e706e67
https://camo.githubusercontent.com/2d5ca1e57d49dd53830580db70963ee6015f3ab49addc8d8ce5bf66e3b0ab008/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039333635323135382d313230333535373039332e706e67
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#cas-算法
看完你就应该能明白的悲观锁和乐观锁https://mp.weixin.qq.com/s?__biz=MzU2NDg0OTgyMA==&mid=2247484531&idx=1&sn=aca8142c1ca387ad276f0d2956a7e2c1&chksm=fc45f980cb32709667c1440b55ee6134437f6344dfd56ad1808ab36cd089b2da62b9c97cf9eb&token=24371561&lang=zh_CN#rd
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#乐观锁的缺点
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#aba-问题
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#循环开销大
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#cas与synchronized的使用情景
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#资源已被锁定线程是否阻塞
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#自旋锁的提出背景
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#什么是自旋锁
https://camo.githubusercontent.com/3e330bc394b28b9a6743a2e2a01b1f2545ed279afc3f6e9ddbcff7f6921635cb/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039333731373133302d313639313339323432382e706e67
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#自旋锁的原理
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#自旋锁的优缺点
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#自旋锁的实现
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#ticketlock
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#clhlock
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#mcslock
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#clhlock-和-mcslock
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#多个线程并发访问资源
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#锁状态的分类
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#java-对象头
https://camo.githubusercontent.com/cd85ca2f213e83b7d96d6933ed81cd9c881043933ce00ba62c1c0248e46130bd/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039353632353935322d313034313038393531382e706e67
https://camo.githubusercontent.com/90fe5be1f2757248f513f47d2fb1e7aba3feb81dfb3540942fc61f20e0b86580/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039333734353530362d313137383232353430342e706e67
https://camo.githubusercontent.com/4ecc5cbbcce2a96d59af21b6424bdd68161832c5f5cbb5e663480c6670f9a3f6/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343035343433392d3534373736393238332e706e67
markOop.hpphttps://github.com/openjdk-mirror/jdk7u-hotspot/blob/50bdefc3afe944ca74c3093e7448d6b889cd20d1/src/share/vm/oops/markOop.hpp
https://camo.githubusercontent.com/0227b3ff798d77ba0bec417d5bf7ceb616e3debed8dfea7a20753ae064d3a2db/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343130333638312d313433383031343133302e706e67
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#synchronized锁
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#monitor
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#锁的分类及其解释
https://camo.githubusercontent.com/7bb46aca9e6e574fa3fa117ea34a0e353adec8bbf8d39cb80bb22f578d6d9799/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343131343938362d3139393536313630352e706e67
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#无锁
https://camo.githubusercontent.com/e548534e19a6a6993dd1d6b950b0d49bff70e21672aa50bf30b905ca55d5ca2d/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343132393230372d313036313530343537342e706e67
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#偏向锁
https://camo.githubusercontent.com/c3b4f2d3f597073c8bdbaff3fb3fd7a2a04d88644cdeb0255fd4a549ee757579/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343133393131392d313336373037353835332e706e67
https://camo.githubusercontent.com/2fa0f6a12dc9db5b2d95d84d2c1aa3f24e921bddb8f7d4bfb361f1a25796edc6/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343134393534342d313335333634313030352e706e67
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#轻量级锁
https://camo.githubusercontent.com/d1e9587150b4a9f58f5ee4fb401c4946cf7ca8840d9616e5c47ca8408ff70fb0/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343230313739322d3232343838393039372e706e67
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#重量级锁
https://camo.githubusercontent.com/5cac9f6f5dc805fa388c22e9cef2f8fa30c2bcf324e343bd9ae9ea6baedd4a55/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343231333535322d313839323232373039352e706e67
https://camo.githubusercontent.com/de7cb4fd43fd7884e4b44ff4695b0822a951c936123fe96bcd7c425336e5a81c/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343232323630362d313936353732383438382e706e67
https://camo.githubusercontent.com/2319f46c084a43fe7ec9c343a38d0e0b79f69c0dd6eebdf24f6fcb888e321b00/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343233313038382d3737333230333331332e706e67
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#锁的公平性与非公平性
https://camo.githubusercontent.com/86df5a8e5827ffa73301c81288e3ffcc14a4c2f6f99ca0b66053bc691d35ff8d/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343234333139322d313835373637383739332e706e67
https://camo.githubusercontent.com/95b270804c9082ad04aac2e3ad8e471366566e3e28da4c0dde476fb8a6e6d1c6/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343235323635302d3736363635363730302e706e67
https://camo.githubusercontent.com/02a56a4723fbfff179020c2a352eb369a3693f26026e198afa4740f8c115f3a9/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343330303938372d3930343731353034382e706e67
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#锁公平性的实现
https://camo.githubusercontent.com/a5ef697458b0f3bcfb6d5f25b334ba410fdcb4de3dc6be079b83c653398bfda9/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343333313434372d313831383839353131322e706e67
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#reentrantlock-基本概述
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#reentrantlock-如何实现锁公平性
https://camo.githubusercontent.com/8e287e5ad216abaece331f80a0e7b6afec37490f3f956e5576ca99316a6a9188/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343633323932322d3433363538313133342e706e67
https://camo.githubusercontent.com/9309510b834539f063f9aec1512a3ed85a1d10c5b72ef921386e013248c81f95/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343634373034382d313932323636323736332e706e67
https://camo.githubusercontent.com/1501ad1056de1ca9a3e35ccccc3eeba0c50a0acc04a36d25d37b4af518dcca38/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343932333538302d313538343031313333392e706e67
https://camo.githubusercontent.com/bdc9e74d45c19e73186e21b1731a681708fe607f3be27bd49785d14e15b74f4e/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343933313837312d3130393132343137342e706e67
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#根据锁是否可重入进行区分
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#可重入锁
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#不可重入锁
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#多个线程能够共享同一把锁
https://github.com/alijunjun/bestJavaer/blob/master/java-concurrent/java-lock.md#独占锁和共享锁
https://camo.githubusercontent.com/59fcfb267a88239accb9a060a908f16a87ee8914b5335f453a79af6ad28bd8b0/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343934363933312d3236333336313231392e706e67
https://camo.githubusercontent.com/5257b29f1b8ce9abc4c09aecd1118e1c9f5dfa747e1ef7ef98005deb965da229/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e6c7931677369766b62637a786f6a33316c32307438616c352e6a7067
https://camo.githubusercontent.com/12e654e93be0dc50b58a12ecb13cd541f27eb252eba30c4df07978b8150fcf08/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e6c7931677369766c346b687a396a333164363068386d7a652e6a7067
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.