The Java ExecutorService Interface (Part 3)

preview_player
Показать описание
This lesson analyzes the design and implementation of a PrimeChecker app that uses the Java ExecutorService.
Рекомендации по теме
Комментарии
Автор

PrimeResult seems to be accessed by different threads but its implementation is not Immutable. It seems to be effectively immutable.I was thinking that since PrimeResult is effectively immutable, its as published state would be visible to other threads or is it due to some other visibility rule that anything returned from future.get() is completely visible to the caller. Prof Doug, please clarify.

SanjeevKumar-hjfb
visit shbcf.ru