Next: Server side
Up: int pvm_init_worker_class(char *farm_name
Previous: int pvm_init_worker_class(char *farm_name
- Get the tid of the worker (pvm_mytid )
- Search for the server task by looking at the list of tasks and get the tid
of the server. If there's no server, then return ERROR. (check the global variable containing the server task id).
- Send a message to the server. It should contain
opcode INIT_WORKER_CLASS, farm name, and worker class name.
- Wait for the reply from the server. Get the status ERROR, or wcid and store it in a global variable to be used later.
- Get and store the farmer name and the farmer task id in a global variable which could be used later.
- return OK
Sameer Shende