| 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:c6f92bbc-5b6b-0f9e-3dc3-826a7d3017c0 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | 8736:21AC3F:22D5742:2C0C0EE:6B0160A3 |
| html-safe-nonce | 35cf71467cfd97091e1f798bc67df8a63ae06cd933ca707dc961b96e922925da |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzM2OjIxQUMzRjoyMkQ1NzQyOjJDMEMwRUU6NkIwMTYwQTMiLCJ2aXNpdG9yX2lkIjoiMTg4MTE4Mzk4NjU0MjI3MjY3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0e4ab2d3ccb3380db35d1a91716575f3ea2acd149f801a3afc5898b37181e9f4 |
| hovercard-subject-tag | repository:559829973 |
| 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/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md |
| twitter:image | https://opengraph.githubassets.com/d0f83143832e5f39ae6590f5945111c5bcc1faa11744b8e048ce8a9574ff6318/chellwe/JavaGuide |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d0f83143832e5f39ae6590f5945111c5bcc1faa11744b8e048ce8a9574ff6318/chellwe/JavaGuide |
| og:image:alt | 「Java学习+面试指南」一份涵盖大部分 Java 程序员所需要掌握的核心知识。准备 Java 面试,首选 JavaGuide! - chellwe/JavaGuide |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| go-import | github.com/chellwe/JavaGuide git https://github.com/chellwe/JavaGuide.git |
| octolytics-dimension-user_id | 48433472 |
| octolytics-dimension-user_login | chellwe |
| octolytics-dimension-repository_id | 559829973 |
| octolytics-dimension-repository_nwo | chellwe/JavaGuide |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 132464395 |
| octolytics-dimension-repository_parent_nwo | Snailclimb/JavaGuide |
| octolytics-dimension-repository_network_root_id | 132464395 |
| octolytics-dimension-repository_network_root_nwo | Snailclimb/JavaGuide |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fchellwe%2FJavaGuide%2Fblob%2Fmain%2Fdocs%2Fjava%2Fconcurrent%2Freentrantlock.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%2Fchellwe%2FJavaGuide%2Fblob%2Fmain%2Fdocs%2Fjava%2Fconcurrent%2Freentrantlock.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=chellwe%2FJavaGuide |
| Reload | https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md |
| Reload | https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md |
| Reload | https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md |
| chellwe | https://github.com/chellwe |
| JavaGuide | https://github.com/chellwe/JavaGuide |
| Code | https://github.com/chellwe/JavaGuide |
| Pull requests | https://github.com/chellwe/JavaGuide/pulls |
| Actions | https://github.com/chellwe/JavaGuide/actions |
| Projects | https://github.com/chellwe/JavaGuide/projects |
| Security and quality | https://github.com/chellwe/JavaGuide/security |
| Insights | https://github.com/chellwe/JavaGuide/pulse |
| https://github.com/chellwe/JavaGuide |
| JavaGuide | https://github.com/chellwe/JavaGuide/tree/main |
| docs | https://github.com/chellwe/JavaGuide/tree/main/docs |
| java | https://github.com/chellwe/JavaGuide/tree/main/docs/java |
| concurrent | https://github.com/chellwe/JavaGuide/tree/main/docs/java/concurrent |
| History | https://github.com/chellwe/JavaGuide/commits/main/docs/java/concurrent/reentrantlock.md |
| https://github.com/chellwe/JavaGuide/commits/main/docs/java/concurrent/reentrantlock.md |
| JavaGuide | https://github.com/chellwe/JavaGuide/tree/main |
| docs | https://github.com/chellwe/JavaGuide/tree/main/docs |
| java | https://github.com/chellwe/JavaGuide/tree/main/docs/java |
| concurrent | https://github.com/chellwe/JavaGuide/tree/main/docs/java/concurrent |
| Raw | https://github.com/chellwe/JavaGuide/raw/refs/heads/main/docs/java/concurrent/reentrantlock.md |
| https://tech.meituan.com/2019/12/05/aqs-theory-and-apply.html | https://tech.meituan.com/2019/12/05/aqs-theory-and-apply.html |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#1-reentrantlock |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#11-reentrantlock-特性概览 |
| https://camo.githubusercontent.com/cfe2a27f10ea30bb53e4ea364082976014f38db19cff8983104c8fdf3c4cd91a/68747470733a2f2f70302e6d65697475616e2e6e65742f74726176656c637562652f34313264323934666635353335626263646463306439373962326133333965363130323236342e706e67 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#12-reentrantlock-与-aqs-的关联 |
| 不可不说的 Java“锁”事 | https://mp.weixin.qq.com/s?__biz=MjM5NjQ5MTI5OA==&mid=2651749434&idx=3&sn=5ffa63ad47fe166f2f1a9f604ed10091&chksm=bd12a5778a652c61509d9e718ab086ff27ad8768586ea9b38c3dcf9e017a8e49bcae3df9bcc8&scene=38#wechat_redirect |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#2-aqs |
| https://camo.githubusercontent.com/59046ecac6cb2f309d4dc993d6ed58beafce4152a0fa25609ab2c4c24faed142/68747470733a2f2f70312e6d65697475616e2e6e65742f74726176656c637562652f38323037376363663134313237613837623737636566643163636635363264333235333539312e706e67 |
| https://camo.githubusercontent.com/41ff0f1a26dfd3a7b4c10683595b59e05f569cc5632b577d6868539b9fbbef34/68747470733a2f2f70312e6d65697475616e2e6e65742f74726176656c637562652f643266376637666666646333306438356431376234343236366333616230353332333333382e706e67 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#21-原理概览 |
| https://camo.githubusercontent.com/8974b5dfa639d0f9a08a1ef7c72c5a3ca158ccc1930291afcd38afad85d6f862/68747470733a2f2f70302e6d65697475616e2e6e65742f74726176656c637562652f373133326534636566343463323666363238333562313937623233393134376231383036322e706e67 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#211-aqs-数据结构 |
| https://camo.githubusercontent.com/6c90d829e5a855c90cb6c71f274eea306e5ad1c459775847f373e03fe7c4e390/68747470733a2f2f70312e6d65697475616e2e6e65742f74726176656c637562652f393630323731636632623563386131383565656432336539386237326337353533383633372e706e67 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#212-同步状态-state |
| https://camo.githubusercontent.com/ed52f84b7f73ada444dc8bbace2b69de08f402a536457c25f603b98ab30092b7/68747470733a2f2f70302e6d65697475616e2e6e65742f74726176656c637562652f323736303564343833653839333564613638336139336265303135373133663333313337382e706e67 |
| https://camo.githubusercontent.com/22403842f1d02fd68252f4a5cbf115977b7f909e7cf17b6fccbbf76b14031c08/68747470733a2f2f70302e6d65697475616e2e6e65742f74726176656c637562652f336631653161343466356237643737303030626134663934373631383962326533323830362e706e67 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#22-aqs-重要方法与-reentrantlock-的关联 |
| https://camo.githubusercontent.com/c911ee3671f91d376e771cdfb8f1933238cdaf2967c20b15a57027efada124a9/68747470733a2f2f70312e6d65697475616e2e6e65742f74726176656c637562652f623862353361373039383436363862633638363533656665393533313537336537383633362e706e67 |
| issue#1761 | https://github.com/Snailclimb/JavaGuide/issues/1761 |
| https://camo.githubusercontent.com/4c2b520b762c71e3cdac4611bd5b7a646d79abb8a33814001a1118274985dd6e/68747470733a2f2f70312e6d65697475616e2e6e65742f74726176656c637562652f376161646232373230363964383731626465653862663361323138656564383133363931392e706e67 |
| https://camo.githubusercontent.com/1b18b505272e818f3a087c7f5374aa587e420299c482b1ae0fa6b29734edaa5d/68747470733a2f2f70302e6d65697475616e2e6e65742f74726176656c637562652f663330633633316338656262663832306433653866636236656565336330656631383734382e706e67 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#3-通过-reentrantlock-理解-aqs |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#31-线程加入等待队列 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#311-加入队列的时机 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#312-如何加入队列 |
| https://camo.githubusercontent.com/e3181ac831fee284d0b9d912bdc27258cf2d54e7888cd4d3eb534a82455c93db/68747470733a2f2f70302e6d65697475616e2e6e65742f74726176656c637562652f653965333835633363363866363263363763386436326162306164623631333932313131372e706e67 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#313-等待队列中线程出队列时机 |
| https://camo.githubusercontent.com/5ce13e410748580f4d31cfcd75c0fd80af219b336f34bfab30453a0c85352235/68747470733a2f2f70302e6d65697475616e2e6e65742f74726176656c637562652f633132346237366463626566623962646337373834353830363437303364313133353438352e706e67 |
| https://camo.githubusercontent.com/b64a63436528867f919cbc40ee7bed4103b9655a5cf961b0593740c0362d1202/68747470733a2f2f70302e6d65697475616e2e6e65742f74726176656c637562652f396166313665323438316164383566333863613332326132323561653733373533353734302e706e67 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#32-cancelled-状态节点生成 |
| https://camo.githubusercontent.com/d1ebd21750c40461f52c47e17cd24f3a67f4335babd4b518fc5635848fff6081/68747470733a2f2f70312e6d65697475616e2e6e65742f74726176656c637562652f623834353231316365643537353631633234663739643536313934393439653832323034392e706e67 |
| https://camo.githubusercontent.com/ac85c7e8db5b06766ca7ff6ffae88718d038475e3d6d2100215b4c8092bf044e/68747470733a2f2f70312e6d65697475616e2e6e65742f74726176656c637562652f616238396266656338373538343665353032386134663866656164333262373131373937352e706e67 |
| https://camo.githubusercontent.com/ea0cefdbcfc5d496937c1059766c722cf94a5e850314958e99593c8a23548066/68747470733a2f2f70302e6d65697475616e2e6e65742f74726176656c637562652f343564306439653461363839376564646164633433393763663533643663643532323435322e706e67 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#33-如何解锁 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#34-中断恢复后的执行流程 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#35-小结 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#4-aqs-应用 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#41-reentrantlock-的可重入应用 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#42-juc-中的应用场景 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#43-自定义同步工具 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#5-总结 |
| https://github.com/chellwe/JavaGuide/blob/main/docs/java/concurrent/reentrantlock.md#参考资料 |
| 不可不说的 Java“锁”事 | https://tech.meituan.com/2018/11/15/java-lock.html |
|
| 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 |