May 2018
Intermediate to advanced
328 pages
8h 15m
English
This problem, and its solution, is similar in most ways to the previous one. What is slightly different is that the function concurrently executing on each thread must return a value that represents the minimum or the maximum element in the subrange. The pprocess() function template, shown as follows, is a higher-level function that implements the requested functionality generically, in the following way:
Read now
Unlock full access