Re:Ryzen is for Programmers
by wrcwill on Tuesday May 02, 2017 @11:55AM
(#14247435)
As someone with only a basic understanding of threads, what is a better idea than fork/joins for scaling? Are you talking about thread pools or something else?
[ Parent
| on HN ]
Re:Ryzen is for Programmers
by marcosdumay on Tuesday May 02, 2017 @01:11PM
(#14248266)
Yes for thread pools instead of forking (could be process pools too). But that's only scratching the surface. It's how you communicate with those threads and allocate their work that makes the difference.
Re:Ryzen is for Programmers
by CyberDildonics on Tuesday May 02, 2017 @03:57PM
(#14249995)
I think the quick and dirty answer is yes, although I doubt I would structure things the same way as a normal thread pool.
If you think about the heart of the problem, it is really synchronization, and that only needs to happen in certain places in programs. Anything you can break up into pieces that can be transformed independently can be leveraged for concurrency, which also implies that independent stages in a pipeline can be concurrent as well.