diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-10-29 21:23:56 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-10-29 21:23:56 -0700 |
commit | 8bafc90dfda6cd170343ad1d7351d418f38189ae (patch) | |
tree | 97c8fe5b5ebe9b7b40ca063dba4e3c9d6231e924 /html/075channel.mu.html | |
parent | ef69c56c82e85e83014605f501110697d81bcdc1 (diff) | |
download | mu-8bafc90dfda6cd170343ad1d7351d418f38189ae.tar.gz |
3609
Diffstat (limited to 'html/075channel.mu.html')
-rw-r--r-- | html/075channel.mu.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/html/075channel.mu.html b/html/075channel.mu.html index 42e8fda8..7b9ade33 100644 --- a/html/075channel.mu.html +++ b/html/075channel.mu.html @@ -45,6 +45,10 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color <span class="Comment"># b) Writing to a channel implicitly performs a deep copy. This prevents</span> <span class="Comment"># addresses from being shared between routines, and therefore eliminates all</span> <span class="Comment"># possibility of race conditions.</span> +<span class="Comment">#</span> +<span class="Comment"># There's still a narrow window for race conditions: the ingredients passed in</span> +<span class="Comment"># to 'start-running'. Pass only channels into routines and you should be fine.</span> +<span class="Comment"># Any other mutable ingredients will require locks.</span> <span class="muScenario">scenario</span> channel [ run [ |