Can we share object between two threads when both threads are created by runnable class. If yes show example
Answers
Answered by
0
Multiple threads may exist on same object but only one thread of that object can enter synchronized method at a time, though threads on different object can enter same method at same time.
Similar questions
English,
6 months ago
Social Sciences,
6 months ago
Physics,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago