MYNODE(3) iPSC(Reg.)/860 System MYNODE(3) NAME MYNODE - Get the node ID of the calling process. SYNOPSIS long mynode() RETURN VALUE The node ID of the calling process ENVIRONMENT Host, Node DISCUSSION Use mynode() to get the node ID of the calling process. Nodes within a cube are numbered consecutively from 0. EXAMPLE long iam; main() { long node, type, pid, count; char rmsg[80],smsg[80]; iam = mynode(); if(!iam) { sprintf(smsg,"Hello from node %d\n",iam); csend(100,smsg,strlen(smsg) + 1,1,0); } else { crecv(100,rmsg,sizeof(rmsg)); node = infonode(); type = infotype(); pid = infopid(); count = infocount(); printf("node = %d\n",node); printf("type = %d\n",type); printf("pid = %d\n",pid); printf("count = %d\n",count); } } ERRORS mynode: No pid defined Use setpid() in the host program to define a host process ID. SEE ALSO mypid(), numnodes() Release 3.3.2 Last change: 3/17/1992 1 MYNODE(3) iPSC(Reg.)/860 System MYNODE(3) Release 3.3.2 Last change: 3/17/1992 2