深拷贝,浅拷贝
jstack
Instant 代替Date,LocalDateTime代替calendar,DateTimeFormatter代理Simpledateformat。
ThreadLocalRandom生成随机数。
AtomicInteger原子加加操作或者使用LongAdder
HashMap在容量不够进行resize时由于高并发可能出现死链,导致CPU飙升,在开发过程中可以使用其它数据结构或加锁来规避此风险
深拷贝,浅拷贝
jstack
Instant 代替Date,LocalDateTime代替calendar,DateTimeFormatter代理Simpledateformat。
ThreadLocalRandom生成随机数。
AtomicInteger原子加加操作或者使用LongAdder
HashMap在容量不够进行resize时由于高并发可能出现死链,导致CPU飙升,在开发过程中可以使用其它数据结构或加锁来规避此风险
本文标题:待处理问题
本文链接:https://www.haomeiwen.com/subject/dfufiltx.html
网友评论