• Post Reply Bookmark Topic Watch Topic
  • New Topic

can we do synchronize without a synchronize keyword?  RSS feed

 
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
Posts: 20903
81
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!