News for hackers. Stuff that matters.
Re:Go's Concurrency Examples in Java 19 by Skinney on Saturday May 07, 2022 @02:15PM (#31297054)
most of our thread pools are long lived, so we don't ever shut them down. When the pool is not long lived, we have a try-with-resources wrapper which handles the shutdown.

Most of the time, we do calls to .execute and then join the different threads at the end. The code running within the threads represent the majority of our code, so the boilerplate you're talking about might 10 out of 2000 lines.

Our only problem is the number of threads we can spawn safely, and that limit is removed with loom.

There are no comments on this comment yet.