Java Built-in Monitor Objects: Synchronization (Parts 1 and 2)

preview_player
Показать описание
This video describes the synchronized method and synchronized statement features of Java built-in monitor objects.
Рекомендации по теме
Комментарии
Автор

Prof Doug,
Since arena is declared as volatile[] . So, individual elements will not follow volatile semantics.
I was just wondering if inside doExchange() method
slot==null check without any synchronization might not be accurate or I am missing something?

Regards,
Sanjeev

SanjeevKumar-hjfb