| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/blob/*name(/*path) |
| route-controller | blob |
| route-action | show |
| fetch-nonce | v2:a6851cdc-e108-cb3b-df3f-a9a0ebe4f1f0 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | D704:4AA2A:9919F1:C564BA:6B051197 |
| html-safe-nonce | d977da4d3242911a0985ab3933b221353b4bc472655ac9fbf6442f7eb6525b80 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzA0OjRBQTJBOjk5MTlGMTpDNTY0QkE6NkIwNTExOTciLCJ2aXNpdG9yX2lkIjoiNzEzMDA4MTU2MjE0MTcyNTA3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | deed5426bbc446d816fd50e5a0511fe827084978e354ac90ec81248ab883c0a3 |
| hovercard-subject-tag | repository:787979215 |
| github-keyboard-shortcuts | repository,source-code,file-tree,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///blob/show |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md |
| twitter:image | https://opengraph.githubassets.com/85de90c35444b4c503bd1a9c92d7bf0a42f246bcd6655049b84e45562813ef90/NUVEER/bestJavaer |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/85de90c35444b4c503bd1a9c92d7bf0a42f246bcd6655049b84e45562813ef90/NUVEER/bestJavaer |
| og:image:alt | 这是一个成为更好的Java程序员的系列教程. Contribute to NUVEER/bestJavaer development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-cache |
| go-import | github.com/NUVEER/bestJavaer git https://github.com/NUVEER/bestJavaer.git |
| octolytics-dimension-user_id | 12027364 |
| octolytics-dimension-user_login | NUVEER |
| octolytics-dimension-repository_id | 787979215 |
| octolytics-dimension-repository_nwo | NUVEER/bestJavaer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 269198820 |
| octolytics-dimension-repository_parent_nwo | crisxuan/bestJavaer |
| octolytics-dimension-repository_network_root_id | 269198820 |
| octolytics-dimension-repository_network_root_nwo | crisxuan/bestJavaer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/NUVEER/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%2FNUVEER%2FbestJavaer%2Fblob%2Fmaster%2Fjava-concurrent%2Fjava-lock.md |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNUVEER%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=NUVEER%2FbestJavaer |
| Reload | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md |
| Reload | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md |
| Reload | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md |
| NUVEER | https://github.com/NUVEER |
| bestJavaer | https://github.com/NUVEER/bestJavaer |
| Code | https://github.com/NUVEER/bestJavaer |
| Pull requests | https://github.com/NUVEER/bestJavaer/pulls |
| Actions | https://github.com/NUVEER/bestJavaer/actions |
| Projects | https://github.com/NUVEER/bestJavaer/projects |
| Security and quality | https://github.com/NUVEER/bestJavaer/security |
| Insights | https://github.com/NUVEER/bestJavaer/pulse |
| https://github.com/NUVEER/bestJavaer |
| bestJavaer | https://github.com/NUVEER/bestJavaer/tree/master |
| java-concurrent | https://github.com/NUVEER/bestJavaer/tree/master/java-concurrent |
| History | https://github.com/NUVEER/bestJavaer/commits/master/java-concurrent/java-lock.md |
| https://github.com/NUVEER/bestJavaer/commits/master/java-concurrent/java-lock.md |
| bestJavaer | https://github.com/NUVEER/bestJavaer/tree/master |
| java-concurrent | https://github.com/NUVEER/bestJavaer/tree/master/java-concurrent |
| Raw | https://github.com/NUVEER/bestJavaer/raw/refs/heads/master/java-concurrent/java-lock.md |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#java-锁事 |
| Java 锁事 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#java-%E9%94%81%E4%BA%8B |
| Java 锁分类 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#java-%E9%94%81%E5%88%86%E7%B1%BB |
| 线程是否需要对资源加锁 | https://github.com/NUVEER/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/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#%E6%82%B2%E8%A7%82%E9%94%81 |
| 乐观锁 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#%E4%B9%90%E8%A7%82%E9%94%81 |
| 两种锁的使用场景 | https://github.com/NUVEER/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/NUVEER/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/NUVEER/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/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#cas-%E7%AE%97%E6%B3%95 |
| 乐观锁的缺点 | https://github.com/NUVEER/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/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#aba-%E9%97%AE%E9%A2%98 |
| 循环开销大 | https://github.com/NUVEER/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/NUVEER/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/NUVEER/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/NUVEER/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/NUVEER/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/NUVEER/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/NUVEER/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/NUVEER/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 |
| TicketLock | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#ticketlock |
| CLHLock | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#clhlock |
| MCSLock | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#mcslock |
| CLHLock 和 MCSLock | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#clhlock-%E5%92%8C-mcslock |
| 多个线程并发访问资源 | https://github.com/NUVEER/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/NUVEER/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/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#java-%E5%AF%B9%E8%B1%A1%E5%A4%B4 |
| Synchronized锁 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#synchronized%E9%94%81 |
| Monitor | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#monitor |
| 锁的分类及其解释 | https://github.com/NUVEER/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/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#%E6%97%A0%E9%94%81 |
| 偏向锁 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#%E5%81%8F%E5%90%91%E9%94%81 |
| 轻量级锁 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#%E8%BD%BB%E9%87%8F%E7%BA%A7%E9%94%81 |
| 重量级锁 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#%E9%87%8D%E9%87%8F%E7%BA%A7%E9%94%81 |
| 锁的公平性与非公平性 | https://github.com/NUVEER/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/NUVEER/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/NUVEER/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/NUVEER/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/NUVEER/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/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#%E5%8F%AF%E9%87%8D%E5%85%A5%E9%94%81 |
| 不可重入锁 | https://github.com/NUVEER/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/NUVEER/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/NUVEER/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/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#java-锁分类 |
| https://camo.githubusercontent.com/a1d12d6cb5b8632115bf020617383ee481cdf96a702ef87f8d50483874437dcd/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039333632343638382d313032343033353232362e706e67 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#线程是否需要对资源加锁 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#悲观锁 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#乐观锁 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#两种锁的使用场景 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#乐观锁的实现方式 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#版本号机制 |
| https://camo.githubusercontent.com/2fa4e38477a2a2121803553a6be5097e9eaf600258c63d82200bed02c7aba231/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039333634323031372d3831393839313537392e706e67 |
| https://camo.githubusercontent.com/01656bd23d7aa6848077e3324867277e515169c7d55a3da10927763903bc7bbc/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039333635323135382d313230333535373039332e706e67 |
| https://github.com/NUVEER/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/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#乐观锁的缺点 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#aba-问题 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#循环开销大 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#cas与synchronized的使用情景 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#资源已被锁定线程是否阻塞 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#自旋锁的提出背景 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#什么是自旋锁 |
| https://camo.githubusercontent.com/7ed59c94cd661b409f0db425cc7fbcd8faf6aa46957589a9d81aaae34e8f24e4/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039333731373133302d313639313339323432382e706e67 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#自旋锁的原理 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#自旋锁的优缺点 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#自旋锁的实现 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#ticketlock |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#clhlock |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#mcslock |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#clhlock-和-mcslock |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#多个线程并发访问资源 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#锁状态的分类 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#java-对象头 |
| https://camo.githubusercontent.com/d8fe3bbec627b4d2fb7be50d4603a5f51a458779c883bca748db9494ad77a691/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039353632353935322d313034313038393531382e706e67 |
| https://camo.githubusercontent.com/649ffc78bae6c61f5c52c18a1c6265dfb4b9db410fd172f69149811330498e49/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039333734353530362d313137383232353430342e706e67 |
| https://camo.githubusercontent.com/d2c394bee017c56549fcb1dd64df1e1b5f2ab89ca7bf7500e2a2ba375175ab49/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343035343433392d3534373736393238332e706e67 |
| markOop.hpp | https://github.com/openjdk-mirror/jdk7u-hotspot/blob/50bdefc3afe944ca74c3093e7448d6b889cd20d1/src/share/vm/oops/markOop.hpp |
| https://camo.githubusercontent.com/de0aaf5490cbf624fb14dd744cb2ad15459bbb909e7ff5574a8fcd73db1606dd/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343130333638312d313433383031343133302e706e67 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#synchronized锁 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#monitor |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#锁的分类及其解释 |
| https://camo.githubusercontent.com/35c4f88e5129e9d4624f8101ce78a97fda85b05b7f6ed84c044690e6623ca544/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343131343938362d3139393536313630352e706e67 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#无锁 |
| https://camo.githubusercontent.com/ce1b5963b4ac3e796d4bc23aee5a0635467ca3be3ac5b642f95b159270d6d6e0/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343132393230372d313036313530343537342e706e67 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#偏向锁 |
| https://camo.githubusercontent.com/45e96f7ad5d09b9a29fa0569ab389dd4b773318cb057279e5e30313bc9e42008/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343133393131392d313336373037353835332e706e67 |
| https://camo.githubusercontent.com/ab8872682dee26abf362918afc722e48b9ca7acf93818a941ba0bb5f2a24c0c3/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343134393534342d313335333634313030352e706e67 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#轻量级锁 |
| https://camo.githubusercontent.com/adf55d2760edded6517dcd422bb54ec5d310a415e257c3f50b122f0eb924ff46/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343230313739322d3232343838393039372e706e67 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#重量级锁 |
| https://camo.githubusercontent.com/20dcf3e86d324b6c65dd6f1d936a155642111672086767030624062a54ab9c6f/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343231333535322d313839323232373039352e706e67 |
| https://camo.githubusercontent.com/f226715254fb1d34ce026d9d7c602d9ded0093a687308a8924ee04b142fbdb6e/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343232323630362d313936353732383438382e706e67 |
| https://camo.githubusercontent.com/9d635a25e2d3fb3f60b6df62f2155f5fcd7e895868a08ba0ece844f5f3be920e/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343233313038382d3737333230333331332e706e67 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#锁的公平性与非公平性 |
| https://camo.githubusercontent.com/bf2435cc62404d4a49ff909b78ada81e34897166673f37fc79b34694a73d2f47/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343234333139322d313835373637383739332e706e67 |
| https://camo.githubusercontent.com/3c15553ca35414dbd0227276be76ca34315e100d5450c5eb5b057e75ecd696f0/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343235323635302d3736363635363730302e706e67 |
| https://camo.githubusercontent.com/a46f8a0f091458bdcf517b30bfef1931593ebf712ec850c0d6bf8e769a8628be/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343330303938372d3930343731353034382e706e67 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#锁公平性的实现 |
| https://camo.githubusercontent.com/530cc92f362082b8008361e0c3cd4465ccebe369ae3b611d9701dc1d1c97a67b/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343333313434372d313831383839353131322e706e67 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#reentrantlock-基本概述 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#reentrantlock-如何实现锁公平性 |
| https://camo.githubusercontent.com/bf6551b40bc2fb4d10a2fafbf477a25f7b7b188873a896653aeb29ea186a3248/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343633323932322d3433363538313133342e706e67 |
| https://camo.githubusercontent.com/c231630f22beef499d8382bd69eb2e588582a217a997e790d7e85648008c2f83/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343634373034382d313932323636323736332e706e67 |
| https://camo.githubusercontent.com/a2ecd7665bf92a55f7f6fd3cd4681ff1338e7169e74d482f89599c1978ab2166/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343932333538302d313538343031313333392e706e67 |
| https://camo.githubusercontent.com/20f3230aba9742519e21f58d2226eab806d93c3f2248cd4333b9e7df4cd9045a/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343933313837312d3130393132343137342e706e67 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#根据锁是否可重入进行区分 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#可重入锁 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#不可重入锁 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#多个线程能够共享同一把锁 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-lock.md#独占锁和共享锁 |
| https://camo.githubusercontent.com/d5ad3ab1f8cd2479e15b86d9d8a034b25476f1806dd9cbe4d1d5be6f97e7ff1b/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343934363933312d3236333336313231392e706e67 |
| https://camo.githubusercontent.com/64d47cab7320552526c1e21a3ca1138c2c6b231cbf63173ff1e31c982b37b734/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e6c7931677369766b62637a786f6a33316c32307438616c352e6a7067 |
| https://camo.githubusercontent.com/d15ead80e46ed776dd253e5c3a5914e7fa7332043f7d7dbfc2c4906ed1c9975b/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e6c7931677369766c346b687a396a333164363068386d7a652e6a7067 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |