2017年5月1日

摘要: int x; void MultiplyXBy (int factor) { var spinWait = new SpinWait(); while (true) { int snapshot1 = x; Thread.MemoryBarrier(); int calc = snapshot1 * factor; int snapshot2 = I... 阅读全文
posted @ 2017-05-01 23:21 听哥哥的话 阅读(323) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace ConsoleAppl... 阅读全文
posted @ 2017-05-01 22:14 听哥哥的话 阅读(327) 评论(0) 推荐(0)

导航