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
- Re: Synchronize method in the servlet Christopher K. St. John
- Re: Synchronize method in the servlet Bo Xu
- Re: Synchronize method in the servlet Bill Hackmann
- Re: Synchronize method in the servlet Wang, Jianming
- Re: Synchronize method in the servlet Tiana Zhang
- Re: Synchronize method in the servlet Milt Epstein
- Re: Synchronize method in the servlet Tiana Zhang
- Re: Synchronize method in the servlet Christopher K. St. John
- Re: Synchronize method in the servlet Milt Epstein
- Re: Synchronize method in the servlet Wang, Jianming
- Re: Synchronize method in the servlet Tiana Zhang
- Re: Synchronize method in the servlet Wang, Jianming
- Re: Synchronize method in the servlet Milt Epstein
- Re: Synchronize method in the servlet Christopher K. St. John
- Re: Synchronize method in the servlet Wang, Jianming
- Re: Synchronize method in the servlet Tiana Zhang
- Re: Synchronize method in the servlet Milt Epstein
- Synchronize method in the servlet Tiana Zhang
