| Author |
static synchronized methods
|
kumar Nagesh
Greenhorn
Joined: Jan 02, 2007
Posts: 12
|
|
|
i have called two static synchronized methods of a class at a time will it work one by one or simultaneously
|
 |
Patel Chintan
Ranch Hand
Joined: Mar 01, 2007
Posts: 80
|
|
|
It will work one by one.
|
Chintan Patel, SCJP1.5, http://datewithjava.blogspot.com
|
 |
Angel Taveras
Ranch Hand
Joined: Nov 13, 2008
Posts: 84
|
|
If these methods belongs to the same type of class, they will run one by one even if you are using multiple threads to execute these methods. The synchronized static methods use the .class object as the Thread lock Regards,
|
 |
 |
|
|
subject: static synchronized methods
|
|
|