PreviousNext

Nonthreaded Libraries

As programming with threads becomes common practice, you need to ensure that threaded code and nonthreaded code (code that is not designed to work with threads) work properly together in the same application. For example, you may write a new application that uses threads (for example, an RPC server), and link it with a library that does not use threads (and is thus not thread-safe). In such a situation you can do one of the following:

· Work with the nonthreaded software.

· Change the nonthreaded software to be thread-safe.

More:

Working with Nonthreaded Software

Making Nonthreaded Code Thread-Reentrant