Java language
Java & Go thread model comparison
·5397 words·11 mins
Java language
Go language
thread management
source code analysis
This paper compares in detail the threading models and scheduling mechanisms of the Java and Go programming languages. It analyzes their specific implementations and design ideas from a source code perspective, especially the 1:1 correspondence between Java’s Thread and operating system threads, and the n:m relationship between Go’s goroutine managed through the GPM model.
Exploring the built-in Spring-Boot server
·1338 words·3 mins
Spring Framework
Java language
source code analysis
This article explores in detail the principles and use of the web servers built into Spring Boot (including Tomcat, Jetty, Undertow, and Netty), with a particular focus on the differences between the Servlet and Reactive frameworks and their implementations in Spring Framework 5.0, including the
WebServer
interface and the concrete implementation of WebServerFactory
.
Why can Spring 'inject itself'?
·1142 words·6 mins
Java language
Spring Framework
source code analysis
Take a look at the Spring source code and PR records to find out which version and commit introduced the support for Self-Injection.
Netty source code analysis and memory overflow ideas
·1570 words·8 mins
source code analysis
Java language
Netty
It mainly introduces the use and inheritance relationship of Buffers in Java NIO, Netty and Spring Reactor.