摘要: 恐怕比较一下volatile和synchronized的不同是最容易解释清楚的。volatile是变量修饰符,而synchronized则作用于一段代码或方法;看如下三句get代码: int i1; int geti1() {return i1;} volatile int i2; int geti 阅读全文
posted @ 2018-10-15 16:44 龙骑科技 阅读(936) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; using System.Man 阅读全文
posted @ 2018-10-15 13:08 龙骑科技 阅读(1097) 评论(0) 推荐(0)