Next: 16.2.4 RK Calls
Up: 16.2.3 CE Functions
Previous: 16.2.3 CE Functions
To support Zipcode, we normally emulate the
CE functions below. Again, some of these
functions, particularly getmc(), freemc(), spawn(),
and ckill(), are not
available on all implementations (for instance, the Delta) and are
restricted to the host program:
- getmc(char *computer_name, int nnodes) allocates a multicomputer;
- freemc(void) deallocates the allocated multicomputer;
- spawn(char *prog, int node, int pid, char *state) spawns
processes on one or more nodes;
- ckill(int node, int pid) kills processes on one or more nodes;
- cosmic_init(void) starts the environment in a process;
- cosmic_exit(void) ends the environment in a process;
- mynode(void) returns the current process's logical node; number;
- mypid(void) returns the current process's identification
number (pid);
- nnodes(void) returns the number of nodes in the
multicomputer allocation;
- print(char *fmt, ...) resembles the standard C function printf(), except that the output is preceded by {node,pid}
identification and terminated by a newline, with the output buffer automatically
flushed; and
- clock() returns the running nodal clock value in microseconds.
Guy Robinson
Wed Mar 1 10:19:35 EST 1995