现代CPU为了提升性能都会有自己的缓存结构,而多核CPU为了同时正常工作,引入了MESI,作为CPU缓存之间同步的协议。MESI虽然很好,但是不当的时候用也可能导致性能的退化。 到底怎么回事呢?一起来看看吧。 false-sharing的由来 为了提升处理速度,CPU引入了缓存的概念,我们先看一张C ...
分类:
其他好文 时间:
2020-07-23 16:11:03
阅读次数:
80
https://www.jisuanke.com/contest/11360/challenges 其他题慢慢补 C. Pawn‘s Revenge You are playing a special chess game against a professor and you've almost ...
分类:
其他好文 时间:
2020-07-21 09:39:48
阅读次数:
95
原文链接:https://www.cnblogs.com/edisonchou/p/lesson_study_from_sun_xuan_sharing.html 1 孙玄的职业成长路线 玄姐2010年毕业于浙江大学,随即进入百度成为一名研发工程师。一年之后经过慎重思考,他离开百度,加入58集团。 ...
分类:
其他好文 时间:
2020-07-18 22:22:50
阅读次数:
87
N children are playing Rochambeau (scissors-rock-cloth) game with you. One of them is the judge. The rest children are divided into three groups (it i ...
分类:
其他好文 时间:
2020-07-18 00:42:12
阅读次数:
76
1.nginx跨域相关的配置: CORS是一个W3C标准,全称是"跨域资源共享"(Cross-origin resource sharing)。 CORS需要浏览器和服务器同时支持。目前,所有浏览器都支持该功能,IE浏览器不能低于IE10。 整个CORS通信过程,都是浏览器自动完成,不需要用户参与。 ...
分类:
其他好文 时间:
2020-07-17 14:15:40
阅读次数:
93
idea 将项目托管到 Git 报错:Can't finish Gitee sharing process https://www.cnblogs.com/Nahshon/p/12800361.html can't finish gitee sharing finish 使用git config - ...
分类:
其他好文 时间:
2020-07-16 12:00:31
阅读次数:
72
UVA12293 Box Game 题意 两人玩游戏,有两个盒子,开始时第一个盒子装了n个球, 第二个盒子装了一个球。每次操作都将刷量少的盒子的球倒掉,然后再从数量多的盒子中拿出若干个球放到空盒子里,最终状态为(1,1),达到这个状态的玩家获胜。 题解 显然原问题等价于有n个石子,每次至少拿一个,至 ...
分类:
其他好文 时间:
2020-07-15 12:56:03
阅读次数:
47
题目描述: 方法:动态规划 class Solution: def winnerSquareGame(self, n: int) -> bool: dp = [False, True, False] for x in range(3, n+1): dp.append(False) for y in ...
分类:
其他好文 时间:
2020-07-14 00:20:11
阅读次数:
68
##Signal 标记 创建Emitter 和 Receiver demo:TimelineInputDemo ...
分类:
编程语言 时间:
2020-07-12 20:46:18
阅读次数:
89