hwloc 提供一组命令行工具和 C 语言的开发包,用来获取系统中层次化的关键计算元素,例如 NUMA 内存节点、共享缓存、处理器套接字、处理器核心以及处理器线程等等。
cache A CPU cache is a hardware used by the central processing unit (CPU) of a computer to reduce the average cost (time or energy) to access data from the main memory. Most CPUs have a hierarchy of m
Well written computer programs tend to exhibit good locality. That is, they tend to reference data items that are near other recently referenced data items, or that were recently referenced themselves
原码(sign magnitude) 反码(one’s complement) 补码(two’s complement) **原码:**只有最前面一位表示符号位 这种是机器数编码方式中的一种。而其他的几种方法就是反码和补码。 计算法则:两数符号相同: 低位相加,最高位的符号位不变(当低位相加产生进位时,溢出 Overflow) 两数符号不同: 比较绝对值的大小,差的绝对值 = 大数 - 小数 ,符