站内搜索: 请输入搜索关键词
当前页面: 图书首页 > Java Concurrency in Practice

Summary - Java Concurrency in Practice

Previous Page
Next Page

Summary

End-of-lifecycle issues for tasks, threads, services, and applications can add complexity to their design and implementation. Java does not provide a preemptive mechanism for cancelling activities or terminating threads. Instead, it provides a cooperative interruption mechanism that can be used to facilitate cancellation, but it is up to you to construct protocols for cancellation and use them consistently. Using FutureTask and the Executor framework simplifies building cancellable tasks and services.


Previous Page
Next Page