Newsgroups: comp.parallel.pvm
From: Saghir Ahmed Shaikh <shaikh@ece.utexas.edu>
Subject: Example neededfor Asynchronous Communication
Organization: Univ. of Texas at Austin
Date: 12 Dec 1995 23:49:52 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <4al4f0$oju@geraldo.cc.utexas.edu>

Dear pvm_users(all):

I am developing an application using asynchronous comunication.
Could you please provide me an example of some application using pvm for
asynchronous comm. i.e. using pvm_nrec(-1, -1). For example my program alg
would look like as follows:

while (done) {
	arrived = pvm_nrecv(-1, -1)	// Wait for all kind of 
					// message & from all other tasks
	switch (msgType) {

		case (msgA): 
			do_proc_A;
			break;
		case (msgB):
			do_proc_B;
			break;
		}
I am unaware how one determones what type of message has arrived and if it is 
arrived or not etc. Please let me know if you know any hints...

Thanks a lot

Email is saghir@mail.utexas.edu

		
--
peace, saghir
----------------------------------------------------------------------+
Saghir A. Shaikh, Graduate Student, Department of ECE UT-Austin       |		
-----------------------------------------------	| Tel: (512) 453-7310 |
Preferred Email: saghir@mail.utexas.edu		| Snail Mail:	      |
Others:		 shaikh@ece.utexas.edu		| 306 W. 45th St.     |
		 shaikh@ccwf.cc.utexas.edu	| Austin, TX 78751    |
----------------------------------------------------------------------+


