并发编程篇

并发编程篇

image-20241127141258667

线程基础

image-20241127141427163

线程和进程的区别?

image-20241127141621961

image-20241127141726540

image-20241127141914660

并行和并发的区别

image-20241127142103540

image-20241127142148649

image-20241127142247542

总结

image-20241127142322716

创建线程的方式有哪些

image-20241127142503615

继承Thread类

image-20241127142608363

实现runnable接口

image-20241127142726336

实现Callable接口

image-20241127142937180

线程池创建线程

image-20241127143026454

image-20241127143334129

image-20241127143435657

线程包括哪些状态,状态之间如何变化?

image-20241127143705507

image-20241127144136438

总结

image-20241127144254984

新建T1、T2、T3三个线程,如何保证它们按顺序执行?

image-20241127144610838

notify()和notifyAll()有什么区别?

image-20241127144949472

java中wait和sleep方法不同?

image-20241127145545136

如何停止一个正在运行的线程

image-20241127150100782

线程安全

synchronized关键字底层原理

image-20241127150507238

image-20241127150709966

image-20241127150954256

总结

image-20241127151048106

synchronized关键字底层原理-进阶

image-20241127151421772

image-20241127151605503

image-20241127151837195

image-20241127152113453

image-20241127152407609

image-20241127152647076

image-20241127152712388

image-20241127152933415

image-20241127153054658

image-20241127153248255

谈谈JMM(Java内存模型)

image-20241127222206753

image-20241127225301236

对CAS 的理解

image-20241127225443417

image-20241127225742255

image-20241127231201460

image-20241127231333910

总结

image-20241127231450038

谈谈对volatile的理解

image-20241128195508735

image-20241128195759726

image-20241128200227841

image-20241128200428533

image-20241128200634868

总结

image-20241128200746253

什么是AQS?

image-20241128200933470

image-20241128201114922

image-20241128201210912

image-20241128201258898

总结

image-20241128201408624

ReentrantLock的实现原理

image-20241128201554982

image-20241128201705162

image-20241128201815035

总结

image-20241128201841715

synchronized和Lock有什么区别?

image-20241128202645228

死锁产生的条件是什么?

image-20241128202827666

image-20241128203003334

image-20241128203026537

image-20241128203207326

总结

image-20241128203245642

ConcurrentHashMap 说一下

image-20241128203414793

image-20241128203445632

image-20241128203614560

image-20241128203738236

总结

image-20241128203807225

导致并发程序出现问题的根本原因是什么?

image-20241128204014056

image-20241128204054997

image-20241128204142958

image-20241128204235444

image-20241128204309873

总结

image-20241128204342596

线程池

说一下线程池的核心参数(线程池的执行原理)

image-20241129143745472

image-20241129143914405

线程池中有哪些常见的阻塞队列

image-20241129144610496

image-20241129144806740

如何确定核心线程数

image-20241129144950776

image-20241129145047034

线程池的种类有哪些

image-20241129145302281

image-20241129145615251

image-20241129145833964

image-20241129150016995

总结

image-20241129150115916

为什么不建议用Executors创建线程池

image-20241129150352625

使用场景

线程池使用场景(项目中哪里用到线程池)

image-20241129150633492

image-20241129150717791

image-20241129150858410

image-20241129151748388

image-20241129151847743

image-20241129152050972

总结

image-20241129152323604

如何控制某个方法允许并发访问线程的数量

image-20241129152443185

image-20241129152621787

总结

image-20241129152645563

谈谈对ThreadLocal的理解

image-20241129152800720

image-20241129152907971

image-20241129153010342

image-20241129153139310

image-20241129153203754

image-20241129153325572

image-20241129153433553

总结

image-20241129153602428

posted @ 2024-11-29 15:40  墨羽寻觅  阅读(5)  评论(0编辑  收藏  举报