Bank Model Concurrency

In this post, we talk about the concurrency model introduced in CMU15-440 P0 Part A project. Reading and Learning the Recitation of Go Concurrency will help you gain comprehensive understanding of Go concurrency pattern. The Go Currency Examples As you can see, Main routine is where the action get executed. Member functions like withdraw, deposit and checkBalance are all just a way to register action to the main routine. After registering the action, Main routine will select one of the action every time, does not care about the order (in random), But will eventually execute all the action....

November 5, 2022 · 2 min · 258 words · Rayguo17