*
The moose likes Threads and Synchronization and the fly likes Parallel running quicksort Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Parallel running quicksort" Watch "Parallel running quicksort" New topic
Author

Parallel running quicksort

Armand van der Walt
Greenhorn

Joined: Aug 04, 2010
Posts: 5
Hi

I'm still very new to multithreaded programming. I want to have my quicksort to run parallel I have most of it working but when I run it, the result is not really as expected. It basically sorts perfect but result would end up being something like 0,0,0,1,2,3,4,5,5,6,2,2,3,3,4,5,6,6,8,9,9. Im comparing the results between sequential and parallel.

Thank you

This is my code:
The Quicksort class
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

UseCodeTags when you post code. Use EDIT option and put code fragments.

And Welcome to JavaRanch!


|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Armand van der Walt
Greenhorn

Joined: Aug 04, 2010
Posts: 5
Abimaran Kugathasan wrote:UseCodeTags when you post code.


Hi.

Thanks for the welcome. And I fixed it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Parallel running quicksort
 
Similar Threads
Exception in thread
Why is there this weird timing difference
Debugging problem
QuickSort Question
Comparing values