Sunday, February 13, 2022

[Linux Kernel] Mutex Semaphore

Mutex Semaphore 2 個不同情境

Semaphore 在意共享資源數量控管 (不限制哪個thread)

Mutex 持有者 (thread) 控管

Lets take an example code to study synchronization problems

Mutex

Semaphore 


No comments:

Post a Comment

n8n index

 【n8n免費本地端部署】Windows版|程式安裝x指令大補帖  【一鍵安裝 n8n】圖文教學,獲得無限額度自動化工具&限時免費升級企業版功能