What are the properties of synchronization?

January 3rd, 2007 by uCertify Leave a reply »

Synchronization is a process through which multiple threads share access to common objects. Java coordinates the actions of multiple threads using synchronized methods and statements. Following are the properties of synchronization:

  1. If a thread contains some locks and goes to sleep, then it does not release the locks.
  2. Only methods can be synchronized, not variables and constants.
  3. If two threads invoke the same method, then only one thread at a time can invoke a method.
  4. A thread can invoke a synchronized method on multiple objects.
  5. A class can have both synchronized and non-synchronized methods.
  6. If a class has synchronized and non-synchronized methods, then multiple threads can still access the non-synchronized methods of the class.
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
  • Share/Bookmark
Advertisement

Leave a Reply

uCertify.com | Our Company | Articles | Contact Us | News and Press Release | uCertify India | Entries (RSS)
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD    Cisco Certification: CCNA, CCENT    A+, Network+, Security+ Project+
Oracle Certification: OCP 11g, OCP 10g, OCA 11g, OCA 10g    CIW foundation    EC-212-32,    CISSP    Photoshop ACE CS4    Adobe Flash ACE, PMP, CAPM
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.