Announcement

Collapse
No announcement yet.

Thread Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Thread Question

    If I have a FUNCTION that uses only Local Variables, can multiple threads access this Function simultaneously without any problems? In other words, does each Function Call use its own Local Variables?

  • #2
    Lee,
    each time the function is called a new set of local variables will be created on the stack so there will be no interference between threads calling the same function.
    If the function uses STATIC or GLOBAL variables then you might run into problems.

    Paul.

    Comment


    • #3
      Thanx PAul - that is what I thought

      Comment

      Working...
      X