Go 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.
Go language pointer performance
·1620 words·4 mins
Go language
source code analysis
memory access
The difference between Go value objects and pointer objects in terms of storage, performance and usage