- 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.
推薦閱讀
- OpenCV 3和Qt5計算機視覺應用開發
- Unity Virtual Reality Projects
- Scratch真好玩:教小孩學編程
- Cocos2d-x學習筆記:完全掌握Lua API與游戲項目開發 (未來書庫)
- Java程序設計
- Learning OpenStack Networking(Neutron)
- MongoDB,Express,Angular,and Node.js Fundamentals
- Kotlin開發教程(全2冊)
- Programming with CodeIgniterMVC
- 零基礎學C語言第2版
- Django 3.0應用開發詳解
- Java并發編程:核心方法與框架
- 深入解析Java編譯器:源碼剖析與實例詳解
- Mastering jQuery Mobile
- OpenCV 3.0 Computer Vision with Java