Newsgroups: comp.parallel.pvm
From: whuang@sun35.cs.wisc.edu (Weiqing Huang)
Subject: Re: blocking probe?
Organization: CS Department, University of Wisconsin
Date: 22 Jun 1995 15:21:56 GMT
Message-ID: <WHUANG.95Jun22102156@sun35.cs.wisc.edu>

In article <1995Jun22.082053.6958@uxmail.ust.hk> cs_truth@ug.cs.ust.hk (Ng Siu Kee) writes:

>From: cs_truth@ug.cs.ust.hk (Ng Siu Kee)
>Date: 22 Jun 1995 03:20:53 CDT
>Lines: 16
>
>Weiqing Huang (whuang) wrote:
>:) Hi, there,
>
>:) i was wondering how to implement a blocking version of pvm_probe? (maybe using
>:) pvm_recvf?) thanx in advance.
>
>:) -- Weiqing
>
>	while ( (arrived=pvm_probe(tid,msgtag)) <= 0 ) {
>		if ( arrived < 0 )
>			ERROR("something wrong");
>	}                                                 
>
>	Not try that out myself. However, I have tried sth similar in paragon.
>
>__ Stevie.

it's definitely working. but i dont want a busy-waiting blocking. i
think if pvm_recv(..) is blocked, no busy waiting is used. in other
words, pvm_recv is NOT equivalent to:

while ( (arrived=pvm_nrecv(tid,msgtag)) <= 0 ) {  
        if ( arrived < 0 )                        
                ERROR("something wrong");         
}                                                 

similarly, i want a blocking, non-busy-waiting version of probe.  

thanx a lot. 

--Weiqing




