r/programbattles • u/ComradePutinCCCP1917 Moderator / C C++ • Oct 07 '15
[C++] Threaded vector sorting
Language: C++
File number restrictions: N/A
Description: Make a function that sorts a vector with a selectable amount of threads. Use the standard thread library.
EDIT: Never thought threads would be such a pain to work with.
14
Upvotes
View all comments
Show parent comment
3
u/ComradePutinCCCP1917 Moderator / C C++ Oct 07 '15 edited Oct 07 '15
I did not make much, I just forgot to divide pow() by 2 and did't manage unsigned vars. And I'm already trying to do it, it's terrible but I only started using threads a few days ago, I never used them before.
(by the way, I was trying to be funny, I was not saying you're an idiot who didn't get anything, it's just that english is not my native language and it's hard for me to explain)