Shredded interviewer series (6): Concurrency+Netty+JVM+Linux

Do not miss passing through

Click the blue word to follow us


Concurrent interview topics

(Interview questions + answer collection method: follow the public account reply [666])

  1. Now there are three threads T1, T2, and T3. How do you ensure that T2 is executed after T1 is executed, and T3 is executed after T2 is executed?

  2. What are the advantages of the Lock interface over synchronized blocks in Java? You need to implement an efficient cache, which allows multiple users to read, but only allows one user to write, in order to maintain its integrity, how would you implement it?

  3. The difference between wait and sleep methods in java?

  4. Implement blocking queue in Java.

  5. Write code in Java to solve the producer-consumer problem.

  6. Using Java to program a program that will cause a deadlock, how would you solve it?

  7. What are atomic operations, and what are atomic operations in Java?

  8. What is the key to volatile in Java? How to use it? How is it different from the synchronized method in Java?

  9. What are race conditions? How do you discover and resolve competition?

  10. How will you use threaddump? How will you analyze Thread dump?

  11. Why do we execute the run() method when we call the start() method, why can’t we call the run() method directly?

  12. How do you wake up a blocked thread in Java?

  13. What is the difference between CycliBarriar and CountdownLatch in Java?

  14. What is an immutable object, and how does it help to write concurrent applications?

  15. What are the common problems you encounter in a multithreaded environment? How did you solve it?



Netty interview topics

  1. What is the difference between BIO, NIO and AIO?

  2. What is the composition of NIO?

  3. What are the characteristics of .Netty?

  4. Netty's threading model?

  5. The reason and solution of TCP sticking/unpacking?

  6. Which serialization protocols do you know?

  7. How to choose a serialization protocol?

  8. Netty's zero copy implementation?

  9. What are the high performance of Netty?

  10. NIOEventLoopGroup source code?


JVM interview topics

  1. Memory model and partition, what needs to be put in each area in detail?

  2. Partitions in the heap: Eden, survival (from + to), old age, their own characteristics.

  3. Object creation method, object memory allocation, object access location.

  4. Two judgment methods of GC

  5. What is SafePoint

  6. The three collection methods of GC: the principles and characteristics of mark removal, mark sorting, and copying algorithms. Where are they used? If you are asked to optimize the collection method, what ideas do you have?

  7. What are the GC collectors? Features of CMS collector and G1 collector.

  8. When do Minor GC and Full GC happen respectively?

  9. Several commonly used memory debugging tools

  10. Several processes of class loading

  11. JVM memory is divided into several areas, what is the role of each area?

  12. How to judge whether an object is alive? (or how to judge GC objects)

  13. Briefly describe the java garbage collection mechanism?

  14. What are the methods of garbage collection in java?

  15. java memory model

  16. java class loading process?

  17. Briefly describe the java class loading mechanism?

  18. The class loader parent delegation model mechanism?

  19. What are class loaders and what are the class loaders?

20. Briefly describe the java memory allocation and recovery strategy and Minor GC and Major GC



Linux interview topics

  1. What are the main types of kernel locks in Linux?

  2. What is the meaning of user mode and kernel mode in Linux?

  3. How to apply for a large chunk of kernel memory?

  4. What are the main ways of communication between user processes?

  5. What are the functions to apply for kernel memory through the partner system?

  6. What are the key data structures of the Linux virtual file system? (Write at least four)

  7. In which data structure is the operation function of the file or device stored?

  8. What are the files in Linux?

  9. What are the system calls to create a process?

  10. What are the ways to call schedule() for process switching?

  11. Does the Linux scheduler schedule processes based on their dynamic priority or static priority?

  12. What is the core data structure of process scheduling?

  13. How to load and unload a module?

  14. Where are the modules and applications running in?

  15. Are floating-point operations in Linux implemented by the application or by the kernel?

  16. Can module programs use linkable library functions?

  17. What is cached in the TLB?

  18. What kinds of devices are there in Linux?

  19. What is the key data structure of the character device driver?

  20. What functions does the device driver include?

  21. How to uniquely identify a device?

  22. How does Linux implement system calls?

  23. What is the function of Linux soft interrupt and work queue?


Previous wonderful recommendations

Summary of Tencent, Ali, Didi Backstage Interview Questions-(including answers)

Interview: The most comprehensive multi-threaded interview questions in history!

The latest Alibaba pushes Java back-end interview questions

JVM is difficult to learn? That's because you didn't read this article seriously

—END—

Follow the author's WeChat public account—"JAVA Rotten Pigskin"

Learn more about java back-end architecture knowledge and the latest interview book

Everything you order is pretty, I take it seriously

After reading this article, remember to give the author a thumbs up + watching it~~~ Everyone's support is the motivation for the author to continue publishing articles.

Guess you like

Origin blog.csdn.net/yunzhaji3762/article/details/108971080