title: Sharing of static data of a class among threads
body: <p>In a multithreaded situation, does every class share the static members of the class? For example, a class has static data members, like the following:</p>
  
  <pre><code>class A {
    public:
      static int count;
      ...
  };
  int A::count(0);
  </code></pre>
  
  <p>Or, the treatment is that every thread gets a separate instance of the static data, or common per process? Ideally, it should be one per process and shared among threads. I have pthreads running in parallel accessing the class static members. Appreciate your opinions, in advance.</p>