I'm looking at testing out of a class for next semester, and one of the topics the class covers that I'm not too familiar with is multithreaded programming in Java. To practice for this, I tried to do the final project for the semester of Spring 2010, but for some reason my version(s) runs twice as slow as the standard single threaded iterative example, and I can't figure out why (~5600ms vs 114000ms on a dual core system. It gets slower with 4 threads on quad core). The reference/base code is available http://web.ics.purdue.edu/~cs180/Spring2010Web/, and if anyone is able to help, I can upload my current version somewhere. I've tried a couple different ways to divide the workload, so my current revision is a bit messy...
TL;DR: I have a functioning multithreaded program but can't figure out why it's running so slow.
TL;DR: I have a functioning multithreaded program but can't figure out why it's running so slow.