H
hula
Hello
i have some simple question reguarding static functions:
If i have some class that implements a static function that is called
from many places inside the app would every call have to wait for
termination of a previous call to that static function?
The function is not defined as synchronized.
If not, how is this realized in java? I mean if i understood it right
static functions are functions of the class not of any object so this
function should not be present more than once in memory right? Would i
overwrite the functionstate if i'd call the function eg. from more
threads?
_thanks for your info in advance
PS: the function does some DB calls in a tomcat app where some thousend
people call the function within short time and i'd like to avoid the
waiting, so i thought of changing the function to be nonstatic but
first i'd like to understand how static functions work
i have some simple question reguarding static functions:
If i have some class that implements a static function that is called
from many places inside the app would every call have to wait for
termination of a previous call to that static function?
The function is not defined as synchronized.
If not, how is this realized in java? I mean if i understood it right
static functions are functions of the class not of any object so this
function should not be present more than once in memory right? Would i
overwrite the functionstate if i'd call the function eg. from more
threads?
_thanks for your info in advance
PS: the function does some DB calls in a tomcat app where some thousend
people call the function within short time and i'd like to avoid the
waiting, so i thought of changing the function to be nonstatic but
first i'd like to understand how static functions work