mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-28 23:09:18 +00:00
10 lines
588 B
Markdown
10 lines
588 B
Markdown
# 執行緒(Threads)
|
||
|
||
在大多數現代作業系統中,執行程式的代碼在一個進程中運行,作業系統同時管理多個進程。在您的程式中,您還可以有同時運行的獨立部分。這些獨立運行部分的功能稱為執行緒。
|
||
|
||
## 進一步了解
|
||
|
||
- [哲學家就餐問題示例](https://doc.rust-lang.org/1.4.0/book/dining-philosophers.html)
|
||
- [使用執行緒同時運行代碼](https://doc.rust-lang.org/book/ch16-01-threads.html)
|
||
- [使用訊息傳遞在執行緒之間傳輸資料](https://doc.rust-lang.org/book/ch16-02-message-passing.html)
|