Dear All I wonder how to implament merge sort using threads, i know that i will split the array till i have array of one element then start merging but i do not know how to write this in threads ..or how to ask the thread to return the sorted array.. anyhelp?? Maha
posted 9 years ago
Start with the excellent Thread Tutorial from Sun to get the basics. You probably want something like:
Things to find in the tutorial ...
What does Thread.start() do? What does Thread.join() do? How do Runnable and Thread go together?
Does that answer the right question? Let us know how it goes!
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi