上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: package t1; import java.math.BigDecimal;import java.math.MathContext;import java.math.RoundingMode;import java.util.concurrent.Callable;import java.ut 阅读全文
posted @ 2020-04-01 09:19 工设091 阅读(69) 评论(0) 推荐(0)
摘要: package t1; import java.util.concurrent.Executor; public class TestThread19 { public static void main(String[] args) { Runnable r = () -> { System.out 阅读全文
posted @ 2020-04-01 08:51 工设091 阅读(82) 评论(0) 推荐(0)
摘要: package t1; import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;import java.util.concurrent.TimeUnit; public class TestT 阅读全文
posted @ 2020-03-31 17:25 工设091 阅读(122) 评论(0) 推荐(0)
摘要: package t1; import java.util.concurrent.Executors;import java.util.concurrent.ScheduledExecutorService;import java.util.concurrent.TimeUnit; public cl 阅读全文
posted @ 2020-03-31 16:58 工设091 阅读(69) 评论(0) 推荐(0)
摘要: package t1; import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors; public class TestThread16 { public static void main(Str 阅读全文
posted @ 2020-03-31 16:00 工设091 阅读(89) 评论(0) 推荐(0)
摘要: package t1; import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors; public class TestThread15 { public static void main(Str 阅读全文
posted @ 2020-03-31 15:32 工设091 阅读(100) 评论(0) 推荐(0)
摘要: package t1; import java.util.ArrayList;import java.util.List;import java.util.concurrent.Callable;import java.util.concurrent.ExecutionException;impor 阅读全文
posted @ 2020-03-31 15:04 工设091 阅读(73) 评论(0) 推荐(0)
摘要: package t1; import java.util.ArrayList;import java.util.List;import java.util.Random;import java.util.concurrent.Callable;import java.util.concurrent. 阅读全文
posted @ 2020-03-31 14:44 工设091 阅读(99) 评论(0) 推荐(0)
摘要: 1、Executor是一个顶级接口,它提供了一种标准的方法将任务的提交过程与执行过程解耦开来,并用Runnable来表示任务。 2、ExecutorService扩展了Executor。添加了一些用于生命周期管理的方法(同时还提供一些用于任务提交的便利方法 3、下面两个分支,AbstractExec 阅读全文
posted @ 2020-03-31 13:57 工设091 阅读(149) 评论(0) 推荐(0)
摘要: package t1; import java.util.Calendar;import java.util.Date;import java.util.Timer;import java.util.TimerTask; public class TestThread11 { public stat 阅读全文
posted @ 2020-03-31 13:02 工设091 阅读(110) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页