Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread locks  RSS feed

 
ravinderSingh singh
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could someone explain what object locks are for?

Thank you.
 
Henry Wong
author
Sheriff
Posts: 23283
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ravinderSingh singh:
Could someone explain what object locks are for?

Thank you.


In a nutshell, locks are used to facilitate the safe access to data or service that is shared between threads. If you would like to know more, I would recommend the Sun tutorial on Threads as a good starting point.

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!