4 ms·
go statement is just another form of explicit process creation, fork/join pattern. What the author suggested is just similar to cobegin/coend -- implicit proces
by glorioustao 8y ago
go statement is just another form of explicit process creation, fork/join pattern. What the author suggested is just similar to cobegin/coend -- implicit process creation.
cobegin/coend are limited to properly nested graphs, however fork/join can express arbitrary functional parallelism (any process flow graph) [1]
Yes, for graceful error handling it needs to form some sort of process tree or ATC(Asynchronous transfer of control), which is implemented in Erlang/OTP and ada programming.
[1] http://www.ics.uci.edu/~dillenco/compsci143a/notes/ch02.pdf http://www.ics.uci.edu/~dillenco/compsci143a/notes/ch02.pdf