C++ Actor Model - You’ve Got Mail ...

Download C++ Actor Model - You’ve Got Mail ...

Post on 25-Jun-2015

620 views

Category:

Software

2 download

Embed Size (px)

DESCRIPTION

Can we move beyond threads and locks to manage concurrency? Are there more advanced models than threads and locks? How do other languages manage the concurrency? We see some examples in others languages and a possible solution in C++. Example code: https://github.com/italiancpp/meetup-milano-2014/tree/master/cpp_actor_model

TRANSCRIPT

  • 1. www.italiancpp.org C++ Actor Model Youve Got Mail ...

2. Italian C++ Community Why are we here? 3. Italian C++ Community std::thread/async, isnt it enough? 4. Italian C++ Community std::thread/async, isnt it enough? Example code: double_poll Poll Left Poll Right Thread 1 Thread 2 Acc Increment Add Add 5. Italian C++ Community Concurrency model - Single Thread Node.js - Actor Model Erlang - CSP GO - STM Clojure - etc ... 6. Italian C++ Community Node.js Its simple One thread Asynchronous I/O (event-loop) 7. Italian C++ Community Node.js - Examples var fs = require("fs"); fs.readFile('/etc/passwd', function (err, data) { if (err) throw err; console.log("-> " + data + "

Recommended

View more >