摘要:
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)
摘要:
package t1; import java.util.Calendar;import java.util.Date;import java.util.Timer;import java.util.TimerTask; public class TestThread10 { public stat 阅读全文
posted @ 2020-03-31 10:38
工设091
阅读(153)
评论(0)
推荐(0)
摘要:
package t1; import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date;import java.util.Timer;import java.util.TimerTask; publi 阅读全文
posted @ 2020-03-31 10:14
工设091
阅读(176)
评论(0)
推荐(0)
摘要:
package t1; public class TestThread8 { private static volatile InheritableThreadLocal<String> intVal = new InheritableThreadLocal<String>(); public st 阅读全文
posted @ 2020-03-31 09:27
工设091
阅读(120)
评论(0)
推荐(0)
摘要:
package t1; public class TestThread7 { private static volatile ThreadLocal<String> userId = new ThreadLocal<String>(); public static void main(String[ 阅读全文
posted @ 2020-03-31 09:07
工设091
阅读(93)
评论(0)
推荐(0)

浙公网安备 33010602011771号