Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Threads and Static Functions

Status
Not open for further replies.

LukeJW

Programmer
Jul 15, 2004
7
US
I created a class of static functions that I use regularly but I recently began implementing threads in one of my projects. I'm a little confused with how my static functions will work when called by multiple threads. If a static function contains only local variables and does not modify anything outside the function, is it safe to call the function from multiple threads at the same time? They will likely have varying input/return values.

Also, if anyone has a link to information on the "life cycle of a function" inside the interpereter, I'd love to take a look.

Thanks!
 
Great, that's kind of what I was thinking. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top