会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
stupidstan2019
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
23
下一页
2023年1月29日
mockcpp helloWorld
摘要: 【参考】 https://www.cnblogs.com/heimianshusheng/p/13530672.html
阅读全文
posted @ 2023-01-29 20:50 stupidstan2019
阅读(65)
评论(0)
推荐(0)
2023年1月17日
TurnSequencer
摘要: 【使用】 TurnSequencer<std::atomic> seq(1); seq.waitForTurn(1);#如果没等到,就hang住 seq.completeTurn(1); #唤醒等待turn=2的线程 【接口】 【等待】 内部函数 【唤醒】 内部函数
阅读全文
posted @ 2023-01-17 23:55 stupidstan2019
阅读(67)
评论(0)
推荐(0)
2023年1月4日
BlockingQueue之LifoSemMPMCQueue
摘要: 【五种阻塞队列】 【先看LifoSem】 last in first out 信号量通知的queue 【调用栈】 ./fbcode_builder_getdeps-ZrootZfollyZbuildZfbcode_builder-root/build/folly/thread_pool_execut
阅读全文
posted @ 2023-01-04 21:54 stupidstan2019
阅读(174)
评论(4)
推荐(0)
伪共享(False Sharing)
摘要: 【参考】 https://zhuanlan.zhihu.com/p/55917869 【cache memory】 cpu和主存间存在三级缓存 L1, L2(单核独享) L3(多核共享) 【L1和L2如何保持一致】 mesi协议定义cacheline四个状态 modified,只缓存在该cpu的缓存
阅读全文
posted @ 2023-01-04 19:45 stupidstan2019
阅读(46)
评论(0)
推荐(0)
2023年1月2日
folly调试
摘要: 【修改代码】 代码:ProducerConsumerQueueTest.cpp 编译二进制:producer_consumer_queue_test 文件路径:/tmp/fbcode_builder_getdeps-ZrootZfollyZbuildZfbcode_builder-root/buil
阅读全文
posted @ 2023-01-02 23:37 stupidstan2019
阅读(54)
评论(3)
推荐(0)
raft的tla+
摘要: 【toolbox】 https://github.com/jinlmsft/raft.tla toolbox openspec Raft_Term_Not_Persisted.tla models界面运行unique_leader https://www.youtube.com/watch?v=6K
阅读全文
posted @ 2023-01-02 22:34 stupidstan2019
阅读(76)
评论(0)
推荐(0)
folly编译
摘要: 【命令】1)下载依赖./build/fbcode_builder/getdeps.py install-system-deps --recursive2)编译python3 ./build/fbcode_builder/getdeps.py --allow-system-packages build
阅读全文
posted @ 2023-01-02 21:57 stupidstan2019
阅读(282)
评论(1)
推荐(0)
2023年1月1日
最新编译方法
摘要: 【遇到的问题】 1)os/signpost.h找不到 删除makefile文件里这段逻辑 2)编译失败 调试之后,发现缺失安装bison 【编译结果】 bash build.sh debug --init --make
阅读全文
posted @ 2023-01-01 15:02 stupidstan2019
阅读(49)
评论(0)
推荐(0)
2022年12月31日
最新安装方法
摘要: 【参考文档】 https://open.oceanbase.com/quickStart bash -c "$(curl -s https://obbusiness-private.oss-cn-shanghai.aliyuncs.com/download-center/opensource/oce
阅读全文
posted @ 2022-12-31 22:54 stupidstan2019
阅读(63)
评论(0)
推荐(0)
2022年12月23日
9) TestProgressLeader(raft_test.go:0-350)
摘要: 【TestProgressLeader】 测试leader的progress.match 1)写5条消息 2)生成ready(模拟本地盘写) 3)advance(ready) leader的match变为6,next=7 【TestProgressResumeByHeartbeatResp】 测试心
阅读全文
posted @ 2022-12-23 23:21 stupidstan2019
阅读(21)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
23
下一页
公告