Java ConditionObjects (Part 1 - 3)

preview_player
Показать описание
This video presents an overview of Java ConditionObjects, focusing on the concept of a condition variable and then discussing how Java ConditionObjects implement condition variables.
Рекомендации по теме
Комментарии
Автор

Prof Doug, Why is the ConditionObject always used with a lock?
I understand this is needed if the condition statement uses shared state, but there could be cases where the condition statement does not use shared state, In that case lock is really not required.

There could be a thread that could update some shared data based on some timestamp(Time/Date) which is not a shared variable. If the timestamp has the expected value, it goes and update shared state, otherwise it would just wait.
Regards,
Sanjeev

SanjeevKumar-hjfb
Автор

Java ConditionObject Parts 1-3 pdf slides seems broken

americannumber