int main(int c, char **v)
{
	int tids[10];
	int parent, spawn;
	int i_data, i2;
	double f_data;

	if (c > 1) {
		spawn = pvm_spawn(, 0, PvmTaskDefault, 0, 1, tids);
		if (spawn <= 0) {
			printf();
			return 1;
		}

		printf();

		
		pvm_recv(-1, 2);
		pvm_unpackf(, &i_data, &i2);
		printf(, i_data, i2);

		pvm_recv(-1, 1);
		pvm_unpackf(, &i_data, &f_data);
		printf(, i_data, f_data);
	} else {
		parent = pvm_parent();

		pvm_initsend(PvmDataDefault);
		i_data = rand();
		f_data = (double)rand() / RAND_MAX;
		pvm_packf(, i_data, f_data);
		pvm_send(parent, 1);	

		pvm_initsend(PvmDataDefault);
		i2 = rand();
		pvm_packf(, i_data, i2);
		pvm_send(parent, 2);	
	}

	pvm_exit();
	return 0;
}