2018年2月12日

jar debug

摘要: java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -jar test.jar Java远程调试-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:tran 阅读全文

posted @ 2018-02-12 16:35 jis117 阅读(250) 评论(0) 推荐(0) 编辑

闭锁(CountDownLatch)

摘要: package japan.example.test; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; pub... 阅读全文

posted @ 2018-02-12 16:09 jis117 阅读(322) 评论(0) 推荐(0) 编辑

栅栏(CyclicBarrier)

摘要: package japan.example.test; import java.util.ArrayList; import java.util.List; import java.util.concurrent.BrokenBarrierException; import java.util.concurrent.CyclicBarrier; public class CyclicBarr... 阅读全文

posted @ 2018-02-12 15:23 jis117 阅读(195) 评论(0) 推荐(0) 编辑

多线程依赖打印(join)

摘要: package japan.example.test; public class ThreadJoinTest { public static void main(String[] args) throws InterruptedException { new ThreadJoinTest().test(); } public void test(... 阅读全文

posted @ 2018-02-12 13:43 jis117 阅读(204) 评论(0) 推荐(0) 编辑

计算99的99次幂

摘要: package japan.example.test; import java.math.BigDecimal; import java.math.BigInteger; import java.text.DecimalFormat; public class Nine9Test { public static void main(String[] args) { ... 阅读全文

posted @ 2018-02-12 11:30 jis117 阅读(443) 评论(0) 推荐(0) 编辑

导航