Using asynchronous message passing and pipelining, it promises to offer more control than thread pools and better performance than manual threading.
借助于异步消息传递与管道,它可以提供比线程池更好的控制,也比手工线程方式具备更好的性能。
Since every request is handled in a separate thread, better scalability is possible.
由于将以单独的线程处理每个请求,所以可以获得更好的可扩展性。
NewScheduledThreadPool creates a pool that works like the Timer object but is better at handling uncaught exceptions and thread starvation.
newScheduledThreadPool可以创建像Timer对象一样工作的线程池,但是能够更好地处理未捕获的异常和线程饥饿。
应用推荐