package com.basic; import java.io.IOException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; /** * @program JavaBooks * @description: 第五种,WorkStealingPool * @author: mf * @create: 2020/01/01 15:05 */ public class T28 { public static void main(String[] args) throws IOException { // 默认核数 ExecutorService service = Executors.newWorkStealingPool(); service.execute(new R(1000)); service.execute(new R(2000)); service.execute(new R(2000)); service.execute(new R(2000)); service.execute(new R(200