Boost logo

Boost :

From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2003-02-06 16:24:17


Dave Abrahams wrote:
[...]
> > 2) You're still hiding the thread creation.
>
> Absolutely. High-level vs. low-level.

Yeah ...

>
> > This is a mistake to me for
> > two reasons. First, it's not as obvious that a thread is being created
> > here (though the new names help a lot).
>
> Unimportant, IMO. Who cares how an async_call is implemented under the
> covers?

... but to me, that "async_call"-thing is nothing but "a future" [one
would also need an "executor" to make some use of it]. I can think of
"a thread" as a sort of "executor" but not the other way around.

http://gee.cs.oswego.edu/dl/concurrent/dist/docs/java/util/concurrent/Future.html
http://gee.cs.oswego.edu/dl/concurrent/dist/docs/java/util/concurrent/Executor.html
http://gee.cs.oswego.edu/dl/concurrency-interest

regards,
alexander.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk