felipecrv commented on issue #40301:
URL: https://github.com/apache/arrow/issues/40301#issuecomment-2048302870
> tasks are not submitted to a specific thread, they are appended to a
shared queue which all existing worker pop from.
Seem fare to assume that a very eager loop like
```
for (int i = 0; i < num_tasks; ++i) {
ARROW_ASSIGN_OR_RAISE(futures[i], executor->Submit(func, i));
}
```
will reach capacity threads very quickly unless completing a task takes less
time than the cost of making `capacity` iterations of this loop.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]