Newsgroups: comp.parallel.pvm
From: br801512@totoro (br801512)
Subject: Re:Timing distributed processes
Organization: National Tsing Hua University, HsinChu, Taiwan
Date: 23 Aug 1994 09:53:10 GMT
Message-ID: <33cgu6$t3e@Emerald.Oz.nthu.edu.tw>

We want to caculate the time including communication time,too.
We have two solutions.
(1):
   Calling "time()" before and after Sending/Receiving.
   It gets the turn around time. 
(2):
   Construct another receiving function instead of 
   blocking receive pvm_recv().
   As following psudo codes,
      Receiving(...)
      {
        long  cputime;
        
        clock();
        Looping while (pvm_prob(..) is not SUCCESS);
        pvm_recv(...);
        cputime= clock();
        /* this will slightly bigger than real commun. time*/
      }

 But both time measured above are dependent on system's communication
 work load, we have to run several times and get the minimal one.

 Any comments are appreciated! :)

--------------------------------------
  Shenjun Wu,
  wsj@iis.sinica.edu.tw
--------------------------------------

