bg left bg right
      
  |  | 
Welcome to SleepyEgg Tech News and Coupon Deals!
Multithreading: Difference between "synchronized static" and ""synchronized" PDF Print E-mail
(0 votes)
Written by Sleepy Egg   
Thursday, 23 June 2005
A thread calls "synchronized static" method, it needs to lock the Class object. A thread calls "synchronized" method, it needs to lock the instance object. When a thead is holding Class object lock, it won't block threads trying to aquire an instance object lock. When a thread is holding an instance object lock, it won't block threads trying to aquire Class object lock.


Comments (0)add comment

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley

security image
Write the displayed characters


busy
 


Valid XHTML 1.0 Transitional