I realized that. But all my method doing is to do the database access(insert and
update) which need to be protected. In this case, Do you think the performance
will be the same for 'sync' either the block or the method?

Thanks,

Tiana

-----Original Message-----
synchronize on static method will lower performance significantly. Instead, you
can synchronize a block inside the method.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to