volatile 이란?
JVM 메모리 모델과 하드웨어 메모리 모델간의 관계https://takeaction.github.io/Java-Memory-Model/https://software.rajivprab.com/2018/04/29/myths-programmers-believe-about-cpu-caches/https://beatmejy.tistory.com/15https://chunsubyeong.tistory.com/73속도 기준으로 L1>L2>L3로 L1이가장 빠르다.일반적으로 L1, L2, L3 캐시는 CPU 내부에 위치하지만 L2 부터는 외부에 위치할 수도 있다.L1 캐시 (Level 1 Cache):L1 캐시는 CPU 코어 내부에 위치하며, 매우 빠른 액세스 시간을 가진다명령 캐시와 데이터 캐시로 나뉜다.L2 캐시 ..