gets the process ID of the running process
INCLUDE 'sysman.h' get_my_id(ProcessID)
get_my_id(ProcessID) (o)
server(ProcessID) (o) the id of the running process
Matches the process ID of the running process with ProcessID. Other processes may send messages to this process by using this ID.
The current node number can be extracted from the process ID with set_id .
get_my_id(MyID), exec(( do_something(Result), send_msg(MyID,Result) )), do_something_else, rec_msg(_,Msg), write(Msg),nl.
No runtime errors.
client-server
exec , xcall , alloc_server , get_my_ids , set_id ,