René's URL Explorer Experiment


Title: bestJavaer/java-concurrent/java-synchronized.md at master · NUVEER/bestJavaer · GitHub

Open Graph Title: bestJavaer/java-concurrent/java-synchronized.md at master · NUVEER/bestJavaer

X Title: bestJavaer/java-concurrent/java-synchronized.md at master · NUVEER/bestJavaer

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

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

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

Opengraph URL: https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,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-controllerblob
route-actionshow
fetch-noncev2:f313eecd-58bf-ff63-e792-78ddfd438005
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-id9C10:4AA2A:16FD97D:1E22AF1:6B054E49
html-safe-noncee4bd761d76ab46addf52f397cd035de853387a6ab333174afa325128f0f0f895
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzEwOjRBQTJBOjE2RkQ5N0Q6MUUyMkFGMTo2QjA1NEU0OSIsInZpc2l0b3JfaWQiOiI4NjU5ODA2NDc0NjgxNTM2MDczIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacffb65d3ed3c17ce21c0ee9f77679d2db743ca8472fe428bbba9c985236abe4be
hovercard-subject-tagrepository:787979215
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/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md
twitter:imagehttps://opengraph.githubassets.com/85de90c35444b4c503bd1a9c92d7bf0a42f246bcd6655049b84e45562813ef90/NUVEER/bestJavaer
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/85de90c35444b4c503bd1a9c92d7bf0a42f246bcd6655049b84e45562813ef90/NUVEER/bestJavaer
og:image:alt这是一个成为更好的Java程序员的系列教程. Contribute to NUVEER/bestJavaer development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b
turbo-cache-controlno-cache
go-importgithub.com/NUVEER/bestJavaer git https://github.com/NUVEER/bestJavaer.git
octolytics-dimension-user_id12027364
octolytics-dimension-user_loginNUVEER
octolytics-dimension-repository_id787979215
octolytics-dimension-repository_nwoNUVEER/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
release220e980097d94ce616d5d11fbd5316d208e3fc93
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNUVEER%2FbestJavaer%2Fblob%2Fmaster%2Fjava-concurrent%2Fjava-synchronized.md
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNUVEER%2FbestJavaer%2Fblob%2Fmaster%2Fjava-concurrent%2Fjava-synchronized.md
Sign uphttps://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
Reloadhttps://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md
Reloadhttps://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md
Reloadhttps://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md
NUVEERhttps://github.com/NUVEER
bestJavaerhttps://github.com/NUVEER/bestJavaer
Codehttps://github.com/NUVEER/bestJavaer
Pull requestshttps://github.com/NUVEER/bestJavaer/pulls
Actionshttps://github.com/NUVEER/bestJavaer/actions
Projectshttps://github.com/NUVEER/bestJavaer/projects
Security and qualityhttps://github.com/NUVEER/bestJavaer/security
Insightshttps://github.com/NUVEER/bestJavaer/pulse
https://github.com/NUVEER/bestJavaer
bestJavaerhttps://github.com/NUVEER/bestJavaer/tree/master
java-concurrenthttps://github.com/NUVEER/bestJavaer/tree/master/java-concurrent
Historyhttps://github.com/NUVEER/bestJavaer/commits/master/java-concurrent/java-synchronized.md
https://github.com/NUVEER/bestJavaer/commits/master/java-concurrent/java-synchronized.md
bestJavaerhttps://github.com/NUVEER/bestJavaer/tree/master
java-concurrenthttps://github.com/NUVEER/bestJavaer/tree/master/java-concurrent
Rawhttps://github.com/NUVEER/bestJavaer/raw/refs/heads/master/java-concurrent/java-synchronized.md
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#深入理解-synchronized-关键字
深入理解 synchronized 关键字https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#%E6%B7%B1%E5%85%A5%E7%90%86%E8%A7%A3-synchronized-%E5%85%B3%E9%94%AE%E5%AD%97
前言https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#%E5%89%8D%E8%A8%80
浅析 synchronizedhttps://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#%E6%B5%85%E6%9E%90-synchronized
synchronized 的使用https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#synchronized-%E7%9A%84%E4%BD%BF%E7%94%A8
synchronized 修饰实例方法https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#synchronized-%E4%BF%AE%E9%A5%B0%E5%AE%9E%E4%BE%8B%E6%96%B9%E6%B3%95
synchronized 修饰静态方法https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#synchronized-%E4%BF%AE%E9%A5%B0%E9%9D%99%E6%80%81%E6%96%B9%E6%B3%95
synchronized 修饰代码块https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#synchronized-%E4%BF%AE%E9%A5%B0%E4%BB%A3%E7%A0%81%E5%9D%97
synchronized 底层原理https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#synchronized-%E5%BA%95%E5%B1%82%E5%8E%9F%E7%90%86
Monitor 对象https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#monitor-%E5%AF%B9%E8%B1%A1
对象内存布局https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#%E5%AF%B9%E8%B1%A1%E5%86%85%E5%AD%98%E5%B8%83%E5%B1%80
对象头 Headerhttps://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#%E5%AF%B9%E8%B1%A1%E5%A4%B4-header
实例数据 Instance Datahttps://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#%E5%AE%9E%E4%BE%8B%E6%95%B0%E6%8D%AE-instance-data
对齐 Paddinghttps://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#%E5%AF%B9%E9%BD%90-padding
锁的升级流程https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#%E9%94%81%E7%9A%84%E5%8D%87%E7%BA%A7%E6%B5%81%E7%A8%8B
无锁https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#%E6%97%A0%E9%94%81
偏向锁https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#%E5%81%8F%E5%90%91%E9%94%81
轻量级锁https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#%E8%BD%BB%E9%87%8F%E7%BA%A7%E9%94%81
重量级锁https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#%E9%87%8D%E9%87%8F%E7%BA%A7%E9%94%81
synchronized 代码块的底层实现https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#synchronized-%E4%BB%A3%E7%A0%81%E5%9D%97%E7%9A%84%E5%BA%95%E5%B1%82%E5%AE%9E%E7%8E%B0
synchronized 修饰方法的底层原理https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#synchronized-%E4%BF%AE%E9%A5%B0%E6%96%B9%E6%B3%95%E7%9A%84%E5%BA%95%E5%B1%82%E5%8E%9F%E7%90%86
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#前言
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#浅析-synchronized
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#synchronized-的使用
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#synchronized-修饰实例方法
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#synchronized-修饰静态方法
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#synchronized-修饰代码块
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#synchronized-底层原理
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#monitor-对象
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#对象内存布局
https://github.com/NUVEER/bestJavaer/blob/master/Users/mr.l/Library/Application Support/typora-user-images/image-20201202064002278.png
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#对象头-header
https://camo.githubusercontent.com/a3bd1c78d1672194d630df7b12507c3365f3b41f7f714407cd416a60054e7b39/68747470733a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3733313731362f3230313730332f3733313731362d32303137303330323130343030333536332d323039343336313036352e706e67
https://camo.githubusercontent.com/d8fe3bbec627b4d2fb7be50d4603a5f51a458779c883bca748db9494ad77a691/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039353632353935322d313034313038393531382e706e67
https://camo.githubusercontent.com/649ffc78bae6c61f5c52c18a1c6265dfb4b9db410fd172f69149811330498e49/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039333734353530362d313137383232353430342e706e67
https://camo.githubusercontent.com/d2c394bee017c56549fcb1dd64df1e1b5f2ab89ca7bf7500e2a2ba375175ab49/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343035343433392d3534373736393238332e706e67
markOop.hpphttps://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/Users/mr.l/Library/Application Support/typora-user-images/image-20210530233842535.png
https://github.com/NUVEER/bestJavaer/blob/master/Users/mr.l/Library/Application Support/typora-user-images/image-20210531093349681.png
https://github.com/NUVEER/bestJavaer/blob/master/Users/mr.l/Library/Application Support/typora-user-images/image-20210530220010468.png
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#实例数据-instance-data
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#对齐-padding
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#锁的升级流程
https://camo.githubusercontent.com/35c4f88e5129e9d4624f8101ce78a97fda85b05b7f6ed84c044690e6623ca544/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343131343938362d3139393536313630352e706e67
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#无锁
https://camo.githubusercontent.com/ce1b5963b4ac3e796d4bc23aee5a0635467ca3be3ac5b642f95b159270d6d6e0/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343132393230372d313036313530343537342e706e67
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#偏向锁
https://camo.githubusercontent.com/45e96f7ad5d09b9a29fa0569ab389dd4b773318cb057279e5e30313bc9e42008/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343133393131392d313336373037353835332e706e67
https://camo.githubusercontent.com/ab8872682dee26abf362918afc722e48b9ca7acf93818a941ba0bb5f2a24c0c3/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343134393534342d313335333634313030352e706e67
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#轻量级锁
https://camo.githubusercontent.com/adf55d2760edded6517dcd422bb54ec5d310a415e257c3f50b122f0eb924ff46/68747470733a2f2f696d67323031382e636e626c6f67732e636f6d2f626c6f672f313531353131312f3230313931322f313531353131312d32303139313231373039343230313739322d3232343838393039372e706e67
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.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-synchronized.md#synchronized-代码块的底层实现
看完这篇Exception 和 Error,和面试官扯皮就没问题了https://mp.weixin.qq.com/s?__biz=MzkwMDE1MzkwNQ==&mid=2247495984&idx=1&sn=97c90237ae80d1a244bd34edf2628986&chksm=c04ae66ef73d6f78738ed1908e4e40bf3f179e1ec41b556aab7cfee3145b01f1316cd84e25c0&token=1037470091&lang=zh_CN#rd
https://github.com/NUVEER/bestJavaer/blob/master/java-concurrent/java-synchronized.md#synchronized-修饰方法的底层原理
https://camo.githubusercontent.com/64d47cab7320552526c1e21a3ca1138c2c6b231cbf63173ff1e31c982b37b734/68747470733a2f2f747661312e73696e61696d672e636e2f6c617267652f3030386933736b4e6c7931677369766b62637a786f6a33316c32307438616c352e6a7067
https://camo.githubusercontent.com/d15ead80e46ed776dd253e5c3a5914e7fa7332043f7d7dbfc2c4906ed1c9975b/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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.