[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (ARROW-2479) [C++] Have a global thread pool

Antoine Pitrou created ARROW-2479:

             Summary: [C++] Have a global thread pool
                 Key: ARROW-2479
             Project: Apache Arrow
          Issue Type: Wish
          Components: C++
            Reporter: Antoine Pitrou

A few parts of Arrow have started spawning threads to parallelize CPU-bound tasks. They do so by launching a hard-coded number of threads, disregarding machine configuration or the fact that Arrow itself might be used from several threads at once (so hardcoding 8 threads might end up launch N * 8 threads if the user is calling Arrow from N threads at once...).

Instead we probably want a global thread pool policy, with a singleton thread pool for CPU-bound tasks (using, by default, a number of threads equal to the machine's capacity).

See discussion in []

This message was sent by Atlassian JIRA