News for hackers. Stuff that matters.
Re:Java Virtual Threads Ate My Memory: A Web Crawler's Tale ... by andersmurphy on Saturday May 31, 2025 @09:52AM (#44144285)
Good, question. The simple answer is there already is such a construct on the JVM already: the semaphore. People just forget it exists. I wrote an article about it a while back[1].

1. Managing throughput with virtual threads (it's in Clojure, but it's using the underlying Java APIs)

https://andersmurphy.com/2024/05/06/clojure-managing-through...

There are no comments on this comment yet.