Parallel Programming Guide for HP-UX Systems

Memory classes
Memory class assignments
Chapter 7132
Example 7-4 node_private
The following example shows several ways to declare
node_private data objects in C and C++:
/* npa is global: */
node_private double npa[1000];
func() {
/* npb is local to func: */
static node_private double npb[1000];
/* npc, a and b are declared elsewhere: */
extern node_private double npc[1000],a,b;
.
.
.
The node_private data declared here occupies the same amount of
memory as that declared in the Fortran example. Scoping rules for this
data are similar to those given for the thread_private C/C++ example.