Concurrent interview topics
(Way to receive answers interview questions + See sidebar)
- There are T1, T2, T3 three threads, how do you ensure T2 after the implementation of execution in T1, T3 after the implementation of execution in T2?
- What interfaces in Java, Lock advantage over synchronized block is? You need to implement an efficient caching, which allows multiple users to read, but only allows a user to write, in order to maintain its integrity, what would you do to achieve it?
- Different wait and sleep in java methods?
- Implemented in Java blocking queue.
- Use Java to write code to solve the producer - consumer issues.
- Java programming can lead to a deadlock in the program, you will be how to solve?
- What is atomic, atomic operations in what is Java?
- volatile key in Java What is the role? How to use it? In Java it with synchronized method What is the difference?
- What is a race condition? How do you identify and resolve the competition?
- How will you use threaddump? How would you analyze Thread dump?
- Why do we call the start () performs the run () method when the method, why can not we call the run () method directly?
- Java, how do you wake up a blocked thread?
- What is the difference in Java CycliBarriar and CountdownLatch?
- What is immutable, it has to write concurrent applications going to help?
- What are the common problems you encounter in a multithreaded environment is? How did you solve it?
Netty interview topics
- BIO, NIO and AIO difference?
- NIO composition?
- .Netty features?
- Netty's threading model?
- Cause and Solution stick package TCP / unpacking?
- Learn what kinds of serialization protocol?
- How to choose a sequence of protocol?
- Netty zero-copy achieved?
- Netty performance in what areas?
- NIOEventLoopGroup source?
JVM interview topics
- Memory model and a partition, you need to detail what to put in each area?
- Heap inside the partition: Eden, survival (from + to), old time, their own characteristics.
- Object creation method, the object of memory allocation, access the location of the object.
- Two kinds GC determination method
- SafePoint 是什么
- GC 的三种收集方法:标记清除、标记整理、复制算法的原理与特点,分别用在什么地方,如果让你优化收集方法,有什么思路?
- GC 收集器有哪些?CMS 收集器与 G1 收集器的特点。
- Minor GC 与 Full GC 分别在什么时候发生?
- 几种常用的内存调试工具
- 类加载的几个过程
- JVM 内存分哪几个区,每个区的作用是什么?
- 如和判断一个对象是否存活?(或者 GC 对象的判定方法)
- 简述 java 垃圾回收机制?
- java 中垃圾收集的方法有哪些?
- java 内存模型
- java 类加载过程?
- 简述 java 类加载机制?
- 类加载器双亲委派模型机制?
- 什么是类加载器,类加载器有哪些?
20.简述 java 内存分配与回收策率以及 Minor GC 和Major GC
Linux面试专题
- Linux 中主要有哪几种内核锁?
- Linux 中的用户模式和内核模式是什么含意?
- 怎样申请大块内核内存?
- 用户进程间通信主要哪几种方式?
- 通过伙伴系统申请内核内存的函数有哪些?
- Linux 虚拟文件系统的关键数据结构有哪些?(至少写出四个)
- 对文件或设备的操作函数保存在那个数据结构中?
- Linux 中的文件包括哪些?
- 创建进程的系统调用有那些?
- 调用 schedule()进行进程切换的方式有几种?
- Linux 调度程序是根据进程的动态优先级还是静态优先级来调度进程的?
- 进程调度的核心数据结构是哪个?
- 如何加载、卸载一个模块?
- 模块和应用程序分别运行在什么空间?
- Linux 中的浮点运算由应用程序实现还是内核实现?
- 模块程序能否使用可链接的库函数?
- TLB 中缓存的是什么内容?
- Linux 中有哪几种设备?
- 字符设备驱动程序的关键数据结构是哪个?
- 设备驱动程序包括哪些功能函数?
- 如何唯一标识一个设备?
- Linux 通过什么方式实现系统调用?
- Linux 软中断和工作队列的作用是什么?