On Sat, 8 Aug 2009 20:05:00 -0700 (PDT), Alex Luya
<> wrote, quoted or indirectly quoted someone
who said :
>I know the servlet is multithread,So the question is:
>1,will this cause inconsistence when a multithread class invoke a
>sigle thread class?
>2,if not,will this will cause performance bottle neck,any suggestions
>to solove this issue?
Either a method is thread safe or it is not. The staticness makes it
slightly more vulnerable, but the problem is essentially the same.
see
http://mindprod.com/jgloss/threadsafe.html
--
Roedy Green Canadian Mind Products
http://mindprod.com
"You can have quality software, or you can have pointer arithmetic; but you cannot have both at the same time."
~ Bertrand Meyer (born: 1950 age: 59) 1989, creator of design by contract and the Eiffel language.