Jul 4, 2024
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.
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.
✍️ I write about Software Development, including Java, Go, Spring, Containers, K8s, AI, Observability, and more ⋈