摘要: 第23章 一国收入的衡量 国内生产总值(gross domestic product, GDP):在某一既定时期一个国家内生产的所有最终物品与服务的市场价值 GDP(用Y表示)被分为四个组成部分:消费(Consumption)、投资(Investment)、政府购买(Government purch 阅读全文
posted @ 2024-06-12 01:10 Numerz 阅读(2) 评论(0) 推荐(0) 编辑
摘要: ## Bean创建流程 1. 获取对象的BeanDefinition 2. 通过反射创建空对象 3. 填充属性 4. 调用init方法 ## Bean创建关键方法(按顺序) 1. getBean 2. doGetBean 3. createBean 4. doCreateBean 5. create 阅读全文
posted @ 2023-06-24 23:43 Numerz 阅读(13) 评论(0) 推荐(0) 编辑
摘要: Raft 分布式系统可以容错,在一部分server挂掉的时候仍然正常工作,而难点在于如何处理挂掉的server保存的数据不一致问题 novel features Log 只从 leader 流向 server Leader selection 包含在心跳检测中,使用randomized timer 阅读全文
posted @ 2022-07-27 19:34 Numerz 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 《The Design of a Practical System for Fault-Tolerant Virtual Machines》 FT Protocol primary挂了,backup VM接管后很可能初始状态和primary挂的时候不一样 因为non-deterministic ev 阅读全文
posted @ 2021-09-05 17:17 Numerz 阅读(41) 评论(0) 推荐(0) 编辑
摘要: Google File System Master metadata 文件和chunk的namespace(持久化到log) 文件到chunk的map(持久化到log) chunk副本的位置location master启动、重启时询问所有chunkserver其chunk位置,当一个chunkse 阅读全文
posted @ 2021-09-02 16:55 Numerz 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 贡献 parallelization, fault-tolerance, locality optimization, load balancing 心得 restricting the programming model makes it easy to parallelize and distr 阅读全文
posted @ 2021-09-02 16:49 Numerz 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 记学习RabbitMQ tutorial:RPC时,源码RPCClient.java call方法中阻塞队列的作用 当Client将请求放入Queue中后,Server从Queue中取请求并处理,处理需要一段时间。若不用阻塞队列而用队列,此时Client从response队列中取出值为null,因为 阅读全文
posted @ 2021-06-24 15:40 Numerz 阅读(91) 评论(0) 推荐(0) 编辑
摘要: tensorflow-ranking bugs 1 在metric函数中给全局变量赋值 报错: TypeError: An op outside of the function building code is being passed a "Graph" tensor. It is possibl 阅读全文
posted @ 2020-12-09 20:35 Numerz 阅读(552) 评论(0) 推荐(0) 编辑
摘要: 疑惑:JDK作泛型比较时为什么不用一个compare函数把比较封装起来,而是把逻辑代码写两遍(Comparable 和 Comparator)? 在 PriorityQueue 和 TreeMap 中都如此 TreeMap put源码 /** * Associates the specified v 阅读全文
posted @ 2020-11-10 18:23 Numerz 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 资料: Generic array creation error https://www.ibm.com/developerworks/java/library/j-jtp01255/index.html java中,Integer[] 也是一个 Number[],因为 Integer 的父类是 N 阅读全文
posted @ 2020-11-02 19:33 Numerz 阅读(119) 评论(0) 推荐(0) 编辑