改良火車售票系統(利用線程池實現)

這一次引進了線程池的技術關於線程池的介紹 父接口: Executor, 只有一個方法: execute(Runnable) 子接口: ExecutorService, 添加了幾個方法: shutdown, shutdownNow, isShutdown, isTerminated 工廠類: Executors, 提供了5個靜態工廠方法,分別產生不一樣特性的線程池, 推薦用ScheduledThre
相關文章
相關標籤/搜索