summaryrefslogtreecommitdiff
path: root/exercises/20_threads/README.md
diff options
context:
space:
mode:
authorYunShu <im@yunshu.site>2024-04-08 22:07:26 +0800
committerGitHub <noreply@github.com>2024-04-08 22:07:26 +0800
commitf7145343937acfd9039ee7f4f562731a44bdf33a (patch)
tree62c121fd9f1924fff83a0082753ce824de3d58b4 /exercises/20_threads/README.md
parent459c52137ac7b8aa8500a46f04b0e848ba48a969 (diff)
docs: add more info in threads
info.toml: ```toml [[exercises]] name = "threads3" path = "exercises/threads/threads3.rs" mode = "test" hint = """ An alternate way to handle concurrency between threads is to use a mpsc (multiple producer, single consumer) channel to communicate. With both a sending end and a receiving end, it's possible to send values in one thread and receive them in another. Multiple producers are possible by using clone() to create a duplicate of the original sending end. See https://doc.rust-lang.org/book/ch16-02-message-passing.html for more info. """ ``` threads3'hint contains this link, so it should be placed in Further Information
Diffstat (limited to 'exercises/20_threads/README.md')
-rw-r--r--exercises/20_threads/README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/exercises/20_threads/README.md b/exercises/20_threads/README.md
index dbe6664..0b32fb1 100644
--- a/exercises/20_threads/README.md
+++ b/exercises/20_threads/README.md
@@ -7,3 +7,4 @@ Within your program, you can also have independent parts that run simultaneously
- [Dining Philosophers example](https://doc.rust-lang.org/1.4.0/book/dining-philosophers.html)
- [Using Threads to Run Code Simultaneously](https://doc.rust-lang.org/book/ch16-01-threads.html)
+- [Using Message Passing to Transfer Data Between Threads](https://doc.rust-lang.org/book/ch16-02-message-passing.html)