A simple parallel sort as a demonstration of how easy (and fast) this is in C++
|9fd31491d7ad||2018-12-16 16:32:04||Eric Hopper||tip It's GPLv3.|
|a1bbbd5ea63c||2018-12-16 16:23:53||Eric Hopper||Add a README|
|ed8c28789540||2018-12-16 15:54:51||Eric Hopper||Switched to using raw arrays instead of vectors. <obj si...|
|e36b2c2fcb58||2018-12-13 03:20:17||Eric Hopper||Initial versions of a C sort vs. a C++ sort.|
|tip||9fd31491d7ad||2018-12-16 16:32:04||Eric Hopper|
This is just me playing around with a simple parallelization for sorting a large array of integers.
I'm mostly please with how I used a queue to end the whole thing with a set of maximally parallel merges.
I also wrote a non-parallel version in C. C doesn't have widely available portable threading.