René's URL Explorer Experiment


Title: java_interview_manual/java-basic/multithread.md at master · oxygenyyyy/java_interview_manual · GitHub

Open Graph Title: java_interview_manual/java-basic/multithread.md at master · oxygenyyyy/java_interview_manual

X Title: java_interview_manual/java-basic/multithread.md at master · oxygenyyyy/java_interview_manual

Description: Java面试手册. Contribute to oxygenyyyy/java_interview_manual development by creating an account on GitHub.

Open Graph Description: Java面试手册. Contribute to oxygenyyyy/java_interview_manual development by creating an account on GitHub.

X Description: Java面试手册. Contribute to oxygenyyyy/java_interview_manual development by creating an account on GitHub.

Opengraph URL: https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/blob/*name(/*path)
route-controllerblob
route-actionshow
fetch-noncev2:7fffbc59-d747-f867-df32-18505ef2263a
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idCEBA:257F3:228CE81:2D752E3:6A5CAC1E
html-safe-nonce6acaf85ec7cb094a54a7290b24ac6043fffe946381a47c70249199393ed037b0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUJBOjI1N0YzOjIyOENFODE6MkQ3NTJFMzo2QTVDQUMxRSIsInZpc2l0b3JfaWQiOiI2MTI5NTExNjMxMzY4NzkzMTE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacabf95b5640dc440365a65332c56e3bb270e20efee2a804b7f4292b9697cc1aca
hovercard-subject-tagrepository:372492499
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/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md
twitter:imagehttps://opengraph.githubassets.com/661384d4db9714a5c2a3a9a7c91d8a90c714e3d43851caa7886c016cc1bec144/oxygenyyyy/java_interview_manual
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/661384d4db9714a5c2a3a9a7c91d8a90c714e3d43851caa7886c016cc1bec144/oxygenyyyy/java_interview_manual
og:image:altJava面试手册. Contribute to oxygenyyyy/java_interview_manual development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-cache
go-importgithub.com/oxygenyyyy/java_interview_manual git https://github.com/oxygenyyyy/java_interview_manual.git
octolytics-dimension-user_id32169666
octolytics-dimension-user_loginoxygenyyyy
octolytics-dimension-repository_id372492499
octolytics-dimension-repository_nwooxygenyyyy/java_interview_manual
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id138171460
octolytics-dimension-repository_parent_nwoguanzhenxing/java_interview_manual
octolytics-dimension-repository_network_root_id138171460
octolytics-dimension-repository_network_root_nwoguanzhenxing/java_interview_manual
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
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foxygenyyyy%2Fjava_interview_manual%2Fblob%2Fmaster%2Fjava-basic%2Fmultithread.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%2Foxygenyyyy%2Fjava_interview_manual%2Fblob%2Fmaster%2Fjava-basic%2Fmultithread.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=oxygenyyyy%2Fjava_interview_manual
Reloadhttps://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md
Reloadhttps://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md
Reloadhttps://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md
oxygenyyyy https://github.com/oxygenyyyy
java_interview_manualhttps://github.com/oxygenyyyy/java_interview_manual
guanzhenxing/java_interview_manualhttps://github.com/guanzhenxing/java_interview_manual
Notifications https://github.com/login?return_to=%2Foxygenyyyy%2Fjava_interview_manual
Fork 0 https://github.com/login?return_to=%2Foxygenyyyy%2Fjava_interview_manual
Star 0 https://github.com/login?return_to=%2Foxygenyyyy%2Fjava_interview_manual
Code https://github.com/oxygenyyyy/java_interview_manual
Pull requests 0 https://github.com/oxygenyyyy/java_interview_manual/pulls
Actions https://github.com/oxygenyyyy/java_interview_manual/actions
Projects https://github.com/oxygenyyyy/java_interview_manual/projects
Security and quality 0 https://github.com/oxygenyyyy/java_interview_manual/security
Insights https://github.com/oxygenyyyy/java_interview_manual/pulse
Code https://github.com/oxygenyyyy/java_interview_manual
Pull requests https://github.com/oxygenyyyy/java_interview_manual/pulls
Actions https://github.com/oxygenyyyy/java_interview_manual/actions
Projects https://github.com/oxygenyyyy/java_interview_manual/projects
Security and quality https://github.com/oxygenyyyy/java_interview_manual/security
Insights https://github.com/oxygenyyyy/java_interview_manual/pulse
https://github.com/oxygenyyyy/java_interview_manual
java_interview_manualhttps://github.com/oxygenyyyy/java_interview_manual/tree/master
java-basichttps://github.com/oxygenyyyy/java_interview_manual/tree/master/java-basic
Historyhttps://github.com/oxygenyyyy/java_interview_manual/commits/master/java-basic/multithread.md
https://github.com/oxygenyyyy/java_interview_manual/commits/master/java-basic/multithread.md
java_interview_manualhttps://github.com/oxygenyyyy/java_interview_manual/tree/master
java-basichttps://github.com/oxygenyyyy/java_interview_manual/tree/master/java-basic
Rawhttps://github.com/oxygenyyyy/java_interview_manual/raw/refs/heads/master/java-basic/multithread.md
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#多线程
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#什么是进程什么是线程为什么需要多线程编程
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#什么是线程安全
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#编写多线程程序有几种实现方式
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#synchronized关键字的用法
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#简述synchronized-和javautilconcurrentlockslock的异同
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#当一个线程进入一个对象的synchronized方法a之后其它线程是否可进入此对象的synchronized方法b
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#synchronized和reentrantlock的区别
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#举例说明同步和异步
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#启动一个线程是调用run还是start方法
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#为什么需要run和start方法我们可以只用run方法来完成任务吗
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#什么是线程池thread-pool
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#线程的基本状态以及状态之间的关系
https://github.com/oxygenyyyy/java_interview_manual/blob/master/images/multithread-status-change.png
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#java中如何实现序列化有什么意义
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#产生死锁的条件
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#什么是线程饿死什么是活锁
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#什么导致线程阻塞
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#怎么检测一个线程是否持有对象监视器
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#请说出与线程同步以及线程调度相关的方法
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#sleep-joinyield有什么区别
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#waitnotify和suspendresume之间的区别
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#为什么wait方法和notifynotifyall方法要在同步块中被调用
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#wait方法和notifynotifyall方法在放弃对象监视器时有什么区别
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#runnable和callable的区别
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#thread类的sleep方法和对象的wait方法都可以让线程暂停执行它们有什么区别
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#线程的sleep方法和yield方法有什么区别
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#为什么waitnofity和nofityall这些方法不放在thread类当中
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#怎么唤醒一个阻塞的线程
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#什么是多线程的上下文切换
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#futuretask是什么
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#一个线程如果出现了运行时异常怎么办
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#java当中有哪几种锁
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#如何在两个线程间共享数据
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#如何正确的使用wait使用if还是while
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#什么是线程局部变量threadlocal
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#threadloal的作用是什么
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#threadlocal-原理分析
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#如果你提交任务时线程池队列已满这时会发生什么
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#为什么要使用线程池
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#java中用到的线程调度算法是什么
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#threadsleep0的作用是什么
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#什么是cas
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#什么是乐观锁和悲观锁
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#concurrenthashmap的并发度是什么
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#concurrenthashmap的工作原理
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#cyclicbarrier和countdownlatch区别
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#java中的操作符线程安全么
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#有三个线程t1t2t3怎么确保它们按顺序执行
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#如何在java中创建immutable对象
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#你有哪些多线程开发良好的实践
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#可以创建volatile数组吗
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#volatile关键字的作用
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#volatile能使得一个非原子操作变成原子操作吗
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#volatile类型变量提供什么保证
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#java-中编写多线程程序的时候你会遵循哪些最佳实践
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#说出至少-5-点在-java-中使用线程的最佳实践
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#java中如何获取到线程dump文件
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#高并发任务执行时间短的业务怎样使用线程池并发不高任务执行时间长的业务怎样使用线程池并发高业务执行时间长的业务怎样使用线程池
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#作业进程调度算法
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#讲讲线程池的实现原理
以下资源来源https://github.com/crossoverJie/Java-Interview/blob/master/MD/ThreadPoolExecutor.md
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#创建一个线程池
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#处理流程
https://github.com/oxygenyyyy/java_interview_manual/blob/master/images/68747470733a2f2f7773312e73696e61696d672e636e2f6c617267652f303036744e625277677931666e627a6d61693879726a333064773038353734732e6a7067.jpg
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#合理配置线程池
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#synchronize-实现原理
以下资源来源https://github.com/crossoverJie/Java-Interview/blob/master/MD/Synchronize.md
https://github.com/oxygenyyyy/java_interview_manual/blob/master/images/68747470733a2f2f7773322e73696e61696d672e636e2f6c617267652f303036744e6337396c7931666e3237666b6c30376a6a333165383068796e306e2e6a7067.jpg
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#轻量锁
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#解锁
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#偏向锁
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#释放锁
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#线程池的几种方式与使用场景
线程池的种类,区别和使用场景https://blog.csdn.net/PORSCHE_GT3RS/article/details/80261720
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#volatile-实现原理
【死磕Java并发】—–深入分析volatile的实现原理http://cmsblogs.com/?p=2092
深入分析Volatile的实现原理https://blog.csdn.net/eff666/article/details/67640648
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#synchronized-实现原理
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#说说-semaphore-原理
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#获取
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#释放
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#说说-exchanger-原理
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#线程的生命周期
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#重入锁的概念
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#获取-1
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#释放-1
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#死锁问题
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#如何检查死锁通过jconsole检查死锁
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#aqs同步队列
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#什么是aba问题出现aba问题jdk是如何解决的
https://github.com/oxygenyyyy/java_interview_manual/blob/master/java-basic/multithread.md#乐观锁的业务场景及实现方式
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.