上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页
摘要: Jvm -Xmx20M 表示虚拟机内存20M 软引用是SoftReference sr = new SoftReference(new Byte[1024102410]);这是一个10M内存的对象,如果内存会溢出就会将软引用对象剔除 sr是指针是放在栈内存里面,是一个指针,比较小 阅读全文
posted @ 2022-07-01 17:36 Arborblog 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 关机/重启/注销 | 常用命令 | 作用 | | | | | shutdown -h now | 即刻关机 | | shutdown -h 10 | 10分钟后关机 | | shutdown -h 11:00 | 11:00关机 | | shutdown -h +10 | 预定时间关机(10分钟后) 阅读全文
posted @ 2022-07-01 13:12 Arborblog 阅读(75) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc 阅读全文
posted @ 2022-06-30 17:34 Arborblog 阅读(217) 评论(0) 推荐(0) 编辑
摘要: Poi和Excle Excle阿里巴巴 https://www.yuque.com/easyexcel/doc/easyexcel https://easyexcel.opensource.alibaba.com/docs/current/quickstart/read#%E6%9C%80%E7%A 阅读全文
posted @ 2022-06-30 13:31 Arborblog 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 解决方案: 判断交换,就是交换,添加一个版本号 如果在判断完成我在进行改的过程又被打断了,怎么办? 硬件本身就支持cas,并不一定本身就是原子性,java的natave ,c++里面实行,lock cmpxchg 是锁, 1.关中断 2.缓存锁,存在对象大于缓存 3,锁总线,北桥电平拉高, 在jav 阅读全文
posted @ 2022-06-30 11:27 Arborblog 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 在cpu底层是由三级缓冲区,通常缓存64字节,在java中long为8字节,多线程之间存在缓存一致性协议姐,在变量前后添加7个long进行防止多线程之间的缓冲一致性协议带来的性能浪费 阅读全文
posted @ 2022-06-29 17:56 Arborblog 阅读(38) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2022.cnblogs.com/blog/2587651/202206/2587651-20220629104642415-964247983.png) 阅读全文
posted @ 2022-06-29 10:47 Arborblog 阅读(210) 评论(0) 推荐(0) 编辑
摘要: posRecordList.stream() .collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(f -> f.getTransactionNo( 阅读全文
posted @ 2022-06-27 21:10 Arborblog 阅读(32) 评论(0) 推荐(0) 编辑
摘要: Stream API 一.创建Stream //1.Colleaction系列集合提供 List<String> list = new ArrayList<>(); Stream<String> stream = list.stream(); //2.Arrays的静态方法stream(); Emp 阅读全文
posted @ 2022-06-24 18:17 Arborblog 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 方法引用 Lambda有方法已经完成了 1.对象::实例方法名 //案例1: Consume<String> consume = (x) -> System.out.println(x); //方法的参数类型和返回值要和要引用的方法的参数类型和返回值一致 PrintStream ps = Syste 阅读全文
posted @ 2022-06-24 14:32 Arborblog 阅读(39) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页