I am trying to code a problem in Java where I have to execute a bunch of tasks.
Problem
Execute a job which consists of multiple tasks and thos
Take a look at akka - http://akka.io
using akka you create actors (event driven, concurrent entities that process messages asynchronously)
each task can be represented as an actor (you choose when to fire it up)
you can trigger other actors (tasks) on partial complete or full complete (actually you can trigger them whenever you want)