Overview of Java Atomic Operations and Variables

preview_player
Показать описание
This video presents an overview of Java atomic operations and variables, including the volatile type qualifier, the Java Unsafe class, and various Atomic* classes (e.g., AtomicLong).
Рекомендации по теме
Комментарии
Автор

Why do you think that atomic operation implies visibility to other threads?
int a = 20;
a = 15;
In the above case, a = 15 is an atomic operation, but not sure that visible to other threads, or am I missing something?

Kortom
Автор

Prof Doug, Can we also say that thread executing an atomic operation can't be interrupted by the processor and also no context switching happens until that operation is complete?

SanjeevKumar-hjfb
join shbcf.ru