#include #include // Allocate an array of 'count' locks and cache it in private arrays. // // The actual array is replicated THREADS time in the shared heap, but // this function returns a pointer to a private piece of the array. // // The lock allocation calls are distributed over the threads as if // implemented by the following: // upc_lock_t* shared [*] table[count]; // upc_forall(int i=0; i