next up previous
Next: int pvm_init_worker_class(char *farm_name Up: int pvm_get_worker_class_id (char Previous: Client side

Server side

  1. if opcode is GET_WORKER_CLASS_ID
  2. extract (unpack) farm name and worker class name.
  3. Search for the farm item by farm name.
  4. If item is not found send a reply containing FARM_NOT_CREATED error message.
  5. Get the farm item (FItem), using this get access to the worker class list (WCList).
  6. Search for worker class item by the worker class name.
  7. If not found then, put the request on the list of pending requests and look for other messages (while the farmer task blocks for a reply).
  8. If item is found, then see the WCItem and get the worker class id (wcid).
  9. Send the reply containing the wcid.


Sameer Shende