随笔分类 - JUC
摘要:待解决的问题 //LOG.info("ee::{}",entity); for (int i = 0; i < dto.getBatchCodeList().size(); i++) { if (length==2){ entity.setDeptCode(dto.getBatchCodeList(
阅读全文
摘要:在java中,启用线程一般有两种方法 1:extends Thread 2:implements Runnable 这两种都可以创建线程,但是创建出来的稍有不同 获取名字: LockSupport的特点: 可以先unpark() 后park(),这个操作并不会阻塞线程,但是unpark两park两次
阅读全文