| 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:5acc0f6f-a94d-a5bf-92c9-d2b904554122 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | C266:1B6A64:C912E4:1117260:6B054C8E |
| html-safe-nonce | 3572281e8754b3fabd7c847ac8e82dde82fd309b3d06291bb119be9fb63b890b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjY2OjFCNkE2NDpDOTEyRTQ6MTExNzI2MDo2QjA1NEM4RSIsInZpc2l0b3JfaWQiOiI5MTU2MzQ4OTQ5NDQyMTUzNjE0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 49ce3238ef2be3c4f7952f73d86954ba039278641dfbb1d434fcd0fbd93df615 |
| 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-volatile.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-volatile.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-volatile.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-volatile.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-volatile.md |
| Reload | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md |
| Reload | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.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-volatile.md |
| https://github.com/NUVEER/bestJavaer/commits/master/java-concurrent/java-volatile.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-volatile.md |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#深入理解-volatile-关键字 |
| 深入理解 volatile 关键字 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E6%B7%B1%E5%85%A5%E7%90%86%E8%A7%A3-volatile-%E5%85%B3%E9%94%AE%E5%AD%97 |
| 先从内存模型谈起 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E5%85%88%E4%BB%8E%E5%86%85%E5%AD%98%E6%A8%A1%E5%9E%8B%E8%B0%88%E8%B5%B7 |
| JVM 内存模型 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#jvm-%E5%86%85%E5%AD%98%E6%A8%A1%E5%9E%8B |
| 并发编程中的三个主要问题 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E5%B9%B6%E5%8F%91%E7%BC%96%E7%A8%8B%E4%B8%AD%E7%9A%84%E4%B8%89%E4%B8%AA%E4%B8%BB%E8%A6%81%E9%97%AE%E9%A2%98 |
| 可见性问题 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E5%8F%AF%E8%A7%81%E6%80%A7%E9%97%AE%E9%A2%98 |
| 原子性问题 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E5%8E%9F%E5%AD%90%E6%80%A7%E9%97%AE%E9%A2%98 |
| 有序性问题 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E6%9C%89%E5%BA%8F%E6%80%A7%E9%97%AE%E9%A2%98 |
| volatile 的实现原理 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#volatile-%E7%9A%84%E5%AE%9E%E7%8E%B0%E5%8E%9F%E7%90%86 |
| 可见性 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E5%8F%AF%E8%A7%81%E6%80%A7 |
| 原子性 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E5%8E%9F%E5%AD%90%E6%80%A7 |
| 关键概念 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E5%85%B3%E9%94%AE%E6%A6%82%E5%BF%B5 |
| 如何正确的使用 volatile 变量 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E5%A6%82%E4%BD%95%E6%AD%A3%E7%A1%AE%E7%9A%84%E4%BD%BF%E7%94%A8-volatile-%E5%8F%98%E9%87%8F |
| 状态标志 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E7%8A%B6%E6%80%81%E6%A0%87%E5%BF%97 |
| 双重检查锁 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E5%8F%8C%E9%87%8D%E6%A3%80%E6%9F%A5%E9%94%81 |
| 读-写锁 | https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E8%AF%BB-%E5%86%99%E9%94%81 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#先从内存模型谈起 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#jvm-内存模型 |
| https://camo.githubusercontent.com/59604eb002a8d66024de4706ee723aa046326e7197d19880dacfccd91b7d5c03/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f67546f5361542e706e67 |
| https://camo.githubusercontent.com/49eaf5c4994b2d046825b8e6633c2f1a51c048b0f5ec031a531693d606fe9adc/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754497a5a562e706e67 |
| https://camo.githubusercontent.com/4139ad59d5fbd2f8dce52a3763c125e7e00a687376e89222c97f27be8cf10a4c/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754497671302e706e67 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#并发编程中的三个主要问题 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#可见性问题 |
| https://camo.githubusercontent.com/d9a359085eef240cd9f9106cce357c9263db81f12dc8e9ef8432f38a18ca3cd3/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f67544971326a2e706e67 |
| https://camo.githubusercontent.com/cdf429fb938bef691ae1af70c8e192ad31a96f44fb1fc57992f206fe8a21eb5a/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754494c78732e706e67 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#原子性问题 |
| https://camo.githubusercontent.com/3673f78ea2b517524d70f754986b2c6f8a53d5dde2c88ffaeec0c01c453b010b/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754496247512e706e67 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#有序性问题 |
| https://camo.githubusercontent.com/d0f80027e8af504028422ebb9b2ea955f3631bc39936cdf50477b0d867c5c26c/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754494850672e706e67 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#volatile-的实现原理 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#可见性 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#原子性 |
| https://camo.githubusercontent.com/42fec35018805ad98267b153bf61abccca31f8d55c6e6b37f5ad28cacd6aa344/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754495449532e706e67 |
| 一场 Atomic XXX 的魔幻之旅 | https://mp.weixin.qq.com/s?__biz=MzkwMDE1MzkwNQ==&mid=2247495805&idx=1&sn=74cb9ee585edf13b3af7431bbb0f4e0e&chksm=c04ae723f73d6e35e0212472778b997ebeae428d6562e88bf15b311c87241a32331af7f42101&token=530741505&lang=zh_CN#rd |
| https://camo.githubusercontent.com/2743df09c7e8f31e08a741ebc0b2d8b37fe46f690ae90c2fe225353e11dde2df/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754496f61382e706e67 |
| https://camo.githubusercontent.com/a650280021b3fc429f1cbbf1647b96c7ca0e7e9c38a7b7efaeba7ca7d2bf0f93/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754495278412e706e67 |
| https://camo.githubusercontent.com/25cea3ce4bf4af954b6f01cc623be10a69c32cdeff248cbb57efbb888f1f5bcd/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f675449664b492e706e67 |
| https://camo.githubusercontent.com/faa9f93e5455badc312ec6cdc6814ca5acb27de90a75df258b670a3b4fda3b1d/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754496872742e706e67 |
| https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-6.html | https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-6.html |
| https://camo.githubusercontent.com/49bcd95dabcaa1f41986d8ad946c04c57eb23f84eece036d4b9421d9afbef374/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754493471502e706e67 |
| https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-6.html | https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-6.html |
| https://camo.githubusercontent.com/878791c062ebc0aa04017fc8396216d56cd93cd09e9099829e04061a588da89d/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754494956662e706e67 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#关键概念 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#如何正确的使用-volatile-变量 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#状态标志 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#双重检查锁 |
| https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-volatile.md#读-写锁 |
| 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 |