Next: , Previous: , Up: Miscellaneous Topics   [Contents][Index]

6.4 Exchanging Data Packets in a Multithreaded Program [EXPERIMENTAL]

QSMM provides a simple mechanism for exchanging data packets in multithreaded programs. This mechanism can be helpful in organizing the interaction of a system you develop with an environment you model, each executing in a separate thread. Another possible use of this mechanism is aggregating the results of parallel invocation of adaptive probabilistic mappings to get more optimal and precise system behavior.

Part of QSMM API called Side API represents this mechanism—multiple sides can take part in the interaction. The header file qsmm/side.h contains declarations and definitions for the Side API.

The Side API is available if the configure script has configured the package to use the POSIX threads API. See the file INSTALL in the root of the package distribution for information about the configure script.