Answer the question
In order to leave comments, you need to log in
How to implement array sorting in different threads?
Hello. There is a task in the university:
Implement array sorting (one-dimensional, two-dimensional and three-dimensional) in one thread, and then in two threads and compare the execution time. I'm still a beginner and would like to ask you for help!
Thank you!
Answer the question
In order to leave comments, you need to log in
Divide the array into halves, sort the halves in different threads, wait for both sorts to complete, and merge the two sorted halves.
It would be better for you at the university to learn how to use the search.
Googled it on the first try:
https://habr.com/en/post/495002/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question