# One trick to get to background-only threads

**URL:** <https://discourse.julialang.org/t/one-trick-to-get-to-background-only-threads/33175>\
**Category:** General Usage\
**Tags:** multithreading\
**Created:** [January 10, 2020, 12:00am UTC](https://discourse.julialang.org/t/one-trick-to-get-to-background-only-threads/33175 "2020-01-10T00:00:15Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [August 21, 2020, 3:22am UTC](https://discourse.julialang.org/t/one-trick-to-get-to-background-only-threads/33175/4 "2020-08-21T03:22:19Z")

</div>

Thanks. I found it and I have been using it to do something silly

> [@Faster sorting of DataFrames.jl via background ordering](https://discourse.julialang.org/t/faster-sorting-of-dataframes-jl-via-background-ordering/45084):
>
> I have had this idea for a long time, now I finally gave it a go and the results are amazing. So here’s the idea. Here sorting a large dataframe the algorithm roughly goes like this Perform a sortperm on the columns to sort by. This returns an idx of indices. Consider colX which his not a sort by column then colX[idx] would give order the colX in the right order. Repeat number 2 for all columns. There are room for improvement for 1 and 2 but 3 is low-hanging fruit. Once the dataframe is sor…

---

_[View the full topic](https://discourse.julialang.org/t/one-trick-to-get-to-background-only-threads/33175)._
