摘要:
数据完整性 1.数据格式完整 2.数据大小完整 package com.dwz.utils; import java.util.ArrayList; import java.util.List; import java.util.Random; import java.util.concurrent 阅读全文
摘要:
1.中断主线程使await()生效 package com.dwz.utils; import java.util.concurrent.CountDownLatch; /** * 中断主线程使await()生效 */ public class CountDownLatchExample4 { pu 阅读全文
摘要:
1.使用executor.awaitTermination(1, TimeUnit.HOURS); package com.dwz.utils; import java.util.Random; import java.util.concurrent.CountDownLatch; import j 阅读全文