Sitemap
SoftwareMill Tech Blog

Custom software development: Scala, Akka, Kafka, ML consulting. Distributed systems & backends, APIs. Tech partner to execute your idea! ➡️ www.softwaremill.com

Member-only story

Threads, ThreadPools and Executors — Multi Thread Processing In Java

15 min readFeb 5, 2024

--

Concurrency is one of the most complex problems we (developers) can face in our daily work. Additionally, it is also one of the most common problems that we may face while solving our day-to-day issues. The combination of both these factors is what truly makes concurrency and multithreading the most dangerous issues software engineers may encounter.

Press enter or click to view image in full size

What is more, solving concurrency problems with low-level abstractions can be quite a cognitive challenge and lead to complex, nondeterministic errors. That is why most languages introduce higher-level abstractions that allow us to solve concurrency-related problems with relative ease and not spend time tweaking low-level switches.

In this article, I would like to dive deeper into such abstractions provided by the Java standard library, namely the ExecutorService interface and its implementations. I also want this article to be an entry point for my next article about Benchmarking Java streams.

--

--

Bartłomiej Żyliński
Bartłomiej Żyliński

Written by Bartłomiej Żyliński

💻 Senior Software Engineer @Box ✍️ Blogger @PaskSoftware 🌐 Distributed Systems 🧠 System Design 🛠 Advocate for Simple and Robust Systems 🤝 Let's Connect

SoftwareMill Tech Blog
SoftwareMill Tech Blog

Published in SoftwareMill Tech Blog

Custom software development: Scala, Akka, Kafka, ML consulting. Distributed systems & backends, APIs. Tech partner to execute your idea! ➡️ www.softwaremill.com