Chapter 4. Dividing C++ Programs into Multiple Threads

 

“As our computer systems become more complicated, this kind of abstraction gives us hope of being able to continue to manage them.”

 
 --Andrew Koening and Barbara Moo, Ruminations on C++

The work of a sequential program can be divided between routines within a program. Each routine is assigned a specific task, and the tasks are executed one after another. The second task cannot start until the first task finishes, ...

Get Parallel and Distributed Programming Using C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.