Friday, 22 April 2016
Can two threads call two different synchronized instance methods of an Object ?
No
If a object has synchronized instance methods then the Object itself is
used a lock object
for controlling the synchronization.
Therefore all other instance methods need to wait until previous method call is completed.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.