2 ms·
Reminds me of a funny comment on Stack Overflow: > This continual creation/termination/destruction of threads is done so often that I wonder where the idea cam
by blt 12y ago
Reminds me of a funny comment on Stack Overflow:
> This continual creation/termination/destruction of threads is done so often that I wonder where the idea came from. I presume some poisonous textbook is responsible. Sometimes, it seems that the whole SO is riddled with threads that add two integers and then terminate, just so that the 'main' thread can wait with 'join'. God help us :(
I hope parallelSort() just calls sort() if the array is smaller than some threshold.
- ramblerman 12y agoBut if the array is that small it won't matter. The sort() will be quicker, but it will be a trivial difference.