Quantitative Analysis
Parallel Processing
Numerical Analysis
C++ Multithreading
Python for Excel
Python Utilities

I. Installation.
II. Threading primitives.
1. Encapsulation of primitives.
2. Preventing starvation.
3. Preventing race condition.
4. Barriers.
III. NonBlockingQueue.
IV. ThreadPool.
V. ThreadMaster.
VI. OTS Scheduler.
VII. Bibliography
Downloads. Index. Contents.

Encapsulation of primitives.

he file otsConfig.hpp contains several metafunctions (see [Abrahams1] for definition of metafunction) that encapsule most common implementation primitives. Such encapsulation allows for substitution of implementation without changing the higher levels of the project's code. It also contains definition of templated primitives that uniformly accept template parameters defined in different libraries.

The file otsConfig.hpp uses forward definitions and does not include most implementation hpp-files. This must be so to prevent excessive compile-time cross-dependencies. Hence, when using most of the metafunctions defined in otsConfig.hpp the programmer also have to include header files for the classes instantiated in the metafunction body.

The following section explains the use of the otsConfig-defined threading primitives.

Downloads. Index. Contents.

Copyright 2007