File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Performance and the fly likes Multithread this code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Multithread this code" Watch "Multithread this code" New topic

Multithread this code

David BalaĹžic
Ranch Hand

Joined: May 15, 2008
Posts: 86


I tried to optimize this code by utilizing multiple threads, but the result (on a Core 2 Duo, two cores) is not satisfying.

Can anyone do a better job?

(I'll post my attempt later)

Can the memory allocation be optimized somehow? (that is what they do in C and C++ versions of this program, besides really simple and effective multithreading with OpenMP)

subject: Multithread this code
Similar Threads
How find out how many dimensions an objectArray has?
import in Windows environment
Hello C# - Nice knowin' ya, Java
can i use any jvm supported language in java?