You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
11장 동시성
동시성 프로그래밍이란?
자바에서는
Thread
클래스를 이용해 이러한 동시성을 지원하고 있다.프로세스(process)란?
스레드(thread)란?
[Java] 멀티 스레드 (Multi Thread)
[Thread] 동시성 프로그래밍
동시성 프로그래밍 1편 — Thread
아이템 소개
동기화란?
동기화의 중요한 2가지 기능
📚 자바 언어에서 long 과 double 외의 변수를 읽고 쓰는 동작이 원자적(atomic)이다.
long 과 double 은 Non-atomic ?
“앗! 그럼 성능을 높이기 위해 원자적 데이터를 읽고 쓸 때는 동기화하지 말아야겠다.”
No! ❌
1. synchronized
2. volatile
그 외 2개 이상의 스레드가 동시에 쓰기 작업을 막을 수 없기 때문에 배타적 실행은 지원하지 않는다.
3. Atomic class (java.util.concurrent.atomic)
핵심요약
References
JLS
double
andlong
Processes and Threads (The Java™ Tutorials >
Essential Java Classes > Concurrency)
자바의 동시성 프로그래밍, 가변 데이터를 동기화하는 3가지 방법(+a. 자바 기본 타입의 원자성에 대하여)
자바의 동시적 프로그래밍
멀티쓰레드 프로그래밍이 왜이리 힘드나요?
https://kukim.tistory.com/m/71
long 및 double 작성은 Java 에서 원자적이지 않습니까?
Java - AtomicInteger 사용 방법
Beta Was this translation helpful? Give feedback.
All reactions