Embedded SQL thread-safe code

Thread-safe code protects the use of shared resources with a mutex (MUTual EXclusion semaphore). A mutex protects shared resources, such as files and global variables, by preventing them from being accessed by more than one thread at a time.

Use the -h (UNIX) or /threadsafe (VMS) precompiler option to generate thread-safe code.