> I have static function and three threads. I would like every thread to use
this function at the same time. Is it possible?
I'm using VC++ under Windows2000.
This is off-topic here... Try a Microsoft newsgroup.
As for the answer to you question, it's ambigous. A static function is not
different from a normal function (the static keyword doesn't behave the same
way with functions and variables), but a normal function still needs to be
programmed in a way that makes it thread safe.
If for example the function contains static variables, uses global
variables, non-thread-safe functions, etc, you must use synchronization to
avoid problems.
Alex.