January 2019
Intermediate to advanced
384 pages
11h 50m
English
As we already know the best method for reducing synchronization costs is not needing any synchronization at all. This can be easily achieved by not sharing any data between threads. Simple? But, is it also realistic? In a real program we have dependencies between its parts, so we have to share some data in any case!
We can solve that conundrum using a method we already introduced—duplicating resources. This means all the data which one thread needs from another will be simply copied and then given to that thread. In that manner, both threads won't share any data, and won't need to use locks!
The share nothing principle is borrowed from the Erlang programming language and ecosystem, which in turn implements ...
Read now
Unlock full access