I am attempting to understand how to handle many instances of the ExecutorService executing Runnable commands.  With regards to the code provided, how many shutdowns are required if I execute a hundred Runnables with the fixed thread pool set to one?   I think the code should execute a hundred futures sequentially in the for loop execution order with a single thread (never spawns more than a single thread), and requires a single ExecutorService shutdown.  Is this correct?  Also, it's ok to call shutdown right after the for loop completes because all hundred of the futures are in queue so that the executorService shutdown will occur automatically after all hundred futures complete.  Just looking for some clarification, thanks.

public static void main(String[] args)
{
    private static ExecutorService executorService = Executors.newFixedThreadPool(1);

    for (int i = 0; i &lt; 100; i++)
    {
        executorService.execute(new Runnable() {
            @Override
            public void run()
            {
                // do stuff
            }
        });
    }

    executorService.shutdown();
}   



Question: How to show breadcrumbs for taxonomy terms in Drupal 7
Answer: Use Taxonomy Menu Trails module. its better than 'Taxonomy breadcrumb'.