concurrency

Goroutine 與 Golang Runtime Scheduler

category: random     16 minute read     Posted on:

Process, Thread and Coroutine Process Process 是跑起來的 Program, 它擁有自己的 memory space, system resources 以及 system state 在系統開機之初,init process(pid 1) 被建立之後,就可以透過 fo...

關於 Python 你該知道的那些事 - GIL(Global Interpreter Lock)

category: random     10 minute read     Posted on:

Preface 我一開始用 Python 開發多執行緒的程式的時候 學長姐都告誡我說不要使用 threading 而是要使用 multiprocessing 這個 library 因為後者才是 真正的 threading