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
Hindi,
5 months ago
Math,
5 months ago
Biology,
5 months ago
Physics,
10 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago