Newsgroups: comp.parallel.pvm
From: wrankin@ee.duke.edu (William T. Rankin)
Subject: Re: signal vs. message
Organization: Duke University EE Dept.; Durham, NC
Date: 5 Aug 1994 17:12:29 GMT
Message-ID: <31trtt$b7u@news.duke.edu>

In article <31tpco$rdj@bigblue.oit.unc.edu>, zju@bme.unc.edu (Ju Zhengwen) writes:

|> Hi, there. Does anybody have any experience using signal in PVM?
|> I had trouble when I used pvm_sendsig to send signals and pvm_send
|> to send messages to a slave process. Basically it's a race condition,
|> i.e. sometimes the signal and message were received in the reverse
|> order as they were sent. My question is how I can assure they are 
|> received in the right order.
|> 
|> Any help would be greatly appreciated.
|> 
|> -zhengwen

The simplest approach would be to implement a basic handshaking structure.

ie. have the receiving process send a short "ACK" message back to the
sender.  The sender will  wait to receive this message before sending out the
signal.

-- 
----                                /       __/    /    /
bill rankin                        /              /    /
wrankin@ee.duke.edu               ___  /    /    /    /
philosopher/coffee-drinker       /    /    /    /    /
                                /    /    /    /    /
                             _______/  __/  __/  __/



