Java Reference
In-Depth Information
Listing 10.6. Using Open Calls to Avoiding Deadlock Between Cooperating Objects.
Say you have two pooled resources, such as connection pools for two different databases. Re-
source pools are usually implemented with semaphores (see Section 5.5.3 ) to facilitate block-
ing when the pool is empty. If a task requires connections to both databases and the two re-
Search WWH ::




Custom Search