title: count how many times the threads running?
body: <p>for example, use <code>pthread_create</code> create two threads, and both of them print "hello world", and my question is how to count how many times "hello world" printed by each thread?</p>