Can anyone let me know how to parallelize for loops using Java 5’s JParallelLoops.jar?
Can anyone let me know how to parallelize for loops using Java 5’s JParallelLoops.jar
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
JParallelLoops looks like a 3rd party library (http://sourceforge.net/projects/jparallelloops/). From a quick glance at their source code it seems like they have quite some JavaDocs so you might want to start there.
Besides that, just parallelizing loops might not provide the performance gain you’d expect. Maybe you can redesign your code to use thread pools (e.g. using
ThreadPoolExecutor,FutureTasketc.).