print ABCABC.. with 3 threads
Test re-entry
This CL demostrate the thread-unsafe when using the static instance
Solution 1 to make it thread-safe: using lock in thread
Solution 2 to make it thread-safe: avoid using shared resource, try using member variable if possible
Increase the global number exclusive by various threads