Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multithread this code

 
David BalaĹžic
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic