Experts -
I need advice in the following scenario.
I have a configuration file with a list of tasks. Each task can have zero, one or more dependencies. I wanted to complete these tasks in parallel [right now they are being done sequentially]
The idea is to have a main program for reading the configuration file and loading all tasks. Read the individual tasks and pass them on to the executor [the called person], who will complete the task and return the results to the Future. When a task is sent to the executor (thread), it will track that its dependencies end first and perform its own task.
Is this the right approach? Are there any other more efficient approaches using java 1.5 features?
java multithreading concurrency
jagamot
source share