René's URL Explorer Experiment


Title: bestJavaer/java-concurrent/java-volatile.md at master · JR-Rong/bestJavaer · GitHub

Open Graph Title: bestJavaer/java-concurrent/java-volatile.md at master · JR-Rong/bestJavaer

X Title: bestJavaer/java-concurrent/java-volatile.md at master · JR-Rong/bestJavaer

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

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

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

Opengraph URL: https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/blob/*name(/*path)
route-controllerblob
route-actionshow
fetch-noncev2:d6b24354-26cd-77b1-31ee-ac4f5972c8cd
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idB782:3A68A9:4301C3A:5D73A65:6A50CC12
html-safe-nonce8085e981c55751d687b164c7cb082ce9f75ad7c518287d791b39cf9d284557d6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzgyOjNBNjhBOTo0MzAxQzNBOjVENzNBNjU6NkE1MENDMTIiLCJ2aXNpdG9yX2lkIjoiNjkzNzQzNTg2NzgzNDI3Mjc4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7c3a9173808af19dcd176f627e92ac1e061a30f34b17af4c5e1a3c101dc1ef71
hovercard-subject-tagrepository:541431745
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/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md
twitter:imagehttps://opengraph.githubassets.com/d7752d20ca89d3212bbe7fd47a429b925edb9b5ca9e705f6cfe85b400d98f85a/JR-Rong/bestJavaer
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d7752d20ca89d3212bbe7fd47a429b925edb9b5ca9e705f6cfe85b400d98f85a/JR-Rong/bestJavaer
og:image:alt这是一个成为更好的Java程序员的系列教程. Contribute to JR-Rong/bestJavaer development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0
turbo-cache-controlno-cache
go-importgithub.com/JR-Rong/bestJavaer git https://github.com/JR-Rong/bestJavaer.git
octolytics-dimension-user_id73985642
octolytics-dimension-user_loginJR-Rong
octolytics-dimension-repository_id541431745
octolytics-dimension-repository_nwoJR-Rong/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
release08e79d53fc070870d5b168356afebb1e286a2ffe
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JR-Rong/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%2FJR-Rong%2FbestJavaer%2Fblob%2Fmaster%2Fjava-concurrent%2Fjava-volatile.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%2FJR-Rong%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=JR-Rong%2FbestJavaer
Reloadhttps://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md
Reloadhttps://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md
Reloadhttps://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md
JR-Rong https://github.com/JR-Rong
bestJavaerhttps://github.com/JR-Rong/bestJavaer
crisxuan/bestJavaerhttps://github.com/crisxuan/bestJavaer
Notifications https://github.com/login?return_to=%2FJR-Rong%2FbestJavaer
Fork 0 https://github.com/login?return_to=%2FJR-Rong%2FbestJavaer
Star 0 https://github.com/login?return_to=%2FJR-Rong%2FbestJavaer
Code https://github.com/JR-Rong/bestJavaer
Pull requests 0 https://github.com/JR-Rong/bestJavaer/pulls
Actions https://github.com/JR-Rong/bestJavaer/actions
Projects https://github.com/JR-Rong/bestJavaer/projects
Security and quality 0 https://github.com/JR-Rong/bestJavaer/security
Insights https://github.com/JR-Rong/bestJavaer/pulse
Code https://github.com/JR-Rong/bestJavaer
Pull requests https://github.com/JR-Rong/bestJavaer/pulls
Actions https://github.com/JR-Rong/bestJavaer/actions
Projects https://github.com/JR-Rong/bestJavaer/projects
Security and quality https://github.com/JR-Rong/bestJavaer/security
Insights https://github.com/JR-Rong/bestJavaer/pulse
https://github.com/JR-Rong/bestJavaer
bestJavaerhttps://github.com/JR-Rong/bestJavaer/tree/master
java-concurrenthttps://github.com/JR-Rong/bestJavaer/tree/master/java-concurrent
Historyhttps://github.com/JR-Rong/bestJavaer/commits/master/java-concurrent/java-volatile.md
https://github.com/JR-Rong/bestJavaer/commits/master/java-concurrent/java-volatile.md
bestJavaerhttps://github.com/JR-Rong/bestJavaer/tree/master
java-concurrenthttps://github.com/JR-Rong/bestJavaer/tree/master/java-concurrent
Rawhttps://github.com/JR-Rong/bestJavaer/raw/refs/heads/master/java-concurrent/java-volatile.md
https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#深入理解-volatile-关键字
深入理解 volatile 关键字https://github.com/JR-Rong/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/JR-Rong/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/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#jvm-%E5%86%85%E5%AD%98%E6%A8%A1%E5%9E%8B
并发编程中的三个主要问题https://github.com/JR-Rong/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/JR-Rong/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/JR-Rong/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/JR-Rong/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/JR-Rong/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/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E5%8F%AF%E8%A7%81%E6%80%A7
原子性https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E5%8E%9F%E5%AD%90%E6%80%A7
关键概念https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E5%85%B3%E9%94%AE%E6%A6%82%E5%BF%B5
如何正确的使用 volatile 变量https://github.com/JR-Rong/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/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E7%8A%B6%E6%80%81%E6%A0%87%E5%BF%97
双重检查锁https://github.com/JR-Rong/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/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#%E8%AF%BB-%E5%86%99%E9%94%81
https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#先从内存模型谈起
https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#jvm-内存模型
https://camo.githubusercontent.com/c65815231a10efef440cdf05aa28f4cedd51e1bf906a6ce66a71f4fdba5a460a/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f67546f5361542e706e67
https://camo.githubusercontent.com/1e64316980ed6fa06118616045d89dcd50c31c77ce85f6bdde42919deafbc2da/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754497a5a562e706e67
https://camo.githubusercontent.com/5c9221c5befdaf10e9e0557e0096b616e35d03d4f923583ff385bee0f8f9305d/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754497671302e706e67
https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#并发编程中的三个主要问题
https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#可见性问题
https://camo.githubusercontent.com/f2e95353d1fc0e9cb1ff3e9fb029027ebbbaffbb5c32d49eddce32a0cc1b3a4e/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f67544971326a2e706e67
https://camo.githubusercontent.com/55e45bc0dc51928b6a5789d98360401a4f91fe19a25a42f10ebc5b7d7a080794/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754494c78732e706e67
https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#原子性问题
https://camo.githubusercontent.com/597aa468b8b7c8f144f80691fe51f87e79ad2fc02bde4a042118d3947431e945/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754496247512e706e67
https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#有序性问题
https://camo.githubusercontent.com/3ed29bb7d194a1e4890f009ef38f9c68af359e8bf8cf34a8a6a80ba89ada2ba1/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754494850672e706e67
https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#volatile-的实现原理
https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#可见性
https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#原子性
https://camo.githubusercontent.com/5447735dc6f5ab0d93782e7d6e88da5b306eccd843f695ddd9cb12a87be36718/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/8635c3b58e5bbf9c77b4d9f13f9ad2277a18615bb670c3faff86aa0d35a04b3a/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754496f61382e706e67
https://camo.githubusercontent.com/4872c3a3bb8d404fa4af3e0a9bf1666f16b4b5878aaa6baf0d469dec233ad4ca/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754495278412e706e67
https://camo.githubusercontent.com/59f46184720a59d6aede24d7b9769d04d8e95a1d72f0a1c81d0639e742fd0a19/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f675449664b492e706e67
https://camo.githubusercontent.com/365863d07aa8dce3db487d03eeffd8a63b13c64a0db6341bfaeff2123506aa9d/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754496872742e706e67
https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-6.htmlhttps://docs.oracle.com/javase/specs/jvms/se7/html/jvms-6.html
https://camo.githubusercontent.com/028a1e03ea95fb36e31bf84ec191455c9f9f340a915a920cbb096c8b4b056017/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754493471502e706e67
https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-6.htmlhttps://docs.oracle.com/javase/specs/jvms/se7/html/jvms-6.html
https://camo.githubusercontent.com/11aa34b4bd965f1c804811b9c13dfa177a3eee081e25498ee225d4fe0c67307d/68747470733a2f2f7a332e617831782e636f6d2f323032312f30352f32302f6754494956662e706e67
https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#关键概念
https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#如何正确的使用-volatile-变量
https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#状态标志
https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#双重检查锁
https://github.com/JR-Rong/bestJavaer/blob/master/java-concurrent/java-volatile.md#读-写锁
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.