3 ms·
" Basically there are two models of concurrency: Shared state concurrency Message passing concurrency " Wouldn't the node.js style callbacks be a th
by aneth 16y ago
" Basically there are two models of concurrency:
Shared state concurrency
Message passing concurrency
"
Wouldn't the node.js style callbacks be a third type of concurrency? It's similar to message passing, but quite different from the user's perspective.
- oomkiller 16y agoHe did qualify that statement with "basically" and if you think about it, a "callback" function really is just sending a message.
- aneth 16y agoYes, however at the implementation level, message based concurrency is shared memory concurrency (as I understand anyway.) Callbacks seem to me an entirely a different abstraction.