D
D
DanceMonkeyTime2020-05-30 13:38:39
Python
DanceMonkeyTime, 2020-05-30 13:38:39

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

2 answer(s)
D
Denis Zagaevsky, 2020-05-30
@zagayevskiy

Divide the array into halves, sort the halves in different threads, wait for both sorts to complete, and merge the two sorted halves.

D
Dmitry Roo, 2020-05-30
@xez

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 question

Ask a Question

731 491 924 answers to any question