The Artima Developer Community
Sponsored Link

Java Buzz Forum
Object and Class level locks in Java

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Java Experience

Posts: 58
Nickname: javaexp
Registered: Dec, 2012

Java Experience is a place for Java, web, spring, android tutorials
Object and Class level locks in Java Posted: Dec 25, 2012 10:26 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Java Experience.
Original Post: Object and Class level locks in Java
Feed Title: Java Experience
Feed URL: http://www.javaexperience.com/feed/
Feed Description: A place for all type of Java web tutorials
Latest Java Buzz Posts
Latest Java Buzz Posts by Java Experience
Latest Posts From Java Experience

Advertisement
Object level lock is used to add synchronization to threads created from the same object. On the other hand, Class level lock is used to add synchronization to threads created from all objects of a class. Let us see each one of these locking mechanism one by one: Object Level locking Output: t1 t3 t2 [...]

Read: Object and Class level locks in Java

Topic: The Java ByteBuffer – a crash course Previous Topic   Next Topic Topic: Java 8 on ARM: Oracle's new shot against Android?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use