@Synchronized fun getState(): what is this mean in kotlin


Warning: Trying to access array offset on false in /home3/indiakep/public_html/wp-content/plugins/dw-question-answer/inc/Template.php on line 8
All QuestionsCategory: Kotlin@Synchronized fun getState(): what is this mean in kotlin
chetan shidling asked 5 years ago

I need an explanation.

1 Answers
chetan shidling answered 5 years ago

The situation comes where sometimes multiple threads try to access the same resources, so synchronization makes the threads to work synchronously to avoid conflicts.