It's not a secret anymore!
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Thread Synchronization" Watch "Thread Synchronization" New topic

Thread Synchronization

Sujittt Tripathyrr
Ranch Hand

Joined: Jun 21, 2006
Posts: 96

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

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
I agree. Here's the link:
subject: Thread Synchronization
It's not a secret anymore!