Advanced ExecutorService tutorial

A friend of mine brought my attention to the fact that many tutorial about Java concurrent programming introduce the Executor Interfaces and its descendants but fails to show its usage in a real-life scenario. This article is my attempt to present the reader with a complex case where the production of the tasks to run, their execution and the consumption of the results constitute a dynamic system. It is assumed the reader is already familiar with Java Thread, RunnableFuture and ExecutorService. Continue reading “Advanced ExecutorService tutorial”