Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can we do synchronize without a synchronize keyword?

 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we do synchronize without a synchronize keyword?
 
Rob Spoor
Sheriff
Pie
Posts: 20532
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's called synchronized, and the answer is probably no. I say probably, because you can use other locking mechanisms from the java.util.concurrent and java.util.concurrent.locks packages. These may or may not use synchronized internally at some point.

Moving to Threads and Synchronization.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic