This program demonstrates using a Thread safe C++ class called
SharedQT<T>. This example actually has several elements which
may prove useful for those who are new to C++:
FullThreadDump demonstrates the use of the java.lang.management API
to print the full Thread dump. JDK 6 defines a new API to dump
the information about monitors and java.util.concurrent ownable
synchronizers.