![]() ![]() Thread synchronization points are both difficult to get right and a source of scaling problems. This arises when multiple threads need to edit the same data structure (it's very important that they don't both try to mess with the same thing at the same time), when one thread needs an interim result from another, and so forth. The harder problem is accelerating algorithms which have dependencies between threads. One is called "embarrassingly parallel", and the other is basically everything else.Įmbarrassingly parallel problems are those where the workload can easily be split up between an arbitrary number of cores, and there are no dependencies between the worker threads running on each core. When trying to use multiple cores, there's two important patterns in software. ![]() Click to expand.Only for a very narrow subset of what "multiprocessing" covers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |