After a two-week break, attending the Intel Developers Forum and StrangeLoop, I finally had the time to record the fourth tutorial in the series. This time I’m showing how futures and promises work together to enable the passing of results back from threads. I also show how this process of calling a function asynchronously can be simplified using async
. Next time I’ll talk more about async tasks and parallelism.
Follow @BartoszMilewski
(You can also follow me on Google+, if you search for Bartosz Milewski.)
Tutorial
September 26, 2011
C++11 Concurrency Tutorial: Part 4
Posted by Bartosz Milewski under C++, Concurrency, Multicore, Multithreading, Parallelism, Programming, Tutorial[10] Comments
September 12, 2011
C++11 Concurrency Tutorial: 3. Sharing
Posted by Bartosz Milewski under C++, Concurrency, Multithreading, Programming, Tutorial[5] Comments
The third installment of the tutorial is now online. I’m talking about shared memory concurrency and races, but with a tiny dollop of theory on top. It’s all illustrated with simple examples. Enjoy!
Follow @BartoszMilewski
September 6, 2011
C++11 Concurrency Tutorial: Part 2
Posted by Bartosz Milewski under C++, Concurrency, Multithreading, Programming, Tutorial[2] Comments
The second installment of the tutorial is now online. I’m talking about passing arguments to threads and about move semantics, including the new rvalue references. Enjoy!
Follow @BartoszMilewski
August 29, 2011
C++11 Concurrency Tutorial
Posted by Bartosz Milewski under C++, Concurrency, Multithreading, Parallelism, Programming, Tutorial[17] Comments
I’m starting a series of hands on tutorials on concurrent programming using C++11. This first installment jumps right into “Hello Thread!” and the discussion of fork/join parallelism. I also sneaked in some lambdas and even one closure. Enjoy!
Follow @BartoszMilewski