I'm trying to use threads in java in order to convert a List of images into pdf.
I'm actually using a loop to convert execute my convertImage method, but the execution time is too long.
    for (File imageFile : images) {     
            logger.debug("addImageAndText "+imageFile.getAbsolutePath());
            convertImage(document, writer, imageFile);
        }
What is the best way to replace my loop with threads and is there a way make sure that threads execution order is the same of the For loop.
I'm pretty new to using threads in java, I would appreciate links to documentation.
