线程池用来复用线程
先创建自定义的runnable任务,然后创建runnable任务对象,创建线程池调用线程池.excute(),参数填任务对象
2.executors工具类创建线程池
threadpoolexecutor创建线程池更好