Go backward to Standard Output
Go up to Restrictions
Go forward to Global Variables

C++ Memory Allocation

The C++ new operation (and likewise the C malloc) return memory that was allocated in the data segment of the current process. In case you would like to use these operations for the temporal allocation of dynamic memory, you have to bind the thread to a specific process during the whole use of this memory e.g.   
rt_bind();
T *t = new T;
use(t);
rt_unbind();

Wolfgang.Schreiner@risc.uni-linz.ac.at
Id: main.tex,v 1.10 1996/04/04 11:45:47 schreine Exp

Prev Up Next