Professional Documents
Culture Documents
SOFTWARE ENGINEERING
Pradeep Tomar
Component Interface
Component Implementation
Installed Component
Component Object
The safest course is for you to assume that the component will be used in
concurrent situations and to provide some mechanism inside the
component for synchronizing access.
However, this approach has two flaws. First, it may lead to deadlocks; if every
component in the application has its own synchronization
lock, a deadlock can occur if two components on different threads try to
access each other.
Second, it’s an inefficient use of system resources for all components
in the application to be accessed by the same thread.
Pradeep Tomar