Coroutines and Java Synchronization Don’t Mix

Suppose you’ve got a critical section of code, meaning only one process should execute it at a time. In the Java world, one solution is to slap synchronized on the method and call it a day. In Kotlin, we use @Synchronized to get the same effect: repeat(… Read more

Similar

Java vs. JavaScript: Battle of Concurrency

Java vs Javascript: Battle of Concurrency Almost a decade back, it was shocking when Walmart announced it’s ditching their old Java based systems and re-writing everything in Javascript, as they need to handle more than 20,000 requests per second on thei... (more…)

Read more »