wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Thread Synchronization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Thread Synchronization" Watch "Thread Synchronization" New topic
Author

Thread Synchronization

Sujittt Tripathyrr
Ranch Hand

Joined: Jun 21, 2006
Posts: 96
Hi

Can you please explain me what is the use of synchronized block and please give me a example.

Thanks
Srikanth Basa
Ranch Hand

Joined: Jun 06, 2005
Posts: 241
I see the question you ask is more generic. Do you mean you need some tutorial or you were facing some issue ?
Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643

check code above
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Thread Synchronization