This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Multithread this code" Watch "Multithread this code" New topic
Author

Multithread this code

David Balažic
Ranch Hand

Joined: May 15, 2008
Posts: 86
http://shootout.alioth.debian.org/u32q/benchmark.php?test=binarytrees&lang=javaxint&box=1

Hi!

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)

Regards,
David
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multithread this code