Condition variable related code is hard to understand. So let me explain
There are a few strange things about Condition related code in Java concurrency. I’ll use the following code to show you. The code is about one cup and two threads. One thread is trying to fill it, the other to drink from it. The code uses explicit Lock + Condition API. But what I’m going …
Condition variable related code is hard to understand. So let me explain Read More »