Newsgroups: comp.parallel.pvm
From: ma_adlum@uxmail.ust.hk (Lum Wing Fung Adrian)
Subject: Master and Slave put together...
Organization: The Hong Kong University of Science and Technology
Date: 11 Sep 1995 06:04:27 GMT
Message-ID: <430jhb$el5@news.ust.hk>

Dear all,
	I have a little program here :

/* stuff deleted */
/* this executable is a.out */

	if (pvm_parent () == PvmNoParent)
	{
		pvm_spawn ("a.out", /*... */);
		/* Master stuff */
	}
	else
	{
		/* Slave stuff */
	}

/* End of the a.out */
	
	This can be executed in PVM with normal output.  However,
if run it in XPVM, the program stopped, or actually waited!

	On the other hand, I split this into two pieces :

/* this executable is b.out */

	pvm_spawn ("c.out", /* ... */);
	/* Master stuff */

/* End of b.out */

/* this executable is c.out */

	/* Slave stuff */

/* End of c.out */

	Then, the program can be run normally in both PVM and XPVM.

	Can anyone tell me what the differences between them?

	Thanks in advance.

--
 ___       _ _             _      _     _           
/ __| __ _(_) |___ _ _    /_\  __| |_ _(_)__ _ _ _  
\__ \/ _` | | / _ \ '_|  / _ \/ _` | '_| / _` | ' \ 
|___/\__,_|_|_\___/_|   /_/ \_\__,_|_| |_\__,_|_||_| ճߦۤ
Oڭ̪޵P, L@Ϥ߸̥H ( 7:10)

