A sample thread-safe program

The following sample program, thread_safe, shows how you can use a cursor across threads. Sample output for this program follows the source listing.