Package com.stata.sfi
Annotation Type Synchronized
-
@Documented @Retention(SOURCE) public @interface Synchronized
Indicates that a method or class is thread-safe and that thread safety has been provided using the Java keyword synchronized. Calling synchronized methods from multithreaded code should generally be avoided because there is a performance penalty incurred to enforce the locking mechanism. However, it may be an acceptable solution when the work being performed in parallel is more costly than enforcing the synchronized lock.