- Mastering High Performance with Kotlin
- Igor Kucherenko
- 124字
- 2021-06-25 20:55:22
Memory model
The memory model describes how the JVM interacts with a computer's memory. By computer memory, we mean not only Random Access Memory (RAM) but also registers and cache memory of the CPU. So we consider the memory model as a simplified abstraction of the hardware memory architecture.
We can consider the whole JVM as a model of a computer that provides the ability to run a program on a wide range of processors and operating systems.
An understanding of the Java Memory Model is important because it specifies how different threads interact in memory. Concurrent programming involves plenty of different pitfalls in synchronization between threads that have shared variables and compliance with the consistency of a sequence of operations.
推薦閱讀
- 嵌入式軟件系統測試:基于形式化方法的自動化測試解決方案
- Redis Applied Design Patterns
- TypeScript Blueprints
- TestNG Beginner's Guide
- 64位匯編語言的編程藝術
- PLC編程及應用實戰
- Mastering Rust
- INSTANT OpenNMS Starter
- 程序是怎樣跑起來的(第3版)
- 量化金融R語言高級教程
- Learning Raspbian
- Go語言精進之路:從新手到高手的編程思想、方法和技巧(1)
- WordPress 4.0 Site Blueprints(Second Edition)
- 51單片機C語言開發教程
- Visual Basic程序設計教程