인프런 커뮤니티 질문&답변
volatile질문
해결된 질문
작성
·
261
1
2분55초에 나오는 bool 변수 ready를 volatile로 둔 이유가 컴파일러의 최적화로 인해 메인함수안의 ready = false 선언 하고 쓰레드 생성 후 ready = true를 무시하고 바로 ready에 true에 넣는것을 막기 위함인걸까요?
퀴즈
What is the main cause of unexpected results that can occur when multiple threads simultaneously access and modify shared data in a multithreading environment?
Deadlock
Thread Local Storage (TLS) conflict
Race Condition
CPU Pipeline Failure





