Skip to main content
4 events
when toggle format what by license comment
Feb 10, 2021 at 20:35 comment added Rockstar5645 The last point is what I wanted to know as well, thanks.
Jun 11, 2015 at 3:43 comment added Yeasir Well i guess the statement would be *java allows only one synchronized method from the same object to run at a time*. I get it when you say 10 threads can call ten synchronized methods of ten different instances and they can run simultaneously since each object has it's own copy of variables and methods. But does it also hold when there is a static sync. method or sync. methods that belong to a class object rather to an instance. I guess in this case 9 threads have to wait in queue to acquire a lock. @gnasher729
Jun 10, 2015 at 13:01 history edited gnasher729 CC BY-SA 3.0
added 675 characters in body
Jun 10, 2015 at 12:54 history answered gnasher729 CC BY-SA 3.0