4 ms·
Another important difference from the actor model is that the library uses a future interface with blocking wait to get the results. With actors there is no wai
by _0w8t 4y ago
Another important difference from the actor model is that the library uses a future interface with blocking wait to get the results. With actors there is no wait as the results are posted to the message queue of the caller.
But waiting makes the usage more similar to sequential computing code. When there is an opportunity the code starts several jobs to work on presumably independent data sets, then waits for their results in a shared memory and then process them sequentially until there is another opportunity for parallel computation.