- 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.
推薦閱讀
- Mastering Ext JS(Second Edition)
- 從零開始構建企業級RAG系統
- UI圖標創意設計
- GAE編程指南
- C++程序設計(第3版)
- Vue.js前端開發基礎與項目實戰
- 體驗設計原理:行為、情感和細節
- Learning ArcGIS Pro
- 鋒利的SQL(第2版)
- Learn React with TypeScript 3
- RESTful Java Web Services(Second Edition)
- Android驅動開發權威指南
- 智能搜索和推薦系統:原理、算法與應用
- 持續集成與持續交付實戰:用Jenkins、Travis CI和CircleCI構建和發布大規模高質量軟件
- Instant Debian:Build a Web Server