仙人掌世界
learn - innovate - share
Showing posts with label
STM
.
Show all posts
Showing posts with label
STM
.
Show all posts
Apr 7, 2012
ScalaSTM 試用
STM(
software transactional memory
)是種
concurrency control
機制,相對於用 locking 進行同步化,更安全與簡單,以下使用帳戶轉帳的例子實作比較locking與STM
帳號轉帳案例
多組帳號同時以隨機金額進行轉帳,轉帳過程要保證沒有 race condition 與避免 deadlock
Read more »
Older Posts
Home
Subscribe to:
Posts (Atom)