| < Day Day Up > |
|
After finishing this chapter you should be able to:
Understand how a notification object can be used to create a fair component.
Optimize a component by using a notification object to reduce the number of threads that are notified and moved from a wait queue.
Relax the rules for synchronizing a monitor so that a component is faster as it allows more concurrency in the object.
Understand the concept of confinement and how it can be used to control access to a component to ensure that it is safe to use the component concurrently even if some of the methods in the monitor are not synchronized.
Create a thread-safe component by allowing the component to be given to one and only one thread at a time by using the Java Event Model.
Implement an adapter to provide special handling of messages and events for other components and threads.
Decompose a more complicated system into several simpler parts by using interfaces and intermediary components.
| < Day Day Up > |
|