摘要: X86-64 Reference Sheet I https://www.cs.cmu.edu/afs/cs/academic/class/15213-s20/www/recitations/x86-cheat-sheet.pdf X86-64 Reference Sheet II Register 阅读全文
posted @ 2024-08-18 17:56 william-cheung 阅读(5) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <typeinfo> #include <cxxabi.h> template <typename T> class TypeTraits { public: static std::string Name 阅读全文
posted @ 2024-08-01 22:17 william-cheung 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 1 #pragma once 2 3 #include <string> 4 #include <unordered_map> 5 #include <mutex> 6 #include <random> 7 #include <ctime> 8 9 #ifdef FI_FLAG 10 11 // 阅读全文
posted @ 2024-02-19 15:44 william-cheung 阅读(6) 评论(0) 推荐(0) 编辑
摘要: C++ enum 转 string 阅读全文
posted @ 2023-05-17 23:40 william-cheung 阅读(472) 评论(0) 推荐(0) 编辑
摘要: /* uint16_t xorsum(const char *buf, int len); */ .global xorsum .text xorsum: mov $0xffffffff,%eax mov %esi, %edx shr %edx jz loop_done mov %edx, %ecx 阅读全文
posted @ 2021-03-27 14:01 william-cheung 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 1. SerializableSame results as if transactions executed one-by-one.Even though they may actually execute concurrently.r/w transactions are serializabl 阅读全文
posted @ 2019-08-10 22:24 william-cheung 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Linearizablity at a Single Site Note that: In (1)(2)(3) get()s and inc()s appear to be executed in sequential order (Edited on Mar. 15th, 2020) More p 阅读全文
posted @ 2019-07-22 22:37 william-cheung 阅读(301) 评论(0) 推荐(0) 编辑
摘要: Comparisons between HDFS and GFS 阅读全文
posted @ 2019-04-20 12:05 william-cheung 阅读(358) 评论(0) 推荐(0) 编辑
摘要: Typical Properties of Consensus Algorithms 1. safety: produce correct results under all non-Byzantine conditions include network delays/partitions, pa 阅读全文
posted @ 2019-04-11 22:26 william-cheung 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Zookeeper is a general-purpose coordination service. The ZooKeeper service comprises an ensemble of servers that use replication to achieve high avail 阅读全文
posted @ 2019-03-20 15:00 william-cheung 阅读(262) 评论(0) 推荐(0) 编辑