Newsgroups: comp.parallel.pvm From: sinedino@ep.petrobras.com.br Subject: Re: message queue Organization: Deja News - The Leader in Internet Discussion Date: Tue, 17 Mar 1998 13:57:00 -0600 Message-ID: <6emkf6$51n$1@nnrp2.dejanews.com> In article <350E8FBA.41C6@ci-1.ci.pwr.wroc.pl>, Mariusz Nowostawski wrote: > > Dear readers > > I have one (simple) question and I would appreciate if somebody could > tell me wether I am right or wrong. > > Let say I have 3 processes A, B and C, with tids A_ B_ and C_TID > respectively. > > A: .... > pvm_initsend(PvmDataDefault); > pvm_send(C_TID, A_MSGTAG); > > B: .... > pvm_initsend(PvmDataDefault); > pvm_send(C_TID, B_MSGTAG); > > C: ... > pvm_recv(A_TID, A_MSGTAG); > pvm_recv(B_TID, B_MSGTAG); > > if A sends his message first, everything is fine, but if C sends its > message first, B is blocked. Yes? > > Thank you in advance > > Mariusz > ---------------------------------------- > Dear Mariuz, In this way you put, yes. To avoid this you could use 'pvm_probe' to check if the message from A has arrived. If yes, then you use 'pvm_recv' if not, you try to receive from B and after you look to A again. Sorry for my poor English. Best regards, Silvio Sinedino. -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/ Now offering spam-free web-based newsreading