2024-06-18 18:52:27 +08:00

10 lines
588 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 執行緒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)