Skip to content

How to handle race condition in Observable.java? #740

Answered by jimmarino
ilyash-b asked this question in Q&A
Discussion options

You must be logged in to vote

This would likely not happen:

(1) Runtime bootstrap is single-threaded

(2) If a listener was registered after runtime boot, the same object instance would need to be registered from two different threads, which would have to be intentionally done (since it is the same object instance or a poor implementation of .equals()).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by juliapampus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #105 on February 23, 2022 13:08.