Win a copy of Kotlin in Action this week in the Kotlin forum!
  • 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: 21092
85
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
Boost this thread!