as i said ,
what is the difference between
public static synchronized .. and
public static ?
any example ?
as i said , what is the difference between public static synchronized .. and
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One point you have to be careful about (several programmers generally fall in that trap) is that there is no link between synchronized static methods and non synchronized static methods, ie:
f() and g() are not synchronized with each other and thus can execute totally concurrently.