Static function in Java web application -
i have static function in class called servlet. suppose, if 100 requests come @ time, function available requests?
all requests processed same vm, in same process, different threads. yes, static members available requests.
be aware though if change static data multiple threads, synchronize on data thread safety. or use threadlocal objects, these distinct every thread.
Comments
Post a Comment