Comment

Comment by karmakaze

Using "synchronized" by itself and calling anything has the potential thread starvation or deadlocks. Virtual threads only makes it worse.

Kotlin has mutexes that presumably are compatible with coroutines:

  kotlinx.coroutines.sync.Mutex
Until Java sorts this out, it could be its "Rust async" watershed moment.
parent karmakaze 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton