hey can any one help me in writing the code :
Write a Java program that sorts given integers using threads
I am not able to proceed ..What should i have in main function()
hey can any one help me in writing the code :
Write a Java program that sorts given integers using threads
I am not able to proceed ..What should i have in main function()
Jump to PostYou should have very little code at all in main() - the majority of it should be in separate classes and methods.
You should have very little code at all in main() - the majority of it should be in separate classes and methods.
I assume that "by threads", the assignment means sorting with several threads in parallel. So you need to:
- know how to program with threads in Java
- pick an algorithm that can be parallelised. This essentially means one that uses a "divide and conquer" strategy to work on different parts of the list and then amalgamate the results. Take a look at the Quicksort algorithm, for example.
neilcoffey thank you, i have same thougth, will answer by results
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.
You're trying to visit a URL that doesn't currently exist on the web. Most likely, a member posted a link a long time ago to a web page that has since been removed. It's also possible that there was a typo when posting the URL. We redirect you to this notice instead of stripping out the link to preserve the integrity of the post.