Thread: Annotation in Thread Synchronization and concurrency
Joined: Feb 19, 2018
Annotation in Thread Synchronization and concurrency
In a book "concurrency in practice" they have heavily used some annotation related to threading like @ThreadSafe, @NotThreadSafe, @GuardedBy, @Immutable. these are not the part of core jdk api but these are part of external dependency net.jcip. Now my question is that still application is running in JVM only and JVM only reading those annotations. So is there any significance of writing those annotation or those are just to mark classes a that these are thread safe or these are not thread safe for better readability?
Post has been marked as Answered
Post has been marked as Un-Answered
Do you want to Report as spam?
Report a thread
Successfully marked as spam.
Tell A Friend
Successfully send the mail to Friends!!
Successfully you refer to your Friends for this Thread