上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页
摘要: CAS算法 即compare and swap(比较与交换),是一种有名的无锁算法。无锁编程,即不使用锁的情况下实现多线程之间的变量同步,也就是在没有线程被阻塞的情况下实现变量的同步,所以也叫非阻塞同步(Non-blocking Synchronization)。CAS算法涉及到三个操作数 需要读写 阅读全文
posted @ 2019-12-16 15:18 宇枫 阅读(587) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2019-12-12 10:39 宇枫 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1.双检锁:https://www.cnblogs.com/xz816111/p/8470048.html优点:安全且在多线程情况下能保持高性能 //正确的双重检查锁 public class Singleton { private volatile static Singleton singlet 阅读全文
posted @ 2019-12-02 20:03 宇枫 阅读(117) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2019-11-25 20:11 宇枫 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 第一步创建一个目录 第二步把maven项目放到该目录下 第三步file-->open,把整个ide20191105目录导入进来第四步配置jdk版本 第五步:添加maven依赖,把父工程的pom文件添加进来,然后更新mavendependence 阅读全文
posted @ 2019-11-06 18:01 宇枫 阅读(1877) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { HashMap map=new HashMap(); map.put("sign_status", "UNBIND"); map.put("sign_type", "RSB"); map.put("user_id", "208862291978620... 阅读全文
posted @ 2019-10-23 15:04 宇枫 阅读(2168) 评论(0) 推荐(0) 编辑
摘要: @JSONField的常用参数说明 @JSONField(ordinal = 1)//指定json序列化的顺序@JSONField(serialize = false)//json序列化时忽略该字段@JSONField(deserialize = false)//json反序列化时转成对象将忽略该字 阅读全文
posted @ 2019-09-23 20:02 宇枫 阅读(8801) 评论(0) 推荐(1) 编辑
摘要: 这里涉及到cpu cache命中率的问题,横向遍历的命中率大于纵向遍历 附详细地址:https://blog.csdn.net/u010983881/article/details/82704733 阅读全文
posted @ 2019-08-30 18:13 宇枫 阅读(680) 评论(0) 推荐(0) 编辑
摘要: import java.lang.reflect.Array; public class ArraysUtils { /** *@来源 org.apache.commons.lang *@apiNote把数组A和数组B合并到一个数组 * */ public static Object[] addArrays(Object[] A, Object[] B) { if (A == null) { re 阅读全文
posted @ 2019-08-29 17:50 宇枫 阅读(4358) 评论(0) 推荐(1) 编辑
摘要: 在springboot启动类方法实现org.springframework.boot.CommandLineRunner接口 阅读全文
posted @ 2019-08-28 12:04 宇枫 阅读(3742) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页