Saeed Zarinfam
Jul 24, 2024

--

We don't need to call `barrier. reset()` if you recheck the last implementation, you can see the `Thread.currentThread().interrupt();` call that acts as a signal for CyclicBarrier and the main thread for fail-safe.

--

--

Saeed Zarinfam
Saeed Zarinfam

Written by Saeed Zarinfam

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

Responses (1)