Java面试题--多线程并发&锁&jvm

一 多线程、并发、锁

  1. 线程的生命周期,状态是如何转移的
  • NEW:A thread that has not yet started is in this state.
  • RUNABLE: A thread executing in the Java virtual machine is in this state.
  • BLOCKED: A thread that is blocked waiting for a monitor lock is in this state.
  • WAITING : A thread that is waiting indefinitely for another thread to
    perform a particular action is in this state.
  • TIME WAITING : A thread that is waiting for another thread to perform an action
    for up to a specified waiting time is in this state.
  • TERMINATED : A thread that has exited is in this state.
  1. 线程池的实现原理?
  2. 线程池中的coreNum和maxNum有什么不同?
  3. 自旋锁、偏向锁、轻量级锁、重量级锁的概念及其使用场景?
  4. synchronized 实现原理?
  5. volatile 语义、实现原理、适用场景?
  6. 什么是ABA问题,出现ABA问题JDK是如何解决的?
  7. AQS原理
  8. ReentranLock源码,设计原理?
  9. ConcurrentHashMap实现原理?
  10. ThreadLocal 原理分析,ThreadLocal为什么会出现OOM,出现的深层次原理
  11. 常用的避免死锁方法?

二 jvm

框架

网络

操作系统

开发流程

软实力

猜你喜欢

转载自blog.csdn.net/liu99999999999999999/article/details/84869540
今日推荐