Code example for AbstractExecutorService

Methods: execute

0
		return instance;
	} 
	 
	public void execute(Runnable r){
 
		pool.execute(r);
	} 
	/** 
	 * 关闭,并等待任务执行完成,不接受新任务 
	 */ 
	public static  void shutdown(){ 
		if(pool!=null){
			pool.shutdown();
			LogUtil.i(DefaultThreadPool.class.getName(), "DefaultThreadPool shutdown");
		} 
	} 
	 
	/** 
	 * 关闭,立即关闭,并挂起所有正在执行的线程,不接受新任务 
	 */ 
	public  static void shutdownRightnow(){