跳至主要內容
BL
Archive · Issue Page 4

Digital Garden Archive — Page 4

Browsing all 89 published essays and technical monographs

Thread 和 Coroutine 的理解
ESSAY · #667 ~4 min read

Thread 和 Coroutine 的理解

參考文章 簡單來說,Thread (執行緒) 是由作業系統 (OS) 來管理和調度的,而 Coroutine (協程) 的控制權則在我們開發者手上,由程式語言的執行環境 (Runtime) 在使用者層級進行調度。這個根本性的不同,…

Read Essay →