Caveats of thread use  Tightly coupled transactions

Chapter 4: Application Programming Guidelines

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.





Copyright © 2005. Sybase Inc. All rights reserved. Tightly coupled transactions

View this book as PDF