[PATCH][gdbsupport] Use task size in parallel_for_each
Tom Tromey
tom@tromey.com
Sat Jul 23 03:17:06 GMT 2022
Simon> Just a nit, if we are talking about a centralized work pool that threads
Simon> pick from to get their next work item, that's not really work stealing.
Simon> Work stealing is when threads all have their own work queue, and threads
Simon> with empty queues go steal some work from other threads' queues.
Thanks, that's a clear explanation.
Simon> Given our work items are fairly large, I'm guessing that having one
Simon> centralized queue is fine. Well, benchmarks will tell if that is faster
Simon> than Tom de Vries' balancing approach.
Yeah. Also I didn't see a straightforward way to implement work
stealing.
Tom
More information about the Gdb-patches
mailing list