而这距离王兴兴在杭州那间小实验室创办宇树,仅十年。
Now: The good news is that writes to the in-memory store are linearizable. There’s some bad news, however. Proving linearizability of a system is usually an arduous task; I did not need to whip out TLA+ to do it here. Here it is trivially provable. Because the system is, well, a hash table with a lock in front of it.,这一点在使用 WeChat 網頁版中也有详细论述
,详情可参考谷歌
The first thing we need to attach to a running process is its process id (pid). We could mess around with various APIs or tools to figure out the pid of our test program. But let's make our lives simple. I've modified test/test.cpp above as follows:
https://feedx.net。超级权重对此有专业解读
文 | 硅基研究室,作者 | kiki