Example, two threads (Informer and Watcher) use same List. Informer add data in List and Watcher can't read collection if collection is empty or if Informer access the List. What will happen if Informer call function Condition.signal() but Watcher is not created or not started (Watcher not call Condition.await() ) ?
Yes, it's possible to call signal
even there is no waiting thread. The waiting thread will miss this signal, and it will get blocked when it does call await()
.