Java Reference
In-Depth Information
tain number of positions. Or we can provide a cancellation mechanism and let the client make
its own decision about when to stop searching.
Listing 8.18. Solver that Recognizes when No Solution Exists.
Summary
The Executor framework is a powerful and flexible framework for concurrently executing
tasks. It offers a number of tuning options, such as policies for creating and tearing down
threads, handling queued tasks, and what to do with excess tasks, and provides several hooks
for extending its behavior. As in most powerful frameworks, however, there are combina-
tions of settings that do not work well together; some types of tasks require specific execution
policies, and some combinations of tuning parameters may produce strange results.
Search WWH ::




Custom Search