For those static variables,
1. in global functions
2. in member functions in common object
3. as data member of common ojbect
4. as data member of self-defined TBB task object / filter oject / parallel_while oject
how are they shared among threads?
Could anybody please explain in detail if the answer differs between the 4 cases above.