--

You can clone the code from GitHub and play with it. But in this case, since only one thread (main) waits on the lock, yes, the notify() will be enough.

--

--

Saeed Zarinfam
Saeed Zarinfam

Written by Saeed Zarinfam

✍️ I write about Software Development, including Java, Go, Spring, Containers, K8s, AI, Observability, and more ⋈

No responses yet