多執行緒池,批量執行多個任務(***實用總結***)
1 | import java.util.Random;
|
2 | public class Task {
|
3 | import java.util.HashMap;
public class Master {
|
4 | public class MyWorker extends Worker {
|
5 | import java.util.HashMap;
|
1 | import java.util.Random;
|
2 | public class Task {
|
3 | import java.util.HashMap;
public class Master {
|
4 | public class MyWorker extends Worker {
|
5 | import java.util.HashMap;
|